/* =====================================================================
   AWNGĀR – Tablet + mobile layer (13 Nov 2026)
   Loaded LAST (after editorial.css + seasons.css), so it only fine-tunes
   the existing design for smaller screens. Desktop (≥ 1200px) is untouched.

   Breakpoints (same as Bootstrap):
     ≤ 1199px  tablet landscape / small laptop
     ≤ 991px   tablet portrait
     ≤ 767px   phones
     ≤ 400px   small phones

   Sections
     1. Grids that were set inline in the blocks (stats, roadmap)
     2. Mobile menu – full-screen, numbered, CONTACT + language at the bottom
     3. Hero (home + page heroes)
     4. Stats · seasons · films · tiles
     5. Roadmap as a vertical time line
     6. Band, CTA, tour rows, tiers, people
     7. Story pages, newsletter, footer, back-to-top
   ===================================================================== */


/* 1. Grids ------------------------------------------------------------
   stats.blade.php + roadmap.blade.php write "repeat(5, 1fr)" inline.
   On smaller screens that squeezed 5 columns into a phone, so the page
   scrolled sideways. These rules win over the inline style. */
@media (max-width: 991px) {
    .aw-s-stats__row { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)) !important; }   /* 4–5 numbers stay on one row on tablets */
    .aw-s-stat { border-bottom: 1px solid var(--s-line); padding: 26px 18px; }
    .aw-s-stat b { font-size: 36px; }   /* 48px numbers ran into each other in narrow columns */
    .aw-s-tracks { grid-template-columns: repeat(5, 1fr) !important; gap: 14px; }   /* 10 tracks = two full rows */
    /* portraits: 4 small ones per row (2 people no longer fill the whole width) */
    .aw-s-grid-3:has(> .aw-s-person), .aw-s-grid-4:has(> .aw-s-person) { grid-template-columns: repeat(4, 1fr) !important; gap: 16px; }
}
@media (max-width: 575px) {
    .aw-s-tracks { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 767px) {
    .aw-s-stats__row { grid-template-columns: 1fr 1fr !important; }
    .aw-s-stat { padding: 22px 20px; border-right: 1px solid var(--s-line) !important; }
    .aw-s-stat:nth-child(2n) { border-right: 0 !important; }
    .aw-s-stat b { font-size: 36px; }
    .aw-s-stat span { font-size: 11px; letter-spacing: 1.5px; }
    /* an odd last number spans both columns so the strip stays even */
    .aw-s-stat:last-child:nth-child(odd) { grid-column: 1 / -1; border-right: 0 !important; }
}


/* 2. Mobile menu ------------------------------------------------------
   Was a 70% drawer with small text. Now a full-screen black panel with
   big numbered links (01 HOME …), like the desktop numbered menu. */
@media (max-width: 1199px) {
    .menu-toggle, .menu-toggle-close {
        width: 42px; height: 42px; display: inline-flex !important; align-items: center; justify-content: center;
        border: 1px solid rgba(255, 255, 255, .35); font-size: 18px !important; cursor: pointer;
    }
    .menu-toggle:hover, .menu-toggle-close:hover { background: var(--aw-red); border-color: var(--aw-red); }

    .mobile-nav-bar {
        position: fixed !important; inset: 0 !important; width: 100% !important; height: 100% !important;
        max-width: none !important; z-index: 2000 !important; overflow-y: auto;
        padding: 18px 22px 40px; border-left: 0 !important; opacity: 1 !important;
        background: #0a0a0a !important;
    }
    .mobile-nav-bar > div:first-child { margin: 0 0 18px !important; display: flex; justify-content: flex-end; }

    ul.mobile-main-menu { counter-reset: awm; padding: 0 !important; margin: 0; border-top: 1px solid #262626; }
    ul.mobile-main-menu > li { border-bottom: 1px solid #262626 !important; }
    ul.mobile-main-menu > li:not(.menu-social) > a {
        display: flex !important; align-items: baseline; gap: 14px;
        padding: 16px 0 !important; background: none !important;
        font-size: 26px !important; font-weight: 700; letter-spacing: 1px !important; color: #fff !important;
    }
    ul.mobile-main-menu > li:not(.menu-social) > a::before {
        counter-increment: awm; content: counter(awm, decimal-leading-zero);
        color: var(--aw-red); font-size: 12px; font-weight: 600; letter-spacing: 2px; min-width: 22px;
    }
    ul.mobile-main-menu > li > a:hover, ul.mobile-main-menu > li > a:active { color: var(--aw-red) !important; }
    ul.mobile-main-menu > li > a > span { flex: 1; }
    ul.mobile-submenu1 li a, ul.mobile-submenu2 li a { padding: 12px 0 12px 36px !important; font-size: 15px !important; color: #bdbdbd !important; }

    /* social icons: outline squares, same as footer + left rail */
    ul.mobile-main-menu li.menu-social { display: inline-block; margin: 26px 8px 0 0; border: 0 !important; }
    ul.mobile-main-menu li.menu-social a {
        width: 44px; height: 44px; padding: 0 !important; display: flex; align-items: center; justify-content: center;
        border: 1px solid #3a3a3a; font-size: 17px !important; color: #e6e6e6 !important;
    }
    ul.mobile-main-menu li.menu-social a:hover { background: var(--aw-red) !important; border-color: var(--aw-red); color: #fff !important; }

    /* CONTACT button at the bottom of the menu (added in header.blade.php) */
    .aw-mnav__contact {
        display: flex; justify-content: space-between; align-items: center; margin-top: 30px;
        padding: 18px 20px; background: var(--aw-red); color: #fff !important;
        font-size: 14px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; text-decoration: none !important;
    }
    body.aw-menu-open { overflow: hidden; }   /* page doesn't scroll behind the open menu */
}
@media (min-width: 1200px) { .aw-mnav__contact { display: none; } }


/* 3. Hero --------------------------------------------------------------- */
@media (max-width: 991px) {
    /* photo first (it is the strongest part of the hero), red panel under it */
    .aw-s-hero__media { order: -1; min-height: 0 !important; aspect-ratio: 16 / 10; }
    .aw-s-hero__panel { gap: 26px; padding: 44px 40px 48px; }
    .aw-s-hero__title { font-size: clamp(56px, 11vw, 96px); letter-spacing: -2px; }
    .aw-s-hero--page .aw-s-hero__title { font-size: clamp(44px, 9vw, 80px); }
    .aw-s-hero__foot { align-items: flex-start; }
}
@media (max-width: 767px) {
    .aw-s-hero__media { aspect-ratio: 4 / 3.4; }
    .aw-s-hero__panel { padding: 30px 22px 36px; gap: 22px; }
    .aw-s-hero__kicker { font-size: 12px; letter-spacing: 2.5px; }
    /* long words like BANGLADESHI must fit a 375px screen */
    .aw-s-hero__title { font-size: clamp(40px, 13vw, 64px); letter-spacing: -1px; line-height: .9; overflow-wrap: anywhere; }
    .aw-s-hero--page .aw-s-hero__title { font-size: clamp(36px, 11vw, 56px); }
    .aw-s-hero__text { font-size: 16px; }
    .aw-s-hero__foot .aw-s-btn { width: 100%; justify-content: center; }
    .aw-s-hero__tag { padding: 12px 16px; font-size: 11px; }
}


/* 4. Stats · seasons · films · tiles ------------------------------------ */
@media (max-width: 991px) {
    .aw-s-sec { padding-top: 88px; }
    .aw-s-grid-3 { grid-template-columns: repeat(2, 1fr); }
    .aw-s-grid-3:has(> .aw-s-ep) { grid-template-columns: repeat(3, 1fr); gap: 16px; }   /* 3 films stay in one row */
    .aw-s-tiles { grid-template-columns: repeat(3, 1fr); }
    .aw-s-tile { height: 300px; }
    .aw-s-tile__title { font-size: 26px; }
    .aw-s-season { height: 440px; }
}
@media (max-width: 767px) {
    /* phones: one column again (the ≤ 991px rule above made it two) */
    .aw-s-grid-3 { grid-template-columns: 1fr; }
    .aw-s-h2 { font-size: 34px; }
    .aw-s-lead { font-size: 16px; }

    /* season cards: the "coming" card only as tall as its text */
    .aw-s-season { height: auto; aspect-ratio: 4 / 4.4; }
    .aw-s-season--next { aspect-ratio: auto; padding: 28px 22px; }
    .aw-s-season__body { left: 22px; right: 22px; bottom: 24px; }

    /* films: swipe sideways (one and a bit cards visible) instead of a long list */
    section:has(> .aw-s-grid-3 > .aw-s-ep), section:has(> .aw-s-grid-4 > .aw-s-ep) { padding-right: 0; }
    .aw-s-grid-3:has(> .aw-s-ep), .aw-s-grid-4:has(> .aw-s-ep) {
        display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
        padding: 0 22px 10px 0; scrollbar-width: none;
    }
    .aw-s-grid-3:has(> .aw-s-ep)::-webkit-scrollbar, .aw-s-grid-4:has(> .aw-s-ep)::-webkit-scrollbar { display: none; }
    .aw-s-ep { flex: 0 0 82%; scroll-snap-align: start; }
    .aw-s-ep__title { font-size: 19px; }

    /* tiles (Music · Fashion · Events): shorter bands with a dark fade so the text reads */
    .aw-s-tiles { grid-template-columns: 1fr; }
    .aw-s-tile { height: 230px; }
    .aw-s-tile::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, rgba(0, 0, 0, .75)); }
    .aw-s-tile__body { z-index: 1; left: 22px; bottom: 20px; }
    .aw-s-tile__title { font-size: 30px; }
}


/* 5. Roadmap: vertical time line on phones + tablets -------------------- */
@media (max-width: 991px) {
    .aw-s-road {
        grid-template-columns: 1fr !important; row-gap: 0;
        border-top: 0; border-left: 2px solid var(--s-ink); margin-left: 6px;
    }
    .aw-s-road__step { padding: 0 0 28px 26px; }
    .aw-s-road__step:last-child { padding-bottom: 0; }
    .aw-s-road__step::before { left: -8px; top: 5px; width: 14px; height: 14px; }
    .aw-s-road__step.is-now .aw-s-road__when { color: var(--s-red); }
    .aw-s-road__when { font-size: 18px; }
    .aw-s-road__what { max-width: 520px; }
}


/* 6. Band, CTA, tour rows, tiers, people -------------------------------- */
@media (max-width: 767px) {
    .aw-s-band { gap: 24px; }
    .aw-s-band__title { font-size: 34px; }
    .aw-s-band .aw-s-btn, .aw-s-cta .aw-s-btn { width: 100%; justify-content: center; text-align: center; }
    .aw-s-cta { gap: 20px; }
    .aw-s-cta__title { font-size: 28px; }
    .aw-s-btn { padding: 15px 20px; font-size: 13px; letter-spacing: 1.5px; }

    .aw-s-row { gap: 6px; padding: 20px 0; }
    .aw-s-row__date, .aw-s-row__city { font-size: 20px; }
    .aw-s-row .aw-s-btn { width: 100%; margin-top: 8px; }

    .aw-s-tiers { margin: 0 -22px; padding: 40px 22px; }   /* red panel runs edge to edge, so the black boxes get more room */
    .aw-s-tier { padding: 24px 22px; }

    /* people / makers: two portraits per row instead of one huge one */
    .aw-s-grid-3:has(> .aw-s-person), .aw-s-grid-4:has(> .aw-s-person) { grid-template-columns: 1fr 1fr !important; gap: 16px; }   /* people.blade.php sets auto-fit inline */
    .aw-s-person__name { font-size: 16px; }
    .aw-s-person__role { font-size: 13px; }

    .aw-s-split { gap: 24px; }
    .aw-s-table th, .aw-s-table td { display: block; width: 100%; padding: 6px 0; border: 0; }
    .aw-s-table tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--s-line); }
}


/* 7. Story pages, newsletter, footer, back-to-top ----------------------- */
@media (max-width: 767px) {
    .aw-news { padding: 44px 22px; }
    /* email field was squashed to 24px when the row stacks (flex: 1 in a column) */
    .aw-news__row .aw-news__input { flex: 0 0 auto; height: 54px; }
    .footer { text-align: center; align-items: center !important; }
    .aw-footer__brand { margin: 0 auto; }
    .aw-footer__copy { justify-content: center; }
    .aw-footer__social { justify-content: center; flex-wrap: wrap; }
    .aw-footer__social-label { flex: 0 0 100%; justify-content: center; text-align: center; margin-bottom: 4px; }
    .footer { padding-bottom: 72px !important; }   /* room for the back-to-top button */
    /* back-to-top: small round button instead of the tall side tab */
    .aw-top { width: 44px !important; height: 44px !important; right: 14px !important; bottom: 14px !important; }
    .aw-top__pct, .aw-top__track { display: none !important; }
}
@media (max-width: 400px) {
    /* very small phones: hide the theme button in the top bar (it is still in the menu footer) */
    .header .aw-lang a { padding: 6px 9px; }
}


/* 8. Story pages (/page/…) ----------------------------------------------
   Galleries were one photo per row on phones (very long pages) and the
   figures (150M+ …) were one per row. Two per row reads much better. */
@media (max-width: 600px) {
    .gallery { column-count: 2 !important; column-gap: 10px; }
    .gallery-item { margin-bottom: 10px; }
    .page-gallery-item { width: 50% !important; }
}
@media (max-width: 767px) {
    .aw-stats { grid-template-columns: 1fr 1fr; column-gap: 18px; }
    .aw-stat { padding: 16px 0 18px; }
    .aw-stat b { font-size: 30px; }
    .aw-stat span { font-size: 11px; letter-spacing: 1px; }
}


/* 9. Contact page --------------------------------------------------------
   The page had min-height: 100vh and a 450px map box → a lot of empty
   screen on phones. Social links get the outline-square style. */
@media (max-width: 767px) {
    .aw-contact { min-height: 0 !important; padding-bottom: 48px; }
    .aw-contact__map iframe, .aw-contact__map > div { height: 260px !important; }
    .aw-contact ul a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border: 1px solid var(--aw-grey, #d9d9d9); color: inherit !important; font-size: 14px; }
}
