/* Panorama — responsive breakpoints. Desktop-first overrides; the base
   rules in site.css are already fluid (clamp()) so this file mostly
   handles layout collapses (grids -> single column) and the mobile nav
   drawer. No horizontal scroll anywhere — full-bleed hero images are
   background-size:cover on a 100%-width block, never wider than the
   viewport. */

@media (max-width: 1180px) {
  .svcCards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .aboutGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .geoMetaGrid, .geoTeamGrid, .geoFactGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 991px) {
  .header__menuToggle { display: flex; }

  .nav.header__nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(340px, 86vw);
    background: var(--paper);
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 96px 22px 24px;
    margin-left: 0;
    box-shadow: -20px 0 50px rgba(18, 14, 10, 0.25);
    transform: translateX(100%);
    transition: transform 0.28s ease;
    overflow-y: auto;
    z-index: 260;
  }
  .nav.header__nav.is-open { transform: translateX(0); }
  .nav__link { width: 100%; }
  .nav__dropdown { width: 100%; }
  .nav__menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: var(--paper-2);
    margin-top: 4px;
    display: none;
  }
  .nav__dropdown:hover .nav__menu,
  .nav__dropdown:focus-within .nav__menu { display: block; }
  .nav__dropdown.is-open .nav__menu { display: block; }

  body.nav-drawer-open::after {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 250;
  }

  .header__queries { display: none; }

  .hero__layout { grid-template-columns: 1fr; }
  .hero__col--form { justify-self: stretch; }
  .hero { align-items: flex-start; padding-bottom: 40px; }
  /* Below 991px the hero copy column goes full-width (see .hero__layout
     override just above) while the base clamp() in site.css keeps scaling
     font-size with vw — but the column's own max-width (94% / 720px) stops
     growing well before that clamp tops out, so a long single-line hero
     title (e.g. "Best <Service Name>") can end up within a couple of
     pixels of the column's right edge around 640-990px wide viewports.
     A gentler, earlier-capping clamp here keeps a real safety margin. */
  .heroTitleMain__primary { font-size: clamp(36px, 4.4vw, 46px); }

  .journeyRoute::before { left: 18px; }
  .journeyStop { grid-template-columns: 36px 1fr; }
  .journeyStop__marker { grid-column: 1; }
  .journeyStop__card,
  .journeyStop--right .journeyStop__card {
    grid-column: 2;
    justify-self: stretch;
    text-align: left;
    max-width: none;
  }
  .journeyStop--right .journeyStop__link { flex-direction: row; }
}

@media (max-width: 860px) {
  .metricsStrip__inner { grid-template-columns: 1fr; }
  .metricsStrip { margin-top: -40px; }
  .serviceIntroRich__points { grid-template-columns: 1fr; }
  .geoQuoteGrid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  :root { --section-pad: clamp(48px, 12vw, 72px); }
  .hero { min-height: 74vh; }
  .hero--band { min-height: 52vh; }
  .hero--compact { min-height: 34vh; }
  .svcCards { grid-template-columns: 1fr; }
  .aboutGrid { grid-template-columns: 1fr; }
  .aboutValues__list { grid-template-columns: 1fr; }
  .geoMetaGrid, .geoTeamGrid, .geoFactGrid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 640px) {
  .container { padding-left: 18px; padding-right: 18px; }
  .heroTitleMain__primary { font-size: clamp(30px, 9vw, 42px); }
  .aboutCTA__box, .journeyTeaser { padding: 26px 22px; }
  .chapterBand { min-height: 200px; }
  .fabCall { right: 14px; bottom: 14px; }
  .scrollNav { left: 14px; bottom: 14px; }
  .fab-call { width: 50px; height: 50px; }
  .fabCall__popup { display: none; }
}

/* Guard rail: nothing on the page should ever be able to force horizontal
   scroll on narrow viewports. */
html, body { max-width: 100%; overflow-x: hidden; }
.hero, .chapterBand, .journeyRoute, .metricsStrip__inner { max-width: 100%; }
