/* ═══════════════════════════════════════════════════════════════════════════
   ASSOCIATION DE LOISIRS DES 7 VILLAGES - Site Public
   Design System Premium — Fully Responsive
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────────────────────────
   CSS Variables
   ───────────────────────────────────────────────────────────────────────────── */
:root {
    /* Primary - Forest Green */
    --color-primary: #228B22;
    --color-primary-light: #2ea62e;
    --color-primary-dark: #1a6b1a;
    --color-primary-50: #f0fdf4;
    --color-primary-100: #dcfce7;

    /* Accent Colors */
    --color-blue: #3b82f6;
    --color-blue-light: #60a5fa;
    --color-orange: #f59e0b;
    --color-orange-light: #fbbf24;
    --color-violet: #8b5cf6;
    --color-violet-light: #a78bfa;

    /* Neutrals */
    --bg-page: #f8fafc;
    --bg-card: #ffffff;
    --bg-dark: #0f172a;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-tertiary: #94a3b8;
    --text-inverse: #ffffff;
    --border-light: #e2e8f0;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

    /* Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 200ms ease;
    --transition-slow: 300ms ease;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Reset & Base
   ───────────────────────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-page);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Typography
   ───────────────────────────────────────────────────────────────────────────── */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
    word-wrap: break-word;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
}

h3 {
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
}

h4 {
    font-size: clamp(1rem, 2vw, 1.25rem);
}

p {
    color: var(--text-secondary);
    word-wrap: break-word;
}

.text-gradient {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

@media (max-width: 640px) {
    .container {
        padding: 0 1rem;
    }
}

.section {
    padding: 5rem 0;
}

@media (max-width: 768px) {
    .section {
        padding: 3rem 0;
    }
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

@media (max-width: 640px) {
    .section-header {
        margin-bottom: 2rem;
    }
}

.section-header h2 {
    margin-bottom: 1rem;
}

.section-header p {
    font-size: clamp(0.9375rem, 2vw, 1.125rem);
    max-width: 600px;
    margin: 0 auto;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Navigation
   ───────────────────────────────────────────────────────────────────────────── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-light);
    transition: all var(--transition-base);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    padding: 0 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

@media (max-width: 640px) {
    .navbar-container {
        padding: 0 1rem;
        height: 64px;
    }
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--color-primary);
    flex-shrink: 0;
    z-index: 101;
}

.navbar-brand img {
    height: 40px;
    width: auto;
}

/* Desktop nav */
.navbar-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
    position: relative;
    font-size: 0.9375rem;
}

.nav-icon {
    display: none;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width var(--transition-fast);
}

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

.navbar-cta {
    display: flex;
    align-items: center;
    gap: 1rem;
}

@media (max-width: 992px) {
    .navbar-cta {
        display: none;
    }
}

/* Mobile menu toggle */
.navbar-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 104;
    position: relative;
    width: 44px;
    height: 44px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    border-radius: var(--radius-md);
    transition: background-color var(--transition-fast);
}

.navbar-toggle:hover {
    background-color: rgba(0, 0, 0, 0.04);
}

.navbar-toggle:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.navbar-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition-base);
    transform-origin: center;
}

.navbar-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.navbar-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.navbar-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav menu */
@media (max-width: 992px) {
    .navbar {
        overflow: visible;
    }

    .navbar-toggle {
        display: flex;
        background: rgba(255, 255, 255, 0.7);
        box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
    }

    .navbar-nav {
        position: fixed;
        top: 0.5rem;
        right: 0.5rem;
        width: min(360px, calc(100vw - 1rem));
        height: calc(100vh - 1rem);
        height: calc(100dvh - 1rem);
        max-height: calc(100dvh - 1rem);
        background:
            radial-gradient(circle at top right, rgba(34, 139, 34, 0.14), transparent 38%),
            linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
        flex-direction: column;
        align-items: flex-start;
        gap: 0.18rem;
        padding: 4.15rem 0.8rem 0.8rem;
        border: 1px solid rgba(226, 232, 240, 0.9);
        border-radius: var(--radius-2xl);
        box-shadow: -20px 24px 70px rgba(15, 23, 42, 0.28);
        transform: translateX(calc(100% + 1rem)) scale(0.98);
        opacity: 0;
        pointer-events: none;
        transition:
            transform 360ms cubic-bezier(0.22, 1, 0.36, 1),
            opacity 220ms ease;
        z-index: 103;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .navbar-nav.mobile-open {
        transform: translateX(0);
        opacity: 1;
        pointer-events: auto;
    }

    .navbar-nav::before {
        content: '';
        position: absolute;
        inset: 0;
        border-radius: inherit;
        pointer-events: none;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
    }

    .navbar-nav li {
        width: 100%;
    }

    .nav-link {
        display: flex;
        align-items: center;
        gap: 0.7rem;
        padding: 0.62rem 0.75rem;
        font-size: 1rem;
        font-weight: 650;
        width: 100%;
        color: var(--text-primary);
        transition:
            background-color 150ms ease,
            color 150ms ease,
            box-shadow 150ms ease,
            transform 150ms ease;
        border: 1px solid transparent;
        border-radius: var(--radius-lg);
        position: relative;
    }

    .nav-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 2.05rem;
        height: 2.05rem;
        flex: 0 0 auto;
        border-radius: var(--radius-md);
        background: var(--color-primary-50);
        color: var(--color-primary);
        font-size: 1.1rem;
        transition: background-color 150ms ease, color 150ms ease, transform 150ms ease;
    }

    .nav-link:hover {
        transform: translateY(-1px);
        background-color: var(--color-primary-50);
        color: var(--color-primary);
        border-color: rgba(34, 139, 34, 0.14);
        box-shadow: var(--shadow-sm);
    }

    .nav-link:focus-visible {
        outline: 2px solid var(--color-primary);
        outline-offset: 3px;
    }

    .nav-link::after {
        display: none;
    }

    .nav-link.active {
        color: var(--color-primary);
        font-weight: 800;
        background-color: var(--color-primary-50);
        border-color: rgba(34, 139, 34, 0.22);
        box-shadow: inset 0 0 0 1px rgba(34, 139, 34, 0.08);
    }

    .nav-link.active .nav-icon,
    .nav-link:hover .nav-icon {
        background: var(--color-primary);
        color: var(--text-inverse);
        transform: scale(1.03);
    }

    /* Mobile CTA inside menu */
    .navbar-nav .mobile-cta {
        display: flex;
        margin-top: 0.35rem;
        padding: 0.65rem 0.2rem 0.15rem;
        border-top: 1px solid var(--border-light);
    }

    .navbar-nav .mobile-cta .btn {
        width: 100%;
        justify-content: center;
        min-height: 2.85rem;
        border-radius: var(--radius-lg);
        box-shadow: 0 14px 28px rgba(34, 139, 34, 0.24);
    }
}

@media (max-width: 992px) and (max-height: 700px) {
    .navbar-nav {
        padding-top: 3.65rem;
    }

    .nav-link {
        padding-block: 0.52rem;
    }

    .navbar-nav .mobile-cta {
        padding-top: 0.5rem;
    }
}

@media (min-width: 993px) {
    .navbar-nav .mobile-cta {
        display: none !important;
    }
}

/* Overlay */
.navbar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.46);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 300ms ease, visibility 300ms ease;
    z-index: 99;
}

.navbar-overlay.active {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 420px) {
    .navbar-nav {
        top: 0;
        right: 0;
        width: 100vw;
        height: 100vh;
        height: 100dvh;
        max-height: 100dvh;
        border-radius: 0;
        border-right: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .navbar-nav,
    .navbar-toggle span,
    .navbar-overlay {
        transition: none !important;
    }
}

/* ─────────────────────────────────────────────────────────────────────────────
   Buttons
   ───────────────────────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--radius-lg);
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    white-space: nowrap;
}

@media (max-width: 640px) {
    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
    }
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: white;
    box-shadow: 0 4px 14px 0 rgba(34, 139, 34, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(34, 139, 34, 0.4);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-light);
}

.btn-secondary:hover {
    background: var(--bg-page);
    border-color: var(--color-primary);
}

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

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

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

@media (max-width: 640px) {
    .btn-lg {
        padding: 0.875rem 1.5rem;
        font-size: 0.9375rem;
    }
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Hero Section
   ───────────────────────────────────────────────────────────────────────────── */
.hero {
    position: relative;
    min-height: auto;
    display: flex;
    align-items: center;
    padding: 8rem 0 3rem;
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff 0%, var(--color-primary-50) 50%, var(--color-primary-100) 100%);
}

@media (max-width: 768px) {
    .hero {
        padding: 6rem 0 2.5rem;
    }
}

.hero-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 720px;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(34, 139, 34, 0.1);
    color: var(--color-primary);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius-2xl);
    margin-bottom: 1.25rem;
}

.hero-title {
    font-size: clamp(1.75rem, 4vw, 3rem);
    margin-bottom: 1.25rem;
    line-height: 1.1;
}

.hero-description {
    font-size: clamp(0.9375rem, 2vw, 1.0625rem);
    margin-bottom: 1.75rem;
    color: var(--text-secondary);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-top: 2.25rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(34, 139, 34, 0.15);
    justify-content: center;
}

@media (max-width: 640px) {
    .hero-stats {
        flex-direction: column;
        gap: 1.25rem;
        margin-top: 1.5rem;
    }
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: clamp(1.5rem, 3vw, 1.75rem);
    font-weight: 800;
    color: var(--color-primary);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-tertiary);
}

.hero-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image img {
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
}

/* ─────────────────────────────────────────────────────────────────────────────
   Cards
   ───────────────────────────────────────────────────────────────────────────── */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-light);
    overflow: hidden;
    transition: all var(--transition-base);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.card:hover .card-image img {
    transform: scale(1.05);
}

.card-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.card-badge.green {
    background: var(--color-primary);
    color: white;
}

.card-badge.blue {
    background: var(--color-blue);
    color: white;
}

.card-badge.orange {
    background: var(--color-orange);
    color: white;
}

.card-badge.violet {
    background: var(--color-violet);
    color: white;
}

.card-body {
    padding: 1.5rem;
}

@media (max-width: 640px) {
    .card-body {
        padding: 1.25rem;
    }
}

.card-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-tertiary);
    margin-bottom: 0.75rem;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.card-title a:hover {
    color: var(--color-primary);
}

.card-text {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.card-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--color-primary);
    transition: gap var(--transition-fast);
}

.card-link:hover {
    gap: 0.75rem;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Events Grid
   ───────────────────────────────────────────────────────────────────────────── */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 350px), 1fr));
    gap: 2rem;
}

@media (max-width: 640px) {
    .events-grid {
        gap: 1.25rem;
    }
}

.event-card {
    display: flex;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-light);
    overflow: hidden;
    transition: all var(--transition-base);
}

.event-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.event-date-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    padding: 1.5rem 1rem;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: white;
}

.event-day {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.event-month {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.event-content {
    flex: 1;
    padding: 1.25rem;
}

.event-category {
    display: inline-block;
    padding: 0.25rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    margin-bottom: 0.5rem;
}

.event-category.salle {
    background: rgba(59, 130, 246, 0.1);
    color: var(--color-blue);
}

.event-category.palets {
    background: rgba(139, 92, 246, 0.1);
    color: var(--color-violet);
}

.event-category.concert {
    background: rgba(245, 158, 11, 0.1);
    color: var(--color-orange);
}

.event-category.asso {
    background: rgba(34, 139, 34, 0.1);
    color: var(--color-primary);
}

.event-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.375rem;
}

.event-time {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    color: var(--text-tertiary);
}

@media (max-width: 640px) {
    .event-card {
        flex-direction: column;
    }

    .event-date-block {
        flex-direction: row;
        gap: 0.5rem;
        padding: 0.75rem 1rem;
    }
}

/* ─────────────────────────────────────────────────────────────────────────────
   News Grid
   ───────────────────────────────────────────────────────────────────────────── */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

@media (max-width: 992px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .news-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}

/* ─────────────────────────────────────────────────────────────────────────────
   Features Section
   ───────────────────────────────────────────────────────────────────────────── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}

.feature-card {
    text-align: center;
    padding: 2rem;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-light);
    transition: all var(--transition-base);
}

@media (max-width: 640px) {
    .feature-card {
        padding: 1.5rem;
    }
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    font-size: 1.75rem;
}

.feature-icon.green {
    background: rgba(34, 139, 34, 0.1);
    color: var(--color-primary);
}

.feature-icon.blue {
    background: rgba(59, 130, 246, 0.1);
    color: var(--color-blue);
}

.feature-icon.orange {
    background: rgba(245, 158, 11, 0.1);
    color: var(--color-orange);
}

.feature-icon.violet {
    background: rgba(139, 92, 246, 0.1);
    color: var(--color-violet);
}

.feature-title {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
}

.feature-text {
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

/* ─────────────────────────────────────────────────────────────────────────────
   CTA Section
   ───────────────────────────────────────────────────────────────────────────── */
.cta-section {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

@media (max-width: 768px) {
    .cta-section::before {
        width: 100%;
    }
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-section h2 {
    color: white;
    margin-bottom: 1rem;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(0.9375rem, 2vw, 1.125rem);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-section .btn-primary {
    background: white;
    color: var(--color-primary);
    box-shadow: 0 4px 14px 0 rgba(0, 0, 0, 0.2);
}

.cta-section .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(0, 0, 0, 0.3);
}

/* ─────────────────────────────────────────────────────────────────────────────
   Footer
   ───────────────────────────────────────────────────────────────────────────── */
.footer {
    background: var(--bg-dark);
    color: white;
    padding: 4rem 0 2rem;
}

@media (max-width: 640px) {
    .footer {
        padding: 3rem 0 1.5rem;
    }
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(260px, 1.7fr) minmax(130px, 0.8fr) minmax(160px, 0.9fr) minmax(300px, 1.6fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-grid > div:last-child {
    min-width: 300px;
}

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

    .footer-grid > div:last-child {
        min-width: 0;
    }
}

@media (max-width: 640px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 2rem;
    }
}

.footer-brand {
    max-width: 300px;
}

@media (max-width: 640px) {
    .footer-brand {
        max-width: 100%;
    }
}

.footer-brand-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9375rem;
    line-height: 1.7;
}

.footer-title {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links li:has(.material-symbols-rounded) {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-grid > div:last-child .footer-links li {
    display: grid;
    grid-template-columns: 16px max-content;
    align-items: center;
    column-gap: 0.75rem;
}

@media (max-width: 640px) {
    .footer-grid > div:last-child .footer-links li {
        grid-template-columns: 16px 1fr;
        white-space: normal;
        word-break: break-word;
    }
}

.footer-links li:has(.material-symbols-rounded) .material-symbols-rounded {
    flex: 0 0 16px;
    width: 16px;
    margin-right: 0 !important;
    line-height: 1;
}

.footer-grid > div:last-child .material-symbols-rounded {
    width: 16px;
    margin-right: 0 !important;
    line-height: 1;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

@media (max-width: 640px) {
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: white;
    transition: all var(--transition-fast);
}

.footer-social a:hover {
    background: var(--color-primary);
}

/* ─────────────────────────────────────────────────────────────────────────────
   Responsive — Global
   ───────────────────────────────────────────────────────────────────────────── */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-image {
        display: none;
    }
}

@media (max-width: 640px) {
    .hero {
        min-height: auto;
        padding-bottom: 2.5rem;
    }

    .stat-item {
        text-align: center;
    }
}

/* ─────────────────────────────────────────────────────────────────────────────
   Utilities
   ───────────────────────────────────────────────────────────────────────────── */
.text-center {
    text-align: center;
}

.mb-0 {
    margin-bottom: 0;
}

.mt-2 {
    margin-top: 2rem;
}
