/* Step 38: strictly page-scoped hero adjustments. Shared header, footer, rails untouched. */
/* Home: respect the same safe area as the site's content; retain centred hero and bottom search. */
body:has(.at-hero) .at-hero-copy{
  width:min(1080px,calc(100% - 280px))!important;
  max-width:1080px!important;
  left:50%!important;
  top:45%!important;
  padding-inline:14px;
  box-sizing:border-box;
}
body:has(.at-hero) .at-hero-copy h1{
  font-size:clamp(48px,5.7vw,105px)!important;
  max-width:100%!important;
  overflow-wrap:normal;
  text-wrap:balance;
}
body:has(.at-hero) .at-hero-copy p{max-width:650px!important;}
/* Gallery: ensure heading begins after social rail, never on top of it. */
body:has(.g35-main) .g35-hero{min-height:610px!important;}
body:has(.g35-main) .g35-hero-inner{
  width:min(1320px,calc(100% - 270px))!important;
  max-width:1320px!important;
  margin-inline:auto!important;
  padding:120px 0 100px!important;
  align-items:center!important;
  gap:55px!important;
}
body:has(.g35-main) .g35-hero-copy{min-width:0;max-width:790px!important;flex:1 1 auto;}
body:has(.g35-main) .g35-hero h1{
  font-size:clamp(44px,4.55vw,76px)!important;
  line-height:1.12!important;
  letter-spacing:-.055em!important;
  overflow-wrap:normal;
  text-wrap:balance;
}
body:has(.g35-main) .g35-hero p{max-width:630px!important;}
body:has(.g35-main) .g35-hero-detail{flex:0 0 210px!important;}
/* Contact: taller hero with the actual desert photo more visible, without a heavy green veil. */
#main .cc-hero{
  min-height:690px!important;
  padding:145px 0 135px!important;
  background-image:linear-gradient(90deg,rgba(4,22,24,.76) 0%,rgba(4,30,31,.51) 45%,rgba(5,28,30,.22) 100%),url('../images/IMG-20261009-WA0108.jpg')!important;
  background-position:center 54%!important;
  background-size:cover!important;
}
#main .cc-hero .cc-hero-inner{
  width:min(1320px,calc(100% - 270px))!important;
  max-width:1320px!important;
  margin-inline:auto!important;
}
#main .cc-hero h1{font-size:clamp(54px,6vw,98px)!important;max-width:900px!important;}
#main .cc-hero p{max-width:700px!important;}
@media(max-width:1150px){
 body:has(.at-hero) .at-hero-copy{width:calc(100% - 160px)!important;}
 body:has(.g35-main) .g35-hero-inner,#main .cc-hero .cc-hero-inner{width:calc(100% - 160px)!important;}
 body:has(.g35-main) .g35-hero-detail{display:none!important;}
}
@media(max-width:760px){
 body:has(.at-hero) .at-hero-copy{width:calc(100% - 54px)!important;padding:0 4px;top:43%!important;}
 body:has(.at-hero) .at-hero-copy h1{font-size:clamp(43px,9vw,69px)!important;}
 body:has(.g35-main) .g35-hero{min-height:550px!important;}
 body:has(.g35-main) .g35-hero-inner,#main .cc-hero .cc-hero-inner{width:calc(100% - 58px)!important;}
 body:has(.g35-main) .g35-hero-inner{padding:110px 0 75px!important;}
 body:has(.g35-main) .g35-hero h1{font-size:clamp(40px,8vw,62px)!important;}
 #main .cc-hero{min-height:610px!important;padding:120px 0 95px!important;}
 #main .cc-hero h1{font-size:clamp(44px,9vw,72px)!important;}
}
@media(max-width:420px){
 body:has(.at-hero) .at-hero-copy{width:calc(100% - 40px)!important;}
 body:has(.at-hero) .at-hero-copy h1{font-size:clamp(39px,10vw,52px)!important;}
 body:has(.g35-main) .g35-hero-inner,#main .cc-hero .cc-hero-inner{width:calc(100% - 40px)!important;}
 body:has(.g35-main) .g35-hero h1{font-size:clamp(36px,9vw,46px)!important;}
}
