/* ============================================================
   RESPONSIVE STYLESHEET
   ============================================================ */

/* ── Large Desktops (≤1400px) ─────────────────────────────── */
@media (max-width: 1400px) {
    .footer-main {
        grid-template-columns: 1.5fr 1fr 1fr 1fr;
        gap: 2rem;
    }
}

/* ── Desktops (≤1200px) ───────────────────────────────────── */
@media (max-width: 1200px) {
    :root { --max-width: 960px; }

    .container { padding: 0 1.5rem; }

    .stat-bar { grid-template-columns: repeat(2, 1fr); }
    .stat-item:nth-child(2) { border-right: none; }
    .stat-item:nth-child(3) { border-right: 1px solid rgba(255,255,255,0.1); }
    .stat-item:nth-child(3), .stat-item:nth-child(4) {
        border-top: 1px solid rgba(255,255,255,0.1);
    }

    .footer-main { grid-template-columns: 1fr 1fr; gap: 2rem; }

    .brand-name-fr { font-size: 0.75rem; }
    .brand-name-en { font-size: 0.6rem; }
    .nav-link { padding: 0.5rem clamp(0.35rem, 0.5vw, 0.65rem); font-size: 0.75rem; }
}

/* ── Tablets (≤1024px) ────────────────────────────────────── */
@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }

    .feature-split,
    .feature-split.reverse { grid-template-columns: 1fr; direction: ltr; }
    .feature-img-wrap { min-height: 300px; }
    .feature-content { padding: 3rem 2.5rem; }

    .timeline::before { left: 28px; }
    .timeline-item {
        grid-template-columns: 60px 1fr;
        grid-template-rows: auto;
    }
    .timeline-item:nth-child(even) .timeline-content-left,
    .timeline-item:nth-child(even) .timeline-content-right { order: unset; text-align: left; }
    .timeline-dot { grid-column: 1; grid-row: 1; }
    .timeline-content { grid-column: 2; grid-row: 1; }

    /* Hide nav on tablet, show hamburger */
    .header-nav { display: none; }
    .mobile-toggle { display: flex; }
    .mobile-menu-open .header-nav {
        display: flex;
        position: fixed;
        top: 76px;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--white);
        flex-direction: column;
        justify-content: flex-start;
        padding: 1.5rem;
        overflow-y: auto;
        z-index: 999;
        box-shadow: var(--shadow-lg);
    }
    .mobile-menu-open .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        width: 100%;
    }
    .mobile-menu-open .nav-item { width: 100%; border-bottom: 1px solid var(--border); }
    .mobile-menu-open .nav-link {
        padding: 0.9rem 0.5rem;
        font-size: 0.95rem;
        width: 100%;
    }
    .mobile-menu-open .has-dropdown > .nav-link::after { float: right; }
    .mobile-menu-open .dropdown {
        position: static;
        opacity: 1;
        pointer-events: all;
        transform: none;
        box-shadow: none;
        border: none;
        padding: 0 0 0.5rem 1rem;
        display: none;
    }
    .mobile-menu-open .nav-item.dropdown-open .dropdown { display: block; }
    .mobile-menu-open .dropdown a { padding: 0.5rem 0.5rem; font-size: 0.88rem; }
    .mobile-menu-open .dropdown a:hover { padding-left: 0.8rem; background: none; }
}

/* ── Tablets Portrait (≤768px) ────────────────────────────── */
@media (max-width: 768px) {
    .section { padding: 3.5rem 0; }
    .section-lg { padding: 4.5rem 0; }
    .section-header { margin-bottom: 2.5rem; }

    .grid-2, .grid-3 { grid-template-columns: 1fr; gap: 1.5rem; }
    .grid-4 { grid-template-columns: 1fr; }

    .home-hero { min-height: 80vh; }
    .hero-stats { flex-direction: column; gap: 1.25rem; }
    .hero-actions { flex-direction: column; align-items: flex-start; }

    .stat-bar { grid-template-columns: 1fr 1fr; }
    .stat-item:nth-child(3) { border-right: none; }

    .feature-content { padding: 2.5rem 1.5rem; }

    .footer-main { grid-template-columns: 1fr; gap: 2rem; padding: 3rem 0; }
    .footer-bottom { flex-direction: column; text-align: center; }

    h1 { font-size: clamp(1.7rem, 5vw, 2.4rem); }
    h2 { font-size: clamp(1.4rem, 4vw, 2rem); }

    .event-card { grid-template-columns: 70px 1fr; }

    .page-hero { padding: 3.5rem 0; }
}

/* ── Mobile (≤480px) ──────────────────────────────────────── */
@media (max-width: 480px) {
    .container { padding: 0 1rem; }

    .btn { padding: 0.65rem 1.25rem; font-size: 0.82rem; }
    .btn-lg { padding: 0.75rem 1.5rem; font-size: 0.88rem; }

    .header-inner { height: 64px; }
    .header-brand img { height: 38px; }
    .brand-name-fr { font-size: 0.68rem; max-width: 180px; }
    .brand-name-en { display: none; }

    .stat-bar { grid-template-columns: 1fr; }
    .stat-item { border-right: none; border-top: 1px solid rgba(255,255,255,0.1); }
    .stat-item:first-child { border-top: none; }

    .icon-card { padding: 1.5rem 1.25rem; }
    .team-card { padding: 1.5rem 1rem; }

    .quote-band blockquote { font-size: 1.1rem; }

    .cta-ribbon { padding: 3rem 0; }

    .faq-question { font-size: 0.95rem; }

    .event-card { grid-template-columns: 60px 1fr; gap: 0.75rem; padding: 1rem; }
    .event-day { font-size: 1.4rem; }
}

/* ── Print ────────────────────────────────────────────────── */
@media print {
    .site-header, .site-footer, .mobile-toggle,
    .cta-ribbon, .hero-actions, .btn { display: none !important; }
    body { color: #000; background: #fff; }
    a[href]::after { content: " (" attr(href) ")"; }
    .page-hero, .home-hero {
        background: #f5f5f5 !important;
        color: #000 !important;
        min-height: auto;
    }
    .page-hero h1, .home-hero h1 { color: #000 !important; }
}

/* ── Accessibility ────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
}

@media (prefers-color-scheme: dark) {
    /* Only light mode is supported per design requirements */
}
