/* ==========================================================================
   Page Theme: Building Belonging (Forest & Gold)
   Loaded only when a Dynamic Page has "Page Theme" = belonging.
   Everything is scoped to .page-theme-belonging (the page content wrapper);
   the site header and footer are intentionally left untouched.

   Editor tips (rich editor):
     - Heading 6        -> letter-spaced uppercase "eyebrow" label
     - Quote (blockquote) inside a hero -> handwritten script accent
     - Section style "Light Blue"  -> warm cream band
     - Section style "Light Green" -> deep forest green band (stats/impact)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Libre+Caslon+Text:ital,wght@0,400;0,700;1,400&family=Inter:wght@400;500;600;700&family=Sacramento&display=swap');

/* Variables + Bootstrap overrides scoped to the page content wrapper only */
.page-theme-belonging {
  --bb-green: #1f3a2a;
  --bb-green-700: #18301f;
  --bb-green-500: #2e5640;
  --bb-gold: #d6a84f;
  --bb-gold-600: #c3933a;
  --bb-cream: #f7f2e8;
  --bb-cream-200: #efe7d7;
  --bb-ink: #2b2a25;
  --bb-muted: #5f5b50;
  --bb-serif: 'Libre Caslon Text', Georgia, 'Times New Roman', serif;
  --bb-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --bb-script: 'Sacramento', cursive;
  --bb-radius: 4px;

  --bs-body-bg: var(--bb-cream);
  --bs-body-color: var(--bb-ink);
  --bs-body-font-family: var(--bb-sans);
  --bs-link-color: var(--bb-green-500);
  --bs-link-color-rgb: 46, 86, 64;
  --bs-link-hover-color: var(--bb-green);
  --bs-link-hover-color-rgb: 31, 58, 42;
  --bs-primary: var(--bb-green);
  --bs-primary-rgb: 31, 58, 42;
  --bs-border-radius: var(--bb-radius);
  background-color: var(--bb-cream);
  color: var(--bb-ink);
  font-family: var(--bb-sans);
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
.page-theme-belonging h1, .page-theme-belonging .h1,
.page-theme-belonging h2, .page-theme-belonging .h2,
.page-theme-belonging h3, .page-theme-belonging .h3,
.page-theme-belonging h4, .page-theme-belonging .h4,
.page-theme-belonging h5, .page-theme-belonging .h5 {
  font-family: var(--bb-serif);
  font-weight: 400;
  letter-spacing: -.01em;
  line-height: 1.15;
  color: inherit;
}

.page-theme-belonging h3 { font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.25rem); }

/* Heading 6 = eyebrow label */
.page-theme-belonging h6, .page-theme-belonging .h6 {
  font-family: var(--bb-sans);
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .32em;
  line-height: 1.8;
  margin-bottom: .75rem;
}

.page-theme-belonging p { line-height: 1.65; }

/* Neutralise pasted inline fonts so the theme owns typography */
.page-theme-belonging [style*="font-family"] { font-family: inherit !important; }
.page-theme-belonging small small { font-size: inherit; }

.page-theme-belonging hr {
  width: 64px;
  margin: 1rem auto 1.5rem;
  border: 0;
  border-top: 2px solid var(--bb-gold);
  opacity: 1;
}

.page-theme-belonging a:not(.btn) {
  color: var(--bb-green-500);
  text-decoration-color: var(--bb-gold);
  text-underline-offset: 3px;
}

.page-theme-belonging .bb-script,
.page-theme-belonging .hero blockquote {
  font-family: var(--bb-script);
  font-size: clamp(2rem, 1.4rem + 1.6vw, 2.9rem);
  line-height: 1.05;
  font-weight: 400;
  letter-spacing: 0;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.page-theme-belonging .btn {
  --bs-btn-font-family: var(--bb-sans);
  --bs-btn-font-size: .92rem;
  --bs-btn-font-weight: 600;
  --bs-btn-padding-x: 1.4rem;
  --bs-btn-padding-y: .7rem;
  --bs-btn-border-radius: var(--bb-radius);
  --bs-btn-border-width: 1.5px;
  text-transform: none;
  letter-spacing: .01em;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}

.page-theme-belonging .btn:hover { transform: translateY(-1px); }

.page-theme-belonging .btn-primary {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--bb-green);
  --bs-btn-border-color: var(--bb-green);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--bb-green-500);
  --bs-btn-hover-border-color: var(--bb-green-500);
  --bs-btn-active-bg: var(--bb-green-700);
  --bs-btn-active-border-color: var(--bb-green-700);
  --bs-btn-focus-shadow-rgb: 31, 58, 42;
}

.page-theme-belonging .btn-secondary {
  --bs-btn-color: var(--bb-green-700);
  --bs-btn-bg: var(--bb-gold);
  --bs-btn-border-color: var(--bb-gold);
  --bs-btn-hover-color: var(--bb-green-700);
  --bs-btn-hover-bg: var(--bb-gold-600);
  --bs-btn-hover-border-color: var(--bb-gold-600);
  --bs-btn-active-color: var(--bb-green-700);
  --bs-btn-active-bg: var(--bb-gold-600);
  --bs-btn-active-border-color: var(--bb-gold-600);
  --bs-btn-focus-shadow-rgb: 214, 168, 79;
}

.page-theme-belonging .btn-outline-primary {
  --bs-btn-color: var(--bb-green);
  --bs-btn-border-color: var(--bb-green);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--bb-green);
  --bs-btn-hover-border-color: var(--bb-green);
  --bs-btn-active-bg: var(--bb-green);
  --bs-btn-active-border-color: var(--bb-green);
}

.page-theme-belonging .btn-outline-secondary {
  --bs-btn-color: var(--bb-gold-600);
  --bs-btn-border-color: var(--bb-gold);
  --bs-btn-hover-color: var(--bb-green-700);
  --bs-btn-hover-bg: var(--bb-gold);
  --bs-btn-hover-border-color: var(--bb-gold);
}

/* Arrow on content (non-hero) call-to-action buttons */
.page-theme-belonging section .btn::after {
  content: "\2192";
  display: inline-block;
  margin-left: .55em;
  transition: transform .2s ease;
}

.page-theme-belonging section .btn:hover::after { transform: translateX(3px); }

/* --------------------------------------------------------------------------
   Sections & bands
   -------------------------------------------------------------------------- */
.page-theme-belonging section {
  padding: clamp(3rem, 2rem + 3vw, 5.5rem) 1rem;
  background-color: var(--bb-cream);
  position: relative;
  isolation: isolate;
}

.page-theme-belonging section + section:not([class*="bg-"]) {
  border-top: 1px solid rgba(31, 58, 42, .07);
}

/* "Light Blue" -> warm cream band */
.page-theme-belonging .bg-primary-subtle {
  background-color: var(--bb-cream-200) !important;
}

/* "Light Green" -> deep forest band */
.page-theme-belonging .bg-success-subtle {
  background-color: var(--bb-green) !important;
  color: var(--bb-cream);
}

.page-theme-belonging .bg-success-subtle a:not(.btn) { color: var(--bb-gold); }
/* Gold CTA on the dark band */
.page-theme-belonging .bg-success-subtle .btn-primary {
  --bs-btn-color: var(--bb-green-700);
  --bs-btn-bg: var(--bb-gold);
  --bs-btn-border-color: var(--bb-gold);
  --bs-btn-hover-color: var(--bb-green-700);
  --bs-btn-hover-bg: var(--bb-gold-600);
  --bs-btn-hover-border-color: var(--bb-gold-600);
}

/* Stat cards inside a forest band become open numbers with dividers */
.page-theme-belonging .bg-success-subtle .card {
  background: transparent;
  box-shadow: none !important;
  color: inherit;
  border-radius: 0;
}

.page-theme-belonging .bg-success-subtle .card .card-body { padding: .5rem 1rem; }

.page-theme-belonging .bg-success-subtle .card h3,
.page-theme-belonging .bg-success-subtle .card h3 span {
  font-size: clamp(2.4rem, 1.8rem + 1.8vw, 3.4rem) !important;
  margin-bottom: .25rem;
}

.page-theme-belonging .bg-success-subtle .card p { opacity: .85; }

@media (min-width: 992px) {
  .page-theme-belonging .bg-success-subtle .col:has(> .card) + .col:has(> .card) .card {
    border-left: 1px solid rgba(247, 242, 232, .25);
  }
}

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */
.page-theme-belonging .card {
  --bs-card-border-radius: var(--bb-radius);
  --bs-card-inner-border-radius: var(--bb-radius);
  background-color: #fff;
  border: 1px solid rgba(31, 58, 42, .06);
  box-shadow: 0 10px 30px -12px rgba(31, 42, 30, .18) !important;
  height: 100%;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}

.page-theme-belonging .col:has(> .card) { display: flex; flex-direction: column; }

.page-theme-belonging section:not(.bg-success-subtle) .card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -14px rgba(31, 42, 30, .25) !important;
}

.page-theme-belonging .card-img-top {
  border-radius: 0;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.page-theme-belonging .card-body {
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.5rem 1.25rem;
  text-align: center;
}

/* Pin the button row to the bottom so buttons line up across cards
   (overrides Bootstrap's .my-2 !important on the buttons wrapper) */
.page-theme-belonging .card-body > .d-flex:last-child {
  margin-top: auto !important;
  padding-top: .75rem;
}

/* Drop empty trailing paragraphs pasted from the editor */
.page-theme-belonging .card-body > p:has(> br:only-child) { display: none; }

/* Card buttons: larger, easy-to-tap call-to-actions */
.page-theme-belonging .card .btn {
  --bs-btn-font-size: 1.05rem;
  --bs-btn-padding-x: 2rem;
  --bs-btn-padding-y: .85rem;
  --bs-btn-border-width: 2px;
  min-width: 180px;
  font-weight: 600;
}

/* Icon badges (giving cards) */
.page-theme-belonging .large-icon {
  width: 72px;
  font-size: 2rem;
  background-color: var(--bb-cream-200);
  color: var(--bb-gold-600);
  margin-bottom: 1rem;
}

.page-theme-belonging .small-icon {
  background-color: var(--bb-cream-200);
  color: var(--bb-gold-600);
}

.page-theme-belonging .card .fs-3 {
  font-family: var(--bb-serif);
  font-size: 2rem !important;
  color: var(--bb-green);
}

/* Media */
.page-theme-belonging section img.img-fluid,
.page-theme-belonging section .col > p img,
.page-theme-belonging section video {
  border-radius: var(--bb-radius);
  box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .35);
}

.page-theme-belonging section video { width: 100%; background: #000; }

/* Video Embed snippet (YouTube or file): frame the wrapper, not the inner element */
.page-theme-belonging .video-embed {
  border-radius: var(--bb-radius);
  overflow: hidden;
  background: #000;
  box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .35);
}

.page-theme-belonging .video-embed video {
  border-radius: 0;
  box-shadow: none;
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   Hero: divided layout -> full-bleed photo with forest gradient
   -------------------------------------------------------------------------- */
.page-theme-belonging .hero {
  --hero-min-height: min(82vh, 760px);
  background: var(--bb-green);
  color: #fff;
  overflow: hidden;
}

.page-theme-belonging .hero .hero-media-border { display: none; }

.page-theme-belonging .hero h1 {
  font-size: clamp(3rem, 1.8rem + 4.5vw, 6rem);
  line-height: 1;
  margin-bottom: 1.25rem;
}

.page-theme-belonging .hero h2,
.page-theme-belonging .hero h3 {
  font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem);
}

.page-theme-belonging .hero h6 {
  font-size: clamp(.9rem, .7rem + .6vw, 1.35rem);
  letter-spacing: .5em;
  margin-bottom: .25rem;
}

.page-theme-belonging .hero p { color: rgba(255, 255, 255, .9); }

.page-theme-belonging .hero p strong { color: #fff; }

/* On dark heroes the primary button is a light outline, secondary is gold */
.page-theme-belonging .hero .btn-primary,
.page-theme-belonging .hero .btn-outline-primary,
.page-theme-belonging .hero .btn-outline-light {
  --bs-btn-color: #fff;
  --bs-btn-bg: rgba(24, 48, 31, .35);
  --bs-btn-border-color: rgba(255, 255, 255, .85);
  --bs-btn-hover-color: var(--bb-green-700);
  --bs-btn-hover-bg: #fff;
  --bs-btn-hover-border-color: #fff;
  --bs-btn-active-color: var(--bb-green-700);
  --bs-btn-active-bg: #fff;
}

.page-theme-belonging .hero .btn-secondary { box-shadow: 0 8px 20px -10px rgba(0, 0, 0, .5); }

@media (min-width: 992px) {
  .page-theme-belonging .hero:not(.overlay) .hero-row {
    position: absolute;
    inset: 0;
  }

  .page-theme-belonging .hero:not(.overlay) .hero-media-col {
    flex: 0 0 100%;
    max-width: 100%;
    width: 100%;
    height: 100%;
  }

  .page-theme-belonging .hero:not(.overlay) .hero-media {
    clip-path: none;
    width: 100%;
    height: 100%;
  }

  .page-theme-belonging .hero:not(.overlay) .hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
      linear-gradient(90deg, rgba(24, 48, 31, .95) 0%, rgba(24, 48, 31, .82) 30%, rgba(24, 48, 31, .35) 55%, rgba(24, 48, 31, 0) 75%),
      linear-gradient(0deg, rgba(24, 48, 31, .55) 0%, rgba(24, 48, 31, 0) 35%);
    pointer-events: none;
  }

  .page-theme-belonging .hero:not(.overlay) .hero-image {
    aspect-ratio: auto;
    height: 100%;
    min-height: var(--hero-min-height);
    object-position: 70% center;
  }

  .page-theme-belonging .hero:not(.overlay) .hero-content-row {
    min-height: var(--hero-min-height);
  }

  .page-theme-belonging .hero:not(.overlay) .hero-content .content {
    padding: 4rem 0;
  }

  /* Script accent floats bottom-right over the photo */
  .page-theme-belonging .hero:not(.overlay) blockquote {
    position: absolute;
    right: 4%;
    bottom: 8%;
    max-width: 16ch;
    transform: rotate(-12deg);
    text-align: right;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .35);
  }
}

@media (max-width: 991.98px) {
  .page-theme-belonging .hero:not(.overlay) .hero-media { clip-path: none; position: relative; }

  .page-theme-belonging .hero:not(.overlay) .hero-image {
    aspect-ratio: 4 / 3;
    min-height: 0;
  }

  .page-theme-belonging .hero:not(.overlay) .hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, var(--bb-green) 0%, rgba(31, 58, 42, 0) 45%);
  }

  .page-theme-belonging .hero:not(.overlay) .hero-content {
    position: relative;
    margin-top: -4rem;
    padding: 0 1.5rem 2.5rem;
  }

  .page-theme-belonging .hero blockquote { margin-top: 1rem; }
}

/* --------------------------------------------------------------------------
   Hero: overlay layout -> warm photographic CTA band
   -------------------------------------------------------------------------- */
.page-theme-belonging .hero.overlay {
  --hero-min-height: 46vh;
  background: var(--bb-green-700);
}

.page-theme-belonging .hero.overlay .hero-image,
.page-theme-belonging .hero.overlay .hero-media .carousel-item > img {
  opacity: 1;
  mix-blend-mode: normal;
  aspect-ratio: auto;
}

.page-theme-belonging .hero.overlay .hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(24, 48, 31, .8) 0%, rgba(24, 48, 31, .45) 55%, rgba(24, 48, 31, .3) 100%);
}

.page-theme-belonging .hero.overlay .hero-content { padding: 4rem 1rem; }

.page-theme-belonging .hero.overlay h2,
.page-theme-belonging .hero.overlay h3 {
  font-size: clamp(1.9rem, 1.3rem + 2vw, 3rem);
  text-shadow: 0 2px 18px rgba(0, 0, 0, .3);
}

.page-theme-belonging .hero.overlay blockquote {
  position: absolute;
  left: 4%;
  top: 50%;
  transform: translateY(-50%) rotate(-10deg);
  max-width: 14ch;
  text-align: left;
  color: #fff;
}

@media (max-width: 991.98px) {
  .page-theme-belonging .hero.overlay blockquote { position: static; transform: none; margin: 0 auto 1rem; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .page-theme-belonging *, .page-theme-belonging *::after { transition: none !important; }
  .page-theme-belonging .btn:hover,
  .page-theme-belonging .card:hover { transform: none !important; }
}
