/* ============================================================
   HERO FIT — every page's first section fits the opening screen
   (announcement bar + header ≈ 120px on desktop, ≈ 100px on mobile)
   ============================================================ */
:root{ --chrome:120px; --hero-room:calc(100vh - var(--chrome)); }
@supports (height:100svh){ :root{ --hero-room:calc(100svh - var(--chrome)); } }
@media (max-width:900px){ :root{ --chrome:100px; } }

/* 1. Vertical padding follows screen height instead of fixed big numbers */
body .hero-v2,
body .svc-hero,
body .lp-hero,
body .sab2-hero,
body .sblg-hero,
body .bng-hero2{
  min-height:0 !important;
  padding-top:clamp(18px,4.5vh,60px) !important;
  padding-bottom:clamp(22px,5vh,64px) !important;
}
body .hero{ min-height:var(--hero-room) !important; }

/* 2. Headings & text scale with height too (never bigger than before) */
@media (min-width:901px){
  body .hero-v2-title{ font-size:clamp(24px,min(2.9vw,5.4vh),38px) !important; line-height:1.15 !important; margin-bottom:clamp(8px,1.6vh,16px) !important; }
  body .svc-hero-title{ font-size:clamp(24px,min(2.9vw,5.4vh),38px) !important; margin-bottom:clamp(8px,1.6vh,16px) !important; }
  body .sblg-hero-h1{ font-size:clamp(28px,min(3.4vw,6vh),44px) !important; }
  body .sblg-hero-h1-blue{ font-size:clamp(24px,min(3vw,5.2vh),38px) !important; margin-bottom:clamp(8px,1.6vh,16px) !important; }
  body .hero-v2-desc,
  body .svc-hero-desc,
  body .sblg-hero-desc{ font-size:clamp(13.5px,2.1vh,16px) !important; line-height:1.65 !important; margin-bottom:clamp(14px,3vh,28px) !important; }
  body .svc-pills{ margin-bottom:clamp(14px,3vh,30px) !important; }
  body .hero-v2-inner,
  body .svc-hero-inner{ gap:clamp(24px,4vw,56px) !important; }

  /* 3. Hero pictures can never be taller than the room on screen */
  body .hero-v2-visual-frame{ max-width:min(100%, calc((var(--hero-room) - 70px) * .87)); margin-inline:auto; }
  body .svc-hero-photo-wrap{ max-width:min(380px, calc((var(--hero-room) - 90px) * .8)); }
  body .sab2-hero-img,
  body .sab2-hero-img-fallback{ min-height:0 !important; max-height:calc(var(--hero-room) - 20px); }
  body .sab2-hero-inner{ min-height:0 !important; }
}

/* 4. Short laptop screens (≤ 800px tall): tighten further */
@media (min-width:901px) and (max-height:800px){
  body .hero-v2-features,
  body .svc-pills{ gap:8px !important; }
  body .hero-v2-feat-item,
  body .svc-pill{ padding:6px 12px !important; font-size:12px !important; }
}