/* ==========================================================================
   Ziama Consulting — Design System & Stylesheet (Production Grade)
   Aesthetic: Premium, Corporate Contemporary, Accessible (WCAG 2.2 AA)
   ========================================================================== */

/* 1. CSS Custom Properties / Design Tokens */
:root {
    /* Brand Palette */
    --primary: #2D3748;          /* Charcoal Slate */
    --primary-light: #4A5568;    /* Medium Charcoal */
    --primary-dark: #1A202C;     /* Deep Slate */
    --primary-deep: #111827;     /* Midnight Slate */
    
    /* Gold Accent Tokens */
    --accent: #D69E2E;           /* Vibrant Gold */
    --accent-light: #ECC94B;     /* Light Gold (for dark surfaces) */
    --accent-dark: #B7791F;      /* Deep Gold (hover states) */
    --accent-text: #975A16;      /* High-contrast Gold (WCAG AA >= 4.5:1 on light) */
    --accent-glow: rgba(214, 158, 46, 0.18);
    
    /* Neutrals & Surfaces */
    --neutral-50: #F8FAFC;       /* Off-white background */
    --neutral-100: #F1F5F9;      /* Light surface */
    --neutral-200: #E2E8F0;      /* Borders / separators */
    --neutral-300: #CBD5E1;      /* Heavy borders */
    --neutral-400: #94A3B8;      /* Placeholder text */
    --neutral-500: #64748B;      /* Secondary text */
    --neutral-600: #475569;      /* Subtitle text */
    --neutral-700: #334155;      /* Body text */
    --neutral-800: #1E293B;      /* Headers */
    --neutral-900: #0F172A;      /* Rich dark */
    --white: #FFFFFF;

    /* Semantic States */
    --success: #059669;
    --success-bg: #ECFDF5;
    --success-border: #A7F3D0;
    --error: #DC2626;
    --error-bg: #FEF2F2;
    --error-border: #FECACA;

    /* Typography */
    --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    --shadow-gold: 0 8px 20px -4px rgba(214, 158, 46, 0.25);

    /* Transitions & Radii */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 2. Global Reset & Accessibility Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--neutral-700);
    background-color: var(--neutral-50);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Focus Visible WCAG 2.2 AA Standards */
:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
    border-radius: var(--radius-sm);
}

/* Screen Reader Only utility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Skip Navigation Link */
.skip-link {
    position: absolute;
    top: -100px;
    left: 1rem;
    z-index: 9999;
    padding: 0.75rem 1.5rem;
    background: var(--accent);
    color: var(--primary-deep);
    font-weight: 700;
    border-radius: var(--radius-sm);
    text-decoration: none;
    box-shadow: var(--shadow-lg);
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 1rem;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--neutral-900);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

p {
    margin-bottom: 1rem;
}

p:last-child {
    margin-bottom: 0;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img, svg {
    display: block;
    max-width: 100%;
}

/* Container */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

@media (min-width: 768px) {
    .container {
        padding: 0 2rem;
    }
}

/* 3. Buttons & Interactive Controls */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-light);
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
}

.btn-accent {
    background: var(--accent);
    color: var(--primary-dark);
    border-color: var(--accent);
}

.btn-accent:hover {
    background: var(--accent-light);
    border-color: var(--accent-light);
    box-shadow: var(--shadow-gold);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
    color: var(--white);
}

.btn-outline-dark {
    background: transparent;
    color: var(--primary);
    border-color: var(--neutral-300);
}

.btn-outline-dark:hover {
    background: var(--neutral-100);
    border-color: var(--primary);
    color: var(--primary-dark);
}

.btn-sm {
    padding: 0.55rem 1.15rem;
    font-size: 0.875rem;
}

.btn-full {
    width: 100%;
}

/* 4. Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    z-index: 1000;
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
    background: rgba(255, 255, 255, 0.98);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
}

.logo-badge {
    width: 44px;
    height: 44px;
    background: var(--primary-dark);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(26, 32, 44, 0.2);
    border: 1px solid rgba(214, 158, 46, 0.3);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-name {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: var(--primary-dark);
    line-height: 1;
}

.logo-suffix {
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    color: var(--accent-text);
    line-height: 1;
    margin-top: 3px;
}

.nav-menu {
    display: none;
    align-items: center;
    gap: 2rem;
}

@media (min-width: 992px) {
    .nav-menu {
        display: flex;
    }
}

.nav-menu a {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--neutral-700);
    padding: 0.5rem 0;
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-dark);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.2s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    background: var(--neutral-100);
    border-radius: 9999px;
    padding: 4px;
    border: 1px solid var(--neutral-200);
}

.lang-btn {
    padding: 4px 10px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--neutral-500);
    border-radius: 9999px;
    text-decoration: none;
    line-height: 1;
}

.lang-btn.active {
    background: var(--white);
    color: var(--primary-dark);
    box-shadow: var(--shadow-sm);
}

.lang-btn:hover:not(.active) {
    color: var(--neutral-800);
}

/* Mobile Menu Toggle Button */
.mobile-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    background: var(--neutral-100);
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-md);
    cursor: pointer;
}

@media (min-width: 992px) {
    .mobile-toggle {
        display: none;
    }
}

.mobile-toggle span {
    width: 22px;
    height: 2px;
    background: var(--primary-dark);
    border-radius: 2px;
    transition: var(--transition);
}

.mobile-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Navigation Drawer */
.mobile-nav-drawer {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(17, 24, 39, 0.4);
    backdrop-filter: blur(8px);
    z-index: 999;
}

.mobile-nav-drawer.open {
    display: block;
}

.mobile-nav-content {
    background: var(--white);
    padding: 2rem;
    box-shadow: var(--shadow-xl);
    border-bottom: 2px solid var(--accent);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-nav-links a {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--neutral-800);
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--neutral-100);
}

/* 5. Hero Section */
.hero {
    position: relative;
    padding: 10rem 0 6rem;
    background: linear-gradient(145deg, var(--primary-deep) 0%, var(--primary-dark) 50%, #222B38 100%);
    color: var(--white);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 65%);
    pointer-events: none;
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to top, var(--neutral-50), transparent);
    z-index: 2;
}

.hero-inner {
    position: relative;
    z-index: 3;
    max-width: 920px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(214, 158, 46, 0.4);
    padding: 0.45rem 1rem;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-light);
    margin-bottom: 1.75rem;
    backdrop-filter: blur(6px);
}

.hero-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent);
}

.hero-title {
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.12;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

.text-accent-gold {
    color: var(--accent-light);
    background: linear-gradient(135deg, #ECC94B 0%, #D69E2E 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    color: var(--neutral-200);
    line-height: 1.75;
    margin-bottom: 2.5rem;
    max-width: 800px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3.5rem;
}

/* Hero Key Pillars / Fast Highlights */
.hero-pillars {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.pillar-item {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.pillar-label {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pillar-label svg {
    color: var(--accent-light);
    flex-shrink: 0;
}

.pillar-desc {
    font-size: 0.875rem;
    color: var(--neutral-300);
    line-height: 1.5;
}

/* 6. Section Common Architecture */
.section {
    padding: 6rem 0;
    position: relative;
}

.section-alt {
    background-color: var(--white);
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.section-tag {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent-text);
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    color: var(--neutral-900);
    margin-bottom: 1.25rem;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--neutral-600);
    line-height: 1.7;
}

/* 7. Expertise Cards Grid */
.expertise-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .expertise-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.expertise-card {
    background: var(--white);
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-lg);
    padding: 2.25rem;
    position: relative;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.expertise-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(214, 158, 46, 0.4);
}

.card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.card-icon {
    width: 52px;
    height: 52px;
    background: var(--neutral-50);
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-dark);
    transition: var(--transition);
}

.expertise-card:hover .card-icon {
    background: var(--primary-dark);
    color: var(--accent-light);
    border-color: var(--primary-dark);
}

.card-number {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--neutral-300);
}

.card-title {
    font-size: 1.45rem;
    color: var(--neutral-900);
    margin-bottom: 0.75rem;
}

.card-pitch {
    font-size: 0.98rem;
    color: var(--neutral-600);
    line-height: 1.65;
    margin-bottom: 1.5rem;
}

.card-details-block {
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.card-details-title {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-text);
    margin-bottom: 0.75rem;
}

.card-feature-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.card-feature-list li {
    font-size: 0.92rem;
    color: var(--neutral-700);
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    line-height: 1.5;
}

.card-feature-list li svg {
    color: var(--accent-text);
    flex-shrink: 0;
    margin-top: 3px;
}

.card-impact {
    background: var(--neutral-50);
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-bottom: 1.75rem;
    font-size: 0.88rem;
    color: var(--neutral-800);
}

.card-impact strong {
    color: var(--primary-dark);
}

.card-footer-cta {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid var(--neutral-100);
}

.card-action-link {
    font-family: var(--font-heading);
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--accent-text);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.card-action-link:hover {
    color: var(--accent-dark);
    gap: 0.6rem;
}

/* 8. Why Choose Ziama (Differentiators) */
.why-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.75rem;
}

@media (min-width: 768px) {
    .why-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.why-card {
    background: var(--neutral-50);
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: var(--transition);
}

.why-card:hover {
    background: var(--white);
    border-color: var(--neutral-300);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.why-icon {
    width: 46px;
    height: 46px;
    border-radius: var(--radius-md);
    background: rgba(214, 158, 46, 0.12);
    color: var(--accent-text);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.why-card h3 {
    font-size: 1.2rem;
    color: var(--neutral-900);
    margin-bottom: 0.75rem;
}

.why-card p {
    font-size: 0.94rem;
    color: var(--neutral-600);
    line-height: 1.6;
}

/* 9. Sectors & References Section */
.sectors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.sector-card {
    background: var(--white);
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.sector-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
}

.sector-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.sector-icon {
    color: var(--accent-text);
}

.sector-title {
    font-size: 1.15rem;
    color: var(--neutral-900);
}

.sector-desc {
    font-size: 0.9rem;
    color: var(--neutral-600);
    line-height: 1.6;
}

/* Client References Presentation */
.references-wrapper {
    background: var(--neutral-100);
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-xl);
    padding: 3rem 2rem;
}

.references-title {
    text-align: center;
    font-size: 1.25rem;
    color: var(--neutral-800);
    margin-bottom: 0.5rem;
}

.references-subtitle {
    text-align: center;
    font-size: 0.92rem;
    color: var(--neutral-500);
    max-width: 650px;
    margin: 0 auto 2.5rem;
}

.client-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

@media (min-width: 640px) {
    .client-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .client-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

.client-card {
    background: var(--white);
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-md);
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.client-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--neutral-300);
}

.client-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--primary-dark);
    margin-bottom: 0.35rem;
}

.client-sector {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--neutral-500);
}

/* 10. Contact Section */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3.5rem;
}

@media (min-width: 992px) {
    .contact-layout {
        grid-template-columns: 1fr 1.2fr;
    }
}

.contact-info-panel {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-info-panel h2 {
    font-size: clamp(2rem, 3vw, 2.5rem);
    color: var(--neutral-900);
}

.contact-lead {
    font-size: 1.1rem;
    color: var(--neutral-600);
    line-height: 1.7;
}

.contact-cards-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-detail-card {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.25rem;
    background: var(--neutral-100);
    border-radius: var(--radius-md);
    border: 1px solid var(--neutral-200);
}

.contact-card-icon {
    width: 44px;
    height: 44px;
    background: var(--white);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-text);
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.contact-card-content h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--neutral-900);
    margin-bottom: 0.25rem;
}

.contact-card-content a {
    color: var(--accent-text);
    font-weight: 600;
    word-break: break-all;
}

.contact-card-content a:hover {
    text-decoration: underline;
}

.contact-card-content p {
    font-size: 0.92rem;
    color: var(--neutral-600);
}

/* Contact Form Card */
.contact-form-card {
    background: var(--white);
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-xl);
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-lg);
}

@media (min-width: 640px) {
    .contact-form-card {
        padding: 3rem 2.5rem;
    }
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 640px) {
    .form-grid-2col {
        grid-template-columns: 1fr 1fr;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--neutral-800);
}

.form-group label .required-mark {
    color: var(--error);
    margin-left: 2px;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--neutral-800);
    background: var(--neutral-50);
    border: 1.5px solid var(--neutral-200);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--white);
    box-shadow: 0 0 0 4px var(--accent-glow);
}

.form-textarea {
    resize: vertical;
    min-height: 130px;
}

/* Checkbox */
.form-checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.form-checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    accent-color: var(--accent);
    cursor: pointer;
}

.form-checkbox-group label {
    font-size: 0.85rem;
    color: var(--neutral-600);
    line-height: 1.5;
    cursor: pointer;
}

.form-checkbox-group label a {
    color: var(--accent-text);
    text-decoration: underline;
}

/* Feedback Status Banner */
.form-status-banner {
    display: none;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    font-size: 0.92rem;
    font-weight: 500;
}

.form-status-banner.success {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--success-bg);
    border: 1px solid var(--success-border);
    color: var(--success);
}

.form-status-banner.error {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--error-bg);
    border: 1px solid var(--error-border);
    color: var(--error);
}

/* 11. Footer */
.footer {
    background: var(--primary-deep);
    color: var(--neutral-400);
    padding: 5rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-top-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

@media (min-width: 640px) {
    .footer-top-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-top-grid {
        grid-template-columns: 2fr 1fr 1fr 1.2fr;
    }
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.footer-desc {
    font-size: 0.92rem;
    line-height: 1.7;
    color: var(--neutral-300);
    max-width: 360px;
}

.footer-col h3 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1.25rem;
    letter-spacing: 0.02em;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a,
.footer-links button {
    font-size: 0.9rem;
    color: var(--neutral-300);
    text-align: left;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
}

.footer-links a:hover,
.footer-links button:hover {
    color: var(--accent-light);
    transform: translateX(3px);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--neutral-400);
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
    }
}

/* 12. Accessible Modal Dialogs (Mentions Légales / Confidentialité / Cookies) */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    overflow-y: auto;
}

.modal-overlay.active {
    display: flex;
}

.modal-box {
    background: var(--white);
    width: 100%;
    max-width: 760px;
    max-height: 85vh;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: modalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--neutral-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h2 {
    font-size: 1.35rem;
    color: var(--neutral-900);
}

.modal-close-btn {
    background: var(--neutral-100);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--neutral-600);
    transition: var(--transition);
}

.modal-close-btn:hover {
    background: var(--neutral-200);
    color: var(--neutral-900);
}

.modal-body {
    padding: 2rem;
    overflow-y: auto;
    font-size: 0.95rem;
    color: var(--neutral-700);
    line-height: 1.7;
}

.modal-body h3 {
    font-size: 1.1rem;
    color: var(--neutral-900);
    margin: 1.5rem 0 0.5rem;
}

.modal-body h3:first-child {
    margin-top: 0;
}

.modal-footer {
    padding: 1.25rem 2rem;
    border-top: 1px solid var(--neutral-200);
    display: flex;
    justify-content: flex-end;
    background: var(--neutral-50);
}

/* 13. Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
