/* ===========================================================================
   Nurtured By Nature — Premium/editorial homepage layout (front-page.php)
   Everything is scoped under .nbn-home so it cannot collide with Astra core,
   plugin, or block CSS that loads on the same page.
   Brand tokens come from style.css (:root --nbn-*).
   =========================================================================== */

.nbn-home {
  --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-mid:  var(--nbn-teal-mid, #109bba);
  --teal-ink:  var(--nbn-teal-ink, #06414f);
  --brown:     var(--nbn-brown, #5e4636);
  --gold:      var(--nbn-gold, #c89a3f);
  --gold-soft: var(--nbn-gold-soft, #e6c684);
  --coral:     var(--nbn-coral, #ff6a44);
  --coral-deep:var(--nbn-coral-deep, #ed5530);
  --ink:       var(--nbn-ink, #14272d);
  --muted:     var(--nbn-muted, #56676d);
  --line:      var(--nbn-line, #d4e6e6);
  --display:   var(--nbn-font-display, 'Archivo', sans-serif);
  --script:    var(--nbn-font-script, 'Sacramento', cursive);
  --body:      var(--nbn-font-body, 'Mulish', sans-serif);
  --wrap: 1180px;

  font-family: var(--body);
  color: var(--ink);
  background: var(--ivory);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.nbn-home *,
.nbn-home *::before,
.nbn-home *::after { box-sizing: border-box; }
.nbn-home img { max-width: 100%; display: block; }
.nbn-home p { margin: 0 0 1rem; }

/* .nbn-wrap, .nbn-btn, .nbn-script base, and all header/footer chrome now live
   in assets/css/layout.css (loaded site-wide). This file is homepage body only. */

/* ---- Headings: uppercase Archivo. Reset the global !important from style.css
        only where we need precise control. ---- */
.nbn-home h1,
.nbn-home h2,
.nbn-home h3,
.nbn-home h4 {
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.5px;
  line-height: 1.04;
  color: var(--ink);
  margin: 0 0 .5em;
}

/* Script accent base is in layout.css (.nbn-script). Homepage sections below
   override only its size per context (hero, intro, bands, etc.). */

/* =========================================================================
   EYEBROW
   ========================================================================= */
.nbn-home .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-home .nbn-eyebrow::before {
  content: ""; width: 28px; height: 1px; background: currentColor;
}
.nbn-home .nbn-eyebrow--center { justify-content: center; }
.nbn-home .nbn-eyebrow--center::after {
  content: ""; width: 28px; height: 1px; background: currentColor;
}
.nbn-home .nbn-eyebrow--light { color: var(--gold-soft); }
.nbn-home .nbn-eyebrow--coral { color: var(--coral); }

/* Buttons (.nbn-btn*), top bar (.nbn-topbar), and header/nav (.nbn-header,
   .nbn-brand, .nbn-nav) now live in assets/css/layout.css, shared site-wide. */

/* =========================================================================
   HERO  — cinematic, full-screen, Ken Burns + inset frame
   ========================================================================= */
.nbn-home .nbn-hero {
  position: relative;
  min-height: clamp(540px, 74vh, 700px);
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
}
.nbn-home .nbn-hero__bg {
  position: absolute; inset: 0;
  background-image: var(--hero); /* JPG fallback */
  background-image: image-set(
    url("../images/demo/hero.webp") type("image/webp"),
    var(--hero) type("image/jpeg")
  );
  background-size: cover; background-position: center;
  animation: nbn-kenburns 24s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes nbn-kenburns { from { transform: scale(1.03); } to { transform: scale(1.16); } }
.nbn-home .nbn-hero__overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(72% 62% at 50% 50%, rgba(10,61,73,.58) 0%, rgba(10,61,73,.30) 52%, rgba(10,61,73,0) 78%),
    linear-gradient(180deg, rgba(10,61,73,.42) 0%, rgba(10,61,73,.12) 30%, rgba(10,61,73,.30) 70%, rgba(10,61,73,.62) 100%);
}
.nbn-home .nbn-hero__frame {
  position: absolute; inset: 24px; z-index: 3; pointer-events: none;
  border: 1px solid rgba(255,255,255,.30);
}
.nbn-home .nbn-hero__frame::before,
.nbn-home .nbn-hero__frame::after {
  content: ""; position: absolute; width: 26px; height: 26px; border: 2px solid var(--gold-soft);
}
.nbn-home .nbn-hero__frame::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.nbn-home .nbn-hero__frame::after  { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
.nbn-home .nbn-hero__inner { position: relative; z-index: 4; padding-block: 56px; }
.nbn-home .nbn-hero .nbn-eyebrow {
  color: #f1e4c6;
  text-shadow: 0 2px 16px rgba(0,0,0,.6);
  margin-bottom: 22px;
}
.nbn-home .nbn-hero .nbn-eyebrow::before,
.nbn-home .nbn-hero .nbn-eyebrow::after {
  background: rgba(241,228,198,.85);
  width: 34px;
}
.nbn-home .nbn-hero__title {
  color: #fff; font-size: clamp(2.9rem, 9vw, 6rem); letter-spacing: -1.5px;
  margin-bottom: .28em; text-shadow: 0 6px 50px rgba(0,0,0,.5), 0 2px 10px rgba(0,0,0,.35);
}
.nbn-home .nbn-hero__title .nbn-script {
  font-size: clamp(3.2rem, 9.5vw, 6.4rem);
  color: var(--gold-soft);
  margin-top: .06em;
  text-shadow: 0 6px 44px rgba(0,0,0,.4);
}
.nbn-home .nbn-hero__sub {
  max-width: 600px; margin: 0 auto 2.2rem; font-size: 1.18rem; color: rgba(255,255,255,.94);
}
.nbn-home .nbn-hero__cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* =========================================================================
   TRUST SUBSTRIP
   ========================================================================= */
.nbn-home .nbn-trust { background: var(--teal-deep); color: #eaf6f9; }
.nbn-home .nbn-trust__inner {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: 22px; padding-block: 18px; font-size: .9rem; letter-spacing: .3px;
}
.nbn-home .nbn-trust__item { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.nbn-home .nbn-trust__sep { width: 1px; height: 16px; background: rgba(203,171,116,.5); }
.nbn-home .nbn-stars { color: var(--gold-soft); letter-spacing: 2px; }
.nbn-home .nbn-star { font-size: .95em; }

/* =========================================================================
   SHARED SECTION SCAFFOLD
   ========================================================================= */
.nbn-home .nbn-cream { background: var(--cream); }
.nbn-home .nbn-ivory { background: var(--ivory); }
.nbn-home .nbn-sectionhead { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.nbn-home .nbn-sectionhead h2 { font-size: clamp(2rem, 4.5vw, 2.9rem); }

/* dotted texture used on light interstitials */
.nbn-home .nbn-intro,
.nbn-home .nbn-book {
  background-image: radial-gradient(rgba(21,180,215,.12) 1px, transparent 1px);
  background-size: 22px 22px;
}

/* =========================================================================
   WHO WE ARE (intro)
   ========================================================================= */
.nbn-home .nbn-intro { padding-top: 96px; padding-bottom: 52px; text-align: center; }
.nbn-home .nbn-intro__inner { max-width: 760px; margin-inline: auto; }
.nbn-home .nbn-intro__title { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: .5em; }
.nbn-home .nbn-intro__title .nbn-script { font-size: clamp(2.6rem, 5.5vw, 3.6rem); }
.nbn-home .nbn-intro__lede { font-size: 1.18rem; color: var(--muted); margin-bottom: 2rem; }

/* =========================================================================
   ENCOUNTERS (3-up cards)
   ========================================================================= */
.nbn-home .nbn-encounters { padding-top: 52px; padding-bottom: 96px; }
.nbn-home .nbn-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.nbn-home .nbn-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 4px;
  overflow: hidden; text-align: center;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.nbn-home .nbn-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 60px -28px rgba(35,28,21,.4);
  border-color: var(--gold);
}
.nbn-home .nbn-card__media { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; }
.nbn-home .nbn-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.nbn-home .nbn-card:hover .nbn-card__media img { transform: scale(1.05); }
.nbn-home .nbn-card__body { padding: 28px 24px 30px; }
.nbn-home .nbn-card__body h3 { font-size: 1.45rem; margin-bottom: .3em; }
.nbn-home .nbn-card__meta { color: var(--brown); font-size: .9rem; margin-bottom: .6rem; }
.nbn-home .nbn-card__price {
  font-family: var(--display); font-weight: 800; font-size: 1.9rem;
  color: var(--teal-deep); margin-bottom: 1.1rem;
}

/* =========================================================================
   IMMERSIVE PHOTO BANDS
   ========================================================================= */
.nbn-home .nbn-band {
  position: relative; min-height: 88vh; display: flex; align-items: center;
  background-image: var(--band); background-size: cover; background-position: center;
  color: #fff; overflow: hidden;
}
.nbn-home .nbn-band__scrim { position: absolute; inset: 0; }
.nbn-home .nbn-band--left .nbn-band__scrim {
  background: linear-gradient(90deg, rgba(6,65,79,.70) 0%, rgba(6,65,79,.26) 48%, rgba(6,65,79,0) 82%);
}
.nbn-home .nbn-band--right .nbn-band__scrim {
  background: linear-gradient(270deg, rgba(6,65,79,.70) 0%, rgba(6,65,79,.26) 48%, rgba(6,65,79,0) 82%);
}
.nbn-home .nbn-band__inner { position: relative; z-index: 2; display: flex; }
.nbn-home .nbn-band--right .nbn-band__inner { justify-content: flex-end; }
.nbn-home .nbn-band__text { max-width: 480px; }
.nbn-home .nbn-band__text h2 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.2rem); margin-bottom: .5em; }
.nbn-home .nbn-band__text h2 .nbn-script { color: var(--gold-soft); font-size: clamp(2.8rem, 6vw, 3.9rem); }
.nbn-home .nbn-band__text p { color: rgba(255,255,255,.92); margin-bottom: 1.8rem; }

/* =========================================================================
   HOW YOU CAN HELP (donation tiers over photo)
   ========================================================================= */
.nbn-home .nbn-help {
  position: relative; padding-block: 96px;
  background-image: var(--band); background-size: cover; background-position: center;
  background-attachment: fixed; color: #fff;
}
.nbn-home .nbn-help__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(150deg, rgba(0,126,155,.78) 0%, rgba(6,65,79,.82) 100%);
}
.nbn-home .nbn-help__inner { position: relative; z-index: 2; }
.nbn-home .nbn-help__head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.nbn-home .nbn-help__head h2 { color: #fff; font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 1.4rem; }
.nbn-home .nbn-help__head h2 .nbn-script { color: var(--gold-soft); font-size: clamp(2.6rem, 5.5vw, 3.6rem); }
.nbn-home .nbn-tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.nbn-home .nbn-tier {
  border: 1px solid rgba(203,171,116,.45); border-radius: 4px;
  padding: 28px 22px; text-align: center; background: rgba(20,59,70,.35);
}
.nbn-home .nbn-tier__amt {
  font-family: var(--display); font-weight: 800; font-size: 2.1rem;
  color: var(--gold-soft); margin-bottom: .5rem;
}
.nbn-home .nbn-tier__impact { color: rgba(255,255,255,.9); font-size: .95rem; margin: 0; }

/* =========================================================================
   IMPACT STATS (light)
   ========================================================================= */
.nbn-home .nbn-stats { padding-block: 80px; }
.nbn-home .nbn-stats__inner {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: 40px; text-align: center;
}
.nbn-home .nbn-statblock { min-width: 200px; }
.nbn-home .nbn-stat {
  font-family: var(--display); font-weight: 800; line-height: 1;
  font-size: clamp(2.6rem, 5vw, 3.8rem); color: var(--teal-deep); margin-bottom: .4rem;
}
.nbn-home .nbn-statlabel { color: var(--muted); margin: 0; letter-spacing: .3px; }
.nbn-home .nbn-stats__sep { width: 1px; height: 64px; background: var(--line); }

/* =========================================================================
   REVIEWS (light)
   ========================================================================= */
.nbn-home .nbn-reviews { padding-top: 96px; padding-bottom: 52px; }
.nbn-home .nbn-reviews__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.nbn-home .nbn-review {
  background: var(--paper); border: 1px solid var(--line); border-radius: 4px;
  padding: 32px 28px; margin: 0;
}
.nbn-home .nbn-review .nbn-stars { display: block; font-size: 1.05rem; margin-bottom: 14px; color: var(--gold); }
.nbn-home .nbn-review p { font-size: 1.05rem; color: var(--ink); }
.nbn-home .nbn-review cite {
  font-style: normal; font-weight: 700; color: var(--muted);
  font-size: .9rem; letter-spacing: .3px;
}

/* =========================================================================
   BOOK (FareHarbor placeholder)
   ========================================================================= */
.nbn-home .nbn-book { padding-top: 52px; padding-bottom: 96px; text-align: center; }
.nbn-home .nbn-book__inner { max-width: 820px; margin-inline: auto; }
.nbn-home .nbn-book h2 { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: .5em; }
.nbn-home .nbn-book h2 .nbn-script { font-size: clamp(2.6rem, 5.5vw, 3.6rem); }
.nbn-home .nbn-book__sub { color: var(--muted); font-size: 1.1rem; margin-bottom: 2rem; }
.nbn-home .nbn-fareharbor {
  border: 2px dashed var(--gold); border-radius: 4px; background: var(--paper);
  padding: 56px 24px; color: var(--muted);
}
.nbn-home .nbn-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-home .nbn-fareharbor p { margin: 0; }

/* Footer (.nbn-footer*) now lives in assets/css/layout.css, shared site-wide. */

/* =========================================================================
   ELEVATION  —  motion, editorial structure, crafted detail
   ========================================================================= */

/* Scroll-reveal: elements rise + fade as they enter the viewport (JS adds .is-in) */
.nbn-home .nbn-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .8s cubic-bezier(.16,.7,.2,1), transform .8s cubic-bezier(.16,.7,.2,1);
  transition-delay: var(--d, 0s);
}
.nbn-home .nbn-reveal.is-in { opacity: 1; transform: none; }

/* Header sticky/scrolled state (.nbn-header.is-stuck) lives in layout.css. */

/* Eyebrow rule gets a brighter teal lead-in dot for a crafted pop */
.nbn-home .nbn-eyebrow::before,
.nbn-home .nbn-eyebrow--center::after {
  background: linear-gradient(90deg, var(--teal), currentColor);
}

/* Encounter cards — taller imagery, overlapping gold price badge, deeper lift */
.nbn-home .nbn-card { position: relative; box-shadow: 0 14px 40px -28px rgba(10,61,73,.5); }
.nbn-home .nbn-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 40px 70px -36px rgba(10,61,73,.55);
  border-color: var(--gold);
}
.nbn-home .nbn-card__media { aspect-ratio: 5 / 4; }
.nbn-home .nbn-card:hover .nbn-card__media img { transform: scale(1.08); }
.nbn-home .nbn-card__media img { transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.nbn-home .nbn-card__price {
  position: absolute; top: -26px; right: 18px; z-index: 2;
  margin: 0; padding: 12px 18px; font-size: 1.35rem; color: #fff;
  background: var(--teal-deep); border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 14px 30px -16px rgba(10,61,73,.7);
}
.nbn-home .nbn-card__body { position: relative; padding-top: 34px; }
.nbn-home .nbn-card__body::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 40px; height: 2px; background: var(--gold);
}

/* Photo bands — vertical gold accent rule beside the text, bigger type */
.nbn-home .nbn-band__text { padding-left: 26px; border-left: 2px solid var(--gold-soft); }
.nbn-home .nbn-band--right .nbn-band__text {
  padding-left: 0; padding-right: 26px; border-left: 0; border-right: 2px solid var(--gold-soft); text-align: right;
}
.nbn-home .nbn-band--right .nbn-band__text .nbn-eyebrow { flex-direction: row-reverse; }
.nbn-home .nbn-band__text h2 { font-size: clamp(2.4rem, 5.5vw, 3.6rem); }

/* Impact stats — count-up numbers, brighter, with a gold "ticked" feel */
.nbn-home .nbn-stat { letter-spacing: -1px; }
.nbn-home .nbn-statblock { position: relative; padding-top: 18px; }
.nbn-home .nbn-statblock::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 34px; height: 3px; background: var(--gold);
}

/* =========================================================================
   SPONSORS — scrolling supporter logos (seamless marquee)
   ========================================================================= */
.nbn-home .nbn-sponsors {
  padding-block: 72px; background: var(--paper);
  border-top: 1px solid var(--line); overflow: hidden;
}
.nbn-home .nbn-sponsors__head { text-align: center; margin-bottom: 42px; }
.nbn-home .nbn-sponsors__head h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); }
.nbn-home .nbn-sponsors__head h2 .nbn-script { font-size: clamp(2.1rem, 4.6vw, 2.9rem); }
.nbn-home .nbn-marquee {
  position: relative; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.nbn-home .nbn-marquee__track {
  display: flex; width: max-content; align-items: center;
  animation: nbn-marquee 48s linear infinite;
}
.nbn-home .nbn-marquee:hover .nbn-marquee__track { animation-play-state: paused; }
@keyframes nbn-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.nbn-home .nbn-sponsor { flex: 0 0 auto; height: 56px; margin-right: 70px; display: flex; align-items: center; }
.nbn-home .nbn-sponsor img {
  max-height: 56px; width: auto; object-fit: contain;
  filter: grayscale(1); opacity: .6; transition: filter .25s ease, opacity .25s ease;
}
.nbn-home .nbn-sponsor img:hover { filter: none; opacity: 1; }
.nbn-home .nbn-sponsors__names {
  text-align: center; max-width: 860px; margin: 40px auto 0;
  color: var(--muted); font-size: .92rem;
}

/* Reduce motion: honour user preference */
@media (prefers-reduced-motion: reduce) {
  .nbn-home .nbn-reveal { opacity: 1; transform: none; transition: none; }
  .nbn-home .nbn-hero__bg { animation: none; }
  .nbn-home .nbn-marquee__track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
  .nbn-home .nbn-sponsor { margin: 12px 35px; }
}

/* =========================================================================
   RESPONSIVE  —  breakpoints ~980px and ~560px
   ========================================================================= */
@media (max-width: 980px) {
  .nbn-home .nbn-cards,
  .nbn-home .nbn-reviews__grid { grid-template-columns: 1fr 1fr; }
  .nbn-home .nbn-tiers { grid-template-columns: 1fr 1fr; }
  .nbn-home .nbn-band__text { max-width: 100%; }
  .nbn-home .nbn-band--right .nbn-band__inner { justify-content: flex-start; }
  .nbn-home .nbn-band--right .nbn-band__text {
    text-align: left; padding-right: 0; padding-left: 26px;
    border-right: 0; border-left: 2px solid var(--gold-soft);
  }
  .nbn-home .nbn-band--right .nbn-band__text .nbn-eyebrow { flex-direction: row; }
  .nbn-home .nbn-help { background-attachment: scroll; }
  .nbn-home .nbn-stats__sep { display: none; }
}

@media (max-width: 560px) {
  .nbn-home { font-size: 16px; }
  .nbn-home .nbn-hero { min-height: clamp(500px, 80vh, 640px); }
  .nbn-home .nbn-hero__inner { padding-block: 44px; }
  .nbn-home .nbn-hero__cta { flex-direction: column; align-items: stretch; }
  .nbn-home .nbn-hero__cta .nbn-btn { justify-content: center; }
  .nbn-home .nbn-cards,
  .nbn-home .nbn-reviews__grid,
  .nbn-home .nbn-tiers { grid-template-columns: 1fr; }
  .nbn-home .nbn-intro,
  .nbn-home .nbn-encounters,
  .nbn-home .nbn-reviews,
  .nbn-home .nbn-book,
  .nbn-home .nbn-help { padding-block: 64px; }
  .nbn-home .nbn-band { min-height: 78vh; }
}
