/**
 * responsive.css
 * ─────────────────────────────────────────────────────
 * ALL media queries live here.
 * Breakpoints:
 *   Tablet  → max-width: 1024px
 *   Mobile  → max-width: 640px
 *   Small   → max-width: 380px
 */

/* ══════════════════════════════════════════════════════
   TABLET  (≤ 1024px)
══════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  /* Tokens: scale down sizes */
  :root {
    --fs-hero: 38px;
    --fs-2xl: 28px;
    --fs-xl: 22px;
    --fs-3xl: 38px;
    --sp-2xl: 72px;
    --sp-xl: 48px;
  }

  /* ── Navbar ── */
  .nav__links {
    display: none;
  }
  .nav__cta {
    display: none;
  }
  .nav__hamburger {
    display: flex;
  }
  .nav__mobile-cta {
    display: block;
    margin: 0;
  }

  /* Mobile nav drawer */
  .nav__links.nav-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--clr-bg);
    border-top: 1px solid var(--clr-border);
    border-bottom: 1px solid var(--clr-border);
    padding: 16px 24px 24px;
    gap: 4px;
    box-shadow: var(--shadow-md);
    z-index: var(--z-sticky);
    animation: fadeDown 0.25s var(--ease) both;
  }
  .nav__links.nav-open li a {
    display: block;
    font-size: var(--fs-base);
    padding: 10px 12px;
    border-radius: var(--radius-sm);
  }

  /* ── Footer ── */
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-lg);
  }
  .footer__brand {
    grid-column: 1 / -1;
  }
  .footer__bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
  .footer__bottom div {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
  }
  .footer__bottom a {
    margin-left: 0;
  }

  /* ── Newsletter ── */
  .newsletter-strip__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sp-md);
  }
  .newsletter-strip__form {
    width: 100%;
  }

  /* ── Forms ── */
  .form-grid-3 {
    grid-template-columns: 1fr 1fr;
  }
}

/* ══════════════════════════════════════════════════════
   MOBILE  (≤ 640px)
══════════════════════════════════════════════════════ */
@media (max-width: 640px) {
  /* Tokens */
  :root {
    --fs-hero: 30px;
    --fs-2xl: 24px;
    --fs-xl: 20px;
    --fs-lg: 18px;
    --fs-md: 16px;
    --sp-2xl: 56px;
    --sp-xl: 36px;
    --sp-lg: 28px;
  }

  .container {
    padding: 0 16px;
  }

  /* ── Page Hero ── */
  .page-hero {
    padding: 120px 0 56px;
  }
  .page-hero__arc--1,
  .page-hero__arc--2 {
    display: none;
  }

  /* ── Section header ── */
  .section-header__intro {
    max-width: 100%;
  }

  /* ── Newsletter ── */
  .newsletter-strip__form {
    flex-direction: column;
  }
  .newsletter-strip__form input,
  .newsletter-strip__form button {
    width: 100%;
  }

  /* ── Footer ── */
  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--sp-md);
  }
  .footer__brand {
    grid-column: auto;
  }

  /* ── Buttons ── */
  .btn-block-mobile {
    width: 100%;
    text-align: center;
  }

  /* ── Forms ── */
  .form-grid-2 {
    grid-template-columns: 1fr;
  }
  .form-grid-3 {
    grid-template-columns: 1fr;
  }

  /* ── CTA Section ── */
  .cta-section__actions {
    flex-direction: column;
  }
  .cta-section__actions a {
    width: 100%;
    text-align: center;
  }

  /* ── Story cards grid override ── */
  .stories-grid-3 {
    grid-template-columns: 1fr;
  }

  /* ── Pagination ── */
  .pagination__btn {
    width: 36px;
    height: 36px;
    font-size: var(--fs-xs);
  }
}

/* ══════════════════════════════════════════════════════
   SMALL PHONES  (≤ 380px)
══════════════════════════════════════════════════════ */
@media (max-width: 380px) {
  :root {
    --fs-hero: 26px;
  }

  .btn {
    padding: 11px 20px;
  }

  .newsletter-strip__form {
    flex-direction: column;
  }
}
