/* Responsive hardening: narrow phones, tablets, landscape, touch and keyboards. */
html { scrollbar-gutter: stable; }
.fresh-site { overflow-x: clip; }
.section-shell > *, .services-layout > *, .service-panel > *, .fields-grid > * { min-width: 0; }
.quote-form input, .quote-form select, .quote-form textarea { scroll-margin: 115px 0 130px; }
.quote-result { overflow-wrap: anywhere; }

@media (max-width: 1024px) {
  .fresh-nav { height: 72px; padding-inline: max(20px, env(safe-area-inset-left)) max(20px, env(safe-area-inset-right)); }
  .mobile-menu-toggle { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; flex-shrink: 0; }
  .main-nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--fresh-paper); padding: 18px 24px; border-bottom: 1px solid var(--fresh-line); flex-direction: column; align-items: stretch; gap: 8px; max-height: calc(100svh - 145px); overflow-y: auto; overscroll-behavior: contain; }
  .main-nav.is-open { display: flex; }
  .main-nav > a { min-height: 48px; display: flex; align-items: center; }
  .main-nav .nav-quote { justify-content: space-between; }
  .nav-phone span { display: inline; }
  .footer-top { grid-template-columns: minmax(100px, 160px) minmax(0, 1fr); }
  .footer-contact { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; }
  .footer-contact > p { margin-top: 0; }
  .extras-options label, .consent { min-height: 44px; }
  .footer-bottom a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 8px; }
}

@media (max-width: 860px) {
  html { scroll-padding-top: 88px; }
  .brand-link { min-width: 0; }
  .brand-link > span { font-size: clamp(15px, 4.6vw, 18px); }
  .brand-link img { flex: 0 0 44px; }
  .section-shell { padding-left: max(24px, env(safe-area-inset-left)); padding-right: max(24px, env(safe-area-inset-right)); }
  .home-journey .scroll-scrub__stage {
    top: 72px;
    z-index: 3;
    height: min(calc(38svh + 22px), 372px);
  }
  .home-journey .scroll-scrub__story { margin-top: 0; }
  .home-journey .scroll-scrub__media {
    inset: 14px max(15px, env(safe-area-inset-right)) auto max(15px, env(safe-area-inset-left));
    width: auto;
    height: 38svh;
    max-height: 350px;
  }
  .home-journey .scroll-scrub__poster,
  .home-journey .scroll-scrub__video { object-fit: cover; object-position: center; }
  .home-journey .scroll-scrub__chapter-pin {
    padding: 20px max(20px, env(safe-area-inset-right)) 30px max(20px, env(safe-area-inset-left));
  }
  .home-journey .scroll-scrub__copy {
    isolation: isolate;
    width: 100%;
    margin-left: 0;
    padding-left: 5px;
    padding-right: 5px;
  }
  .home-journey .scroll-scrub__chapter { min-height: 0; }
  .home-journey .journey-note { padding-top: clamp(24px, 4svh, 40px); min-height: 0; }
  .home-journey .journey-note p { margin-top: 14px; }
  .home-journey .journey-note img { margin-top: 18px; }
  .home-journey .journey-last { padding-top: clamp(30px, 5svh, 50px); padding-bottom: clamp(22px, 4svh, 38px); min-height: 0; }
  .home-journey .journey-next { margin-top: 18px; }
  .service-selector { scroll-padding-inline: 4px; }
  .service-selector button { min-height: 52px; }
  .hero-services, .service-quote, .owner-call, .journey-next { min-height: 44px; display: inline-flex; align-items: center; }
  .fields-grid { grid-template-columns: minmax(0, 1fr); }
  .form-field.wide { grid-column: auto; }
  .form-field input, .form-field select, .form-field textarea { font-size: 16px; min-height: 48px; }
  .form-stages { gap: 10px; }
  .form-stages > span { gap: 7px; font-size: 12px; }
  .form-stages b { width: 26px; height: 26px; flex-shrink: 0; }
  .form-stages i { min-width: 8px; }
  .extras-options { gap: 4px 16px; }
  .extras-options label { min-height: 44px; padding: 6px 0; }
  .extras-options input, .consent input { width: 20px; height: 20px; }
  .consent { min-height: 44px; }
  .form-back, .form-submit { min-height: 48px; }
  .faq-item summary { min-height: 56px; }
  .footer-contact { flex-wrap: wrap; }
  .footer-bottom a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 8px; }
  .site-footer { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
  .mobile-contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 8px; padding-left: max(12px, env(safe-area-inset-left)); padding-right: max(12px, env(safe-area-inset-right)); }
  .mobile-contact a, .mobile-contact a:last-child { min-height: 46px; padding: 10px 8px; font-size: 12px; white-space: nowrap; gap: 8px; }
  .mobile-contact svg { flex-shrink: 0; }
  body:has(.quote-form input:focus, .quote-form textarea:focus, .quote-form select:focus) .mobile-contact { visibility: hidden; pointer-events: none; }
  .welcome-logo { width: min(220px, 55vw, 43svh); }
  .welcome-lockup { gap: 18px; }
  .welcome-reveal { padding: max(20px, env(safe-area-inset-top)) 20px 84px; }
  .welcome-reveal button { min-height: 48px; bottom: max(18px, env(safe-area-inset-bottom)); }
}

@media (max-width: 380px) {
  .section-shell { padding-inline: 18px; }
  .fresh-nav { padding-inline: 14px; gap: 12px; }
  .brand-link { gap: 6px; }
  .brand-link small { font-size: 10px; letter-spacing: 2px; }
  .home-journey .scroll-scrub__title { font-size: 42px; }
  .home-journey .scroll-scrub__kicker { letter-spacing: .02em; }
  .checklist, .review-stack { grid-template-columns: minmax(0, 1fr); }
  .review-stack blockquote:first-child { grid-column: auto; }
  .quote-form { padding: 24px 16px; }
  .form-stages { gap: 6px; }
  .form-stages > span { font-size: 11px; gap: 5px; }
  .form-stages b { width: 23px; height: 23px; }
  .form-stages i { min-width: 5px; }
  .footer-top { grid-template-columns: 85px minmax(0, 1fr); gap: 15px; }
  .footer-top h3 { font-size: 23px; }
  .footer-contact { gap: 16px; }
}

@media (max-width: 340px) {
  .home-journey .scroll-scrub__title { font-size: 39px; }
  .home-journey .scroll-scrub__body { margin-top: 10px; font-size: 15px; line-height: 1.4; }
  .home-journey .scroll-scrub__actions { margin-top: 8px; }
  .hero-actions { flex-wrap: nowrap; gap: 10px; }
  .hero-quote { min-height: 44px; gap: 8px; padding: 10px 12px; font-size: 12px; }
  .hero-services { flex-shrink: 0; font-size: 11px; white-space: nowrap; }
}

@media (max-height: 500px) and (orientation: landscape) and (max-width: 1024px) {
  .welcome-logo { width: min(155px, 36svh); }
  .welcome-lockup { gap: 8px; }
  .welcome-lockup p { font-size: 12px; }
  .welcome-reveal { padding-bottom: 52px; }
  .welcome-reveal button { bottom: 4px; }
  .mobile-contact { display: none; }
}

@media (min-width: 861px) and (max-width: 1024px) and (max-height: 500px) and (orientation: landscape) {
  .home-journey .scroll-scrub__media { height: 34svh; }
  .home-journey .scroll-scrub__chapter-pin { padding-top: 40svh; }
}

@media (prefers-reduced-motion: reduce) {
  .home-journey .journey-note { min-height: 0; padding-top: clamp(24px, 4svh, 40px); }
  .home-journey .journey-last { min-height: 0; padding-top: clamp(30px, 5svh, 50px); }
}
