/**
 * ============================================
 * Qiraat Gallery - MAIN STYLESHEET
 * ============================================
 * 
 * Modern minimalist design with stylish artisan accents
 * Fresh teal and gold palette for a contemporary craft look
 * 
 * Version: 1.0.0
 * Last Updated: February 2026
 */

/* ============================================
   CSS VARIABLES (Design Tokens)
   ============================================ */
:root {
    /* Color Palette - Vibrant red and lime green */
    --primary-color: #F80E0B;        /* Vibrant red */
    --primary-dark: #C20B0A;         /* Deep red */
    --primary-light: #FF3A30;        /* Warm red */
    
    --secondary-color: #D3F00A;      /* Lime green */
    --accent-color: #D3F00A;         /* Lime green */
    --accent-dark: #A5BF08;          /* Dark lime */
    
    --terracotta: #FF7F5E;           /* Warm coral */
    --sage: #8C9B82;                 /* Muted sage */
    --cream: #FFF6D6;                /* Light cream */
    --beige: #F6E6B2;                /* Soft beige */
    
    /* Neutral Colors */
    --text-primary: #1A1A1A;         /* Almost black */
    --text-secondary: #4B4B4B;       /* Dark gray */
    --text-muted: #7A7A7A;           /* Soft gray */
    
    --bg-primary: #FFFFFF;           /* White */
    --bg-secondary: #FFF5E6;         /* Pale cream */
    --bg-tertiary: #FFF1C2;          /* Pale yellow */
    
    --border-color: #E7D391;         /* Light gold border */
    --border-dark: #BFA336;          /* Dark gold border */
    
    /* Status Colors */
    --success: #7A9B76;              /* Muted green */
    --warning: #D4A574;              /* Golden */
    --danger: #C65D3B;               /* Terracotta */
    --info: #8B9DAF;                 /* Muted blue */
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(44, 36, 22, 0.08);
    --shadow-md: 0 4px 12px rgba(44, 36, 22, 0.12);
    --shadow-lg: 0 8px 24px rgba(44, 36, 22, 0.16);
    --shadow-xl: 0 12px 40px rgba(44, 36, 22, 0.20);
    
    /* Typography */
    --font-primary: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Playfair Display', Georgia, serif;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;
    
    /* Container */
    --container-max: 1200px;
    --container-padding: 1rem;
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-secondary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: var(--spacing-md);
    color: var(--text-secondary);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-base);
}

a:hover {
    color: var(--primary-dark);
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.container-fluid {
    width: 100%;
    padding: 0 var(--container-padding);
}

.section {
    padding: var(--spacing-3xl) 0;
}

.section-sm {
    padding: var(--spacing-2xl) 0;
}

/* ============================================
   GRID SYSTEM
   ============================================ */
.row {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    margin: 0 calc(var(--spacing-md) * -1);
}

.col,
[class*="col-"] {
    padding: 0 var(--spacing-md);
    width: 100%;
}

.col {
    flex: 1;
}

.col-1 { flex: 0 0 8.333%; max-width: 8.333%; }
.col-2 { flex: 0 0 16.666%; max-width: 16.666%; }
.col-3 { flex: 0 0 25%; max-width: 25%; }
.col-4 { flex: 0 0 33.333%; max-width: 33.333%; }
.col-5 { flex: 0 0 41.666%; max-width: 41.666%; }
.col-6 { flex: 0 0 50%; max-width: 50%; }
.col-7 { flex: 0 0 58.333%; max-width: 58.333%; }
.col-8 { flex: 0 0 66.666%; max-width: 66.666%; }
.col-9 { flex: 0 0 75%; max-width: 75%; }
.col-10 { flex: 0 0 83.333%; max-width: 83.333%; }
.col-11 { flex: 0 0 91.666%; max-width: 91.666%; }
.col-12 { flex: 0 0 100%; max-width: 100%; }

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.site-header {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(34, 34, 34, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all var(--transition-base);
}

.top-bar {
    background: var(--primary-color);
    color: white;
    padding: 0.75rem ;
    font-size: 0.875rem;
}

.top-bar a {
    color: rgba(255, 255, 255, 0.9);
    margin-left: var(--spacing-md);
    transition: color var(--transition-base);
}

.top-bar a:hover {
    color: white;
}

.main-nav {
    padding: 0.75rem 0;
}


.site-header .container {
    max-width: 100%;
    padding: 0 30px;
}


.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-xl);
}

.logo {
    display: inline-flex;
    flex-direction: column;
    gap: 0.08rem;
    text-decoration: none;
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--text-primary);
    align-items: flex-start;
}

.logo-title {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.1;
    color: #1f1f1f;
}

.logo-subtitle {
    font-size: 0.55rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-secondary);
    font-weight: 600;
}

.logo::after {
    content: '';
    display: block;
    width: 35px;
    height: 3px;
    margin-top: 0.25rem;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    opacity: 0.9;
    transform: translateX(0);
}

.logo:hover .logo-title {
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-xl);
    align-items: center;
}

/* Slight extra separation for nav items on large screens */
.nav-menu li {
    margin: 0 0.35rem;
}

.nav-menu a {
    color: var(--text-primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    padding: 0.85rem 0;
    position: relative;
    transition: color var(--transition-base), transform var(--transition-base);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.95rem;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
    transform: translateY(-1px);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 999px;
    transition: width var(--transition-base);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

.nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 1px solid rgba(34, 34, 34, 0.08);
    background: rgba(255, 255, 255, 0.82);
    color: var(--text-primary);
    font-size: 1.25rem;
    transition: all var(--transition-base);
    position: relative;
}

.nav-icon:hover {
    color: var(--primary-color);
    transform: translateY(-1px);
    background: rgba(248, 14, 11, 0.08);
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--terracotta);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    width: 20px;
    height: 20px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-primary);
    cursor: pointer;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
    line-height: 1.5;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-block {
    display: block;
    width: 100%;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ============================================
   CARDS
   ============================================ */
.card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: all var(--transition-base);
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.card-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.card-body {
    padding: var(--spacing-lg);
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
}

.card-text {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

/* ============================================
   PRODUCT CARD
   ============================================ */
.product-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
}

.product-image-wrapper {
    position: relative;
    overflow: hidden;
    padding-top: 68%; /* Wide landscape — slightly larger image */
}

.product-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: var(--spacing-lg);
}

.product-footer {
    margin-top: auto;
}

.product-price {
    display: flex;
    align-items: flex-end;
    gap: 0.75rem;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.product-card:hover .product-image {
    transform: scale(1.1);
}

.product-badges {
    position: absolute;
    top: var(--spacing-md);
    left: var(--spacing-md);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    z-index: 10;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: var(--radius-full);
    letter-spacing: 0.5px;
}

.badge-new {
    background: var(--sage);
    color: white;
}

.badge-sale {
    background: var(--terracotta);
    color: white;
}

.badge-featured {
    background: var(--accent-color);
    color: white;
}

.product-actions {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    opacity: 0;
    transform: translateX(20px);
    transition: all var(--transition-base);
}

.product-card:hover .product-actions {
    opacity: 1;
    transform: translateX(0);
}

.action-btn {
    width: 40px;
    height: 40px;
    background: white;
    border: none;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    color: var(--text-primary);
}

.action-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.product-info {
    padding: var(--spacing-lg);
}

.product-category {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--spacing-xs);
}

.product-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.stars {
    color: var(--accent-color);
    font-size: 0.875rem;
}

.rating-count {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.product-price {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.price-current {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.price-original {
    font-size: 0.95rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.price-discount {
    font-size: 0.875rem;
    color: var(--terracotta);
    font-weight: 600;
}

.product-footer {
    display: flex;
    gap: var(--spacing-sm);
}

/* ============================================
   ABOUT PAGE STYLES
   ============================================ */
.about-hero {
    position: relative;
    padding: 160px 0;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    background-color: var(--text-primary);
    text-align: center;
}

.about-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(44, 36, 22, 0.7), rgba(44, 36, 22, 0.4));
    z-index: 1;
}

.about-hero .container {
    position: relative;
    z-index: 2;
}

.about-title {
    color: white;
    font-size: 5rem;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease;
}

.about-story-img {
    position: relative;
    padding: 2rem;
}

.about-story-img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 80%;
    height: 80%;
    border: 10px solid var(--beige);
    z-index: -1;
    border-radius: var(--radius-lg);
}

.about-story-img img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    width: 100%;
    transition: transform 0.5s ease;
}

.about-story-img:hover img {
    transform: scale(1.02);
}

.stat-card {
    background: var(--bg-primary);
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all var(--transition-base);
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 0.5rem;
    display: block;
}

.stat-label {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
}

.artisan-card {
    text-align: center;
    margin-bottom: 3rem;
}

.artisan-img-wrapper {
    width: 200px;
    height: 200px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid white;
    box-shadow: var(--shadow-md);
}

.artisan-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.craft-accent {
    font-family: var(--font-heading);
    font-style: italic;
    color: var(--primary-color);
    font-size: 1.5rem;
}

/* ============================================
   FORMS
   ============================================ */
.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-label {
    display: block;
    margin-bottom: var(--spacing-sm);
    font-weight: 500;
    color: var(--text-primary);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: var(--font-primary);
    font-size: 1rem;
    color: var(--text-primary);
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(22, 105, 122, 0.12);
}

.form-control::placeholder {
    color: var(--text-muted);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

select.form-control {
    cursor: pointer;
}

.form-text {
    display: block;
    margin-top: var(--spacing-sm);
    font-size: 0.875rem;
    color: var(--text-muted);
}

.form-error {
    color: var(--danger);
    font-size: 0.875rem;
    margin-top: var(--spacing-sm);
}

/* Password Visibility Toggle */
.password-wrapper {
    position: relative;
    display: block;
    width: 100%;
}

.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--text-muted);
    transition: color var(--transition-base);
    z-index: 10;
    padding: 0.5rem;
}

.password-toggle:hover {
    color: var(--primary-color);
}


/* ============================================
   ALERTS
   ============================================ */
.alert {
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-lg);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.alert-success {
    background: rgba(122, 155, 118, 0.1);
    color: var(--success);
    border-left: 4px solid var(--success);
}

.alert-warning {
    background: rgba(212, 165, 116, 0.1);
    color: var(--warning);
    border-left: 4px solid var(--warning);
}

.alert-danger {
    background: rgba(198, 93, 59, 0.1);
    color: var(--danger);
    border-left: 4px solid var(--danger);
}

.alert-info {
    background: rgba(139, 157, 175, 0.1);
    color: var(--info);
    border-left: 4px solid var(--info);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--text-primary);
    color: var(--beige);
    padding: var(--spacing-3xl) 0 var(--spacing-lg);
    margin-top: var(--spacing-3xl);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-2xl);
    margin-bottom: var(--spacing-2xl);
}

.footer-section h3 {
    color: white;
    font-size: 1.25rem;
    margin-bottom: var(--spacing-lg);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: var(--spacing-sm);
}

.footer-section a {
    color: var(--beige);
    transition: color var(--transition-base);
}

.footer-section a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all var(--transition-base);
}

.social-link:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--spacing-lg);
    text-align: center;
    color: var(--text-muted);
}

/* ============================================
   UTILITIES
   ============================================ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }
.mt-4 { margin-top: var(--spacing-xl); }

.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }
.mb-4 { margin-bottom: var(--spacing-xl); }

.p-1 { padding: var(--spacing-sm); }
.p-2 { padding: var(--spacing-md); }
.p-3 { padding: var(--spacing-lg); }
.p-4 { padding: var(--spacing-xl); }

.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: var(--spacing-sm); }
.gap-2 { gap: var(--spacing-md); }
.gap-3 { gap: var(--spacing-lg); }

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1199px) {
    :root {
        --container-max: 960px;
    }
}

@media (max-width: 991px) {
    :root {
        --container-max: 720px;
    }
    
    .nav-menu {
        display: none;
    }
    
    .menu-toggle {
        display: block;
    }
}

/* Responsive adjustments for hero, header and nav */
@media (max-width: 991px) {
    .home-hero {
        padding: 6rem 0;
        min-height: 60vh;
        background-position: center;
    }

    .hero-features-container {
        max-width: 680px;
        gap: 1rem;
        padding: 1.75rem;
    }

    .logo-title { font-size: 1.1rem; }
    .logo-subtitle { font-size: 0.5rem; }

    .nav-icon { width: 38px; height: 38px; font-size: 1.05rem; }
}

@media (max-width: 767px) {
    .home-hero {
        padding: 4rem 0;
        min-height: auto;
        align-items: flex-start;
        padding-top: 3.5rem;
        padding-bottom: 3.5rem;
    }

    .hero-title { font-size: 2rem; }
    .hero-text { font-size: 1rem; max-width: 90%; }

    .hero-buttons { flex-direction: column; gap: 1rem; }

    .hero-features-container {
        grid-template-columns: 1fr;
        margin: 1.5rem var(--container-padding) 0;
        padding: 1rem;
    }

    /* Reduce logo prominence on small screens */
    .logo-title { font-size: 1rem; }
    .logo-subtitle { display: none; }

    /* Top bar: ensure mail link truncates */
    .top-bar a[href^="mailto:"] {
        display: inline-block;
        max-width: calc(100% - 140px);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        vertical-align: middle;
    }

    /* Nav menu hidden under 991px already; ensure icons are visible */
    .nav-actions { gap: var(--spacing-md); }
}

@media (min-width: 768px) {
    .col-md-1 { flex: 0 0 8.333%; max-width: 8.333%; }
    .col-md-2 { flex: 0 0 16.666%; max-width: 16.666%; }
    .col-md-3 { flex: 0 0 25%; max-width: 25%; }
    .col-md-4 { flex: 0 0 33.333%; max-width: 33.333%; }
    .col-md-5 { flex: 0 0 41.666%; max-width: 41.666%; }
    .col-md-6 { flex: 0 0 50%; max-width: 50%; }
    .col-md-7 { flex: 0 0 58.333%; max-width: 58.333%; }
    .col-md-8 { flex: 0 0 66.666%; max-width: 66.666%; }
    .col-md-9 { flex: 0 0 75%; max-width: 75%; }
    .col-md-10 { flex: 0 0 83.333%; max-width: 83.333%; }
    .col-md-11 { flex: 0 0 91.666%; max-width: 91.666%; }
    .col-md-12 { flex: 0 0 100%; max-width: 100%; }
}

@media (min-width: 1200px) {
    .col-lg-1 { flex: 0 0 8.333%; max-width: 8.333%; }
    .col-lg-2 { flex: 0 0 16.666%; max-width: 16.666%; }
    .col-lg-3 { flex: 0 0 25%; max-width: 25%; }
    .col-lg-4 { flex: 0 0 33.333%; max-width: 33.333%; }
    .col-lg-5 { flex: 0 0 41.666%; max-width: 41.666%; }
    .col-lg-6 { flex: 0 0 50%; max-width: 50%; }
    .col-lg-7 { flex: 0 0 58.333%; max-width: 58.333%; }
    .col-lg-8 { flex: 0 0 66.666%; max-width: 66.666%; }
    .col-lg-9 { flex: 0 0 75%; max-width: 75%; }
    .col-lg-10 { flex: 0 0 83.333%; max-width: 83.333%; }
    .col-lg-11 { flex: 0 0 91.666%; max-width: 91.666%; }
    .col-lg-12 { flex: 0 0 100%; max-width: 100%; }
}

@media (max-width: 767px) {
    :root {
        --container-max: 540px;
        --container-padding: 1rem;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    .col,
    [class*="col-"] {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
    
    .section {
        padding: var(--spacing-2xl) 0;
    }
}

@media (max-width: 575px) {
    :root {
        --container-padding: 0.75rem;
    }
    
    .top-bar {
        font-size: 0.75rem;
    }
    
    .logo {
        font-size: 1.5rem;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease;
}

.slide-in-right {
    animation: slideInRight 0.6s ease;
}

/* ============================================
   LOADING SPINNER
   ============================================ */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: var(--radius-full);
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
/* ============================================
   HERO & FEATURES CUSTOM STYLES
   ============================================ */
.hero-section {
    overflow: hidden;
    position: relative;
}

/* Page-specific hero wrapper (homepage) moved from inline styles */
.home-hero {
    position: relative;
    padding: 10rem 0;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    text-align: center;
    color: white;
    display: flex;
    align-items: center;
    min-height: 80vh;
}

.hero-features-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    color: var(--text-primary);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    border: 1px solid rgba(255,255,255,0.3);
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 15% 20%, rgba(255,255,255,0.14), transparent 22%),
                radial-gradient(circle at 85% 15%, rgba(211,240,10,0.18), transparent 18%);
    pointer-events: none;
}

.hero-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.18), rgba(0,0,0,0.02));
    pointer-events: none;
}

.hero-title {
    font-size: clamp(3rem, 5vw, 4.8rem);
    margin-bottom: 1.5rem;
    line-height: 1.05;
    color: white;
    text-shadow: 0 8px 22px rgba(0,0,0,0.28);
    letter-spacing: -0.03em;
    opacity: 0;
    animation: headlinePop 1s ease-out forwards;
}

.hero-highlight {
    display: block;
    color: var(--secondary-color);
    text-transform: uppercase;
    font-size: 1.05em;
    letter-spacing: 0.24em;
    margin-top: 0.5rem;
    opacity: 0;
    animation: glowPulse 1.4s ease-in-out 0.6s both;
}

.hero-text {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.35rem;
    color: rgba(255,255,255,0.92);
    margin-bottom: 2.75rem;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 4px 12px rgba(0,0,0,0.2);
    opacity: 0;
    animation: fadeIn 1s ease 0.3s both;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 4rem;
    opacity: 0;
    animation: fadeIn 1s ease 0.4s both;
}

.hero-features-container {
    transform: translateY(50%);
    margin-top: -5rem !important;
    z-index: 20;
    position: relative;
    border-radius: 24px;
    overflow: hidden;
}

.hero-features-container > div {
    padding: 1.75rem;
    background: rgba(255,255,255,0.9);
    border-radius: 20px;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

/* Home hero background and overlay */
.home-hero__bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 1;
}

.home-hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.15;
}

.home-hero__overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.15), transparent);
}

.home-hero__content { position: relative; z-index: 10; }

/* Hero CTA */
.hero-cta { min-width: 200px; font-size: 1.05rem; }
.hero-cta--outline { border-color: white; color: white; }
.icon-left { margin-right: 0.5rem; }

/* Feature blocks */
.feature { text-align: center; }
.feature--with-border { border-right: 1px solid var(--border-color); padding-right: 1rem; }
.feature-icon { font-size: 2.25rem; color: var(--primary-color); margin-bottom: 0.75rem; }
.feature-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.5rem; }
.feature-desc { font-size: 0.9rem; color: var(--text-muted); margin: 0; }

/* Category card styles */
.category-card { display: block; text-decoration: none; }
.category-card__inner { background: var(--bg-primary); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-sm); transition: all 0.3s ease; height: 100%; }
.category-card__image-wrapper { position: relative; padding-top: 75%; overflow: hidden; }
.category-card__image { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.category-card__overlay { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(to top, rgba(0,0,0,0.7), transparent); padding: 1.5rem; }
.category-card__title { color: white; font-size: 1.5rem; margin: 0; }

/* Utility: section top padding */
.section--pt-lg { padding-top: 8rem; }

.hero-features-container > div:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.12);
}

.hero-features-container > div:first-child {
    border-right: 1px solid rgba(0,0,0,0.04);
}

@keyframes headlinePop {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.98);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes glowPulse {
    0% {
        opacity: 0;
        transform: translateY(8px);
        text-shadow: 0 0 0 rgba(211,240,10,0);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        text-shadow: 0 0 28px rgba(211,240,10,0.55);
    }
}

@media (max-width: 767px) {
    .hero-section {
        padding: 6rem 0 !important;
    }
    
    .hero-section h1 {
        font-size: 2.5rem !important;
    }
    
    .hero-features-container {
        grid-template-columns: 1fr !important;
        transform: translateY(0);
        margin: 2rem var(--container-padding) 0 !important;
        gap: 1.5rem !important;
    }
    
    .hero-features-container > div {
        border-right: none !important;
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 1rem;
        padding-right: 0 !important;
    }
    
    .hero-features-container > div:last-child {
        border-bottom: none;
    }
}

@keyframes fadeInRow {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

.hero-content {
    animation: fadeInRow 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}


/* ============================================
   COOKIE CONSENT BANNER
   ============================================ */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.12);
    z-index: 9999;
    padding: 1.25rem var(--spacing-md);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-md);
    /* Hidden by default */
    transform: translateY(110%);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
    pointer-events: none;
}

.cookie-banner.show {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}

.cookie-banner.hide {
    transform: translateY(110%);
    opacity: 0;
    pointer-events: none;
}

.cookie-content {
    flex: 1;
    min-width: 260px;
}

.cookie-content h4 {
    margin-bottom: 0.3rem;
    font-size: 1rem;
    color: var(--text-primary);
}

.cookie-content p {
    margin-bottom: 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.cookie-content p a {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: 600;
}

.cookie-actions {
    display: flex;
    gap: var(--spacing-sm);
}

@media (min-width: 768px) {
    .cookie-banner {
        padding: 1.5rem;
        bottom: 24px;
        left: 24px;
        right: auto;
        max-width: 480px;
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-xl);
        border: 1px solid var(--border-color);
    }
}


