/* ============================================================
   Now & Zen Wellness — Design System
   ============================================================ */

:root {
  /* Brand Greens */
  --sage-leaf: #5D6B52;
  --deep-forest: #4F6C4D;
  --herbal-moss: #56694E;

  /* Highlights & Neutrals */
  --zen-sand: #F8EDCC;
  --soft-sage-mist: #B9C3A3;

  /* Earthy browns */
  --earth-bark: #403C2D;
  --weathered-olive: #7D795F;
  --charcoal-olive: #38362B;

  /* Deep accent */
  --midnight-slate: #0F172A;

  /* Paper tones */
  --paper: #FBF7EC;
  --paper-warm: #F4EEDE;
  --paper-deep: #EDE5CE;

  /* Typography */
  --font-serif: 'Cormorant Garamond', 'Cormorant', Georgia, serif;
  --font-sans: 'Lato', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius-sm: 4px;
  --radius-md: 10px;
  --radius-lg: 18px;

  --shadow-sm: 0 2px 10px rgba(64, 60, 45, 0.08);
  --shadow-md: 0 8px 24px rgba(64, 60, 45, 0.10);
  --shadow-lg: 0 20px 50px rgba(64, 60, 45, 0.15);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--earth-bark);
  background: var(--paper);
  line-height: 1.65;
  font-size: 17px;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--earth-bark);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.005em;
}

h1 { font-size: clamp(2.6rem, 5.5vw, 4.8rem); }
h2 { font-size: clamp(2rem, 3.8vw, 3.2rem); }
h3 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); }
h4 { font-size: 1.25rem; }

p { max-width: 65ch; }
a { color: var(--deep-forest); text-decoration: none; }
a:hover { color: var(--earth-bark); }

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

/* ============================================================
   Layout helpers
   ============================================================ */
.container { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.container-wide { max-width: 1440px; margin: 0 auto; padding: 0 32px; }
.container-narrow { max-width: 780px; margin: 0 auto; padding: 0 32px; }

.eyebrow {
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--herbal-moss);
}

.lede {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 1.8vw, 1.6rem);
  font-style: italic;
  line-height: 1.5;
  color: var(--weathered-olive);
  font-weight: 400;
}

/* ============================================================
   HEADER — transparent, floats over hero, solidifies on scroll
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background 0.4s ease, backdrop-filter 0.4s ease,
              box-shadow 0.4s ease, padding 0.3s ease;
  background: transparent;
}
.site-header.scrolled {
  background: rgba(251, 247, 236, 0.92);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  box-shadow: 0 1px 0 rgba(64, 60, 45, 0.08);
  padding: 10px 0;
}

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px;
  max-width: 1440px; margin: 0 auto; padding: 0 32px;
  min-height: 76px;
}
.site-header.scrolled .header-inner { min-height: 66px; }
@media (max-width: 640px) {
  .header-inner { min-height: 60px; padding: 0 18px; gap: 12px; }
}

.brand {
  display: inline-flex; align-items: center; gap: 12px;
  text-decoration: none; color: inherit;
  flex-shrink: 0;
  min-width: 0;
}

/* ------------------------------------------------------------
   Logo sizing — covers both theme default <img> and WordPress's
   the_custom_logo() output (<a class="custom-logo-link"><img
   class="custom-logo">). Caps the image on every breakpoint so an
   oversized upload can't blow out the header.
   ------------------------------------------------------------ */
.brand img,
.brand .custom-logo,
.brand .custom-logo-link,
.brand .custom-logo-link img,
.site-header .custom-logo-link,
.site-header .custom-logo {
  display: block;
  height: 56px;
  width: auto;
  max-width: 260px;
  max-height: 64px;
  object-fit: contain;
  transition: height 0.3s ease, max-height 0.3s ease;
}

/* the <a class="custom-logo-link"> WordPress inserts needs its own
   sizing since the <img> lives inside it. Reset its default margins. */
.brand .custom-logo-link,
.site-header .custom-logo-link {
  margin: 0;
  padding: 0;
  line-height: 0;
}

/* Scrolled / compact header — slightly smaller logo */
.site-header.scrolled .brand img,
.site-header.scrolled .brand .custom-logo,
.site-header.scrolled .brand .custom-logo-link img {
  height: 46px;
  max-height: 52px;
}

/* Tablet */
@media (max-width: 1100px) {
  .brand img,
  .brand .custom-logo,
  .brand .custom-logo-link img {
    height: 48px;
    max-width: 220px;
    max-height: 54px;
  }
  .site-header.scrolled .brand img,
  .site-header.scrolled .brand .custom-logo,
  .site-header.scrolled .brand .custom-logo-link img {
    height: 42px;
    max-height: 48px;
  }
}

/* Mobile */
@media (max-width: 640px) {
  .brand img,
  .brand .custom-logo,
  .brand .custom-logo-link img {
    height: 40px;
    max-width: 180px;
    max-height: 46px;
  }
  .site-header.scrolled .brand img,
  .site-header.scrolled .brand .custom-logo,
  .site-header.scrolled .brand .custom-logo-link img {
    height: 36px;
    max-height: 42px;
  }
}

.brand-text {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--earth-bark);
  line-height: 1.05;
  letter-spacing: 0.01em;
}
.brand-text small {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--weathered-olive);
  margin-top: 2px;
  font-weight: 600;
}

/* Nav */
.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ------------------------------------------------------------
   WordPress-nav safety reset
   The walker in functions.php emits <div class="nav-item"> siblings,
   but we also reset any <ul>/<li> that could leak from:
     • A third-party plugin running wp_nav_menu with no walker
     • WP core's fallback when a menu_class is applied
   Result: horizontal, no bullets, same spacing as the designed nav.
   ------------------------------------------------------------ */
.primary-menu,
.nav .menu,
.nav ul {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav li,
.primary-menu li {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}
/* If someone lands up with plain <li><a></a></li>, give the anchor
   the same styling as .nav-link so the nav still reads right. */
.nav ul > li > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--earth-bark);
  transition: color 0.2s;
}
.nav ul ul {
  position: absolute;
  top: calc(100% + 4px); left: 50%;
  transform: translateX(-50%) translateY(6px);
  flex-direction: column;
  min-width: 220px;
  background: var(--paper);
  border: 1px solid rgba(64, 60, 45, 0.10);
  border-radius: var(--radius-md);
  padding: 10px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}
.nav ul li:hover > ul,
.nav ul li:focus-within > ul {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav ul ul li { width: 100%; }
.nav ul ul a {
  display: block;
  padding: 9px 14px;
  font-size: 0.9rem;
  color: var(--earth-bark);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-weight: 500;
}
.nav ul ul a:hover { background: var(--paper-deep); color: var(--deep-forest); }

.nav-item {
  position: relative;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--earth-bark);
  letter-spacing: 0.04em;
  border-radius: var(--radius-sm);
  transition: color 0.2s;
  cursor: pointer;
}
/* On transparent header over dark-ish hero, text stays dark because
   the hero has a cream wash. If on darker imagery, add .header-light modifier */
.site-header.header-on-dark:not(.scrolled) .nav-link,
.site-header.header-on-dark:not(.scrolled) .brand-text,
.site-header.header-on-dark:not(.scrolled) .brand-text small {
  color: #FBF7EC;
}
.site-header.header-on-dark:not(.scrolled) .brand-text small {
  color: rgba(251,247,236,0.8);
}

.nav-link:hover { color: var(--deep-forest); }
.nav-link .chev { font-size: 0.65rem; opacity: 0.7; transition: transform 0.2s; }
.nav-item:hover .chev { transform: rotate(180deg); }

.dropdown {
  position: absolute;
  top: calc(100% + 4px); left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 220px;
  background: var(--paper);
  border: 1px solid rgba(64,60,45,0.10);
  border-radius: var(--radius-md);
  padding: 10px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}
.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.dropdown a {
  display: block;
  padding: 9px 14px;
  font-size: 0.9rem;
  color: var(--earth-bark);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-weight: 500;
}
.dropdown a:hover {
  background: var(--paper-deep);
  color: var(--deep-forest);
}

.nav-cta {
  margin-left: 12px;
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  background: none; border: 1px solid rgba(64,60,45,0.2);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  color: inherit;
  font-size: 1.1rem;
  cursor: pointer;
}

@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; top: 0; right: -100%;
    width: min(85vw, 360px); height: 100vh;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 96px 24px 24px;
    background: var(--paper);
    box-shadow: var(--shadow-lg);
    transition: right 0.35s ease;
    overflow-y: auto;
  }
  .nav.open { right: 0; }

  /* Flatten the inner menu container + any ul/li into a vertical stack */
  .nav .primary-menu,
  .nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
  }
  .nav ul ul {
    position: static;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 0 0 8px 16px;
    min-width: 0;
  }
  .nav .nav-item { width: 100%; }

  .nav-link, .dropdown a, .dropdown-link { padding: 14px 12px; font-size: 1rem; }
  .nav-link .chev { margin-left: auto; }

  .dropdown {
    position: static;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 0 0 8px 16px;
    min-width: 0;
  }
  .nav-cta { margin-left: 0; margin-top: 12px; align-self: flex-start; }
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all 0.25s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--deep-forest);
  color: var(--paper);
  border-color: var(--deep-forest);
}
.btn-primary:hover {
  background: var(--earth-bark);
  border-color: var(--earth-bark);
  color: var(--zen-sand);
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  color: var(--earth-bark);
  border-color: var(--earth-bark);
}
.btn-outline:hover {
  background: var(--earth-bark);
  color: var(--paper);
}
.btn-sand {
  background: var(--zen-sand);
  color: var(--earth-bark);
  border-color: var(--zen-sand);
}
.btn-sand:hover {
  background: var(--earth-bark);
  color: var(--zen-sand);
  border-color: var(--earth-bark);
}
.btn-ghost-light {
  background: rgba(255,255,255,0.12);
  color: #FBF7EC;
  border-color: rgba(251,247,236,0.55);
  backdrop-filter: blur(6px);
}
.btn-ghost-light:hover {
  background: #FBF7EC;
  color: var(--earth-bark);
}
.btn-sm { padding: 10px 20px; font-size: 0.82rem; }

/* ============================================================
   Sections
   ============================================================ */
section { padding: 110px 0; position: relative; }
.sec-sand { background: var(--paper-warm); }
.sec-mist { background: var(--soft-sage-mist); }
.sec-forest { background: var(--deep-forest); color: var(--zen-sand); }
.sec-forest h1, .sec-forest h2, .sec-forest h3 { color: var(--zen-sand); }
.sec-bark { background: var(--earth-bark); color: var(--zen-sand); }
.sec-bark h1, .sec-bark h2, .sec-bark h3 { color: var(--zen-sand); }

.section-head {
  text-align: center; max-width: 780px; margin: 0 auto 60px;
}
.section-head .eyebrow { margin-bottom: 14px; display: block; }
.section-head h2 { margin-bottom: 18px; }
.section-head p {
  margin: 0 auto; color: var(--weathered-olive);
  text-wrap: pretty; font-size: 1.08rem;
}

/* ============================================================
   Watercolor / decorative layers
   ============================================================ */
.watercolor-bg {
  position: absolute; inset: 0;
  pointer-events: none; overflow: hidden;
  z-index: 0;
}
.wc-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  mix-blend-mode: multiply;
}

.leaf-divider {
  display: flex; align-items: center; justify-content: center;
  gap: 20px;
  color: var(--herbal-moss);
  margin: 20px auto 36px;
  max-width: 240px;
}
.leaf-divider::before,
.leaf-divider::after {
  content: ''; flex: 1; height: 1px;
  background: currentColor; opacity: 0.4;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--earth-bark);
  color: var(--soft-sage-mist);
  padding: 80px 0 30px;
  position: relative;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 50px;
}
.footer-grid h4 {
  color: var(--zen-sand);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 18px;
}
.footer-grid a {
  color: var(--soft-sage-mist);
  display: block;
  padding: 5px 0;
  font-size: 0.95rem;
}
.footer-grid a:hover { color: var(--zen-sand); }
.footer-brand p {
  color: var(--soft-sage-mist);
  font-size: 0.95rem;
  margin-top: 14px;
  font-style: italic;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  line-height: 1.5;
}
.footer-bottom {
  border-top: 1px solid rgba(185,195,163,0.2);
  padding-top: 26px;
  display: flex; justify-content: space-between;
  align-items: center; gap: 20px;
  color: var(--weathered-olive);
  font-size: 0.85rem;
  flex-wrap: wrap;
}
.footer-bottom a { color: var(--soft-sage-mist); }
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

/* ============================================================
   Utility — fade-in on scroll
   ============================================================ */
.fade-in {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   Tweaks Panel
   ============================================================ */
.tweaks-panel {
  position: fixed; bottom: 20px; right: 20px;
  z-index: 999;
  background: var(--paper);
  border: 1px solid rgba(64,60,45,0.12);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-lg);
  width: 300px;
  font-family: var(--font-sans);
  display: none;
}
.tweaks-panel.active { display: block; }
.tweaks-panel h4 {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--weathered-olive);
  margin-bottom: 14px;
  font-weight: 700;
}
.tweak-row {
  display: flex; flex-direction: column; gap: 6px;
  margin-bottom: 14px;
}
.tweak-row label {
  font-size: 0.78rem;
  color: var(--earth-bark);
  font-weight: 600;
}
.tweak-row select, .tweak-row input[type="range"] {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid rgba(64,60,45,0.15);
  border-radius: var(--radius-sm);
  background: var(--paper-warm);
  font-family: var(--font-sans);
  font-size: 0.85rem;
}

/* Placeholder striped images */
.placeholder-img {
  background:
    repeating-linear-gradient(45deg,
      var(--soft-sage-mist) 0, var(--soft-sage-mist) 12px,
      var(--paper-deep) 12px, var(--paper-deep) 24px);
  display: flex; align-items: center; justify-content: center;
  color: var(--earth-bark);
  font-family: 'Courier New', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 20px;
  text-align: center;
  min-height: 200px;
  border-radius: var(--radius-sm);
}

/* ============================================================
   HEADSHOT FRAME — shared treatment for Douglas's portrait
   Soft arch-top, warm cream backdrop, subtle sage border.
   ============================================================ */
.headshot-frame {
  position: relative;
  margin: 0;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 50% 50% 18px 18px / 38% 38% 18px 18px;
  overflow: hidden;
  background: var(--zen-sand);
  box-shadow:
    0 18px 48px rgba(64, 60, 45, 0.18),
    0 0 0 1px rgba(64, 60, 45, 0.06);
  isolation: isolate;
}
.headshot-frame::before {
  /* soft inner cream wash so the headshot blends with the brand */
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 120%, rgba(185, 195, 163, 0.35), transparent 60%),
    linear-gradient(180deg, rgba(248, 237, 204, 0.0), rgba(248, 237, 204, 0.25));
  z-index: 1;
  pointer-events: none;
}
.headshot-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  z-index: 0;
}
.headshot-frame--tall { aspect-ratio: 4 / 5.2; }

@media (max-width: 720px) {
  .headshot-frame { max-width: 340px; margin-left: auto; margin-right: auto; }
}


/* ============================================================
   HEADER INFO STRIP — slim second row under the main nav
   ============================================================ */
.header-info {
  border-top: 1px solid rgba(64, 60, 45, 0.08);
  transition: border-color 0.4s, background 0.4s;
}
.site-header:not(.scrolled) .header-info {
  border-top-color: rgba(64, 60, 45, 0.08);
}
.site-header.scrolled .header-info {
  border-top-color: rgba(64, 60, 45, 0.1);
}
.header-info-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 12px 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--charcoal-olive);
  letter-spacing: 0.01em;
  line-height: 1;
}
.hi-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--charcoal-olive);
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
  line-height: 1;
}
a.hi-item:hover { color: var(--deep-forest); }
.hi-icon {
  color: var(--weathered-olive);
  flex-shrink: 0;
  display: block;
}
.hi-sep {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: rgba(64, 60, 45, 0.25);
  flex-shrink: 0;
}

/* Light-on-dark variant (over dark hero, header transparent) */
.site-header.header-on-dark:not(.scrolled) .header-info {
  border-top-color: rgba(251, 247, 236, 0.18);
}
.site-header.header-on-dark:not(.scrolled) .hi-item,
.site-header.header-on-dark:not(.scrolled) .header-info-inner {
  color: rgba(251, 247, 236, 0.92);
}
.site-header.header-on-dark:not(.scrolled) .hi-icon {
  color: rgba(251, 247, 236, 0.72);
}
.site-header.header-on-dark:not(.scrolled) .hi-sep {
  background: rgba(251, 247, 236, 0.35);
}

/* Status pill ============================================ */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px 4px 9px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-left: 6px;
  line-height: 1;
  transition: background 0.3s, color 0.3s;
  border: 1px solid transparent;
}
.status-pill .status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
}
.status-pill[data-status="open"] {
  background: rgba(122, 140, 96, 0.14);
  color: #4a5d3a;
  border-color: rgba(122, 140, 96, 0.28);
}
.status-pill[data-status="open"] .status-dot {
  background: #7a8c60;
  box-shadow: 0 0 0 0 rgba(122, 140, 96, 0.55);
  animation: pulse-open 2.2s ease-out infinite;
}
@keyframes pulse-open {
  0%   { box-shadow: 0 0 0 0 rgba(122, 140, 96, 0.55); }
  70%  { box-shadow: 0 0 0 6px rgba(122, 140, 96, 0); }
  100% { box-shadow: 0 0 0 0 rgba(122, 140, 96, 0); }
}
.status-pill[data-status="closed"] {
  background: rgba(158, 120, 96, 0.12);
  color: #7a5a42;
  border-color: rgba(158, 120, 96, 0.24);
}
.status-pill[data-status="closed"] .status-dot {
  background: #b48b6c;
}
.status-pill[data-status="loading"] {
  background: rgba(64,60,45,0.06);
  color: var(--weathered-olive);
}

/* Dark-header variants */
.site-header.header-on-dark:not(.scrolled) .status-pill[data-status="open"] {
  background: rgba(180, 210, 150, 0.22);
  color: #e4efd4;
  border-color: rgba(180, 210, 150, 0.35);
}
.site-header.header-on-dark:not(.scrolled) .status-pill[data-status="open"] .status-dot {
  background: #c6dc9f;
}
.site-header.header-on-dark:not(.scrolled) .status-pill[data-status="closed"] {
  background: rgba(230, 190, 160, 0.18);
  color: #f0d8c2;
  border-color: rgba(230, 190, 160, 0.3);
}

/* Mobile ================================================ */
@media (max-width: 720px) {
  .header-info-inner {
    padding: 14px 20px;
    gap: 10px;
    font-size: 0.78rem;
    justify-content: flex-start;
    flex-direction: column;
    align-items: flex-start;
  }
  .hi-sep { display: none; }
  .hi-item {
    width: 100%;
    justify-content: flex-start;
    white-space: normal;
    line-height: 1.35;
  }
  /* Hide the header info strip when the header is compact/scrolled to save room. */
  .site-header.scrolled .header-info { display: none; }
  .status-pill {
    font-size: 0.66rem;
    padding: 3px 9px 3px 8px;
  }
}


/* ============================================================
   FOOTER BRAND LOCKUP — capybara + typographic brand, no container
   ============================================================ */
.footer-brand .brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}
.footer-brand .brand-mark {
  width: 64px;
  height: 64px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}
.footer-brand .brand-words {
  display: flex;
  flex-direction: column;
  gap: 5px;
  line-height: 1.1;
}
.footer-brand .brand-name {
  font-family: var(--font-serif);
  font-weight: 500;
  font-style: italic;
  font-size: 1.5rem;
  color: var(--zen-sand);
  letter-spacing: 0.005em;
}
.footer-brand .brand-person {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--soft-sage-mist);
  opacity: 0.75;
}
.footer-brand .brand-tagline {
  margin-top: 22px;
  color: var(--soft-sage-mist);
  font-size: 0.95rem;
  font-family: var(--font-serif);
  font-style: italic;
  line-height: 1.5;
  max-width: 320px;
  opacity: 0.85;
}

/* Mobile */
@media (max-width: 720px) {
  .footer-brand .brand-lockup {
    gap: 12px;
  }
  .footer-brand .brand-mark { width: 54px; height: 54px; }
  .footer-brand .brand-name { font-size: 1.25rem; }
  .footer-brand .brand-person { font-size: 0.64rem; letter-spacing: 0.18em; }
  .footer-brand .brand-tagline { margin-top: 16px; }
}


/* ============================================================
   HARDENING OVERRIDES — appended last so they win the cascade.
   These protect against third-party plugins (WPCode, page builders,
   accessibility overlays, etc.) injecting CSS that breaks the header.
   !important is used sparingly and ONLY on the sizing / layout
   primitives plugins tend to clobber.
   ============================================================ */

/* Logo — hard cap at every breakpoint */
.site-header .brand img,
.site-header .brand .custom-logo,
.site-header .brand .custom-logo-link img,
.site-header .custom-logo,
.site-header .custom-logo-link img {
  display: block !important;
  width: auto !important;
  height: 56px !important;
  max-width: 260px !important;
  max-height: 64px !important;
  object-fit: contain !important;
  padding: 0 !important;
  margin: 0 !important;
}
.site-header .brand .custom-logo-link,
.site-header .custom-logo-link {
  display: inline-block !important;
  width: auto !important;
  max-width: 260px !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.site-header.scrolled .brand img,
.site-header.scrolled .brand .custom-logo,
.site-header.scrolled .brand .custom-logo-link img {
  height: 46px !important;
  max-height: 52px !important;
}
@media (max-width: 1100px) {
  .site-header .brand img,
  .site-header .brand .custom-logo,
  .site-header .brand .custom-logo-link img {
    height: 48px !important;
    max-width: 220px !important;
    max-height: 54px !important;
  }
}
@media (max-width: 640px) {
  .site-header .brand img,
  .site-header .brand .custom-logo,
  .site-header .brand .custom-logo-link img {
    height: 40px !important;
    max-width: 180px !important;
    max-height: 46px !important;
  }
}

/* Header inner — flex row */
.site-header .header-inner {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: space-between !important;
}

/* ------------------------------------------------------------
   Desktop navigation — force horizontal regardless of plugin CSS.
   Covers:
     • Our walker output: .nav > .primary-menu > .nav-item
     • WP default:        .nav > .menu > li
     • Common aliases plugins target: .main-navigation, .nav-menu
   ------------------------------------------------------------ */
@media (min-width: 981px) {
  .site-header .nav,
  .site-header .main-navigation,
  .site-header .nav-menu {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 6px !important;
    position: static !important;
    width: auto !important;
    height: auto !important;
    right: auto !important;
    top: auto !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
  }

  .site-header .nav .primary-menu,
  .site-header .nav > ul,
  .site-header .nav .menu,
  .site-header .nav .nav-menu {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 6px !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    width: auto !important;
  }

  .site-header .nav .nav-item,
  .site-header .nav li {
    display: inline-flex !important;
    align-items: center !important;
    width: auto !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    position: relative;
  }

  .site-header .nav .nav-link,
  .site-header .nav a {
    display: inline-flex !important;
    width: auto !important;
  }

  .site-header .nav-toggle { display: none !important; }
  .site-header .nav-cta { display: inline-flex !important; }
}

/* ------------------------------------------------------------
   Mobile navigation — drawer stays as designed (vertical stack).
   ------------------------------------------------------------ */
@media (max-width: 980px) {
  .site-header .nav-toggle { display: inline-flex !important; }

  .site-header .nav .primary-menu,
  .site-header .nav > ul,
  .site-header .nav .menu {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    gap: 0 !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .site-header .nav .nav-item,
  .site-header .nav li {
    display: block !important;
    width: 100% !important;
    list-style: none !important;
  }
}
