/* ==========================================================================
   Responsive — 1200 / 1024 / 860 / 768 / 560
   ========================================================================== */

@media (max-width: 1200px) {
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer__grid > *:nth-child(4) { grid-column: 1 / -1; }
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
  :root { --header-h: 74px; }

  .hero__inner { grid-template-columns: 1fr; gap: var(--s-5); }
  .hero__cards { justify-items: start; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
  .float-card:nth-child(2),
  .float-card:nth-child(3) { margin: 0; }

  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .calc,
  .split,
  .split--flip,
  .reviews,
  .inquiry,
  .proof { grid-template-columns: 1fr; gap: var(--s-4); }

  .reviews__summary { position: static; }

  .process__step,
  .process__step:nth-child(even) { grid-template-columns: 1fr; gap: var(--s-3); }
  .process__step:nth-child(even) .process__body,
  .process__step:nth-child(even) .process__visual { order: initial; }
  .process__visual { max-width: 460px; }

  .split__media { max-height: 420px; }
  .trust__grid { grid-template-columns: repeat(2, 1fr); gap: var(--s-4) var(--s-3); }
  .trust__item:nth-child(odd)::before { display: none; }
}

/* ---- Tablet / mobile: swap desktop nav for drawer ------------------------- */

@media (max-width: 860px) {
  .topbar { display: none; }

  .nav { display: none; }
  .burger { display: grid; }
  .header__actions .btn--primary { display: none; }

  .header--over { color: var(--text-on-dark); }

  .stickybar { display: flex; }

  /* keep the sticky bar from covering page content */
  body.has-stickybar { padding-bottom: 58px; }

  .hero { min-height: auto; padding-block: calc(var(--header-h) + 3rem) var(--s-6); }
  .hero__media img { animation: none; transform: scale(1.06); }

  .footer__grid { grid-template-columns: 1fr 1fr; gap: var(--s-4); }
  .footer__grid > *:first-child { grid-column: 1 / -1; }
  .footer__grid > *:nth-child(4) { grid-column: 1 / -1; }

  .reviews-grid { grid-template-columns: 1fr; }
  .modal__dialog { max-height: calc(100svh - 2rem); }
}

@media (max-width: 640px) {
  :root { --section-y: clamp(3.5rem, 12vw, 5rem); }

  .services-grid { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .trust__grid { grid-template-columns: 1fr 1fr; }
  .calc__readout { grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; }
  .ctaband__actions .btn { width: 100%; }
  .section-head { margin-bottom: var(--s-4); }
  .watermark { font-size: 9rem; }
  .footer__news { flex-direction: column; }
  .footer__bottom { justify-content: flex-start; }
}

@media (max-width: 400px) {
  .footer__grid { grid-template-columns: 1fr; }
  .stickybar__btn { font-size: var(--fs-caption); }
  .hero__proof { gap: 0.5rem 1rem; }
}

/* ---- Pointer capability -------------------------------------------------- */

@media (hover: none), (pointer: coarse) {
  .tilt { transform: none !important; }
  .tilt__sheen { display: none; }
  .magnetic { transform: none !important; }
}

/* ---- Print ---------------------------------------------------------------- */

@media print {
  .topbar, .header, .stickybar, .modal, .progress, .hero__cue { display: none !important; }
  body { color: #000; background: #fff; }
  .section--dark, .hero, .ctaband, .footer { background: #fff !important; color: #000 !important; }
}
