/* RBR P1P-V1 | Hero-only visual consistency | 2026-11-16
   Scope: Diving, Underwater Photography, Dive Sites, Gallery, Getting Here.
   Keep original hero photographs, CMS bindings, content, SEO, navigation and other sections.
   Applied last in each of the 15 public HTML pages. Never import into global site.css.
*/

/* Shared visual rhythm for the two photographic, image-backed inner heroes. */
section.inner-hero[data-cms-bg^="pages.diving"],
section.inner-hero.photography-inner-hero {
  height:clamp(650px,80svh,800px);
  min-height:650px;
}
section.inner-hero[data-cms-bg^="pages.diving"] .inner-hero-text,
section.inner-hero.photography-inner-hero .inner-hero-text {
  margin-left:10%;
  padding-top:86px;
}
section.inner-hero[data-cms-bg^="pages.diving"] .inner-hero-text .overline,
section.inner-hero.photography-inner-hero .inner-hero-text .overline {
  margin-bottom:22px;
}
section.inner-hero[data-cms-bg^="pages.diving"] .inner-hero-text > p:last-child,
section.inner-hero.photography-inner-hero .inner-hero-text > p:last-child {
  max-width:500px;
  font-size:clamp(14px,.96vw,16px);
  line-height:1.82;
  margin:0;
}

/* Diving: preserve the open sea and the person on the right. */
section.inner-hero[data-cms-bg^="pages.diving"] .inner-hero-text {
  width:min(720px,49vw);
  max-width:720px;
}
section.inner-hero[data-cms-bg^="pages.diving"] h1 {
  max-width:710px;
  font-size:clamp(69px,5.4vw,94px);
  line-height:1.08;
  letter-spacing:-.032em;
  margin:0 0 23px;
  text-wrap:balance;
}
section.inner-hero[data-cms-bg^="pages.diving"] .hero-shade {
  background:linear-gradient(90deg,rgba(7,31,35,.58) 0%,rgba(8,34,39,.29) 47%,rgba(12,40,44,.035) 87%),linear-gradient(0deg,rgba(7,29,34,.30),transparent 35%);
}

/* Underwater Photography: leave the macro subject's right-hand detail intact. */
section.inner-hero.photography-inner-hero .inner-hero-text {
  width:min(780px,49vw);
  max-width:780px;
}
section.inner-hero.photography-inner-hero h1 {
  max-width:780px;
  font-size:clamp(68px,4.75vw,83px);
  line-height:1.095;
  letter-spacing:-.032em;
  margin:0 0 23px;
  text-wrap:balance;
}
section.inner-hero.photography-inner-hero .hero-shade {
  background:linear-gradient(90deg,rgba(3,13,14,.66) 0%,rgba(3,13,14,.48) 38%,rgba(3,13,14,.08) 67%,transparent 90%);
}

/* Dive Sites + Gallery: override historical flex/auto-margin collisions.
   Restore a single kicker/title/description grouping without changing any text. */
section.editorial-cover[data-rbr-dive-hero="v1"],
section.editorial-cover[data-rbr-gallery-hero="v1"] {
  display:flex !important;
  flex-direction:column !important;
  align-items:flex-start !important;
  justify-content:center !important;
  text-align:left !important;
  min-height:clamp(650px,78svh,770px);
  padding:calc(var(--rbr-header-offset,86px) + 40px) 9% 75px 10% !important;
  box-sizing:border-box;
}
section.editorial-cover[data-rbr-dive-hero="v1"] > .overline,
section.editorial-cover[data-rbr-gallery-hero="v1"] > .overline {
  margin:0 0 23px !important;
  line-height:1.5;
  text-align:left;
}
section.editorial-cover[data-rbr-dive-hero="v1"] > h1,
section.editorial-cover[data-rbr-gallery-hero="v1"] > h1 {
  margin:0 0 22px !important;
  max-width:800px !important;
  width:min(800px,59vw) !important;
  font-size:clamp(69px,5.5vw,92px);
  line-height:1.10;
  letter-spacing:-.032em;
  text-wrap:balance;
}
section.editorial-cover[data-rbr-dive-hero="v1"] > p:last-child,
section.editorial-cover[data-rbr-gallery-hero="v1"] > p:last-child {
  width:auto !important;
  max-width:min(610px,52vw) !important;
  margin:0 !important; /* Old .editorial-cover p has margin:auto: pushes subtitle away. */
  line-height:1.82;
  font-size:clamp(14px,.97vw,16px);
  text-align:left !important;
  align-self:flex-start !important;
}
section.editorial-cover[data-rbr-dive-hero="v1"] > h1 {
  font-size:clamp(68px,5.35vw,90px);
}
section.editorial-cover[data-rbr-gallery-hero="v1"] > h1 {
  width:min(780px,57vw) !important;
  font-size:clamp(67px,5.2vw,88px);
}
/* Support visibility when the original image is inserted inline by the CMS. */
section.editorial-cover[data-rbr-dive-hero="v1"][style*="background-image"]::before {
  background:linear-gradient(90deg,rgba(6,25,28,.33),rgba(8,32,35,.12) 55%,transparent 82%),linear-gradient(180deg,rgba(4,28,30,.07),rgba(3,24,27,.18));
}
section.editorial-cover[data-rbr-gallery-hero="v1"][style*="background-image"]::before {
  background:linear-gradient(90deg,rgba(0,0,0,.29),rgba(0,0,0,.09) 56%,transparent 85%);
}

/* Getting Here: keep the ocean photography, reduce milky overlay, align with 10% grid. */
body.rbr-gh-v1 section.rbr-gh-hero {
  min-height:clamp(580px,73svh,710px);
  padding:clamp(155px,11vw,185px) 10% clamp(75px,7vw,100px) !important;
  background-image:
    linear-gradient(180deg,rgba(6,35,38,.26),rgba(6,35,38,.03) 24%,transparent 38%),
    linear-gradient(90deg,rgba(247,247,240,.77) 0%,rgba(247,247,240,.52) 25%,rgba(247,247,240,.14) 52%,transparent 75%),
    var(--rbr-gh-hero-photo,url('/assets/uploads/overview.jpg')) !important;
  background-size:cover !important;
  background-position:center,center,center 52% !important;
  background-repeat:no-repeat !important;
}
body.rbr-gh-v1 section.rbr-gh-hero .overline {
  margin:0 0 22px;
  color:#254e46;
}
body.rbr-gh-v1 section.rbr-gh-hero h1 {
  max-width:min(760px,58vw);
  margin:0;
  font-size:clamp(65px,5.2vw,90px);
  line-height:1.12;
  letter-spacing:-.035em;
  color:#173e37;
  text-wrap:balance;
}
body.rbr-gh-v1 section.rbr-gh-hero .body-copy {
  max-width:min(600px,54vw);
  margin:21px 0 0;
  font-size:clamp(14px,.98vw,16px);
  line-height:1.82;
  color:#284e47;
}
/* English headlines have longer words; keep the same grid without overflow. */
html:lang(en) section.inner-hero[data-cms-bg^="pages.diving"] h1 {font-size:clamp(65px,5vw,88px);}
html:lang(en) section.inner-hero.photography-inner-hero h1 {font-size:clamp(65px,4.7vw,83px);}
html:lang(en) section.editorial-cover[data-rbr-dive-hero="v1"] > h1,
html:lang(en) section.editorial-cover[data-rbr-gallery-hero="v1"] > h1 {font-size:clamp(64px,5vw,87px);}
html:lang(en) body.rbr-gh-v1 section.rbr-gh-hero h1 {font-size:clamp(60px,4.65vw,78px);max-width:min(810px,65vw);}

@media (max-width:900px) {
  section.inner-hero[data-cms-bg^="pages.diving"],
  section.inner-hero.photography-inner-hero {height:auto;min-height:clamp(585px,78svh,740px);}
  section.inner-hero[data-cms-bg^="pages.diving"] .inner-hero-text,
  section.inner-hero.photography-inner-hero .inner-hero-text {
    width:78%;max-width:680px;margin-left:8%;margin-right:8%;padding-top:80px;
  }
  section.inner-hero[data-cms-bg^="pages.diving"] h1,
  section.inner-hero.photography-inner-hero h1 {font-size:clamp(51px,7.8vw,73px);max-width:100%;}
  section.editorial-cover[data-rbr-dive-hero="v1"],
  section.editorial-cover[data-rbr-gallery-hero="v1"] {
    min-height:clamp(585px,76svh,700px);
    padding:calc(var(--rbr-header-offset,72px) + 45px) 8% 74px !important;
  }
  section.editorial-cover[data-rbr-dive-hero="v1"] > h1,
  section.editorial-cover[data-rbr-gallery-hero="v1"] > h1 {
    width:100% !important;max-width:680px !important;font-size:clamp(51px,7.9vw,75px);
  }
  section.editorial-cover[data-rbr-dive-hero="v1"] > p:last-child,
  section.editorial-cover[data-rbr-gallery-hero="v1"] > p:last-child {max-width:620px !important;}
  body.rbr-gh-v1 section.rbr-gh-hero {
    min-height:clamp(570px,76svh,690px);
    padding:150px 8% 75px !important;
  }
  body.rbr-gh-v1 section.rbr-gh-hero h1 {max-width:680px;font-size:clamp(52px,7.75vw,74px);}
  body.rbr-gh-v1 section.rbr-gh-hero .body-copy {max-width:600px;}
}

@media (max-width:620px) {
  section.inner-hero[data-cms-bg^="pages.diving"],
  section.inner-hero.photography-inner-hero {
    min-height:560px;height:auto;
    padding:92px 0 60px;
  }
  section.inner-hero[data-cms-bg^="pages.diving"] .inner-hero-text,
  section.inner-hero.photography-inner-hero .inner-hero-text {
    width:86%;max-width:86%;margin:0 7%;padding-top:40px;
  }
  section.inner-hero[data-cms-bg^="pages.diving"] .inner-hero-text .overline,
  section.inner-hero.photography-inner-hero .inner-hero-text .overline {margin-bottom:18px;}
  section.inner-hero[data-cms-bg^="pages.diving"] h1,
  section.inner-hero.photography-inner-hero h1 {
    font-size:clamp(40px,10.25vw,58px);
    line-height:1.15;
    margin-bottom:18px;
    overflow-wrap:normal;
  }
  section.inner-hero[data-cms-bg^="pages.diving"] .inner-hero-text > p:last-child,
  section.inner-hero.photography-inner-hero .inner-hero-text > p:last-child {
    font-size:13px;line-height:1.78;max-width:330px;
  }
  section.editorial-cover[data-rbr-dive-hero="v1"],
  section.editorial-cover[data-rbr-gallery-hero="v1"] {
    min-height:555px;
    padding:142px 7% 68px !important;
  }
  section.editorial-cover[data-rbr-dive-hero="v1"] > .overline,
  section.editorial-cover[data-rbr-gallery-hero="v1"] > .overline {margin-bottom:19px !important;}
  section.editorial-cover[data-rbr-dive-hero="v1"] > h1,
  section.editorial-cover[data-rbr-gallery-hero="v1"] > h1 {
    width:100% !important;max-width:100% !important;
    font-size:clamp(41px,10.2vw,58px);
    line-height:1.15;margin-bottom:19px !important;
  }
  section.editorial-cover[data-rbr-dive-hero="v1"] > p:last-child,
  section.editorial-cover[data-rbr-gallery-hero="v1"] > p:last-child {
    max-width:100% !important;font-size:13px;line-height:1.8;
  }
  body.rbr-gh-v1 section.rbr-gh-hero {
    min-height:565px;
    padding:145px 7% 74px !important;
    background-image:
      linear-gradient(180deg,rgba(7,35,39,.36) 0%,transparent 26%),
      linear-gradient(90deg,rgba(248,248,242,.86) 0%,rgba(248,248,242,.71) 60%,rgba(248,248,242,.36) 100%),
      var(--rbr-gh-hero-photo,url('/assets/uploads/overview.jpg')) !important;
    background-position:center,center,60% center !important;
  }
  body.rbr-gh-v1 section.rbr-gh-hero .overline {margin-bottom:19px;}
  body.rbr-gh-v1 section.rbr-gh-hero h1,
  html:lang(en) body.rbr-gh-v1 section.rbr-gh-hero h1 {
    max-width:100%;font-size:clamp(42px,10.4vw,58px);line-height:1.18;
  }
  body.rbr-gh-v1 section.rbr-gh-hero .body-copy {
    max-width:100%;margin-top:19px;font-size:13px;line-height:1.77;
  }
}

/* Language-specific selector weight must also be overridden at tablet/mobile widths. */
@media (min-width:621px) and (max-width:900px) {
  html:lang(en) section.inner-hero[data-cms-bg^="pages.diving"] h1,
  html:lang(en) section.inner-hero.photography-inner-hero h1,
  html:lang(en) section.editorial-cover[data-rbr-dive-hero="v1"] > h1,
  html:lang(en) section.editorial-cover[data-rbr-gallery-hero="v1"] > h1 {
    font-size:clamp(51px,7.4vw,73px);
  }
  html:lang(en) body.rbr-gh-v1 section.rbr-gh-hero h1 {
    font-size:clamp(49px,7.1vw,70px);
  }
}
@media (max-width:620px) {
  html:lang(en) section.inner-hero[data-cms-bg^="pages.diving"] h1,
  html:lang(en) section.inner-hero.photography-inner-hero h1,
  html:lang(en) section.editorial-cover[data-rbr-dive-hero="v1"] > h1,
  html:lang(en) section.editorial-cover[data-rbr-gallery-hero="v1"] > h1 {
    font-size:clamp(40px,10.2vw,56px);
    line-height:1.15;
  }
}
