/*
  Mobile-first breakpoints, tested at 360, 768, 1024, and 1440px.
  Base (unprefixed) styles in the other stylesheets target 360px mobile.
*/

/* ---------- Small mobile up: 480px ----------
   Restores the header wordmark and full-size CTA once there is
   comfortably enough width; below this the header stays compact so
   the logo, menu button, and CTA never overflow a 360px viewport. */
@media (min-width: 480px) {
  .site-header__inner {
    gap: var(--space-sm);
  }

  .site-header__logo-word {
    display: inline;
  }

  .site-header__cta {
    padding-inline: var(--space-sm);
    font-size: var(--text-sm);
  }
}

/* ---------- Tablet: 768px ---------- */
@media (min-width: 768px) {
  .trust__logos {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .portfolio__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .why__grid,
  .audience__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .experiences__grid--featured {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .experiences__grid--more {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .brand-experience__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer__grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
  }
}

/* ---------- Laptop: 1024px ---------- */
@media (min-width: 1024px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  }

  .experiences__grid--more {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .why__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .audience__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .brand-experience__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .inquiry__grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: start;
  }

  /* ---- Header switches from the mobile drawer to an inline menu ---- */
  .mobile-nav {
    display: none;
  }

  .site-header__nav-desktop {
    display: block;
  }

  .site-header__nav-desktop ul {
    display: flex;
    list-style: none;
    align-items: center;
    gap: var(--space-md);
  }

  .site-header__nav-desktop a {
    display: block;
    padding-block: var(--space-2xs);
    border-bottom: 2px solid transparent;
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 600;
    text-decoration: none;
  }

  .site-header__nav-desktop a:hover {
    border-bottom-color: var(--color-accent-strong);
  }
}

/* ---------- Desktop: 1440px ---------- */
@media (min-width: 1440px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
    gap: var(--space-2xl);
  }

  .portfolio__grid {
    gap: var(--space-md);
  }
}
