/* ============================================================
   THE CONFLUENCE COLLECTION — CSS CUSTOM PROPERTIES
   From theme-test.html prototype lines 26-81
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400;1,700&family=Source+Sans+3:wght@300;400;600&display=swap');

:root {
  /* === HYBRID — The Confluence Collection (Brand Umbrella) === */
  --hybrid:       #0d1218;
  --hybrid2:      #0f1e22;
  --hybrid3:      #121f25;
  --hybrid4:      #15252b;
  --hybrid-deep:  #080c10;

  /* === FOREST — MFL (Montana Fly Fishing Lodge) === */
  --forest:       #0d1a14;
  --forest2:      #142b1c;
  --forest3:      #1a3523;
  --forest4:      #223d2a;
  --forest-deep:  #080f0b;

  /* === MARINE — SFL (Spring Creek Lodge) === */
  --marine:       #060d12;
  --marine2:      #0a1a24;
  --marine3:      #102839;
  --marine4:      #16334a;
  --marine5:      #1c3f5a;

  /* === BURGUNDY — BFL (Bighorn River Fly Fishing Lodge) — DISABLED ===
  --burgundy-deep:#080405;
  --burgundy:     #0f0709;
  --burgundy2:    #1a0c10;
  --burgundy3:    #261218;
  --burgundy4:    #311820;
  --burgundy5:    #3d1e28;
  === */

  /* === SHARED ACCENTS === */
  --gold:         #c8b98a;
  --gold-lt:      #ddd0a8;
  --gold-dk:      #9e8f5f;
  --sage:         #5c8a6e;
  --sage-lt:      #7aab8a;
  --sage-dk:      #3d6b52;
  --copper:       #c87a6a;
  --copper-lt:    #d99585;
  --copper-dk:    #8e5548;

  /* === TEXT ===
     --cream-dim powers most body copy on dark forest backgrounds.
     Bumped 0.75 → 0.88 (2026-04-20) for readability on lodge cards
     and anywhere the muted cream was landing too soft against the
     forest gradients. Preserves visual hierarchy (still softer than
     full --cream) but restores contrast. Applied site-wide via the
     token cascade — no per-component edits needed beyond re-pointing
     a couple of hardcoded rgba() values to the variable. */
  --cream:        #e8e0d0;
  --cream-dim:    rgba(232,224,208,0.96);
  --cream-faint:  rgba(232,224,208,0.72);
  --cream-ghost:  var(--cream-faint);

  /* === BORDERS === */
  --line:         rgba(255,255,255,0.07);
  --line2:        rgba(255,255,255,0.12);

  /* === LODGE ACCENT COLORS === */
  --mfl-accent:   var(--gold);
  --sfl-accent:   var(--sage);
  /* --bfl-accent:   var(--copper);  DISABLED — BFL not happening */

  /* === FONT FAMILIES === */
  --font-display: 'Playfair Display', serif;
  --font-body:    'Source Sans 3', sans-serif;
}

/* ============================================================
   RESET + BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  /* Disable Chrome's native scroll-anchoring globally. Without this,
     when cross-page navigation lands on an anchor and THEN the hero
     image / webfont loads a moment later, the browser "helpfully"
     adjusts scroll to maintain the previously-visible content — which
     manifests as "land on anchor, pause, scroll further down." This
     is separate from CSS scroll-behavior. Applied at html (the
     scroll container) so the whole document behaves consistently. */
  overflow-anchor: none;
  /* iOS Safari belt + suspenders: body has overflow-x: hidden, but
     iOS Safari sometimes still allows horizontal scroll when child
     content extends past the body box (anchored via position:relative,
     transforms, etc.). overflow-x:clip is the modern equivalent of
     hidden that does NOT create a scroll container — so position:sticky
     keeps working — and it definitively prevents horizontal scroll
     even on iOS. Browser support: 90%+ (Safari 16+, all modern Chrome
     and Firefox). Older browsers fall through to body's overflow-x. */
  overflow-x: clip;
}

body {
  font-family: var(--font-body);
  background: var(--forest);
  color: var(--cream);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: rgba(200,185,138,0.3);
  color: var(--cream);
}

a {
  transition: color 0.2s ease, opacity 0.2s ease;
}

img {
  max-width: 100%;
  height: auto;
}
picture {
  display: block;
}
picture img {
  display: block;
  width: 100%;
  height: auto;
}

/* ============================================================
   NAV — Hybrid palette (brand umbrella), centered logo layout
   ============================================================ */
.mfl-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 48px;
  height: 88px;
  background: rgba(13,18,24,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  gap: 40px;
  transition: background 0.4s ease, border-color 0.4s ease, backdrop-filter 0.4s ease;
}
.mfl-nav.is-scrolled {
  background: rgba(13,18,24,0.3);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-bottom: 1px solid transparent;
}
/* Logo swap on scroll */
.mfl-logo-scroll {
  display: none !important;
  height: 50px;
  width: auto;
  object-fit: contain;
}
.mfl-nav.is-scrolled .mfl-logo-full {
  display: none !important;
}
.mfl-nav.is-scrolled .mfl-logo-scroll {
  display: block !important;
}

/* Homepage: hide nav logo at top, hero logo takes over */
/* Hide nav logo at top on all pages (hero logo takes over) */
.mfl-nav:not(.is-scrolled) .mfl-nav-logo {
  opacity: 0;
  pointer-events: none;
}
.mfl-nav.is-scrolled .mfl-nav-logo {
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.4s ease;
}

/* Hero row — flex layout: text left, logo right */
.mfl-hero-row {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  gap: 48px;
  margin-top: 60px;
}

/* Hero logo — right side on desktop */
.mfl-hero-logo {
  flex-shrink: 0;
  text-align: center;
  transition: opacity 0.3s ease, transform 0.3s ease;
  will-change: opacity, transform;
}
.mfl-hero-logo img {
  height: 260px;
  width: auto;
  filter: drop-shadow(0 4px 24px rgba(0,0,0,0.5));
}

/* Hero content — no extra margin needed with flex row */
.mfl-hero--video .mfl-hero-content {
  margin-top: 0;
}

/* Logo — centered */
.mfl-nav-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  order: 2;
}
.mfl-nav-logo img {
  height: 64px;
  width: auto;
}

/* Nav menus — left and right of logo */
.mfl-nav-menu {
  display: flex;
  gap: 28px;
  list-style: none;
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 600;
  align-items: center;
}
.mfl-nav-left {
  order: 1;
  justify-content: flex-end;
  flex: 1;
}
.mfl-nav-right {
  order: 3;
  justify-content: flex-start;
  flex: 1;
}
.mfl-nav-menu a {
  color: var(--cream-dim);
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
}
.mfl-nav-menu a:hover,
.mfl-nav-menu .current-menu-item > a,
.mfl-nav-menu .current-menu-ancestor > a {
  color: var(--gold);
}

/* Dropdown caret */
.mfl-nav-menu .menu-item-has-children > a::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  margin-left: 6px;
  vertical-align: middle;
  opacity: 0.6;
}

/* Dropdown menus */
.mfl-nav-menu .menu-item-has-children {
  position: relative;
}
.mfl-nav-menu .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: -16px;
  background: var(--hybrid3);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(200,185,138,0.08);
  padding: 12px 0;
  min-width: 220px;
  list-style: none;
  z-index: 200;
}
.mfl-nav-menu .menu-item-has-children:hover > .sub-menu {
  display: block;
}
.mfl-nav-menu .sub-menu li {
  padding: 0;
}
.mfl-nav-menu .sub-menu a {
  display: block;
  padding: 8px 24px;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--cream);
}
.mfl-nav-menu .sub-menu a::after {
  display: none;
}
.mfl-nav-menu .sub-menu a:hover {
  color: var(--gold);
  background: var(--hybrid4);
}

/* Second-level sub-menus */
.mfl-nav-menu .sub-menu .sub-menu {
  top: 0;
  left: 100%;
}

/* Mobile hamburger */
.mfl-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
  order: 4;
}
.mfl-nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--cream);
  transition: all 0.3s;
}

/* ============================================================
   FLOATING ACTION BUTTONS — pinned below nav
   ============================================================ */
.mfl-fab {
  position: fixed;
  top: 120px;
  transition: top 0.3s ease;
  z-index: 100;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 10px 20px;
  border: 1px solid var(--gold);
  color: var(--gold);
  background: rgba(13,18,24,0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.2s, color 0.2s;
}
.mfl-fab:hover {
  background: var(--gold);
  color: var(--hybrid);
}
.mfl-fab-left {
  left: 24px;
  border-radius: 4px;
}
.nav-scrolled .mfl-fab {
  top: 82px;
}
/* WP admin bar pushes everything down ~46px */
.admin-bar .mfl-fab {
  top: 166px;
}
.admin-bar .nav-scrolled .mfl-fab {
  top: 128px;
}
.mfl-fab-right {
  right: 24px;
  border-radius: 4px;
}

/* Phone popover (desktop) */
.mfl-fab-popover {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--forest3);
  border: 1px solid var(--line);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: none;
  padding: 10px 16px;
  border-radius: 4px;
  white-space: nowrap;
}
.mfl-fab-popover.is-visible {
  display: block;
}

/* ============================================================
   SHARED TYPOGRAPHY
   ============================================================ */
.mfl-section-eyebrow {
  font-size:  12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.mfl-section-eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}

.mfl-section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.1;
  color: var(--cream);
  margin-bottom: 20px;
}
.mfl-section-title em {
  color: var(--gold);
  font-style: italic;
}

.mfl-section-lead {
  font-size: 1.2rem;
  line-height: 1.75;
  color: var(--cream);
  font-weight: 600;
  max-width: 560px;
}

/* ============================================================
   HERO
   ============================================================ */
.mfl-hero {
  display: flex;
  align-items: flex-start;
  padding: 80px 48px 72px;
  position: relative;
  overflow: hidden;
  min-height: 520px;
}
.mfl-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 70% 30%, rgba(10,26,36,0.5) 0%, transparent 55%),
    radial-gradient(ellipse at 30% 70%, rgba(92,138,110,0.10) 0%, transparent 50%),
    radial-gradient(ellipse at 20% 80%, rgba(200,185,138,0.06) 0%, transparent 50%),
    linear-gradient(160deg, var(--hybrid) 0%, var(--hybrid2) 40%, var(--hybrid3) 100%);
}
.mfl-hero-texture {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg,
      rgba(200,185,138,0.025) 0px, rgba(200,185,138,0.025) 1px,
      transparent 1px, transparent 48px),
    repeating-linear-gradient(-45deg,
      rgba(200,185,138,0.015) 0px, rgba(200,185,138,0.015) 1px,
      transparent 1px, transparent 48px);
  pointer-events: none;
}

/* Hero video background */
.mfl-hero--video {
  min-height: 85vh;
  align-items: center;
}
.mfl-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.mfl-hero-video-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(13,26,20,0.55) 0%, rgba(13,26,20,0.35) 40%, rgba(13,26,20,0.6) 100%),
    radial-gradient(ellipse at 70% 30%, rgba(10,26,36,0.3) 0%, transparent 55%);
}
.mfl-hero-rule {
  position: absolute;
  top: 0;
  right: 200px;
  width: 1px;
  height: 100%;
  background: linear-gradient(to bottom, transparent,
    rgba(200,185,138,0.12) 30%, rgba(200,185,138,0.12) 70%, transparent);
}
.mfl-hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
}
/* Frosted-glass backdrop on subpage hero content — same treatment as hero
   ghost-button but softer. Keeps headline + subtitle legible against busy
   photo backgrounds without looking like an opaque card. */
/* Frosted-glass backdrop ONLY behind the hero subtitle paragraph.
   Keeps the H1 and CTAs visually clean against the photo, while giving
   the small body text the contrast it needs for legibility. */
.mfl-hero--subpage .mfl-hero-sub {
  background: rgba(13,26,20,0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 18px 24px;
  border-left: 1px solid rgba(200,185,138,0.15);
  border-radius: 2px;
}
@media (max-width: 640px) {
  .mfl-hero--subpage .mfl-hero-sub {
    padding: 14px 18px;
  }
}
.mfl-hero-eyebrow {
  font-size:  12px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.mfl-hero-eyebrow::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}
.mfl-hero-h1 {
  font-family: var(--font-display);
  font-size: clamp(48px, 6.5vw, 76px);
  line-height: 1.05;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 12px;
}
.mfl-hero-h1 em {
  color: var(--gold);
  font-style: italic;
}
.mfl-hero-sub {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.6;
  color: var(--cream);
  font-weight: 400;
  letter-spacing: 0.01em;
  max-width: 500px;
  margin-bottom: 40px;
}
.mfl-hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Section subtitle */
.mfl-section-subtitle {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--cream);
  letter-spacing: 0.01em;
  margin-top: -8px;
  margin-bottom: 32px;
}
.mfl-section-subtitle em {
  color: var(--gold);
  font-style: italic;
}

/* About section — video background */
.mfl-about-video-section {
  position: relative;
  overflow: hidden;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mfl-about-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.mfl-about-video-section.is-playing .mfl-about-video {
  opacity: 1;
}
.mfl-about-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.mfl-about-video-section.is-playing .mfl-about-poster {
  opacity: 0;
  transition: opacity 0.6s ease;
}
.mfl-about-video-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(13,26,20,0.7) 0%, rgba(13,26,20,0.5) 40%, rgba(13,26,20,0.7) 100%);
  transition: opacity 0.6s ease;
}
.mfl-about-video-section.is-playing .mfl-about-video-overlay {
  opacity: 0.6;
}
.mfl-about-video-section .mfl-section-inner {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.mfl-about-video-section.is-playing .mfl-section-inner {
  opacity: 1;
}

/* Play button */
.mfl-video-play-btn {
  position: relative;
  margin: 40px auto 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  background: none;
  border: none;
  color: var(--gold);
  cursor: pointer;
  transition: color 0.3s, transform 0.3s;
}
.mfl-video-play-btn:hover {
  color: var(--gold-lt);
  transform: scale(1.05);
}
.mfl-video-play-btn svg {
  filter: drop-shadow(0 2px 12px rgba(0,0,0,0.5));
}
.mfl-video-play-label {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cream);
  text-shadow: 0 1px 8px rgba(0,0,0,0.6);
}
.mfl-about-video-section.is-playing .mfl-video-play-btn {
  opacity: 1;
}

/* About section content */
.mfl-about-section {
  text-align: left;
}
.mfl-about-content {
  max-width: 600px;
}
.mfl-about-content p {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--cream-dim);
  font-weight: 400;
  letter-spacing: 0.01em;
  margin-bottom: 20px;
}
.mfl-about-content p:last-child {
  margin-bottom: 0;
}
.mfl-about-tagline {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: 0.015em;
  color: var(--cream);
  margin-top: 24px;
  white-space: nowrap;
}
.mfl-about-content--hero p {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--cream);
  line-height: 1.7;
}

/* Sub-page hero — shorter, no background image */
.mfl-hero--subpage {
  min-height: 340px;
  padding-top: 100px;
}
.mfl-hero--subpage .mfl-hero-h1 {
  font-size: clamp(36px, 5vw, 56px);
}
.mfl-hero--subpage .mfl-hero-row {
  margin-top: 0;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  background: var(--gold);
  color: var(--hybrid);
  padding: 14px 36px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  cursor: pointer;
  border: none;
  font-family: var(--font-body);
  transition: background 0.2s;
  text-decoration: none;
  display: inline-block;
}
.btn-primary:hover {
  background: var(--gold-lt);
}

.btn-ghost {
  background: transparent;
  color: var(--cream-dim);
  padding: 14px 36px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--cream-faint);
  font-family: var(--font-body);
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
}
.btn-ghost:hover {
  border-color: var(--cream-dim);
  color: var(--cream);
}

/* ============================================================
   SECTIONS — Forest palette (default for MFL pages)
   ============================================================ */
.mfl-section {
  padding: 100px 48px;
  position: relative;
  overflow: hidden;
}
.mfl-section-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 70% 40%, rgba(92,138,110,0.10) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(200,185,138,0.06) 0%, transparent 50%),
    linear-gradient(160deg, var(--forest) 0%, var(--forest2) 50%, #0a1610 100%);
}
.mfl-section-texture {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg,
      rgba(200,185,138,0.025) 0px, rgba(200,185,138,0.025) 1px,
      transparent 1px, transparent 48px),
    repeating-linear-gradient(-45deg,
      rgba(200,185,138,0.015) 0px, rgba(200,185,138,0.015) 1px,
      transparent 1px, transparent 48px);
  pointer-events: none;
}
.mfl-section-inner {
  position: relative;
  z-index: 2;
  max-width: 1300px;
  margin: 0 auto;
}

/* Hybrid section variant */
.mfl-section.hybrid .mfl-section-bg {
  background:
    radial-gradient(ellipse at 60% 30%, rgba(10,26,36,0.4) 0%, transparent 55%),
    radial-gradient(ellipse at 40% 70%, rgba(92,138,110,0.07) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(200,185,138,0.04) 0%, transparent 50%),
    linear-gradient(160deg, var(--hybrid) 0%, var(--hybrid2) 50%, var(--hybrid3) 100%);
}

/* ============================================================
   TRANSITION ZONES
   ============================================================ */
.mfl-transition-zone {
  height: 80px;
  position: relative;
  overflow: hidden;
}
.mfl-transition-zone.forest-to-hybrid {
  background: linear-gradient(180deg,
    var(--forest2) 0%, #0e1c1a 30%,
    var(--hybrid2) 70%, var(--hybrid) 100%);
}
.mfl-transition-zone.hybrid-to-forest {
  background: linear-gradient(180deg,
    var(--hybrid) 0%, var(--hybrid2) 30%,
    #0e1c1a 70%, var(--forest2) 100%);
}
.mfl-transition-zone.hybrid-to-hybrid {
  /* Same-family transition: hero (hybrid) → calculator (hybrid).
     Holds hybrid2 → hybrid → hybrid2 so the 80px strip reads as a
     continuous atmosphere, not a color shift. */
  background: linear-gradient(180deg,
    var(--hybrid2) 0%, var(--hybrid) 50%, var(--hybrid2) 100%);
}
.mfl-transition-zone.hybrid-to-hybrid4 {
  background: linear-gradient(180deg,
    var(--hybrid) 0%, var(--hybrid3) 40%,
    var(--hybrid4) 100%);
}
.mfl-transition-zone.hybrid4-to-hybrid {
  background: linear-gradient(180deg,
    var(--hybrid4) 0%, var(--hybrid3) 60%,
    var(--hybrid) 100%);
}
.mfl-transition-zone.forest-to-marine {
  background: linear-gradient(180deg,
    var(--forest2) 0%, #0f2220 20%,
    var(--hybrid2) 50%, #0c1c28 80%,
    var(--marine2) 100%);
}
.mfl-transition-zone::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg,
      rgba(200,185,138,0.015) 0px, rgba(200,185,138,0.015) 1px,
      transparent 1px, transparent 48px),
    repeating-linear-gradient(-45deg,
      rgba(200,185,138,0.01) 0px, rgba(200,185,138,0.01) 1px,
      transparent 1px, transparent 48px);
}
.mfl-transition-rule {
  position: absolute;
  left: 50%;
  top: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(to bottom,
    transparent, rgba(200,185,138,0.08), transparent);
}

/* ============================================================
   PAGE CONTENT — Styling for the_content() output
   ============================================================ */
.mfl-page-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 48px 80px;
}
/* When nested inside a .mfl-section, let the section provide vertical padding.
   Prevents stacked 100px (section) + 60px (content) = 160px above the first element. */
.mfl-section .mfl-page-content {
  padding-top: 0;
  padding-bottom: 0;
}

.mfl-page-content h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.1;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 24px;
}

.mfl-page-content h2 {
  font-family: var(--font-display);
  /* Matches .mfl-section-title so WP-content H2s look like hardcoded section titles */
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.1;
  font-weight: 700;
  color: var(--cream);
  margin-top: 48px;
  margin-bottom: 20px;
}
.mfl-page-content > h2:first-child,
.mfl-page-content > h2:first-of-type {
  margin-top: 0; /* lead headline shouldn't stack on top of section padding */
}
.mfl-page-content h2 em {
  color: var(--gold);
  font-style: italic;
}

.mfl-page-content h3 {
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.2;
  color: var(--cream);
  margin-top: 36px;
  margin-bottom: 12px;
}

.mfl-page-content h4 {
  font-family: var(--font-body);
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gold);
  margin-top: 32px;
  margin-bottom: 12px;
}

.mfl-page-content p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--cream-dim);
  font-weight: 400;
  margin-bottom: 20px;
}

.mfl-page-content a {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(200,185,138,0.3);
  transition: border-color 0.2s;
}
.mfl-page-content a:hover {
  border-color: var(--gold);
}

.mfl-page-content ul,
.mfl-page-content ol {
  margin: 0 0 20px 24px;
  color: var(--cream-dim);
  font-weight: 400;
  line-height: 1.75;
}

.mfl-page-content li {
  margin-bottom: 8px;
}

.mfl-page-content img {
  border-radius: 0;
  margin: 24px 0;
}

.mfl-page-content blockquote {
  border-left: 3px solid var(--gold-dk);
  padding: 16px 24px;
  margin: 24px 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  color: var(--cream);
  background: rgba(200,185,138,0.04);
}

/* Wide content variant (for pages with grids/cards) */
.mfl-page-content.wide {
  max-width: 1300px;
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
.mfl-breadcrumb {
  font-size:  12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--cream-faint);
  margin-bottom: 24px;
  /* Visually hidden but accessible to screen readers & search engines */
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.mfl-breadcrumb a {
  color: var(--cream-faint);
  text-decoration: none;
  transition: color 0.2s;
}
.mfl-breadcrumb a:hover {
  color: var(--gold);
}
.mfl-breadcrumb .separator {
  margin: 0 8px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.mfl-footer {
  background: var(--forest-deep);
  border-top: 1px solid var(--line);
  padding: 60px 48px 40px;
}

.mfl-footer-inner {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
}

.mfl-footer-brand {
  margin-bottom: 20px;
}
.mfl-footer-brand img {
  max-width: 200px;
  height: auto;
}
.mfl-footer-brand-text {
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.14em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.mfl-footer-brand-sub {
  font-size: 9px;
  letter-spacing: 0.32em;
  color: var(--gold-dk);
  font-weight: 400;
  text-transform: uppercase;
}

.mfl-footer-social {
  display: flex;
  gap: 10px;
  margin: 20px 0;
}
.mfl-footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
}
.mfl-footer-social a svg rect {
  transition: fill 0.2s;
}
.mfl-footer-social a:hover svg rect {
  fill: var(--gold-lt);
}

.mfl-footer-licenses {
  font-size: 12px;
  line-height: 1.6;
  color: var(--cream-faint);
  font-weight: 400;
}
.mfl-footer-licenses a {
  color: var(--cream-faint);
  text-decoration: none;
}
.mfl-footer-licenses a:hover {
  color: var(--gold);
}

.mfl-footer h4 {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 20px;
}

.mfl-footer-links {
  list-style: none;
  padding: 0;
}
.mfl-footer-links li {
  margin-bottom: 10px;
}
.mfl-footer-links a {
  font-size: 13px;
  color: var(--cream-faint);
  text-decoration: none;
  font-weight: 400;
  transition: color 0.2s;
}
.mfl-footer-links a:hover {
  color: var(--gold);
}

.mfl-footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 13px;
  color: var(--cream-faint);
  font-weight: 400;
}
.mfl-footer-contact-item a {
  color: var(--cream-faint);
  text-decoration: none;
  transition: color 0.2s;
}
.mfl-footer-contact-item a:hover {
  color: var(--gold);
}
.mfl-footer-contact-item svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.mfl-footer-bottom {
  max-width: 1300px;
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 12px;
  color: var(--cream-faint);
  font-weight: 400;
}
