/* ============================================================
   AURORA ARCHITECTURE — Responsive overrides
   Breakpoints: 1024px (tablet-lg) · 820px (tablet) · 560px (mobile)
   ============================================================ */

/* ---------- Large tablet / small desktop ---------- */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .feature-card.span-4, .feature-card.span-3, .feature-card.span-2 { grid-column: span 3; }
}

/* ---------- Tablet ---------- */
@media (max-width: 820px) {
  body { font-size: 16px; }

  /* Nav → mobile drawer */
  .hamburger { display: flex; }
  .nav {
    position: fixed;
    top: 0; right: 0;
    width: min(80vw, 340px);
    height: 100svh;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    padding: 3rem 2.4rem;
    background: var(--charcoal);
    transform: translateX(100%);
    transition: transform 0.5s var(--ease);
    z-index: 110;
    box-shadow: -30px 0 60px -30px rgba(0,0,0,0.6);
  }
  .nav.open { transform: translateX(0); }
  .nav-list { flex-direction: column; align-items: flex-start; gap: 0; width: 100%; }
  .nav-list li { width: 100%; border-bottom: 1px solid rgba(248,248,245,0.1); }
  .nav-link { display: block; padding: 1.1rem 0; color: var(--warm-white); font-size: 1rem; letter-spacing: 0.08em; }
  .nav-link::after { display: none; }
  .nav-link.active { color: var(--gold); }
  .site-header.on-dark:not(.scrolled) .nav-link { color: var(--warm-white); }
  .nav-cta { margin-top: 1.8rem; }
  body.nav-locked { overflow: hidden; }
  .nav-backdrop {
    position: fixed; inset: 0; z-index: 105;
    background: rgba(31,31,31,0.5);
    backdrop-filter: blur(2px);
    opacity: 0; visibility: hidden; transition: opacity 0.4s var(--ease);
  }
  .nav-backdrop.show { opacity: 1; visibility: visible; }
.nav-backdrop.show { opacity: 1; visibility: visible; }
  /* Lift header (and its drawer child) above the backdrop when the menu is open,
     otherwise the header's own stacking context (z-index:100) traps the drawer
     below the body-level backdrop (z-index:105) — blurring it and stealing taps. */
  body.nav-locked .site-header { z-index: 120; }
  /* Splits stack */
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split.reverse .split-media { order: 0; }
  .stat-badge { right: 16px; bottom: -22px; padding: 1.2rem 1.5rem; }

  .principles { grid-template-columns: 1fr !important; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 24px; }
  .contact-layout { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card.span-4, .feature-card.span-3, .feature-card.span-2 { grid-column: span 1; }
  .feature-card, .feature-card.tall { min-height: 300px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .hero-scroll { display: none; }
}

/* ---------- Mobile ---------- */
@media (max-width: 560px) {
  :root { --gutter: 22px; }
  .services-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
  .brand-tag { display: none; }
  .stat-badge { position: static; margin-top: 20px; display: inline-block; }
  .nav { width: 84vw; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .to-top, .hero-scroll, .nav-backdrop { display: none !important; }
  body { color: #000; }
}
