/* ==========================================================================
   WALLNUT 360 — RESPONSIVE OVERRIDES
   Mobile-first project; these are the exceptions for larger structures
   that were written desktop-first above (hero, about, contact grids etc.)
   and the mobile navigation behaviour.
   ========================================================================== */

/* ---------- Large desktop refinement ---------- */
@media (min-width: 1400px) {
  :root { --container-max: 1320px; }
}

/* ---------- Tablet (≤ 1024px) ---------- */
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { order: -1; max-width: 480px; margin-inline: auto; }
  .hero__proof { gap: var(--space-6); }

  .about-grid { grid-template-columns: 1fr; }
  .about-visual { max-width: 480px; margin-inline: auto; }

  .why-grid { grid-template-columns: 1fr; }

  .contact-grid { grid-template-columns: 1fr; }

  .split-hero { grid-template-columns: 1fr; }

  /* Keep multi-word nav labels on one line when space is tight */
  .nav-list { gap: 0.75rem; font-size: 0.84rem; }
  .nav-cta .btn-sm { padding-inline: 0.9rem; }
  .brand__tag { font-size: 0.52rem; letter-spacing: 0.06em; }
}

/* ---------- Mobile nav (≤ 880px) ---------- */
@media (max-width: 880px) {
  .nav-toggle { display: flex; }

  .nav-list {
    position: fixed;
    top: var(--header-h, 72px);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--color-white);
    border-top: 1px solid var(--color-ink-200);
    box-shadow: var(--shadow-md);
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--dur-slow) var(--ease-in-out);
    z-index: var(--z-overlay);
  }
  .nav-list.is-open { max-height: 80vh; overflow-y: auto; }
  .nav-list a { padding: 1.1rem var(--container-pad); border-bottom: 1px solid var(--color-ink-100); }
  .nav-list a::after { display: none; }

  .nav-cta .btn-outline { display: none; }
}

/* ---------- Small tablet / large phone (≤ 760px) ---------- */
@media (max-width: 760px) {
  h1 { font-size: var(--fs-3xl); }
  h2 { font-size: var(--fs-xl); }

  .cta-band { padding: var(--space-6); }
  .cta-band__inner { flex-direction: column; align-items: flex-start; }

  .process-grid { grid-template-columns: 1fr 1fr; }

  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ---------- Phone (≤ 560px) ---------- */
@media (max-width: 560px) {
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }

  .hero__badge { display: none; }

  .stats-grid { gap: var(--space-5); }
  .stat strong { font-size: var(--fs-2xl); }

  .process-grid { grid-template-columns: 1fr; }

  .form-panel, .contact-info-card, .why-panel { padding: var(--space-5); }

  .float-actions { right: var(--space-4); bottom: var(--space-4); }
  .float-btn { width: 46px; height: 46px; }
  .float-btn svg { width: 20px; height: 20px; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .float-actions, .cta-band, video { display: none !important; }
  body { background: #fff; color: #000; }
}
