/* =============================================================================
   THE PAGE BANNER — one component, every page but the home page

   WHY THIS FILE EXISTS
   Eleven pages had eleven hero implementations: .ab-hero, .bl-hero, .bp-hero,
   .cb-hero, .ct-hero, .fq-hero, .of-hero, .ti-hero, .at-hero, .qt-hero, each
   with its own padding, its own type ramp and its own idea of a scrim. They
   had drifted far enough apart that the site read as a set of pages rather
   than one site. This replaces all of them.

   WHAT IT COPIES FROM THE HOME HERO
   The treatment, exactly: the same photograph, the same four-layer scrim (a
   horizontal ramp for the copy column, a top band for the header, two radial
   pools, and a foot ramp), the same eyebrow / display h1 with an accent
   second line / white body copy with a text-shadow, and the same .btn.

   WHAT IT DELIBERATELY DOES NOT COPY
   The height, the traits row, the scroll cue and the booking card. The home
   hero is 100svh because the home page's job is to make an impression; an
   inner page's job is to answer the question that brought the visitor to it,
   and a full-screen banner on the FAQ would put all eighteen questions below
   the fold. This one is ~60vh, capped, with no second search control - the
   floating dock already does that job on every page.

   THE PHOTOGRAPH
   banner.jpg, a 1800px JPEG re-encoded from the home page's hero-poster.png
   (2687 KB -> 236 KB). The PNG is the right format for the home page, where
   it is also the video's poster frame; it is the wrong thing to send to
   sixteen more pages. To change the picture site-wide, change --pbn-img here
   and nothing else - no page's markup names an image.
   ========================================================================== */
:root{
  --pbn-img:url("../../img/banner.jpg");
  --pbn-min:clamp(400px,58vh,560px);
}

.pbn{
  position:relative;
  min-height:var(--pbn-min);
  display:flex;
  flex-direction:column;
  isolation:isolate;
  overflow:hidden;
  background-color:var(--forest-deep);
  color:var(--cream);
}
.pbn-media{
  position:absolute;inset:0;z-index:-2;
  background-color:var(--forest-deep);
  background-image:var(--pbn-img);
  background-size:cover;
  background-position:50% 48%;
  background-repeat:no-repeat;
}
/* The home hero's scrim, re-tuned for a band roughly half its height: the
   same four layers in the same order, with the top band shortened from 420px
   to 260px because the header sits proportionally lower here. */
.pbn::after{
  content:"";
  position:absolute;inset:0;z-index:-1;
  background:
    linear-gradient(90deg,
      rgba(8,22,17,.72) 0%,
      rgba(8,22,17,.54) 38%,
      rgba(8,22,17,.16) 64%,
      rgba(8,22,17,0) 80%),
    /* top band: .66/.50 until every header sat transparent over a banner.
       Measured at the brightest pixel behind the nav, the Explore banner's
       taller crop came out at 4.47:1; .72/.56 holds it above 4.5 */
    linear-gradient(180deg,rgba(6,20,13,.72) 0%,rgba(6,20,13,.56) 40%,rgba(6,20,13,.20) 80%,rgba(6,20,13,0) 100%) top/100% 260px no-repeat,
    radial-gradient(72% 70% at 106% -10%,rgba(6,20,13,.70) 0%,rgba(6,20,13,.52) 40%,rgba(6,20,13,.28) 70%,rgba(6,20,13,0) 100%),
    radial-gradient(120% 95% at -12% 70%,rgba(6,20,13,.88) 0%,rgba(6,20,13,.68) 28%,rgba(6,20,13,.44) 54%,rgba(6,20,13,.18) 74%,rgba(6,20,13,0) 92%),
    linear-gradient(180deg,rgba(6,20,13,0) 0%,rgba(6,20,13,0) 30%,rgba(6,20,13,.22) 64%,rgba(6,20,13,.52) 100%);
}

/* ---------------------------------------------------------------------------
   BREADCRUMB
   Inside the banner, not above it. Four pages used to put it in a separate
   green strip, which read as two bands stacked rather than one.
   --------------------------------------------------------------------------- */
.pbn-crumb{
  position:relative;z-index:1;
  padding-top:calc(var(--hdr-h,92px) + clamp(10px,1.2vw,18px));
}
.pbn-crumb-in{
  display:flex;align-items:center;gap:var(--space-xs);
  flex-wrap:wrap;
  font-family:var(--font-body);
  font-size:11.5px;font-weight:var(--fw-semi);
  letter-spacing:var(--track-label);text-transform:uppercase;
  text-shadow:0 1px 8px rgba(0,0,0,.5);
}
.pbn-crumb a{color:rgba(245,240,230,.82);transition:color .2s ease}
/* .62 measured 4.16:1 at 390px, where the crumb wraps onto the brighter part
   of the photograph. .72 is 5.5:1 at the same spot and still reads quieter
   than the links beside it. */
.pbn-crumb span[aria-current]{color:rgba(245,240,230,.72)}
.pbn-crumb svg{
  width:13px;height:13px;flex:0 0 auto;
  fill:none;stroke:rgba(245,240,230,.52);stroke-width:2;
  stroke-linecap:round;stroke-linejoin:round;
}

/* ---------------------------------------------------------------------------
   COPY
   --------------------------------------------------------------------------- */
.pbn-in{
  position:relative;z-index:1;
  flex:1 1 auto;
  display:flex;align-items:center;
  padding-block:clamp(26px,3vw,46px) clamp(34px,4vw,62px);
}
/* The crumb takes the header's clearance when it is there; without one the
   copy block has to take it itself, or the h1 runs under the masthead. */
.pbn:not(:has(.pbn-crumb)) .pbn-in{padding-top:calc(var(--hdr-h,92px) + clamp(18px,2vw,34px))}
.pbn-copy{min-width:0;max-width:880px}

/* Same role as the home page's .eyebrow, same uppercase ramp, one step down
   because the headline under it is one step down too. */
.pbn-eyebrow{
  display:block;
  margin:0 0 clamp(12px,1.4vw,18px);
  font-family:var(--font-body);
  font-size:12px;font-weight:var(--fw-bold);
  letter-spacing:.22em;line-height:1.45;
  text-transform:uppercase;
  color:#fff;
  text-shadow:0 2px 12px rgba(0,0,0,.55);
}
/* clamp(52px,6.26vw,101px) is the home page's, and it is sized for a full
   screen. Two thirds of it keeps the same voice inside a band this tall. */
.pbn h1{
  margin:0;
  max-width:min(31ch,100%);
  font-family:var(--font-display);
  font-size:clamp(34px,4.1vw,58px);
  line-height:var(--lh-tight);
  letter-spacing:-.018em;
  font-weight:var(--fw-medium);
  color:#fff;
  text-shadow:0 4px 24px rgba(0,0,0,.34);
  text-wrap:balance;
}
/* Both lines are blocks, exactly as on the home page, so a two-part headline
   breaks where it was written to break rather than where the box runs out. */
.pbn h1 span{display:block}
.pbn h1 .accent{color:var(--accent)}
/* A single-line title (a blog post, an attraction guide) has no second part
   to balance against and is usually long, so it gets the full measure. */
.pbn h1:not(:has(.accent)){max-width:min(26ch,100%)}

.pbn-desc{
  margin:clamp(16px,1.9vw,26px) 0 0;
  max-width:58ch;
  font-family:var(--font-body);
  font-size:clamp(16px,1.25vw,19px);
  font-weight:var(--fw-medium);
  line-height:1.5;
  color:#fff;
  text-shadow:0 2px 10px rgba(0,0,0,.55);
}

/* The small caveat some pages carry. Quieter than .pbn-desc on purpose: it is
   a condition, not a pitch. */
.pbn-note{
  display:flex;align-items:flex-start;gap:var(--space-sm);
  margin:clamp(16px,1.8vw,24px) 0 0;
  max-width:62ch;
  font-family:var(--font-body);
  font-size:13.5px;line-height:1.5;
  color:rgba(245,240,230,.86);
  text-shadow:0 1px 8px rgba(0,0,0,.5);
}
.pbn-note svg{
  width:17px;height:17px;flex:0 0 auto;margin-top:1px;
  fill:none;stroke:var(--accent);stroke-width:1.6;
  stroke-linecap:round;stroke-linejoin:round;
}

/* ---- actions ----
   .btn and .btn.primary come from header.css, which every page loads. They
   are not redeclared here; the home page's button and this one are the same
   button, and that is the point of the exercise. */
.pbn-actions{
  display:flex;align-items:center;gap:var(--space-lg);flex-wrap:wrap;
  margin-top:clamp(20px,2.4vw,32px);
}
.pbn-alt{
  display:inline-flex;align-items:flex-end;gap:10px;
  font-family:var(--font-body);
  font-size:13px;font-weight:var(--fw-bold);
  letter-spacing:.06em;text-transform:uppercase;
  color:var(--accent);
  border-bottom:1px solid rgba(183,200,150,.4);
  padding-bottom:4px;
  text-shadow:0 1px 8px rgba(0,0,0,.5);
}
.pbn-alt svg{
  width:22px;height:9px;flex:0 0 auto;
  fill:none;stroke:currentColor;stroke-width:1.6;
  stroke-linecap:round;stroke-linejoin:round;
  transition:transform .35s var(--ease-out);
}

/* A slot for the one or two pages that carry something extra under the copy -
   the blog post's byline, for instance. The banner stays one component; the
   page puts its own thing in the hole rather than growing a variant. */
.pbn-extra{margin-top:clamp(20px,2.4vw,30px)}

/* The traits row is the home hero's, markup and styling both - see header.css
   for .traits/.trait. The only thing this file says about it is where it sits
   and how it wraps on a phone. */
.pbn .traits{margin-top:clamp(22px,2.6vw,34px)}

@media (max-width:640px){
  /* A post title as the current crumb ran to two uppercase lines on a phone.
     One line with an ellipsis: the h1 directly below carries the full title,
     and the ellipsis is visual only - the text is intact for a screen reader. */
  .pbn-crumb span[aria-current]{
    flex:0 1 100%;min-width:0;
    overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  }
}
@media (max-width:480px){
  /* header.css drops the home hero's traits to one per row below 480px. That
     is right for a 100svh hero and wrong here: four stacked rows added 95px
     to a banner that is already most of a 390px-wide screen, pushing the
     page's actual content off it. Two by two keeps the same four traits in
     the same order with the same icons, and gives the content back its
     half of the phone. */
  .pbn .trait{flex:1 1 44%}
}

@media (max-width:620px){
  :root{--pbn-min:clamp(360px,54vh,460px)}
  /* On a phone the copy runs the full width of the frame, so the horizontal
     ramp that protects it on a desktop has nothing left to protect it with -
     the accent line measured 3.00:1 at 390px, exactly on the large-text
     limit. A flat extra layer over the whole band buys the margin back
     without touching the token or re-tuning the desktop scrim. */
  .pbn::after{
    background:
      linear-gradient(180deg,rgba(6,20,13,.70) 0%,rgba(6,20,13,.56) 46%,rgba(6,20,13,.66) 100%),
      radial-gradient(130% 80% at 0% 40%,rgba(6,20,13,.70) 0%,rgba(6,20,13,.34) 58%,rgba(6,20,13,0) 92%);
  }
  .pbn-actions{gap:var(--space-md)}
  .pbn-actions .btn{width:100%}
}
@media (hover:hover) and (pointer:fine){
  .pbn-crumb a:hover{color:#fff}
  .pbn-alt:hover{border-bottom-color:currentColor}
  .pbn-alt:hover svg{transform:translateX(5px)}
}
@media (prefers-reduced-motion:reduce){
  .pbn-alt svg{transition:none}
  .pbn-alt:hover svg{transform:none}
}
