/* ==========================================================================
   RESPONSIVE  — tested at 360 / 390 / 768 / 1024 / 1440 / 1920
   Mobile styles cascade last so they always win.
   ========================================================================== */

/* ---------- <= 1200px ---------------------------------------------------- */
@media (max-width: 1200px) {
  .nav { gap: 2px; }
  .nav__link { font-size: var(--fs-xs); padding: 10px 5px; }
  .masonry { columns: 3; }
  .ig-strip { grid-template-columns: repeat(4, 1fr); }
  .footer__grid { grid-template-columns: 1.4fr 1fr 1.2fr; }
  .footer__grid > :nth-child(4) { grid-column: 1 / -1; }
}

/* ---------- <= 1024px (tablet) ------------------------------------------ */
@media (max-width: 1024px) {
  :root { --header-h: 68px; }

  /* Nav collapses to the full-screen menu */
  .nav,
  .header__actions .btn { display: none; }
  .burger { display: grid; }

  .hero__grid { grid-template-columns: 1fr; gap: var(--sp-6); }
  .hero__stack { aspect-ratio: 4 / 3; max-width: 620px; margin-inline: auto; }
  .hero__lede { max-width: 58ch; }

  .split-7-5,
  .split-5-7,
  .grid-4,
  .contact-grid { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }

  .craft__sticky { position: static; }
  .craft__media { max-width: 560px; }

  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid > * { grid-column: span 1 !important; }
  .services-grid .card__media { aspect-ratio: 4 / 3 !important; }

  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-list { grid-template-columns: repeat(2, 1fr); }
  .spec-grid { grid-template-columns: repeat(2, 1fr); }
  .masonry, .masonry-3 { columns: 2; }

  .rail-4 { grid-auto-columns: minmax(0, calc((100% - var(--sp-3)) / 2)); }
  .rail-3 { grid-auto-columns: minmax(0, calc((100% - var(--sp-3)) / 2)); }

  .reviews__summary { padding: var(--sp-3); }
  .contact-aside { order: -1; }
}

/* ---------- <= 768px (mobile) ------------------------------------------- */
@media (max-width: 768px) {
  :root {
    --section-y: clamp(56px, 12vw, 88px);
    --gutter: 20px;
  }

  /* Sticky call / WhatsApp bar appears and reserves space */
  .mobile-bar { display: flex; }
  body { padding-bottom: 76px; }

  /* Top bar keeps only phone + socials */
  .topbar__inner { justify-content: space-between; }
  .topbar__item--hide-sm { display: none; }
  .topbar__info { gap: 14px; }
  .social__link { width: 32px; height: 32px; }

  .grid-2, .grid-3, .grid-4,
  .team-grid, .trust-list, .spec-grid,
  .services-grid { grid-template-columns: 1fr; }

  .masonry, .masonry-3 { columns: 2; column-gap: 12px; }
  .masonry > * { margin-bottom: 12px; }

  .form-row { grid-template-columns: 1fr; }

  .hero { padding-block: var(--sp-5) var(--sp-6); }
  .hero__stack { aspect-ratio: 1 / 1; }
  .hero__plate--main { inset: 4% 10% 12% 10%; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__trust { gap: var(--sp-3) var(--sp-4); }
  .hero__cue { display: none; }

  .footer__grid { grid-template-columns: 1fr; gap: var(--sp-5); }
  .footer__grid > :nth-child(4) { grid-column: auto; }
  .footer__bottom { flex-direction: column; text-align: center; gap: 10px; }

  .event { grid-template-columns: 84px 1fr; }
  .event__date { padding: 10px 6px; }
  .event__day { font-size: 1.6rem; }
  .event > .btn { grid-column: 1 / -1; justify-self: start; }

  .ig-strip { grid-template-columns: repeat(3, 1fr); }

  .rail-4, .rail-3, .rail { grid-auto-columns: minmax(240px, 82%); }

  .reviews__summary { flex-direction: column; text-align: center; gap: var(--sp-2); }
  .reviews__meta { align-items: center; }

  .lightbox__prev { left: 10px; }
  .lightbox__next { right: 10px; }
  .lightbox__btn { width: 46px; height: 46px; }

  .cta-band .btn-row .btn,
  .util .btn-row .btn { flex: 1 1 100%; }

  .modal__panel { padding: 40px 22px 30px; }

  /* Larger tap targets everywhere on touch */
  .filter { padding: 12px 18px; }
}

/* ---------- <= 420px ----------------------------------------------------- */
@media (max-width: 420px) {
  .brand img { height: 38px; }
  .header.is-stuck .brand img { height: 33px; }
  .masonry, .masonry-3 { columns: 1; }
  .topbar { font-size: 11px; }
  .topbar__item span { display: none; }
  .topbar__item--phone span { display: inline; }
  /* Allow long CTA labels (e.g. an email address) to wrap rather than overflow */
  .btn { --btn-px: 22px; font-size: var(--fs-xs); white-space: normal; text-align: center; }
  .btn-lg { --btn-px: 26px; font-size: var(--fs-sm); }
  .contact-item { gap: 12px; }
  .contact-item__value { font-size: var(--fs-xs); }
  .mobile-bar a { font-size: var(--fs-xs); }
}

/* ---------- Touch devices: no hover-dependent effects -------------------- */
@media (hover: none) {
  .cursor { display: none !important; }
  .frame:hover .frame__inner img,
  .card:hover .card__media img,
  .ig-strip a:hover img { transform: none; }
  .frame::after { display: none; }
  .btn:hover { transform: none; }
  [data-tilt] { transform: none !important; }
}

/* ---------- Large screens ----------------------------------------------- */
@media (min-width: 1600px) {
  :root { --container: 1440px; }
  .masonry { columns: 4; }
}

/* ---------- Print --------------------------------------------------------- */
@media print {
  .topbar, .header, .mobile-bar, .modal, .preloader,
  .cursor, .curtain, .float, .video, .ig-strip { display: none !important; }
  body { background: #fff; color: #000; padding: 0; }
  body::before { display: none; }
  .on-ink { background: #fff !important; color: #000 !important; }
  .on-ink h1, .on-ink h2, .on-ink h3 { color: #000 !important; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 10px; }
  .section { padding-block: 20px; }
}
