/* ===========================================================================
   Nurtured By Nature — Encounter detail pages (template-encounter-*.php)
   Scoped under .nbn-encounter so it cannot collide with the homepage (.nbn-home),
   blog (.nbn-blog), Astra core, or plugin CSS. Reuses the GLOBAL primitives from
   layout.css (.nbn-wrap, .nbn-btn*, .nbn-script, .nbn-chev) and the brand tokens
   from style.css (:root --nbn-*). The homepage files are frozen — this file is the
   single source of truth for every encounter page.
   =========================================================================== */

.nbn-encounter {
  --ivory:     var(--nbn-ivory, #e7f4f5);
  --cream:     var(--nbn-cream, #fafdfd);
  --paper:     var(--nbn-paper, #ffffff);
  --teal:      var(--nbn-teal, #15b4d7);
  --teal-deep: var(--nbn-teal-deep, #007e9b);
  --teal-ink:  var(--nbn-teal-ink, #06414f);
  --gold:      var(--nbn-gold, #c89a3f);
  --gold-soft: var(--nbn-gold-soft, #e6c684);
  --coral:     var(--nbn-coral, #ff6a44);
  --ink:       var(--nbn-ink, #14272d);
  --muted:     var(--nbn-muted, #56676d);
  --line:      var(--nbn-line, #d4e6e6);
  --display:   var(--nbn-font-display, 'Archivo', sans-serif);
  --body:      var(--nbn-font-body, 'Mulish', sans-serif);

  font-family: var(--body);
  color: var(--ink);
  background: var(--ivory);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
.nbn-encounter *,
.nbn-encounter *::before,
.nbn-encounter *::after { box-sizing: border-box; }
.nbn-encounter img { max-width: 100%; display: block; }
.nbn-encounter p { margin: 0 0 1rem; }
.nbn-encounter h2 { font-size: clamp(2rem, 4.5vw, 2.9rem); margin: 0 0 .5em; }
.nbn-encounter h3 { font-size: 1.3rem; margin: 0 0 .4em; }

/* ---- Editorial primitives (scoped copies of the homepage vocabulary) ------ */
.nbn-encounter .nbn-eyebrow {
  font-family: var(--body); text-transform: uppercase; letter-spacing: 3px;
  font-size: 11.5px; font-weight: 700; color: var(--gold);
  display: inline-flex; align-items: center; gap: 12px; margin-bottom: 18px;
}
.nbn-encounter .nbn-eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.nbn-encounter .nbn-eyebrow--center { justify-content: center; }
.nbn-encounter .nbn-eyebrow--center::after { content: ""; width: 28px; height: 1px; background: currentColor; }
.nbn-encounter .nbn-eyebrow--light { color: var(--gold-soft); }

.nbn-encounter .nbn-sectionhead { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.nbn-encounter .nbn-cream { background: var(--cream); }
.nbn-encounter .nbn-ivory { background: var(--ivory); }

/* CSS-only entrance: rise + fade once on load, staggered by --d. Guarded by
   reduced-motion, so motion-averse users (and any animation failure) see fully
   visible content. No JS dependency — the homepage's site.js targets .nbn-home. */
@media (prefers-reduced-motion: no-preference) {
  .nbn-encounter .nbn-reveal {
    opacity: 0; transform: translateY(24px);
    animation: nbn-enc-rise .8s cubic-bezier(.16,.7,.2,1) forwards;
    animation-delay: var(--d, 0s);
  }
  @keyframes nbn-enc-rise { to { opacity: 1; transform: none; } }
}

/* =========================================================================
   HERO — interior, photo + scrim, left-aligned
   ========================================================================= */
.nbn-encounter .enc-hero {
  position: relative; min-height: clamp(560px, 76vh, 720px);
  display: flex; align-items: flex-end;
  background: var(--teal-ink); color: #fff; overflow: hidden;
}
.nbn-encounter .enc-hero__bg {
  position: absolute; inset: 0; z-index: 0;
  background-image: var(--band); background-size: cover; background-position: center;
  animation: nbn-enc-kenburns 22s ease-in-out infinite alternate; will-change: transform;
}
@keyframes nbn-enc-kenburns { from { transform: scale(1.04); } to { transform: scale(1.15); } }
/* Directional scrim: darkest at the lower-left where the copy sits, so text
   stays legible over busy photography and the image still breathes on the right. */
.nbn-encounter .enc-hero__scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(4,49,60,.94) 0%, rgba(4,49,60,.60) 40%, rgba(4,49,60,.10) 74%, rgba(4,49,60,0) 100%),
    linear-gradient(0deg, rgba(4,49,60,.88) 0%, rgba(4,49,60,.18) 50%, rgba(4,49,60,.28) 100%);
}
/* Signature gold inset frame (mirrors the homepage hero) for editorial polish. */
.nbn-encounter .enc-hero__frame {
  position: absolute; inset: 22px; z-index: 2; pointer-events: none;
  border: 1px solid rgba(255,255,255,.26);
}
.nbn-encounter .enc-hero__frame::before,
.nbn-encounter .enc-hero__frame::after {
  content: ""; position: absolute; width: 26px; height: 26px; border: 2px solid var(--gold-soft);
}
.nbn-encounter .enc-hero__frame::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.nbn-encounter .enc-hero__frame::after  { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
.nbn-encounter .enc-hero__inner { position: relative; z-index: 3; padding-block: 64px; max-width: 720px; }
.nbn-encounter .enc-hero__title {
  color: #fff; font-size: clamp(2.6rem, 6.4vw, 4.4rem); letter-spacing: -1px;
  margin-bottom: .35em; text-shadow: 0 6px 50px rgba(0,0,0,.55), 0 2px 10px rgba(0,0,0,.4);
}
/* Script accent — resonant closing word drops to its own line (supporting, not
   dominant; mirrors the homepage hero treatment in a warmer brass tone). */
.nbn-encounter .enc-hero__title .nbn-script {
  color: var(--gold-soft); font-size: 1.1em; line-height: .82; margin-top: .04em;
  text-shadow: 0 6px 44px rgba(0,0,0,.42), 0 2px 10px rgba(0,0,0,.35);
}
.nbn-encounter .enc-hero__sub {
  max-width: 560px; font-size: 1.18rem; color: #fff; margin-bottom: 1.7rem;
  text-shadow: 0 2px 18px rgba(0,0,0,.55);
}
/* Editorial meta line (not buttons): gold divider rule + gold-dot separators,
   price in brass. The divider and strong shadow keep it readable over the photo. */
.nbn-encounter .enc-hero__specs {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 10px 18px; width: 100%; margin: 0 0 16px;
  padding-top: 22px; list-style: none;
  border-top: 1px solid rgba(230,198,132,.5);
}
.nbn-encounter .enc-hero__specs li {
  display: inline-flex; align-items: center; gap: 18px;
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.5px; font-size: .82rem; color: #fff;
  text-shadow: 0 2px 16px rgba(0,0,0,.75);
}
.nbn-encounter .enc-hero__specs li:not(:last-child)::after {
  content: ""; flex: 0 0 auto; width: 5px; height: 5px;
  border-radius: 50%; background: var(--gold-soft);
}
/* Price callout — deliberate, brass, set apart from the logistics meta line. */
.nbn-encounter .enc-hero__price { margin: 0 0 26px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.nbn-encounter .enc-hero__price-amt {
  font-family: var(--display); font-weight: 800; font-size: 2rem; letter-spacing: -.5px;
  color: var(--gold-soft); text-shadow: 0 2px 16px rgba(0,0,0,.7);
}
.nbn-encounter .enc-hero__price-note {
  font-size: .78rem; text-transform: uppercase; letter-spacing: 1.5px;
  color: rgba(255,255,255,.85); text-shadow: 0 2px 12px rgba(0,0,0,.7);
}
/* Hero footnote — explains the "*" on a spec chip (e.g. the Donor tier's partial
   deductibility) and links down to the full breakdown. */
.nbn-encounter .enc-hero__note {
  margin: 10px 0 0; max-width: 46ch; font-size: .85rem; line-height: 1.5;
  color: rgba(255,255,255,.82); text-shadow: 0 2px 12px rgba(0,0,0,.7);
}
.nbn-encounter .enc-hero__note a { color: #fff; text-decoration: underline; }
.nbn-encounter .enc-hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* Honour reduced-motion: stop the Ken Burns push on the hero photo. */
@media (prefers-reduced-motion: reduce) {
  .nbn-encounter .enc-hero__bg { animation: none; }
}

/* =========================================================================
   OVERVIEW — lede + "at a glance" specs card
   ========================================================================= */
.nbn-encounter .enc-overview { padding-block: 88px; }
.nbn-encounter .enc-overview__grid {
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 56px; align-items: start;
}
.nbn-encounter .enc-lede { font-size: 1.22rem; color: var(--ink); }
.nbn-encounter .enc-lede + p { color: var(--muted); }
/* Hub intro (centered eyebrow + heading + lede). The shared .enc-overview padding
   and the 0 0 .5em h2 margin are tuned for the detail pages' two-column grid; the
   hub's short centered intro reads better with less air under the heading and
   below the lede. Scoped so the detail pages keep their existing rhythm. */
.nbn-encounter .enc-overview--intro { padding-block: 64px 36px; }
.nbn-encounter .enc-overview--intro h2 { margin-bottom: .3em; }
.nbn-encounter .enc-overview--intro .enc-lede { margin-bottom: 0; }
.nbn-encounter .enc-specs {
  background: var(--paper); border: 1px solid var(--line); border-radius: 4px;
  padding: 30px 30px 12px; box-shadow: var(--nbn-shadow-sm, 0 10px 30px -18px rgba(10,61,73,.3));
}
.nbn-encounter .enc-specs h3 {
  font-size: .82rem; letter-spacing: 1.6px; color: var(--gold); margin-bottom: 18px;
}
.nbn-encounter .enc-specs dl { margin: 0; }
.nbn-encounter .enc-specs div {
  display: flex; justify-content: space-between; gap: 18px;
  padding: 12px 0; border-top: 1px solid var(--line);
}
.nbn-encounter .enc-specs div:first-of-type { border-top: 0; }
.nbn-encounter .enc-specs dt { color: var(--muted); font-size: .92rem; }
.nbn-encounter .enc-specs dd {
  margin: 0; font-family: var(--display); font-weight: 700; text-align: right; color: var(--ink);
}
.nbn-encounter .enc-specs dd.is-price { color: var(--teal-deep); font-size: 1.15rem; }

/* =========================================================================
   INCLUDES — feature grid
   ========================================================================= */
.nbn-encounter .enc-includes { padding-block: 88px; }
.nbn-encounter .enc-features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.nbn-encounter .enc-feature {
  background: var(--paper); border: 1px solid var(--line); border-radius: 4px;
  padding: 30px 24px; text-align: center; position: relative;
}
.nbn-encounter .enc-feature::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 36px; height: 2px; background: var(--gold);
}
.nbn-encounter .enc-feature h3 { font-size: 1.05rem; }
.nbn-encounter .enc-feature p { color: var(--muted); font-size: .95rem; margin: 0; }

/* Numbered itinerary index (e.g. CapyHour's 10 stops) — brass leading-zero
   numerals, two columns, echoing the homepage's section-index motif. */
.nbn-encounter .enc-itinerary {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px;
  counter-reset: enc-step;
}
.nbn-encounter .enc-itinerary li {
  counter-increment: enc-step; position: relative;
  padding: 16px 0 16px 58px; border-top: 1px solid var(--line);
  font-size: 1.02rem;
}
.nbn-encounter .enc-itinerary li::before {
  content: counter(enc-step, decimal-leading-zero);
  position: absolute; left: 0; top: 15px;
  font-family: var(--display); font-weight: 800; font-size: 1.05rem; color: var(--gold);
}

/* =========================================================================
   PREPARE — bring / leave at home
   ========================================================================= */
.nbn-encounter .enc-prepare { padding-block: 88px; }
.nbn-encounter .enc-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.nbn-encounter .enc-col {
  background: var(--paper); border: 1px solid var(--line); border-radius: 4px; padding: 34px 34px 24px;
}
.nbn-encounter .enc-col h3 { font-size: 1.1rem; margin-bottom: 18px; }
.nbn-encounter .enc-col ul { list-style: none; margin: 0; padding: 0; }
.nbn-encounter .enc-col li { position: relative; padding: 9px 0 9px 30px; border-top: 1px solid var(--line); color: var(--ink); }
.nbn-encounter .enc-col li:first-child { border-top: 0; }
.nbn-encounter .enc-col li::before {
  position: absolute; left: 0; top: 9px; font-family: var(--display); font-weight: 800;
}
.nbn-encounter .enc-col--bring li::before { content: "+"; color: var(--teal-deep); }
.nbn-encounter .enc-col--leave li::before { content: "\00d7"; color: var(--coral); }

/* =========================================================================
   POLICIES — "good to know" cards
   ========================================================================= */
.nbn-encounter .enc-policies { padding-block: 88px; }
.nbn-encounter .enc-notes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.nbn-encounter .enc-note {
  border-left: 2px solid var(--gold); padding: 6px 0 6px 24px;
}
.nbn-encounter .enc-note h3 { font-size: 1.05rem; }
.nbn-encounter .enc-note p { color: var(--muted); margin: 0; }

/* =========================================================================
   FAQ — native <details> accordion (no JS)
   ========================================================================= */
.nbn-encounter .enc-faq { padding-block: 88px; }
.nbn-encounter .enc-faq__list { max-width: 820px; margin: 0 auto; }
.nbn-encounter .enc-q {
  border-bottom: 1px solid var(--line); padding: 6px 0;
}
.nbn-encounter .enc-q > summary {
  list-style: none; cursor: pointer; padding: 18px 44px 18px 0; position: relative;
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  letter-spacing: .3px; font-size: 1rem; color: var(--ink);
}
.nbn-encounter .enc-q > summary::-webkit-details-marker { display: none; }
.nbn-encounter .enc-q > summary::after {
  content: "+"; position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  font-weight: 800; font-size: 1.4rem; color: var(--teal-deep); transition: transform .2s ease;
}
.nbn-encounter .enc-q[open] > summary::after { content: "\2212"; }
.nbn-encounter .enc-q__a { padding: 0 44px 20px 0; color: var(--muted); }
.nbn-encounter .enc-q__a p:last-child { margin-bottom: 0; }
/* Optional in-answer link (e.g. "See available dates" jumping to the booking block). */
.nbn-encounter .enc-q__link { margin-top: .6em; }
.nbn-encounter .enc-q__link a { color: var(--teal-deep); font-weight: 600; text-decoration: none; }
.nbn-encounter .enc-q__link a:hover { text-decoration: underline; }

/* =========================================================================
   BOOK — booking CTA + FareHarbor placeholder
   ========================================================================= */
.nbn-encounter .enc-book { padding-block: 88px; text-align: center; }
.nbn-encounter .enc-book__inner { max-width: 820px; margin-inline: auto; }
.nbn-encounter .enc-book__sub { color: var(--muted); font-size: 1.1rem; margin-bottom: 2rem; }
.nbn-encounter .enc-fareharbor {
  border: 2px dashed var(--gold); border-radius: 4px; background: var(--paper);
  padding: 56px 24px; color: var(--muted);
}
.nbn-encounter .enc-fareharbor__tag {
  display: inline-block; font-family: var(--display); font-weight: 700;
  text-transform: uppercase; letter-spacing: 2px; font-size: .8rem;
  color: var(--gold); background: var(--ivory); border: 1px solid var(--line);
  padding: 8px 16px; border-radius: 2px; margin-bottom: 14px;
}
.nbn-encounter .enc-fareharbor p { margin: 0; }

/* =========================================================================
   RELATED — cross-sell cards
   ========================================================================= */
.nbn-encounter .enc-related { padding-block: 88px; }
.nbn-encounter .enc-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.nbn-encounter .enc-card {
  display: block; text-decoration: none; color: inherit; position: relative;
  background: var(--paper); border: 1px solid var(--line); border-radius: 4px; overflow: hidden;
  box-shadow: 0 14px 40px -28px rgba(10,61,73,.5);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.nbn-encounter .enc-card:hover {
  transform: translateY(-8px); border-color: var(--gold);
  box-shadow: 0 40px 70px -36px rgba(10,61,73,.55);
}
.nbn-encounter .enc-card__media { aspect-ratio: 16 / 10; overflow: hidden; }
.nbn-encounter .enc-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.nbn-encounter .enc-card:hover .enc-card__media img { transform: scale(1.06); }
.nbn-encounter .enc-card__body { padding: 24px 26px 28px; }
.nbn-encounter .enc-card__body h3 { margin-bottom: .25em; }
.nbn-encounter .enc-card__meta { color: var(--muted); font-size: .92rem; margin: 0; }
.nbn-encounter .enc-card__more {
  display: inline-block; margin-top: 14px; font-family: var(--display); font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px; font-size: .76rem; color: var(--teal-deep);
}
/* Hub trio: three encounter cards side by side, with an in-card price line. */
.nbn-encounter .enc-cards--trio { grid-template-columns: repeat(3, 1fr); }
/* Footnote for the "Tax-deductible*" marker on the Donor Otter Swim card. */
.nbn-encounter .enc-cards__note {
  margin: 22px 0 0; color: var(--muted); font-size: .88rem; text-align: center;
}
.nbn-encounter .enc-card__price {
  font-family: var(--display); font-weight: 800; color: var(--teal-deep);
  font-size: 1.2rem; margin: 0 0 .15em;
}
.nbn-encounter .enc-card__desc { color: var(--muted); font-size: .95rem; margin: .5rem 0 0; }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 980px) {
  .nbn-encounter .enc-overview__grid { grid-template-columns: 1fr; gap: 36px; }
  .nbn-encounter .enc-features { grid-template-columns: 1fr 1fr; }
  .nbn-encounter .enc-notes { grid-template-columns: 1fr; }
  .nbn-encounter .enc-cards--trio { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .nbn-encounter { font-size: 16px; }
  .nbn-encounter .enc-overview,
  .nbn-encounter .enc-includes,
  .nbn-encounter .enc-prepare,
  .nbn-encounter .enc-policies,
  .nbn-encounter .enc-faq,
  .nbn-encounter .enc-book,
  .nbn-encounter .enc-related { padding-block: 60px; }
  .nbn-encounter .enc-features,
  .nbn-encounter .enc-cols,
  .nbn-encounter .enc-cards,
  .nbn-encounter .enc-itinerary { grid-template-columns: 1fr; }
  .nbn-encounter .enc-hero__cta { flex-direction: column; align-items: stretch; }
  .nbn-encounter .enc-hero__cta .nbn-btn { justify-content: center; }
}
