/* =========================================================================
   SITE HEADER
   Two states. Over the hero it is transparent with the cream mark; past the
   hero it becomes a shorter cream bar with the forest mark and a rust CTA.
   Scrolling down past a threshold tucks it away; any upward scroll brings it
   back. Both the state switch and the tuck need deliberate thresholds, or
   the bar flickers on every small movement.
   ========================================================================= */
:root{
  --hdr-h:clamp(88px,7.6vw,124px);
  --hdr-h-sm:clamp(62px,4.6vw,72px);
}
/* ONE HEADER, EVERY PAGE. Transparent at the top of the page, cream once it
   sticks. Every page now opens on a dark band (the home hero, the shared
   .pbn banner, or a cabin page's title band), so no page needs its own
   starting colour. Eight pages used to set one - a green plate on the blog,
   the post and contact, a gradient on About - which is why the header looked
   different from page to page. Those overrides are gone; do not add one back
   in pages/*.css. If a future page opens on a light ground, give it a dark
   band instead. */
.hdr{
  position:fixed;top:0;left:0;right:0;z-index:120;
  height:var(--hdr-h);
  background:transparent;
  border-bottom:1px solid transparent;
  transition:height .35s cubic-bezier(.4,.05,.2,1),
             background .35s ease,
             border-color .35s ease,
             box-shadow .35s ease;
}
.hdr-in{
  display:flex;align-items:center;gap:clamp(16px,2.4vw,42px);
  height:100%;
}

/* ---- scrolled ---- */
.hdr.is-stuck{
  height:var(--hdr-h-sm);
  background:#f4f1e8;
  border-bottom-color:rgba(23,61,47,.12);
  box-shadow:0 6px 26px rgba(18,34,25,.07);
}

/* ---- the mark ---- */
.hdr-logo{
  position:relative;display:block;flex:0 0 auto;
  /* sized by height so it can never outgrow the bar it sits in */
  height:clamp(62px,6vw,100px);width:auto;
  transition:height .35s cubic-bezier(.4,.05,.2,1);
}
.hdr.is-stuck .hdr-logo{height:clamp(38px,2.9vw,46px)}
.hdr-logo img{
  display:block;height:100%;width:auto;
  transition:opacity .3s ease;
}
/* over the hero it is the white badge, as it has always been */
.hdr-logo .on-dark{
  position:relative;opacity:1;aspect-ratio:1;
  border-radius:var(--r-round);background:#fff;object-fit:contain;
  box-shadow:0 8px 26px rgba(0,0,0,.18);
}
/* on the cream bar a white disc would disappear, so the mark stands alone */
.hdr-logo .on-light{position:absolute;left:0;top:0;height:100%;width:auto;opacity:0}
.hdr.is-stuck .hdr-logo .on-dark,
.hdr.is-open .hdr-logo .on-dark{opacity:0}
.hdr.is-stuck .hdr-logo .on-light,
.hdr.is-open .hdr-logo .on-light{opacity:1}

/* ---- navigation ---- */
.hdr-nav{
  display:flex;align-items:center;gap:clamp(14px,1.9vw,34px);
  margin-left:auto;
}
.hdr-nav a{
  font-family:var(--font-body);
  font-size:clamp(11px,.82vw,13px);font-weight:600;letter-spacing:.16em;
  text-transform:uppercase;white-space:nowrap;
  color:#fff;text-shadow:0 1px 10px rgba(0,0,0,.45);
  padding-block:6px;
  border-bottom:1px solid transparent;
  transition:color .28s ease,border-color .28s ease,text-shadow .28s ease;
}
.hdr-nav a:hover{border-bottom-color:currentColor}
.hdr.is-stuck .hdr-nav a,
.hdr.is-open .hdr-nav a{color:var(--forest);text-shadow:none}
.hdr.is-stuck .hdr-nav a:hover{color:#8c3a24}

/* ---- social ----
   Ported from the new layout, but its colours could not come with it: that
   header sits on a solid forest bar at every scroll position, while this one
   is transparent over the hero photograph and turns cream once stuck. So the
   icon follows the nav links - white with a white hairline over the picture,
   forest once the bar is solid - rather than carrying one fixed colour. */
.hdr-social{
  display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;
  width:34px;height:34px;border-radius:var(--r-round);
  color:#fff;
  border:1px solid rgba(255,255,255,.42);
  text-shadow:0 1px 10px rgba(0,0,0,.45);
  transition:background .28s ease,color .28s ease,border-color .28s ease;
}
.hdr-social svg{width:16px;height:16px;fill:currentColor;display:block}
.hdr-social:hover{background:rgba(255,255,255,.16);border-color:rgba(255,255,255,.75)}
.hdr.is-stuck .hdr-social,
.hdr.is-open .hdr-social{color:var(--forest);border-color:rgba(23,61,47,.28);text-shadow:none}
.hdr.is-stuck .hdr-social:hover{background:var(--forest);color:var(--cream);border-color:var(--forest)}
.hdr-social:focus-visible{outline:2px solid currentColor;outline-offset:3px}

/* The panel carries the same link on small screens, so the icon does not
   need to compete with the booking button for the little width left. */
.hdr-panel-social{
  display:inline-flex!important;align-items:center;gap:11px;
  margin-top:6px;font-size:19px!important;
  color:rgba(23,61,47,.78)!important;
}
.hdr-panel-social svg{width:18px;height:18px;fill:currentColor;flex:0 0 auto}

/* ---- the booking CTA ---- */
.hdr-book{
  display:inline-flex;align-items:center;gap:11px;flex:0 0 auto;
  min-height:clamp(42px,3.2vw,50px);padding:0 clamp(16px,1.5vw,26px);
  border-radius:var(--r-ctl);
  border:1px solid rgba(183,200,150,.45);
  background:rgba(20,61,46,.96);
  box-shadow:0 8px 24px rgba(0,0,0,.16);
  color:#fff;
  font-family:var(--font-body);
  font-size:clamp(10px,.76vw,12px);font-weight:700;letter-spacing:.17em;text-transform:uppercase;
  white-space:nowrap;
  transition:background .3s ease,border-color .3s ease,color .3s ease;
}
.hdr-book svg{width:12px;height:12px;stroke:currentColor;stroke-width:2.3;fill:none;stroke-linecap:round;stroke-linejoin:round}
/* Over the hero the button is outlined green at rest; on hover it takes the
   same rust as the search bar's Find My Cabin, so the two primary actions
   on the first screen behave as one. Once the header sticks it is already
   rust, and keeps its own darker hover below. */
.hdr-book:hover{background:var(--rust);border-color:var(--rust);box-shadow:none}
.hdr.is-stuck .hdr-book,
.hdr.is-open .hdr-book{
  background:#9b442a;border-color:#9b442a;color:#fff;
  box-shadow:none;
}
.hdr.is-stuck .hdr-book:hover{background:#7d351f;border-color:#7d351f}
.hdr-book:focus-visible,.hdr-nav a:focus-visible,.hdr-logo:focus-visible,.hdr-menu:focus-visible{
  outline:2px solid currentColor;outline-offset:3px;
}

/* ---- menu button (phones only) ---- */
.hdr-menu{
  display:none;flex:0 0 auto;
  width:44px;height:44px;padding:0;border:0;background:none;cursor:pointer;
  align-items:center;justify-content:center;
}
.hdr-menu i{
  position:relative;display:block;width:22px;height:1.5px;background:#fff;
  transition:background .3s ease,transform .3s ease;
}
.hdr-menu i::before,.hdr-menu i::after{
  content:"";position:absolute;left:0;width:22px;height:1.5px;background:inherit;
  transition:transform .3s ease,top .3s ease;
}
.hdr-menu i::before{top:-7px}
.hdr-menu i::after{top:7px}
.hdr.is-stuck .hdr-menu i,
.hdr.is-open .hdr-menu i{background:var(--forest)}
.hdr.is-open{background:#f4f1e8}
.hdr.is-open .hdr-menu i{background:transparent}
.hdr.is-open .hdr-menu i::before{top:0;transform:rotate(45deg);background:var(--forest)}
.hdr.is-open .hdr-menu i::after{top:0;transform:rotate(-45deg);background:var(--forest)}

/* ---- the panel behind the menu button ---- */
.hdr-panel{
  position:fixed;left:0;right:0;top:0;z-index:110;
  padding:calc(var(--hdr-h-sm) + 16px) clamp(20px,6vw,40px) 32px;
  background:#f4f1e8;
  transform:translateY(-100%);
  transition:transform .42s cubic-bezier(.4,.05,.2,1);
  box-shadow:0 18px 40px rgba(18,34,25,.16);
}
.hdr-panel a{
  display:block;padding:15px 0;
  border-bottom:1px solid rgba(23,61,47,.12);
  font-family:var(--font-body);
  font-size:23px;line-height:1.2;color:var(--forest);
}
.hdr-panel a:last-of-type{border-bottom:0}
body.nav-open .hdr-panel{transform:translateY(0)}
body.nav-open{overflow:hidden}

@media (max-width:1180px){
  .hdr-nav{gap:clamp(12px,1.5vw,22px)}
  .hdr-nav a{font-size:11px;letter-spacing:.11em}
}
@media (max-width:900px){
  :root{--hdr-h:74px;--hdr-h-sm:60px}
  .hdr-nav{display:none}
  .hdr-social{display:none}
  .hdr-menu{display:flex;order:3}
  .hdr-book{margin-left:auto;order:2;min-height:42px;padding:0 16px;font-size:10px;letter-spacing:.12em}
  .hdr-book .full{display:none}
  .hdr-logo{height:44px}
  .hdr.is-stuck .hdr-logo{height:36px}
}
@media (min-width:901px){
  .hdr-panel{display:none}
}
@media (prefers-reduced-motion:reduce){
  .hdr,.hdr-logo,.hdr-logo img,.hdr-panel{transition-duration:.01ms !important}
}

/* ---------- main ---------- */
.hero-main{
  position:relative;z-index:2;
  flex:1 1 auto;
  display:grid;
  grid-template-columns:minmax(0,1fr) 200px;
  align-items:stretch;
  gap:40px;
  padding-block:calc(var(--hdr-h,92px) + 20px) 92px;
}
.copy{
  min-width:0;
  max-width:760px;
  align-self:center;
  padding-block:var(--space-sm);
}
/* sits INSIDE the h1/h2 so the keyword phrase is part of the heading itself */
.eyebrow{
  display:block;
  margin:0 0 16px;
  font-family:var(--font-body);
  font-size:13px;font-weight:700;letter-spacing:.24em;line-height:1.45;
  text-transform:uppercase;
  color:#fff;text-shadow:0 2px 12px rgba(0,0,0,.55);
}
h1{
  margin:0;
  font-family:var(--font-display);
  font-size:clamp(52px,6.26vw,101px);
  /* Newsreader's descenders are short, so the clash that forced 1.02 is gone;
     with its taller x-height the lines need this much air to stay open */
  line-height:1.06;
  letter-spacing:-.018em;
  font-weight:500;
  text-shadow:0 4px 24px rgba(0,0,0,.34);
}
h1 span{display:block}
h1 .accent{color:var(--accent)}
.desc{
  margin:26px 0 0;
  max-width:760px;
  font-family:var(--font-body);
  font-size:clamp(18px,1.35vw,22px);
  font-weight:500;
  line-height:1.5;
  color:#fff;
  text-shadow:0 2px 10px rgba(0,0,0,.55);
}
.actions{display:flex;gap:var(--space-md);flex-wrap:wrap;margin-top:28px}
.btn{
  min-height:56px;padding:0 28px;
  border-radius:var(--r-ctl);
  display:inline-flex;align-items:center;justify-content:center;gap:var(--space-md);
  text-transform:uppercase;letter-spacing:.14em;font-size:12px;font-weight:700;
  border:1px solid transparent;
  transition:background .2s ease,border-color .2s ease;
}
.btn svg{width:12px;height:12px;stroke:currentColor;stroke-width:2.4;fill:none;flex:0 0 auto;stroke-linecap:round;stroke-linejoin:round}
.btn.primary{background:var(--sage-btn);border-color:var(--sage-btn);color:#fff}
.btn.primary:hover{background:var(--sage-btn-hover);border-color:var(--sage-btn-hover)}
.btn.secondary{background:rgba(10,28,20,.34);border-color:rgba(255,255,255,.85);color:#fff;backdrop-filter:blur(3px)}
.btn.secondary:hover{background:rgba(10,28,20,.58)}
.traits{
  display:flex;flex-wrap:wrap;
  max-width:700px;margin-top:34px;
}
.trait{
  flex:1 1 0;min-width:150px;
  display:flex;align-items:center;gap:13px;
  padding:6px 20px;
  border-right:1px solid rgba(255,255,255,.26);
}
.trait:first-child{padding-left:0}
.trait:last-child{border-right:none}
.trait svg{width:27px;height:27px;fill:none;stroke:#fff;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex:0 0 auto}
.trait span{
  font-size:11px;line-height:1.5;text-transform:uppercase;letter-spacing:.14em;
  text-shadow:0 1px 8px rgba(0,0,0,.5);
}

/* ---------- right rail ---------- */
/* space-between was holding the side note at the top and the cue at the foot.
   With the note gone the cue is the only child, so it is anchored to the foot
   outright rather than left floating at the top of an empty column. */
.rail{
  display:flex;flex-direction:column;align-items:flex-end;justify-content:flex-end;
  gap:40px;text-align:right;
}
.scroll-cue{
  display:flex;flex-direction:column;align-items:center;gap:14px;
  padding-bottom:10px;
  color:#fff;
}
.scroll-cue .ring{
  width:48px;height:48px;border-radius:var(--r-round);
  border:1px solid rgba(255,255,255,.85);
  display:flex;align-items:center;justify-content:center;
  transition:background .25s ease;
}
.scroll-cue:hover .ring{background:rgba(255,255,255,.14)}
.scroll-cue .ring svg{width:17px;height:17px;stroke:#fff;stroke-width:1.6;fill:none;stroke-linecap:round;stroke-linejoin:round}
.scroll-cue span{
  font-size:10px;letter-spacing:.2em;text-transform:uppercase;line-height:1.9;text-align:center;
  text-shadow:0 1px 8px rgba(0,0,0,.55);
}

/* ---------- booking ---------- */
.booking-area{
  position:relative;z-index:5;
  margin-top:auto;
  background:var(--band);
  border-top:1px solid rgba(233,226,205,.5);
}
.booking-shell{padding-bottom:34px}
.booking-card{
  margin-top:-46px;
  display:grid;grid-template-columns:1.06fr 1.06fr .84fr 1.04fr;
  background:var(--cream);color:var(--ink);
  border-radius:var(--r-card);overflow:hidden;
  box-shadow:0 20px 46px rgba(0,0,0,.28);
}
.field{
  min-height:98px;
  display:flex;align-items:center;gap:var(--space-md);
  padding:0 26px;position:relative;
}
.field::after{content:"";position:absolute;right:0;top:20px;bottom:20px;width:1px;background:#d3ccbf}
.field > svg{width:26px;height:26px;fill:none;stroke:var(--ink);stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex:0 0 auto}
.field-copy{min-width:0;flex:1 1 auto}
/* Label and value were 14/21. At 21px the placeholder was the largest piece
   of UI text in the whole hero - bigger than the trait labels at 16, bigger
   than FIND MY CABIN at 13, and 78% bigger than the nav. A placeholder is a
   prompt for something not yet entered; it should be the quietest text in a
   form, not the loudest. 12/17 matches the floating dock, which is the same
   control and was already using that pair. The field keeps its 98px
   min-height, so nothing moves. */
.label{display:block;font-size:12px;font-weight:700;line-height:1.2;margin-bottom:var(--space-2xs)}
.value{
  display:block;
  font-family:var(--font-body);
  font-size:17px;line-height:1.2;color:var(--placeholder);font-variant-numeric:lining-nums;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.chev{flex:0 0 auto;width:16px;height:16px;stroke:#6f6a63;stroke-width:2;fill:none;stroke-linecap:round;stroke-linejoin:round}
.search{display:flex;align-items:center;padding:17px}
.search button{
  width:100%;height:64px;border:0;border-radius:var(--r-ctl);
  display:inline-flex;align-items:center;justify-content:center;gap:var(--space-md);
  background:var(--rust);color:#fff;
  font-family:inherit;
  text-transform:uppercase;letter-spacing:.15em;font-size:13px;font-weight:700;
  cursor:pointer;transition:background .2s ease;
}
.search button:hover{background:#a34d2c}
.search button svg{width:13px;height:13px;stroke:currentColor;stroke-width:2.4;fill:none}
.meta{
  margin-top:22px;
  display:flex;align-items:center;justify-content:space-between;gap:var(--space-lg);flex-wrap:wrap;
}
.direct{display:flex;align-items:center;gap:var(--space-md);flex-wrap:wrap}
.direct strong{
  font-family:var(--font-display);font-style:italic;
  font-weight:400;font-size:31px;line-height:1.1;color:var(--cream);
}
.points{display:flex;align-items:center;gap:var(--space-md);flex-wrap:wrap}
.points span,.escape{font-size:10px;letter-spacing:.19em;text-transform:uppercase;color:rgba(255,255,255,.9)}
.points b{width:1px;height:15px;background:rgba(255,255,255,.34)}
.escape{display:flex;align-items:center;gap:var(--space-md);white-space:nowrap}
.escape::before{content:"";width:44px;height:1px;background:rgba(255,255,255,.55)}

/* ---------- responsive ---------- */
@media (max-width:1280px){
  :root{--gutter:40px}
  .hero-main{grid-template-columns:minmax(0,1fr) 180px;gap:28px}
}
@media (min-width:921px) and (max-height:870px){
  .hero-main{padding-block:calc(var(--hdr-h) + 4px) 76px}
  h1{font-size:clamp(52px,5.3vw,84px)}
  .desc{margin-top:20px;font-size:clamp(18px,1.3vw,21px);max-width:660px}
  .actions{margin-top:22px}
  .btn{min-height:52px}
  .traits{margin-top:22px}
  .booking-card{margin-top:-40px}
  .field{min-height:86px}
  .search{padding:14px}
  .search button{height:58px}
  .booking-shell{padding-bottom:26px}
  .meta{margin-top:var(--space-md)}
}
@media (max-width:1080px){
  .hero-main{grid-template-columns:minmax(0,1fr);padding-bottom:88px}
  .rail{
    position:absolute;right:var(--gutter);bottom:104px;
    align-items:center;justify-content:flex-end;gap:0;
  }
  .scroll-cue{padding-bottom:0}
  .copy{max-width:100%}
}
@media (max-width:920px){
  :root{--gutter:32px}
  .hero::after{
    background:
      linear-gradient(180deg,rgba(6,20,13,.60) 0%,rgba(6,20,13,.56) 42%,rgba(6,20,13,.44) 68%,rgba(6,20,13,.58) 100%);
  }
  .hero-main{padding-block:calc(var(--hdr-h) + 14px) 72px}
  .rail{display:none}
  .booking-card{
    margin-top:-40px;
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
  .search{grid-column:1 / -1;padding:0 16px 16px}
  .search button{height:58px}
}
@media (max-width:760px){
  h1{font-size:clamp(44px,10vw,64px)}
  .desc{font-size:19px;max-width:100%}
  .traits{max-width:100%}
  .trait{flex:1 1 44%;min-width:0;border-right:none;padding:8px 14px 8px 0}
  .booking-card{grid-template-columns:1fr;margin-top:-32px}
  .field{min-height:76px;padding:0 20px;border-bottom:1px solid #ddd6c9}
  .field::after{display:none}
  .meta{align-items:flex-start;flex-direction:column;gap:14px}
  .points b:first-child{display:none}
  .escape{display:none}
}
@media (max-width:480px){
  :root{--gutter:20px}
  .eyebrow{font-size:11px;letter-spacing:.2em}
  .hero-main{padding-block:calc(var(--hdr-h) + 10px) 60px}
  .actions{display:grid;grid-template-columns:1fr}
  .btn{width:100%}
  .trait{flex:1 1 100%}
  .direct strong{font-size:32px}
}
