/* Narrow phones: keep type comfortably inside the side gutters */
@media(max-width:480px){h1{font-size:2.15rem}.eyebrow{font-size:.72rem;letter-spacing:.11em}.hero{padding-top:20px}}

/* ---------- Responsive hardening: every device, portrait & landscape ---------- */
/* Footer links get a comfortable touch target */
footer li a{display:inline-flex;align-items:center;min-height:36px;padding:3px 0}

/* Small tablets / large phones in portrait: trust band reads better in pairs */
@media(min-width:520px) and (max-width:759px){.trustbar{grid-template-columns:1fr 1fr}}

/* Narrow phones (≤480px): nothing may touch the screen edges */
@media(max-width:480px){
  section{padding:40px 0}
  .hero-card{flex-direction:column;align-items:flex-start;gap:4px}
  .hero-card .price{white-space:normal}
  .hero-actions .btn{flex:1 1 auto}
  .intent{padding:14px}
  .intent-tabs .tab{flex:1 1 auto;text-align:center}
  .card,.calc,.step{padding:18px}
  .contact-card{padding:20px}
  .brokerage-banner{flex-direction:column;align-items:flex-start}
  .brokerage-banner .btn{align-self:stretch}
  .featured-actions .btn{flex:1 1 auto}
  .calc-result .big{font-size:2rem}
  .sticky-cta a{font-size:.86rem;min-height:50px}
}
/* Very narrow phones (≤360px, e.g. older/smaller Androids): stack what must stack */
@media(max-width:360px){
  h1{font-size:1.95rem}
  h2{font-size:1.65rem}
  .wrap{padding-left:max(18px,env(safe-area-inset-left,0px));padding-right:max(18px,env(safe-area-inset-right,0px))}
  .hero-actions .btn{flex:1 1 100%}
  .brand-name{font-size:.98rem}
  .brand-sub{font-size:.76rem}
  .brand-photo{width:40px;height:40px;font-size:.95rem}
  .chip{font-size:.82rem}
  .contact-rows div{flex-direction:column;gap:2px}
  .contact-rows dd{text-align:left}
  .calc-result dl{grid-template-columns:1fr}
  .calc-result dd{text-align:left}
  .filter-btn{flex:1 1 auto;text-align:center}
  .sticky-cta{grid-template-columns:.8fr .8fr 1.4fr;gap:6px;left:max(10px,env(safe-area-inset-left,0px));right:max(10px,env(safe-area-inset-right,0px))}
}
/* Landscape phones (short viewport): compact chrome so content gets the height */
@media(orientation:landscape) and (max-height:540px){
  .header-in{padding-top:8px;padding-bottom:8px}
  .hero{padding-top:16px}
  h1{font-size:2rem}
  section{padding:32px 0}
  .sticky-cta{bottom:max(8px,env(safe-area-inset-bottom,0px))}
  .sticky-cta a{min-height:46px}
  body{padding-bottom:64px}
}
/* Landscape phones & tablets below the desktop breakpoint keep the two-column hero rhythm */
@media(orientation:landscape) and (min-width:620px) and (max-width:899px){
  .hero-grid{grid-template-columns:1.02fr .98fr;align-items:center}
}
/* Accessibility: respect reduced motion everywhere, and keep controls visible in forced-colors mode */
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}
@media(forced-colors:active){.btn,.tab,.filter-btn,.fav-btn,.chip,.sticky-cta a{border:1.5px solid ButtonText}.brand-photo,.step-num{border:1.5px solid ButtonText}}

/* The mobile menu floats beneath the measured sticky header, avoiding layout shifts. */
html{scroll-padding-top:var(--header-height,75px)}
.mobile-nav{position:absolute;top:100%;left:0;right:0;background:var(--bg);max-height:calc(100dvh - var(--header-height,75px) - 78px);overflow-y:auto;box-shadow:var(--shadow)}
.brand{min-width:0}.brand-photo{flex-shrink:0}
@media(min-width:1280px){nav.desktop a{font-size:.85rem;padding:10px 7px}.header-in{gap:12px}.header-cta{font-size:.85rem;padding:10px 14px}.mobile-nav{display:none!important}}
[hidden]{display:none!important}

@media(prefers-color-scheme:dark){.sticky-cta .book,.skip{color:#141414}}
