/* =========================================================
   Willow Health & Wellness Center — Site Stylesheet
   Design tokens follow the approved Willow brand palette.
   ========================================================= */

:root {
  /* Color tokens */
  --teal: #003F3F;
  --teal-light: #0A5555;
  --navy: #102A43;
  --gold: #D4A23A;
  --gold-deep: #B3841F;
  --gold-text: #8A6416; /* WCAG AA-safe gold for small/bold text on light backgrounds */
  --gold-stage: #E0B155; /* WCAG AA-safe gold for text on the teal model-journey band */
  --plum: #3E1452;
  --ivory: #F7F3EA;
  --ivory-deep: #EFE8D8;
  --leaf: #56734C;
  --ink: #182525;
  --white: #FFFFFF;
  --line: rgba(16, 42, 67, 0.14);

  /* Type */
  --font-display: "Cormorant Garamond", "Libre Baskerville", Georgia, serif;
  --font-body: "Source Sans 3", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Layout */
  --max-width: 1240px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius-sm: 4px;
  --radius-md: 10px;

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
[hidden] { display: none !important; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.6em;
  color: var(--navy);
}
h1 { font-size: clamp(2.4rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.65rem); }
p { margin: 0 0 1em; max-width: 68ch; }
ul, ol { padding-left: 1.25em; }

.container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--navy);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  z-index: 1000;
  transition: top 0.2s var(--ease);
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus { top: 1rem; }

/* ---------- Focus visibility ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--gold-deep);
  outline-offset: 2px;
}

/* ---------- Utility text ---------- */
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: 0.75rem;
}
.eyebrow--on-dark { color: var(--gold); }
.section-intro { max-width: 62ch; }
.center { text-align: center; margin-inline: auto; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85em 1.6em;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s var(--ease), background 0.15s var(--ease), border-color 0.15s var(--ease), color 0.15s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}
.btn--primary:hover { background: var(--gold-deep); border-color: var(--gold-deep); }

.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: currentColor;
}
.btn--outline:hover { background: rgba(255,255,255,0.12); }

.btn--outline-dark {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn--outline-dark:hover { background: rgba(16,42,67,0.06); }

.btn--plum { background: var(--plum); color: var(--white); border-color: var(--plum); }
.btn--plum:hover { background: #2c0e3d; border-color: #2c0e3d; }

.btn[disabled], .btn--disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

.btn--sm { padding: 0.55em 1.1em; font-size: 0.9rem; }

/* ---------- Header ---------- */
.site-header {
  background: var(--ivory);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow 0.2s var(--ease);
}
.site-header[data-scrolled] {
  box-shadow: 0 2px 14px rgba(16, 42, 67, 0.1);
}
.site-header[data-scrolled] .brand img { height: 34px; }
.site-header[data-scrolled] .main-nav-wrap { padding-block: 0.6rem; }

/* Anchor-link offset so the sticky header never covers a jumped-to section */
[id] { scroll-margin-top: 6.5rem; }
.utility-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--teal);
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--line);
}
.utility-strip a { text-decoration: none; }

.main-nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
  gap: 1.5rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--navy);
}
.brand img { height: 44px; width: auto; }
.brand-word {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.05;
}
.brand-word .name { display: block; font-size: 1.25rem; letter-spacing: 0.02em; }
.brand-word .tagline {
  display: block;
  font-family: var(--font-body);
  font-size: 0.62rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--gold-text);
  font-weight: 700;
  margin-top: 2px;
}

.primary-nav { display: none; }
.primary-nav > ul {
  list-style: none;
  display: flex;
  gap: clamp(0.5rem, 1vw, 0.9rem);
  margin: 0;
  padding: 0;
  align-items: center;
  flex-wrap: nowrap;
}
.primary-nav .nav-item { position: relative; }
.primary-nav .nav-item-row { display: flex; align-items: center; }
.primary-nav a {
  text-decoration: none;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.86rem;
  padding: 0.4rem 0.1rem;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.primary-nav a:hover { border-bottom-color: var(--gold); }
.primary-nav a[aria-current="page"] {
  border-bottom-color: var(--gold-deep);
  color: var(--teal);
}
.nav-caret {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--navy);
  padding: 0.3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.nav-caret svg { width: 13px; height: 13px; transition: transform 0.15s var(--ease); }
.nav-caret[aria-expanded="true"] svg { transform: rotate(180deg); }

.nav-dropdown-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-dropdown-menu[hidden] { display: none; }

/* Desktop dropdown: floating panel */
.primary-nav .nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0.4rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 28px rgba(16, 42, 67, 0.14);
  min-width: 250px;
  padding: 0.5rem 0;
  z-index: 200;
}
.primary-nav .nav-dropdown-menu a {
  display: block;
  padding: 0.6rem 1.1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  border-bottom: none;
  white-space: normal;
}
.primary-nav .nav-dropdown-menu a:hover { background: var(--ivory); color: var(--teal); }

.nav-cta { display: none; gap: 0.5rem; }
.nav-cta .btn { white-space: nowrap; padding: 0.6em 0.9em; font-size: 0.85rem; }

.menu-toggle {
  background: none;
  border: 1.5px solid var(--navy);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--navy);
}
.menu-toggle svg { width: 20px; height: 20px; }

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.5rem var(--gutter) 1.5rem;
  background: var(--ivory);
  border-top: 1px solid var(--line);
  max-height: calc(100vh - 6rem);
  overflow-y: auto;
}
.mobile-menu.is-open { display: flex; }
.mobile-nav-list { list-style: none; margin: 0; padding: 0; width: 100%; }
.mobile-menu .nav-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.mobile-menu .nav-item > a {
  text-decoration: none;
  color: var(--navy);
  font-weight: 600;
  padding: 0.85rem 0.25rem;
  border-bottom: 1px solid var(--line);
  font-size: 1.05rem;
  display: block;
  flex: 1;
}
.mobile-menu .nav-item-row > a {
  border-bottom: none;
  flex: 1;
  text-decoration: none;
}
.mobile-menu a[aria-current="page"] { color: var(--teal); }
.mobile-menu .nav-caret {
  padding: 0.85rem 0.5rem;
  color: var(--navy);
}
.mobile-menu .nav-dropdown-menu {
  padding-left: 1rem;
  background: transparent;
}
.mobile-menu .nav-dropdown-menu a {
  text-decoration: none;
  color: var(--teal);
  font-weight: 600;
  padding: 0.7rem 0.25rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
  display: block;
}
.mobile-menu-ctas {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.25rem;
}
.mobile-menu-ctas .btn { justify-content: center; }

@media (min-width: 1240px) {
  .primary-nav { display: block; }
  .nav-cta { display: inline-flex; }
  .menu-toggle { display: none; }
  .mobile-menu { display: none !important; }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--ivory) 0%, #FCFAF4 100%);
  overflow: hidden;
  position: relative;
}
.hero .container {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  padding-block: clamp(2.5rem, 6vw, 5rem);
  grid-template-columns: 1fr;
}
@media (min-width: 940px) {
  .hero .container { grid-template-columns: 1.05fr 0.95fr; gap: 3rem; }
}
.hero-copy .eyebrow { display: block; }
.hero-copy h1 { margin-bottom: 0.3em; }
.hero-copy .accent-line { color: var(--gold-deep); display: block; }
.hero-copy .lede { font-size: 1.1rem; color: var(--teal); max-width: 52ch; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.5rem;
}
.hero-art { position: relative; }
.hero-art svg { width: 100%; height: auto; }

/* ---------- Hero (photo variant) ---------- */
.hero--photo {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  display: flex;
  align-items: stretch;
  background: var(--navy); /* shows briefly while the image decodes */
}
@media (min-width: 860px) {
  .hero--photo { min-height: 640px; }
}
@media (min-width: 1400px) {
  .hero--photo { min-height: 720px; }
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media picture { display: block; width: 100%; height: 100%; }
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
/* Left-to-right navy scrim — present only to guarantee WCAG text contrast
   over the photo's naturally variable brightness (dappled light through
   the foliage); it fades to fully transparent well before the people on
   the right of the frame, per the approved art direction. */
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  /* Desktop default: the photo's desktop crop has genuine dark, empty
     space on the left (see the 16:9 crop), so a left-to-right fade both
     guarantees text contrast AND keeps the people on the right fully
     visible. */
  background: linear-gradient(
    90deg,
    rgba(16, 42, 67, 0.85) 0%,
    rgba(16, 42, 67, 0.72) 22%,
    rgba(16, 42, 67, 0.4) 42%,
    rgba(16, 42, 67, 0.1) 58%,
    rgba(16, 42, 67, 0) 68%
  );
  pointer-events: none;
}
@media (max-width: 859px) {
  /* Below 860px the art-directed <picture> switches to the mobile crop,
     which keeps the full family group (including people close to the
     left/center) in frame to preserve their faces per the approved crop
     spec — there is no empty dark region left for a fade to rely on.
     Measured against the actual image: 10%+ of the text zone is bright
     skin/hair/sunlight, so a left-to-right fade would leave text
     illegible in places. A near-uniform scrim is used instead, verified
     against the single brightest sampled pixel in that crop. */
  .hero-scrim {
    background: linear-gradient(
      180deg,
      rgba(16, 42, 67, 0.86) 0%,
      rgba(16, 42, 67, 0.9) 55%,
      rgba(16, 42, 67, 0.86) 100%
    );
  }
}
.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  width: 100%;
  padding-block: clamp(2.5rem, 6vw, 5rem);
}
.hero--photo .hero-copy { max-width: 620px; }
.hero--photo .eyebrow { display: block; color: #FFFFFF; }
.hero--photo h1 { color: #FFFFFF; margin-bottom: 0.3em; }
.hero--photo .accent-line { color: var(--gold); display: block; }
.hero--photo .lede { font-size: 1.1rem; color: #FFFFFF; max-width: 52ch; }
.hero--photo .hero-support { color: #FFFFFF; font-weight: 600; margin: 0; }
.hero--photo .hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 1.5rem; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(3rem, 6vw, 5.5rem); }
.section--ivory { background: var(--ivory); }
.section--white { background: var(--white); }
.section--teal { background: var(--teal); color: var(--ivory); }
.section--teal h2, .section--teal h3 { color: var(--white); }
.section--teal p { color: rgba(247,243,234,0.88); }
.section--navy { background: var(--navy); color: var(--ivory); }
.section--navy h2 { color: var(--white); }
.section--plum {
  background: linear-gradient(120deg, var(--plum) 0%, var(--teal) 100%);
  color: var(--white);
}
.section--plum h2 { color: var(--white); }
.section-head { margin-bottom: 2.25rem; max-width: 68ch; }

/* ---------- Decorative pattern background (WHW-PATTERN-01) ---------- */
/* Used sparingly, only on CTA-style sections with short copy — never
   behind long body text. The image itself is already dark, but a light
   navy tint is layered on top as a safety margin, since background-size:
   cover means the exact crop shown can shift slightly across viewport
   ratios. Decorative only — no informative alt text (see section-pattern-bg
   below, which is an empty aria-hidden div, not an <img>). */
.section--pattern { position: relative; overflow: hidden; }
.section--pattern .container { position: relative; z-index: 1; }
.section-pattern-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  /* Fallback for browsers without image-set() support */
  background-image: linear-gradient(rgba(16, 42, 67, 0.3), rgba(16, 42, 67, 0.3)),
    url("/assets/img/whw-pattern-01-1456.jpg");
  background-image: linear-gradient(rgba(16, 42, 67, 0.3), rgba(16, 42, 67, 0.3)),
    image-set(
      url("/assets/img/whw-pattern-01-1456.webp") type("image/webp"),
      url("/assets/img/whw-pattern-01-1456.jpg") type("image/jpeg")
    );
  background-size: cover;
  background-position: center;
}

/* ---------- Card grids ---------- */
.grid { display: grid; gap: 1.75rem; }
.grid--3 { grid-template-columns: repeat(1, 1fr); }
.grid--4 { grid-template-columns: repeat(1, 1fr); }
.grid--2 { grid-template-columns: repeat(1, 1fr); }
@media (min-width: 700px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 700px) and (max-width: 1099px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) {
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
@media (hover: hover) {
  .card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(16,42,67,0.08); }
}
.card .icon { margin-bottom: 1rem; }
.card .icon svg { width: 44px; height: 44px; }
.card h3 { margin-bottom: 0.5rem; }
.card p:last-child { margin-bottom: 0; }

.card--on-teal {
  background: rgba(255,255,255,0.06);
  border-color: rgba(247,243,234,0.22);
  color: var(--ivory);
}
.card--on-teal h3 { color: var(--white); }

/* Status pill */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 0.3em 0.8em;
  border-radius: 999px;
  border: 1.5px solid currentColor;
}
.status-pill::before {
  content: "";
  width: 0.5em;
  height: 0.5em;
  border-radius: 50%;
  background: currentColor;
}
.status-pill--development { color: var(--gold-text); }
.status-pill--available { color: var(--leaf); }
.status-pill--soon { color: var(--teal); }
.status-pill--partnership { color: var(--plum); }

/* ---------- Model of Care journey ---------- */
.model-journey {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
  position: relative;
}
@media (min-width: 900px) {
  .model-journey { grid-template-columns: repeat(5, 1fr); }
}
.model-stage {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(247,243,234,0.2);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.25rem;
  position: relative;
}
.model-stage .stage-icon svg { width: 40px; height: 40px; margin-bottom: 0.75rem; }
.model-stage .stage-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--gold-stage);
  margin-bottom: 0.1rem;
}
.model-stage .stage-sub {
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: var(--white);
  display: block;
  margin-bottom: 0.5rem;
}
.model-stage p { font-size: 0.94rem; margin-bottom: 0; color: rgba(247,243,234,0.85); }
.model-arrow {
  display: none;
}
@media (min-width: 900px) {
  .model-journey { align-items: stretch; }
}
.journey-line {
  margin-top: 2rem;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--gold);
  letter-spacing: 0.01em;
}

/* ---------- Leadership ---------- */
.leader-card { text-align: left; }
.leader-photo {
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 1rem;
  aspect-ratio: 4 / 5;
  background: var(--ivory-deep);
}
.leader-photo img { width: 100%; height: 100%; object-fit: cover; }
.leader-photo.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 600;
}
.leader-name { margin-bottom: 0.1rem; }
.leader-role {
  color: var(--gold-text);
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 0.6rem;
}

/* ---------- Leadership bio disclosure ---------- */
.bio-disclosure { margin-top: 0.75rem; }
.bio-disclosure summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--teal);
  font-size: 0.92rem;
  list-style: revert;
  padding: 0.2rem 0;
}
.bio-disclosure summary:hover,
.bio-disclosure summary:focus-visible {
  color: var(--gold-text);
}
.bio-disclosure summary::marker {
  color: var(--gold-text);
}
.bio-disclosure[open] summary { margin-bottom: 0.6rem; }
.bio-disclosure .bio-full p {
  font-size: 0.94rem;
  margin-bottom: 0.85em;
}
.bio-disclosure .bio-full p:last-child { margin-bottom: 0; }

/* ---------- Founder / two-column ---------- */
.split {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 0.85fr 1.15fr; }
  .split.split--reverse { grid-template-columns: 1.15fr 0.85fr; }
  .split.split--reverse .split-media { order: 2; }
}
.split-media img {
  border-radius: 999px 999px var(--radius-md) var(--radius-md);
  width: 100%;
  object-fit: cover;
  aspect-ratio: 3/4;
}
.icon-lg { color: var(--teal); display: flex; justify-content: center; }
.icon-lg svg { width: min(220px, 70%); height: auto; }

/* ---------- Content photos (WHW-MODEL/WALLS/CORNER/COMMUNITY/INVOLVE/DONATE) ---------- */
/* Always shown at native aspect ratio — never stretched or cropped. */
.content-photo,
.content-photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}
.content-photo--wide { margin-inline: auto; }
.content-photo--card { margin-bottom: 1rem; }
/* Override the portrait 3:4 crop that .split-media normally applies
   (that rule is tuned for the founder/leadership portraits) — the
   donate photo is landscape and must display uncropped. */
.split-media .content-photo,
.split-media .content-photo img {
  aspect-ratio: auto;
  object-fit: initial;
  border-radius: var(--radius-md);
}
.org-statement {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--teal);
  border-left: 3px solid var(--gold);
  padding-left: 1rem;
  margin-top: 1.25rem;
}

/* ---------- Involvement / pathways ---------- */
.pathway-card { border-top: 3px solid var(--gold); }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band .btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.5rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: rgba(247,243,234,0.85);
  padding-block: 3.5rem 2rem;
}
.footer-grid {
  display: grid;
  gap: 2.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 760px) {
  .footer-grid { grid-template-columns: 1.3fr 0.9fr 0.9fr 0.9fr; }
}
.footer-brand { display: flex; gap: 0.75rem; margin-bottom: 1rem; }
.footer-brand img { height: 40px; }
.footer-brand .name { font-family: var(--font-display); font-size: 1.15rem; color: var(--white); }
.footer h4,
.footer .footer-heading {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
  font-weight: 700;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 0.55rem; }
.footer a { text-decoration: none; color: inherit; }
.footer a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(247,243,234,0.16);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  font-size: 0.85rem;
}
.social-icons { display: flex; gap: 0.75rem; margin-top: 0.75rem; }
.social-icons a {
  width: 34px; height: 34px;
  border: 1px solid rgba(247,243,234,0.3);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.social-icons svg { width: 16px; height: 16px; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
  font-size: 0.85rem;
  color: var(--teal);
  padding-block: 1rem;
}
.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0;
  margin: 0;
}
.breadcrumbs a { text-decoration: underline; }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 0.4rem; color: var(--line); }

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  background: var(--ivory);
  padding-block: clamp(2rem, 5vw, 3.5rem);
  border-bottom: 1px solid var(--line);
}
.page-hero .eyebrow { color: var(--gold-text); }
.page-hero p.lede { color: var(--teal); font-size: 1.05rem; }

/* ---------- Forms ---------- */
.form-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .form-grid .full { grid-column: 1 / -1; }
}
.field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--navy);
  font-size: 0.95rem;
}
.field .required { color: var(--gold-text); }
.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  padding: 0.75em 0.9em;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 3px solid var(--gold-deep);
  outline-offset: 1px;
  border-color: var(--gold-deep);
}
.field textarea { min-height: 140px; resize: vertical; }
.checkbox-field { display: flex; align-items: flex-start; gap: 0.6em; }
.checkbox-field input { width: auto; margin-top: 0.3em; }
.field-error {
  color: #9A3B3B;
  font-size: 0.85rem;
  margin-top: 0.35rem;
  display: none;
}
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: #9A3B3B; }
.field.has-error .field-error { display: block; }
.form-note {
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
}
.honeypot-field { position: absolute; left: -9999px; top: -9999px; }

/* ---------- Empty state ---------- */
.empty-state {
  border: 1.5px dashed var(--line);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  text-align: center;
  background: var(--white);
}
.empty-state svg { width: 48px; height: 48px; margin-bottom: 1rem; color: var(--gold-deep); }

/* ---------- Filters (Health Corner) ---------- */
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
}
.filter-chip {
  border: 1.5px solid var(--line);
  background: var(--white);
  border-radius: 999px;
  padding: 0.5em 1.1em;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--teal);
  cursor: pointer;
}
.filter-chip[aria-pressed="true"] {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--white);
}

/* ---------- Legal pages ---------- */
.legal-content h2 { margin-top: 2em; }

/* ---------- 404 ---------- */
.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-block: 5rem;
}

/* ---------- Divider ornament ---------- */
.leaf-divider { display: flex; justify-content: center; margin: 0.5rem 0 2rem; color: var(--gold); }
.leaf-divider svg { width: 60px; height: auto; }
