/* ==========================================================================
   CROPPED-PHOTO HERO (#cropHero) - desktop 1200+, Nov 2026
   Sister style of the boat/rv "split hero" (css/main_2023.css). Use on any hero where the left column is the
   pill + headline + form and the right column is a cropped photo card (rounded, inside the page container):
   real-estate/index.php, en-ca/index3.php.

   Markup (add these hooks to the page's own classes):
     <div id="cropHero">                                   wraps the hero + the benefits row
       <section class="... cropHeroMain">                  the hero
         ... <p class="... cropHeroPill"> <h1> ... <div class="... cropHeroForm"> ...
         <div class="... cropHeroPhoto">                   the photo card (position: absolute, from the page CSS)
       </section>
       <section class="... cropHeroBenefits">              the 3 benefits
     </div>
     + <?php include($_SERVER['DOCUMENT_ROOT']."/includes/_crop_hero.php"); ?> after the hero (and after the form).
     + this stylesheet after the page's own CSS.

   What it does at 1200+ wide:
   - no screen fill in the hero: the hero is as tall as the pill + headline + form, plus padding above/below
     (24-48px, scales with the window height). The page's own "fill the screen" min-height is switched off.
   - photo card: top lines up with the pill, bottom with the bottom of the form (set by _crop_hero.php);
     on later form steps it keeps its step-1 height.
   - windows up to 1000 tall: the benefits section grows so hero + benefits fill the screen (the extra space
     goes UNDER the benefits text - the hero is not stretched). _crop_hero.php measures the real nav height,
     so a banner above the nav (e.g. "LAST CHANCE") doesn't break it. Taller windows: no fill, the page continues.
   - sizes/spacing scale with the window height (no 880/740 tiers at 1200+); windows 700 tall or less get tighter spacing.
   - under 1200 wide (tablets/iPads): each page keeps its own older rules.
   Something hanging below the photo card (en-ca's rating card) -> set --chOverhang on #cropHero (extra hero bottom padding).

   body:not(#_) = an extra id's worth of specificity, so these beat the pages' own rules
   (#realEstateAir .airplane .rehHero h1, #jc2 .ca3Hero h1, ...) without !important.
   ========================================================================== */
@media only screen and (min-width: 1200px) {
	body:not(#_) #cropHero {display: flex; flex-direction: column;}
	/* --chTopExtra: a bit more room above the hero than below it */
	body:not(#_) #cropHero > .cropHeroMain {--chPad: clamp(24px, 4.5vh, 48px); --chTopExtra: clamp(8px, 1.5vh, 16px); flex: 0 0 auto; display: flex; flex-direction: column; justify-content: center; min-height: 0px; padding: calc(var(--chPad) + var(--chTopExtra)) 0px calc(var(--chPad) + var(--chOverhang, 0px)) 0px;}
	body:not(#_) #cropHero > .cropHeroBenefits {flex: 0 0 auto; padding-top: clamp(28px, 5vh, 60px); padding-bottom: clamp(16px, 3vh, 30px);}
	body:not(#_) #cropHero .cropHeroMain h1 {font-size: clamp(36px, min(5.4vh, 3.8vw), 52px); line-height: 1.05;}
	body:not(#_) #cropHero .cropHeroForm {margin-top: clamp(14px, 2.4vh, 24px);}
}
/* windows 1000px tall or less: hero + benefits fill the screen - the benefits section takes the leftover height
   (the wrapper's min-height is set by _crop_hero.php from the real nav height) */
@media only screen and (min-width: 1200px) and (max-height: 1000px) {
	body:not(#_) #cropHero > .cropHeroBenefits {flex: 1 0 auto;}
}
/* short windows (700 tall or less): tighter spacing */
@media only screen and (min-width: 1200px) and (max-height: 700px) {
	body:not(#_) #cropHero > .cropHeroMain {--chPad: 16px; --chTopExtra: 0px;} /* no extra room on top - the benefit headings must stay on screen */
	body:not(#_) #cropHero > .cropHeroBenefits {padding-top: 16px;}
	body:not(#_) #cropHero .cropHeroForm {margin-top: 12px;}
}
/* ========== end cropped-photo hero ========== */
