/* =====================================================================
   Inspire Homeschool Co-op — Design System
   Palette: "Soft Meadow & White" — light, bright, natural, Christ + nature
   Fonts: Fraunces (display) + Nunito Sans (body)
   ===================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* Backgrounds — soft white & warm cream (light and bright) */
  --bg:        #FDFCF8;   /* soft warm white */
  --bg-alt:    #F7F2E8;   /* warm cream */
  --bg-sage:   #F1EBDC;   /* warm cream panel (repurposed, was green) */
  --bg-card:   #FFFFFF;

  /* Greens — sage accents drawn from the logo's tree (used sparingly) */
  --green:        #6F7B57;  /* muted sage-olive accent */
  --green-deep:   #505B3B;  /* deep olive — buttons, links */
  --green-soft:   #A9B488;  /* soft sage — borders, dividers */
  --green-pale:   #E6E7D4;  /* pale leaf — very subtle */

  /* Logo-matched warm tones */
  --brown:     #4A4034;   /* logo "INSPIRE" wordmark — headings */
  --gold:      #B88208;   /* logo gold — tiny accents */
  --gold-soft: #D9A23B;

  /* Wildflower accents (used sparingly for little pops of color) */
  --rose:      #C18C84;   /* soft dusty rose */
  --rose-soft: #ECDAD6;
  --terracotta:#C0805A;
  --lilac:     #A99CB8;

  /* Warm sand — tiny accents */
  --sand:      #E7DFCB;

  /* Ink / text — warm browns */
  --ink:       #3E382E;   /* warm dark brown */
  --ink-soft:  #6E655B;   /* taupe (matches logo) */
  --ink-faint: #9C9384;

  /* Lines & shadows */
  --line:      #ECE5D6;
  --line-soft: #F4EEE2;
  --shadow-sm: 0 2px 10px rgba(74, 64, 52, 0.06);
  --shadow-md: 0 10px 30px rgba(74, 64, 52, 0.09);
  --shadow-lg: 0 24px 60px rgba(74, 64, 52, 0.12);

  /* Type */
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body:    "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Layout */
  --maxw: 1140px;
  --radius:    18px;
  --radius-sm: 12px;
  --radius-lg: 28px;

  /* Botanical SVG accents (inline data URIs) */
  --leaf-bullet: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237E8C56' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 20A7 7 0 0 1 9.8 6.1C15.5 5 17 4.48 19 2c1 2 2 4.18 2 8 0 5.5-4.78 10-10 10Z'/%3E%3Cpath d='M2 21c0-3 1.85-5.36 5.08-6'/%3E%3C/svg%3E");
  --leaf-texture: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cg fill='none' stroke='%234F5C34' stroke-width='1.1' opacity='0.9'%3E%3Cpath d='M30 60c10-18 28-26 40-22-2 14-14 28-30 30'/%3E%3Cpath d='M30 68c6-2 12-6 16-12'/%3E%3Cpath d='M120 120c10-18 28-26 40-22-2 14-14 28-30 30'/%3E%3Cpath d='M120 128c6-2 12-6 16-12'/%3E%3Cpath d='M120 40c-8 6-12 16-10 26 10-2 18-12 18-24'/%3E%3C/g%3E%3C/svg%3E");
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  font-size: 1.0625rem;
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--green-deep); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--green); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--brown);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 .5em;
  /* Use plain letterforms — disable Fraunces stylistic sets and discretionary
     ligatures so the "f" and other letters stay in their standard shapes. */
  font-variation-settings: "SOFT" 0, "WONK" 0;
  font-feature-settings: "ss01" 0, "ss02" 0, "ss03" 0, "ss04" 0, "ss05" 0, "dlig" 0, "salt" 0;
  font-variant-ligatures: no-discretionary-ligatures;
}
h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); font-weight: 500; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
h4 { font-size: 1.15rem; }
p  { margin: 0 0 1.15em; }
.lead {
  font-size: clamp(1.15rem, 1.7vw, 1.4rem);
  line-height: 1.7;
  color: var(--ink-soft);
  font-weight: 300;
}
.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .78rem;
  font-weight: 700;
  color: var(--green);
  margin: 0 0 1rem;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: var(--green-soft);
}
.eyebrow.center { justify-content: center; }
.eyebrow.center::after {
  content: "";
  width: 22px; height: 1px;
  background: var(--green-soft);
}

/* ---------- Layout helpers ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }
.narrow { max-width: 760px; margin-left: auto; margin-right: auto; }
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section.tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.bg-alt  { background: var(--bg-alt); }
.bg-sage { background: var(--bg-sage); }
.center  { text-align: center; }
.section-head { max-width: 720px; margin: 0 0 2.75rem; }
.section-head.center { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .98rem;
  letter-spacing: .01em;
  padding: .85rem 1.6rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease, color .2s ease;
  line-height: 1;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--green); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--green-deep); color: #fff; box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--green-deep); border-color: var(--green-soft); }
.btn-outline:hover { background: var(--green-deep); color: #fff; border-color: var(--green-deep); }
.btn-rose { background: var(--rose); color: #fff; }
.btn-rose:hover { background: #b07b76; color: #fff; }
.btn-ghost { background: rgba(255,255,255,.7); color: var(--green-deep); border-color: var(--line); }
.btn-ghost:hover { background: #fff; }
.btn-lg { padding: 1.05rem 2rem; font-size: 1.05rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; }
.btn-row.center { justify-content: center; }

/* ---------- Header / Nav (injected by script.js) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(252, 252, 246, 0.86);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, box-shadow .3s ease, background .3s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  height: 108px;
  padding: 6px 0;
}
/* Logo wordmark */
.brand { display: inline-flex; align-items: center; gap: .8rem; padding: 2px 8px 2px 0; overflow: visible; }
.brand .leaf-mark { width: 34px; height: 34px; flex: none; }
.brand-mark { height: 96px; width: auto; max-height: 100%; flex: none; display: block; object-fit: contain; padding-left: 0; }
.site-header.scrolled .brand-mark { height: 78px; transition: height .18s ease; }
/* Wordmark is baked into the new logo image — hide the HTML text wordmark */
.brand-text { display: none; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--brown);
  letter-spacing: .02em;
}
.brand-sub {
  font-family: var(--font-body);
  font-size: .56rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-top: 4px;
  margin-left: 1px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
}
.nav-links a {
  font-size: .92rem;
  font-weight: 600;
  color: var(--ink-soft);
  position: relative;
  padding: .35rem 0;
  white-space: nowrap;
}
@media (min-width: 1200px) {
  .nav-links { gap: 1.5rem; }
  .nav-links a { font-size: .98rem; }
}
.nav-links a:hover { color: var(--green-deep); }
.nav-links a.active { color: var(--green-deep); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--rose);
  border-radius: 2px;
}
.nav-cta { display: flex; align-items: center; gap: .75rem; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--green-deep);
}
.nav-toggle svg { width: 26px; height: 26px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1100px 520px at 88% -10%, var(--bg-sage) 0%, transparent 60%),
    radial-gradient(900px 480px at 5% 110%, var(--green-pale) 0%, transparent 55%),
    var(--bg);
  padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(3.5rem, 8vw, 6rem);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero h1 { margin-bottom: .35em; }
.hero .scripture-ref { color: var(--green); font-style: italic; }
.hero-figure {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-lg);
}
.hero-figure > img.img-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- Photo placeholders ---------- */
.photo {
  position: relative;
  background:
    linear-gradient(135deg, var(--green-pale) 0%, var(--bg-sage) 45%, #fff 100%);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  min-height: 220px;
}
.photo.tall { min-height: 380px; }
.photo .photo-note {
  position: relative;
  z-index: 2;
  text-align: center;
  font-size: .82rem;
  letter-spacing: .06em;
  color: var(--green-deep);
  opacity: .8;
  font-weight: 600;
  padding: 1rem 1.25rem;
  max-width: 80%;
}
.photo .photo-note svg { width: 40px; height: 40px; margin: 0 auto .4rem; opacity: .75; }
.photo::after { /* botanical texture */
  content: "";
  position: absolute; inset: 0;
  background-image: var(--leaf-texture);
  background-size: 180px;
  opacity: .12;
}

/* ---------- Cards ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.85rem;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  position: relative;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--green-pale); }
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.card .icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--bg-sage);
  display: grid; place-items: center;
  margin-bottom: 1.1rem;
  color: var(--green-deep);
}
.card .icon svg { width: 28px; height: 28px; }

/* Soft "journal" post cards */
.post-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.post-card .photo { border-radius: 0; min-height: 190px; }
.post-card .post-body { padding: 1.5rem 1.6rem 1.7rem; }
.post-meta {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .76rem; text-transform: uppercase; letter-spacing: .14em;
  font-weight: 700; color: var(--rose); margin-bottom: .7rem;
}
.post-card h3 { font-size: 1.35rem; }
.post-card .post-excerpt { color: var(--ink-soft); font-size: .98rem; }
.read-more { font-weight: 700; font-size: .92rem; display: inline-flex; align-items: center; gap: .4rem; }
.read-more svg { width: 16px; height: 16px; transition: transform .2s ease; }
.read-more:hover svg { transform: translateX(3px); }

/* ---------- Scripture / quote block ---------- */
.scripture {
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}
.scripture .verse {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.8vw, 2.1rem);
  line-height: 1.45;
  color: var(--green-deep);
  font-style: italic;
  font-weight: 400;
  margin: 0 0 1rem;
}
.scripture .ref {
  text-transform: uppercase;
  letter-spacing: .2em;
  font-size: .8rem;
  font-weight: 700;
  color: var(--rose);
}
.leaf-divider {
  display: flex; align-items: center; justify-content: center;
  gap: .9rem; margin: 0 auto 1.5rem; color: var(--green-soft);
}
.leaf-divider::before, .leaf-divider::after {
  content: ""; height: 1px; width: 60px; background: var(--green-soft); opacity: .6;
}
.leaf-divider svg { width: 26px; height: 26px; }

/* ---------- Feature / split rows ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.split.reverse .split-media { order: 2; }
.split-media .photo { min-height: 360px; }

/* ---------- Rhythm of the week ---------- */
.rhythm-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-top: 4px solid var(--green-soft);
  border-radius: var(--radius);
  padding: 1.9rem 1.7rem;
  box-shadow: var(--shadow-sm);
  height: 100%;
}
.rhythm-card.tues { border-top-color: var(--rose); }
.rhythm-card.future { border-top-color: var(--sand); background: var(--bg-alt); }
.rhythm-card .days {
  font-family: var(--font-display);
  font-size: 1.35rem; color: var(--green-deep); margin-bottom: .15rem;
}
.rhythm-card .time { font-size: .9rem; color: var(--rose); font-weight: 700; letter-spacing: .04em; margin-bottom: 1rem; }
.rhythm-card .place { font-weight: 700; color: var(--ink); }

/* ---------- Lists ---------- */
.leaf-list { list-style: none; padding: 0; margin: 1.25rem 0; }
.leaf-list li {
  position: relative;
  padding-left: 1.9rem;
  margin-bottom: .85rem;
  color: var(--ink-soft);
}
.leaf-list li::before {
  content: "";
  position: absolute; left: 0; top: .5em;
  width: 16px; height: 16px;
  background-image: var(--leaf-bullet);
  background-size: contain;
  background-repeat: no-repeat;
}
.leaf-list strong { color: var(--ink); }

/* ---------- Timeline (grade bands / steps) ---------- */
.bands { display: grid; gap: 1rem; }
.band {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1.5rem;
  align-items: start;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.band:hover { border-color: var(--green-pale); box-shadow: var(--shadow-sm); }
.band .band-name { font-family: var(--font-display); font-size: 1.25rem; color: var(--green-deep); }
.band .band-tag { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--rose); font-weight: 700; }
.band p { margin: 0; color: var(--ink-soft); font-size: .98rem; }

/* ---------- Virtue chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: .65rem; margin: 1.5rem 0; }
.chip {
  background: var(--bg-card);
  border: 1px solid var(--green-pale);
  color: var(--green-deep);
  padding: .5rem 1rem;
  border-radius: 999px;
  font-size: .92rem;
  font-weight: 600;
}
.chip.cardinal { background: var(--green-deep); color: #fff; border-color: var(--green-deep); }

/* ---------- Tuition table ---------- */
.tuition-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.tuition-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.tuition-card.feature { border: 2px solid var(--green-soft); box-shadow: var(--shadow-md); }
.tuition-card .t-label { font-weight: 700; color: var(--ink); font-size: 1.05rem; }
.tuition-card .t-price { font-family: var(--font-display); font-size: 2.6rem; color: var(--green-deep); line-height: 1.1; margin: .5rem 0 .1rem; }
.tuition-card .t-per { font-size: .85rem; color: var(--ink-faint); letter-spacing: .04em; }
.tuition-card .t-note { font-size: .92rem; color: var(--ink-soft); margin-top: 1rem; }

/* ---------- Calendar / event list ---------- */
.event-list { display: grid; gap: .75rem; }
.event {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 1.25rem;
  align-items: baseline;
  padding: 1.1rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.event .when { font-weight: 700; color: var(--green); font-size: .92rem; text-transform: uppercase; letter-spacing: .06em; }
.event .what { color: var(--ink); }
.event .what span { display: block; color: var(--ink-soft); font-size: .92rem; }

/* ---------- Portal ---------- */
.lock-wrap {
  min-height: 70vh;
  display: grid;
  place-items: center;
  padding: 3rem 1.5rem;
}
.lock-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: clamp(2rem, 5vw, 3.25rem);
  max-width: 460px;
  width: 100%;
  text-align: center;
}
.lock-card .lock-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--bg-sage);
  display: grid; place-items: center;
  margin: 0 auto 1.25rem;
  color: var(--green-deep);
}
.lock-card .lock-icon svg { width: 30px; height: 30px; }
.lock-card .lock-logo {
  display: block;
  width: auto;
  max-width: 260px;
  height: auto;
  margin: 0 auto 1.25rem;
}
.lock-card input[type="password"] {
  width: 100%;
  padding: .9rem 1.1rem;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 1rem;
  margin: 1.25rem 0 .5rem;
  background: var(--bg);
  color: var(--ink);
  text-align: center;
}
.lock-card input[type="password"]:focus { outline: none; border-color: var(--green-soft); box-shadow: 0 0 0 4px var(--green-pale); }
.lock-error { color: var(--rose); font-size: .9rem; font-weight: 700; min-height: 1.3em; margin: .25rem 0 0; }

.portal-content { display: none; }
.portal-content.unlocked { display: block; }

.portal-section { margin-bottom: 3rem; }
.portal-section > h2 { display: flex; align-items: center; gap: .6rem; }
.portal-section > h2 svg { width: 26px; height: 26px; color: var(--green); }

.resource-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.resource {
  display: flex; flex-direction: column; gap: .35rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.resource:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--green-pale); }
.resource .r-top { display: flex; align-items: center; gap: .7rem; margin-bottom: .35rem; }
.resource .r-icon { width: 42px; height: 42px; border-radius: 11px; background: var(--bg-sage); display: grid; place-items: center; color: var(--green-deep); flex: none; }
.resource .r-icon svg { width: 22px; height: 22px; }
.resource h4 { margin: 0; font-family: var(--font-display); font-size: 1.15rem; }
.resource p { font-size: .92rem; color: var(--ink-soft); margin: 0 0 .9rem; }
.resource .r-link { margin-top: auto; font-weight: 700; font-size: .92rem; display: inline-flex; align-items: center; gap: .4rem; }
.resource .r-link svg { width: 15px; height: 15px; }
.placeholder-link { color: var(--ink-faint); border-bottom: 1px dashed var(--ink-faint); }

.banner {
  background: var(--bg-sage);
  border: 1px solid var(--green-pale);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  display: flex; gap: .9rem; align-items: flex-start;
  font-size: .95rem; color: var(--ink-soft);
}
.banner svg { width: 22px; height: 22px; color: var(--green); flex: none; margin-top: 2px; }
.banner strong { color: var(--green-deep); }

/* ---------- Announcements / newsletter rows ---------- */
.note-row {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}
.note-row:last-child { border-bottom: none; }
.note-date {
  font-family: var(--font-display);
  text-align: center; flex: none; width: 64px;
  color: var(--green-deep); line-height: 1.1;
}
.note-date .d { font-size: 1.6rem; }
.note-date .m { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--rose); font-weight: 700; }
.note-body h4 { margin: 0 0 .25rem; }
.note-body p { margin: 0; color: var(--ink-soft); font-size: .95rem; }

/* ---------- Stat / value strip ---------- */
.value-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
.value-strip .v-num { font-family: var(--font-display); font-size: 2.4rem; color: var(--green-deep); line-height: 1; }
.value-strip .v-label { font-size: .9rem; color: var(--ink-soft); margin-top: .4rem; }

/* ---------- CTA band ---------- */
.cta-band {
  background:
    radial-gradient(680px 380px at 88% 120%, rgba(217,162,59,.12) 0%, transparent 60%),
    radial-gradient(620px 360px at 6% -10%, rgba(169,180,136,.26) 0%, transparent 55%),
    var(--bg-alt);
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 6vw, 4rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band h2 { color: var(--brown); }
.cta-band p { color: var(--ink-soft); }
.cta-band .eyebrow { color: var(--green); }
.cta-band .leaf-divider { color: var(--green-soft); }

/* ---------- Footer ---------- */
.site-footer {
  background: #3B352A;   /* warm dark brown — grounds the page without heavy green */
  color: rgba(255,255,255,.82);
  padding: clamp(3rem, 6vw, 4.5rem) 0 2rem;
  font-size: .96rem;
  position: relative;
  overflow: hidden;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.site-footer h4 { color: #fff; font-family: var(--font-body); font-size: .82rem; text-transform: uppercase; letter-spacing: .16em; margin-bottom: 1.1rem; }
.site-footer .brand-name { color: #fff; }
.site-footer .brand-sub { color: var(--gold-soft); }
/* Footer logo sits on a cream plate so the dark logo reads on the dark footer */
.site-footer .brand-mark {
  height: 160px;
  background: #F6F0E2;
  padding: 14px 20px;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
}
.social-links { display: flex; gap: .6rem; margin-top: 1.1rem; }
.social-links a {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  color: #fff;
  transition: background .2s ease, transform .2s ease;
}
.social-links a:hover { background: rgba(255,255,255,.18); transform: translateY(-2px); color: #fff; }
.social-links svg { width: 20px; height: 20px; }
.social-handle { font-size: .88rem; color: rgba(255,255,255,.7); margin-top: .6rem; }
.social-handle a { color: var(--gold-soft); font-weight: 600; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .6rem; }
.footer-links a { color: rgba(255,255,255,.8); }
.footer-links a:hover { color: #fff; }
.footer-verse { font-family: var(--font-display); font-style: italic; font-size: 1.05rem; color: rgba(255,255,255,.9); line-height: 1.5; }
.footer-contact a { color: #fff; font-weight: 600; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.16);
  padding-top: 1.5rem;
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  font-size: .85rem; color: rgba(255,255,255,.6);
}
.footer-leaf { color: var(--green-soft); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Mobile menu panel ---------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 200;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu .mm-top { display: flex; justify-content: space-between; align-items: center; height: 78px; }
.mobile-menu ul { list-style: none; padding: 0; margin: 2rem 0 0; }
.mobile-menu li { border-bottom: 1px solid var(--line); }
.mobile-menu a {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--green-deep);
  padding: 1rem 0;
}
.mobile-menu .btn { margin-top: 1.5rem; justify-content: center; }
body.menu-open { overflow: hidden; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-figure { aspect-ratio: 4 / 3; order: -1; }
  .split { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .tuition-grid { grid-template-columns: 1fr; }
  .resource-grid { grid-template-columns: repeat(2, 1fr); }
  .value-strip { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .nav-links { display: none; }
  /* Keep the Parent Portal button visible on mobile — it's important */
  .nav-cta .btn { padding: .5rem .95rem; font-size: .82rem; }
  .nav-toggle { display: inline-flex; }
}
@media (max-width: 600px) {
  /* Keep grid-2 (testimonials, portal panels) at 2 across so 4 items = 2 rows, not 4 */
  .grid-2 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  /* Programs / Faith / Rhythm (3 cards) still stack — they have too much text */
  .grid-3 { grid-template-columns: 1fr; }
  /* Philosophy has 8 cards — 2 across avoids an endless single column */
  .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .resource-grid { grid-template-columns: 1fr; }
  .band { grid-template-columns: 1fr; gap: .5rem; }
  .event { grid-template-columns: 1fr; gap: .3rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .value-strip { grid-template-columns: 1fr 1fr; }
  .brand-sub { font-size: .52rem; letter-spacing: .28em; }

  /* Compact mobile spacing — the site was reading as endless */
  .section { padding: 2.25rem 0; }
  .section.tight { padding: 1.75rem 0; }
  .section-head { margin-bottom: 1.5rem; }
  h1 { font-size: clamp(2rem, 8vw, 2.6rem); }
  h2 { font-size: clamp(1.6rem, 6.5vw, 2.1rem); }
  .lead { font-size: 1rem; }
  .card { padding: 1.15rem 1rem; border-radius: 12px; }
  .card h3 { font-size: 1.05rem; margin-bottom: .3em; }
  .card p { font-size: .92rem; line-height: 1.5; }
  .card .icon { width: 40px; height: 40px; margin-bottom: .65rem; }
  .card .icon svg { width: 22px; height: 22px; }
  .wrap { padding: 0 1.1rem; }
}

/* ---------- Decorative wildflower / botanical accents ---------- */
.section { position: relative; }
.wrap { position: relative; z-index: 1; }
.wf {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  opacity: .11;
  user-select: none; -webkit-user-select: none;
}
.wf img { display: block; width: 100%; height: auto; }
.wf-tl { top: -18px; left: -26px; width: 150px; transform: rotate(6deg); }
.wf-tr { top: 6px;  right: -22px; width: 138px; transform: scaleX(-1) rotate(4deg); }
.wf-bl { bottom: -22px; left: -12px; width: 128px; }
.wf-br { bottom: -18px; right: -14px; width: 140px; transform: scaleX(-1); }
.footer-sprig {
  position: absolute; right: -16px; bottom: -24px; width: 210px;
  opacity: .12; pointer-events: none; z-index: 0;
  filter: brightness(0) invert(0.92);
}
.site-footer .wrap { z-index: 1; }
@media (max-width: 760px) {
  .wf { display: none; }
  /* Hide the decorative footer sprig on mobile — some browsers render its
     alpha as an opaque light rectangle in the bottom-right corner. */
  .footer-sprig { display: none; }
}

/* ---------- Real photo frames ---------- */
.img-cover { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  min-height: 340px;
}
.media-frame.tall { min-height: 440px; }
.split-media .media-frame { min-height: 380px; box-shadow: var(--shadow-md); }
.media-band {
  position: relative;
  width: 100%;
  height: clamp(180px, 26vw, 300px);
  overflow: hidden;
}
.media-band img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Newsletter feature + archive (portal) ---------- */
.newsletter-feature {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-left: 5px solid var(--gold-soft);
  border-radius: var(--radius);
  padding: 1.5rem 1.7rem;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.newsletter-feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.newsletter-feature .nf-tag {
  display: inline-block;
  text-transform: uppercase; letter-spacing: .16em; font-size: .7rem; font-weight: 700;
  color: var(--gold); margin-bottom: .5rem;
}
.newsletter-feature .nf-title {
  display: block; font-family: var(--font-display); font-size: 1.4rem;
  color: var(--brown); line-height: 1.2; margin-bottom: .35rem;
}
.newsletter-feature .nf-desc { display: block; color: var(--ink-soft); font-size: .98rem; margin-bottom: .8rem; }
.newsletter-feature .nf-link { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; color: var(--green-deep); font-size: .95rem; }
.newsletter-feature .nf-link svg { width: 16px; height: 16px; }

.newsletter-archive { list-style: none; padding: 0; margin: 0; }
.newsletter-archive li { border-bottom: 1px solid var(--line); }
.newsletter-archive li:last-child { border-bottom: none; }
.newsletter-archive a {
  display: grid; grid-template-columns: 130px 1fr; gap: 1rem; align-items: baseline;
  padding: .9rem .25rem; color: var(--ink);
}
.newsletter-archive a:hover { color: var(--green-deep); }
.newsletter-archive a:hover .na-title { color: var(--green-deep); }
.newsletter-archive .na-date { font-weight: 700; color: var(--green); font-size: .9rem; }
.newsletter-archive .na-title { font-family: var(--font-display); font-size: 1.08rem; color: var(--brown); }
@media (max-width: 560px) {
  .newsletter-archive a { grid-template-columns: 1fr; gap: .15rem; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
