/* CBA Orlando — design system ("Glory in the Light"; BRAND-FAMILY.md §2/§3).
   Light, bright, minimalist, modern, glorious. A warm-white canvas, a fixed
   gently-breathing "skylight" glow from above, deep warm ink, hairline borders,
   generous whitespace, reverent type (Fraunces display + Hanken Grotesk body),
   ONE confident door hue (CBA = LIFE GREEN --home) and the shared GOLD glory
   accent (eyebrows, hairlines, numerals, the Scripture-band light).

   The reference build is cba-glory.html — this system ships its look across the
   whole generated site. Single source of truth: every page (_build/) renders
   against these class names; the legacy class names (page-hero, band, sky-band,
   resource-note, button.dark/ghost/light, etc.) are mapped here so the inner
   pages inherit the new light/airy look without markup changes. */

:root {
  /* ---- Glory in the Light neutrals (BRAND-FAMILY.md §2) ---- */
  --paper: #fbfbf6;       /* warm-white canvas — THE background */
  --paper-2: #ffffff;     /* cards / raised surfaces */
  --mist: #f4f4ec;        /* soft tint band */
  --ink: #16221b;         /* deep warm ink */
  --ink-soft: #566057;    /* secondary text */
  --ink-faint: #8b928a;   /* tertiary / meta */
  --line: #e7e8df;        /* hairline borders */
  --line-strong: #dadccf; /* stronger hairline */

  /* ---- The divine spectrum (one hue owns each door; BRAND-FAMILY.md §2) ---- */
  --home: #1fa15b;        /* CBA Orlando   — Life Green (primary here) */
  --call: #f4a72c;        /* God's Calling — Sunrise Amber */
  --word: #f2624c;        /* Pray Then Act — Living Coral */
  --way: #7a5af0;         /* Discover Jesus — Royal Violet */
  --waters: #16b5c4;      /* To The Waters — Living-Water Cyan (baptism) */

  /* ---- CBA's own door — Life Green (primary accent) ---- */
  --green: #1c7a4e;       /* deep, AA-on-light green for type/links */
  --green-deep: #0e4f33;  /* deepest green — emphasis word, headings on tint */
  --green-bright: #27a668;/* brighter green — gradient top */

  /* ---- Glory gold (shared accent on every site; BRAND-FAMILY.md §2) ---- */
  --gold: #ac8324;        /* eyebrows, numerals, hairlines */
  --gold-2: #c99e3c;      /* secondary gold */
  --gold-soft: #e8cf8b;   /* soft gold — underline glow, rays */
  --gold-line: rgba(172, 131, 36, 0.30);

  /* ---- Skylight atmosphere ---- */
  --glow-warm: rgba(255, 250, 236, 0.95);
  --glow-gold: rgba(232, 207, 139, 0.55);

  --shadow: 0 24px 60px -28px rgba(20, 40, 28, 0.28);
  --shadow-soft: 0 14px 40px -24px rgba(20, 40, 28, 0.22);
  --shadow-sm: 0 12px 30px -20px rgba(20, 40, 28, 0.18);

  --radius: 18px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: var(--serif);
  --font-sans: var(--sans); /* BRAND-FAMILY.md token name for family chrome */
  --wrap: 1180px;

  /* ---- Legacy aliases — keep old class names rendering against Glory tokens -- */
  --bg: var(--paper);
  --bg-tint: var(--mist);
  --white: #ffffff;
  --muted: var(--ink-soft);
  --soft: var(--mist);
  --sky: var(--mist);
  --forest: var(--home);
  --accent: var(--home);
  --accent-strong: var(--green);
  --accent-2: var(--gold);       /* eyebrows / kickers — now gold (the glory whisper) */
  --copper-strong: var(--green-deep);
  --coral: var(--word);
  --deep: var(--green-deep);     /* old "dark section" → deep green */
  --deep-2: var(--green-deep);
  /* This site's own door hue, consumed by the Donate pill (BRAND-FAMILY.md §9). */
  --site-hue: var(--home);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.62;
  letter-spacing: 0.002em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-optical-sizing: auto;
  letter-spacing: -0.018em;
  color: var(--ink);
}

h1 {
  margin-bottom: 1rem;
  font-size: clamp(2.6rem, 5.4vw, 4.6rem);
  line-height: 1.0;
}

h2 {
  margin-bottom: 0.85rem;
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1.06;
}

h3 {
  margin-bottom: 0.45rem;
  font-size: 1.3rem;
  line-height: 1.22;
  font-weight: 500;
}

/* The emphasis word: italic deep-green with a soft gold underline glow
   (matches the prototype's <span class="lit"> / inner-page <span class="gold">). */
.gold,
.lit {
  color: var(--green-deep);
  font-style: italic;
  position: relative;
}

.lit::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.08em;
  height: 0.42em;
  z-index: -1;
  background: linear-gradient(180deg, transparent 40%, var(--gold-soft) 40%);
  opacity: 0.55;
}

/* The fixed, gently-breathing skylight — the ONLY background atmosphere. */
.skylight {
  position: fixed;
  inset: 0 0 auto 0;
  height: 88vh;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(62% 60% at 50% -8%, var(--glow-warm), transparent 68%),
    radial-gradient(42% 46% at 68% -4%, var(--glow-gold), transparent 60%);
  animation: breathe 12s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.82; }
}

@media (prefers-reduced-motion: reduce) {
  .skylight { animation: none; }
  .rise { animation: none !important; }
  html { scroll-behavior: auto; }
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 60;
  background: var(--green-deep);
  color: #fff;
  padding: 0.65rem 0.9rem;
  border-radius: 8px;
}

.skip-link:focus {
  top: 1rem;
}

/* ---- Header / nav ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(251, 251, 246, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px) saturate(1.2);
}

.nav-wrap {
  width: min(var(--wrap), calc(100% - 2.5rem));
  margin: 0 auto;
  min-height: 74px;
  padding: 0.7rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.62rem;
  min-width: 0;
  margin-right: auto;
  text-decoration: none;
  font-family: var(--serif);
  font-weight: 500;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(150deg, var(--green-bright), var(--green-deep));
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--sans);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 14px -4px rgba(14, 79, 51, 0.5);
}

.brand-text {
  display: grid;
  line-height: 1.12;
}

.brand-text > span:first-child {
  font-size: 1.16rem;
  letter-spacing: -0.01em;
}

.brand-text small {
  font-family: var(--sans);
  color: var(--ink-faint);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line-strong);
  background: var(--paper-2);
  color: var(--ink);
  border-radius: 9px;
  padding: 0.55rem 0.75rem;
  font: 600 0.92rem var(--sans);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.main-nav a {
  position: relative;
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.35rem 0.55rem;
  border-radius: 8px;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0.55rem;
  right: 100%;
  bottom: 0.1rem;
  height: 1.5px;
  background: var(--gold);
  transition: right 0.3s ease;
}

.main-nav a:hover,
.main-nav a:focus,
.main-nav a[aria-current="page"] {
  color: var(--ink);
}

.main-nav a:hover::after,
.main-nav a:focus::after,
.main-nav a[aria-current="page"]::after {
  right: 0.55rem;
}

/* Header right cluster — flag switcher + the single Donate pill (BRAND §12). */
.header-right {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  flex: none;
}

/* Language switcher = small FLAGS (BRAND-FAMILY.md §11). */
.langs {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
}

.langs a,
.langs .on {
  display: inline-flex;
  width: 25px;
  height: 18px;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
  opacity: 0.5;
  transition: opacity 0.15s, transform 0.15s;
}

.langs a:hover,
.langs a:focus {
  opacity: 1;
  transform: translateY(-1px);
}

.langs .on {
  opacity: 1;
  box-shadow: 0 0 0 2px var(--site-hue, #1fa15b);
}

.langs .flag {
  width: 100%;
  height: 100%;
  display: block;
}

/* ---- Buttons — pill (solid-green primary / hairline ghost) ---- */
.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.86rem 1.6rem;
  text-decoration: none;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.15;
  cursor: pointer;
  transition: transform 0.16s, box-shadow 0.16s, background 0.2s, color 0.2s, border-color 0.2s;
}

.button:hover,
.button:focus {
  transform: translateY(-2px);
}

/* Primary = solid green gradient pill (the confident door hue). */
.button.primary,
.button.warm,
.button.dark {
  background: linear-gradient(160deg, var(--green-bright), var(--green));
  color: #fff;
  box-shadow: 0 14px 30px -12px rgba(28, 122, 78, 0.6);
}

.button.primary:hover,
.button.primary:focus,
.button.warm:hover,
.button.warm:focus,
.button.dark:hover,
.button.dark:focus {
  box-shadow: 0 20px 38px -14px rgba(28, 122, 78, 0.7);
  color: #fff;
}

/* Ghost / outline / light = hairline pill on the light canvas. */
.button.ghost,
.button.outline,
.button.light {
  background: var(--paper-2);
  color: var(--ink);
  border-color: var(--line-strong);
}

.button.ghost:hover,
.button.ghost:focus,
.button.outline:hover,
.button.outline:focus,
.button.light:hover,
.button.light:focus {
  border-color: var(--green);
  color: var(--green-deep);
  background: var(--paper-2);
}

/* ---- Shared layout ---- */
.section-inner,
.footer-inner {
  position: relative;
  z-index: 1;
  width: min(var(--wrap), calc(100% - 2.5rem));
  margin: 0 auto;
}

main {
  position: relative;
  z-index: 1;
}

main section {
  padding: clamp(3.5rem, 7vw, 6rem) 0;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 1rem;
  color: var(--gold);
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.eyebrow::before,
.section-kicker::before {
  content: "";
  width: 26px;
  height: 1.5px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.section-head {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 2.6rem;
  max-width: 46ch;
}

.section-head .section-kicker {
  margin-bottom: 0.4rem;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  justify-items: center;
}

/* Center the eyebrow hairline on both sides when the head is centered. */
.section-head.center .section-kicker::after {
  content: "";
  width: 26px;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

.section-head p,
.muted {
  color: var(--ink-soft);
  font-size: 1.05rem;
}

/* ---- Page hero (inner pages) — now LIGHT and airy under the skylight ---- */
.hero,
.page-hero {
  position: relative;
  z-index: 1;
  background: transparent;
  color: var(--ink);
  padding: clamp(3.25rem, 8vh, 6rem) 0 clamp(2.75rem, 5vh, 4rem);
}

.hero .eyebrow,
.page-hero .eyebrow {
  color: var(--gold);
}

.hero h1,
.page-hero h1 {
  color: var(--ink);
  max-width: 16ch;
}

.hero-lede,
.page-hero p {
  max-width: 34em;
  color: var(--ink-soft);
  font-size: clamp(1.1rem, 1.7vw, 1.28rem);
  line-height: 1.6;
}

.page-hero .actions {
  margin-top: 1.8rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.8rem;
}

/* ---- Emergency strip — calm light strip (no longer a dark slab) ---- */
.urgent-strip {
  background: var(--mist);
  border-top: 1px solid var(--gold-line);
  border-bottom: 1px solid var(--gold-line);
  color: var(--ink);
}

.urgent-strip .section-inner {
  padding: 1.1rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  flex-wrap: wrap;
}

.urgent-strip p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.96rem;
}

.urgent-strip strong {
  color: var(--green-deep);
}

.urgent-strip a:not(.button) {
  color: var(--green-deep);
  font-weight: 600;
}

/* ---- Grids + cards (hairline cells with a hover lift) ---- */
.grid {
  display: grid;
  gap: 1.1rem;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  position: relative;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem 1.6rem;
  box-shadow: none;
  transition: transform 0.22s, box-shadow 0.22s, border-color 0.22s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
  border-color: var(--line-strong);
}

.card p:last-child,
.split-copy p:last-child,
.resource-note p:last-child {
  margin-bottom: 0;
}

.card.is-urgent {
  border-left: 4px solid var(--word);
}

.card h3 {
  font-size: 1.28rem;
}

.card p {
  color: var(--ink-soft);
}

/* Gold serif numeral (matches the prototype's italic-gold index). */
.number {
  display: inline-flex;
  align-items: baseline;
  margin-bottom: 0.6rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--gold);
}

.status {
  display: inline-flex;
  align-items: center;
  margin-bottom: 0.7rem;
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  background: rgba(39, 166, 104, 0.12);
  color: var(--green-deep);
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.status.planned {
  background: rgba(172, 131, 36, 0.14);
  color: var(--gold);
}

/* ---- Split sections ---- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.media-frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.media-frame img {
  width: 100%;
  object-fit: cover;
}

.check-list,
.plain-list {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 0;
  display: grid;
  gap: 0.7rem;
}

.check-list li,
.plain-list li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--ink-soft);
}

.check-list li::before,
.plain-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--gold-2);
}

/* ---- Bands (soft tint) ---- */
.band {
  background: var(--mist);
}

.sky-band {
  background: linear-gradient(180deg, #f7f4e9, var(--paper));
  border-top: 1px solid var(--gold-line);
}

/* ---- Leadership ---- */
.leader-card strong {
  display: block;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.2rem;
}

.leader-card span {
  display: block;
  color: var(--ink-soft);
}

/* ---- Schedule ---- */
.schedule {
  display: grid;
  gap: 0.5rem;
}

.schedule-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.schedule-row:last-child {
  border-bottom: 0;
}

.schedule-row strong {
  color: var(--green-deep);
}

/* ---- Callout card (formerly the dark "resource-note") — now a warm tint card -- */
.resource-note {
  background: var(--mist);
  color: var(--ink);
  border: 1px solid var(--gold-line);
  border-radius: var(--radius);
  padding: 1.8rem;
}

.resource-note h3 {
  color: var(--green-deep);
}

.resource-note p,
.resource-note .muted {
  color: var(--ink-soft);
}

/* ---- Directory ---- */
.directory-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
}

.directory-card {
  display: grid;
  gap: 0.55rem;
}

.directory-card a {
  color: var(--green);
  font-weight: 600;
}

/* ---- Article (resources) ---- */
.article {
  display: grid;
  gap: 2rem;
  max-width: 760px;
}

.prose > h2 {
  margin: 2.4rem 0 0.6rem;
  font-size: clamp(1.55rem, 2.6vw, 2.05rem);
}

.prose > h2:first-child {
  margin-top: 0;
}

.prose > h3 {
  margin: 1.8rem 0 0.4rem;
}

.prose p {
  margin: 0 0 1rem;
  line-height: 1.78;
}

.prose ul,
.prose ol {
  margin: 0 0 1rem;
  padding-left: 1.3rem;
  display: grid;
  gap: 0.5rem;
  color: var(--ink-soft);
}

.prose li {
  line-height: 1.7;
}

.prose li::marker {
  color: var(--gold);
}

.prose a {
  color: var(--green);
  font-weight: 600;
  border-bottom: 1px solid var(--gold-line);
}

.prose a:hover {
  border-bottom-color: currentColor;
}

.article-related {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.article-related a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--green-deep);
}

.article-related a:hover,
.article-related a:focus {
  background: var(--mist);
  border-color: var(--line-strong);
}

/* ---- Forms (help / serve / start / care intake) ---- */
.form {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow-sm);
  max-width: 780px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field.wide,
.choices,
.form-grid > .seg-field {
  grid-column: 1 / -1;
}

.field > span {
  font-weight: 600;
  color: var(--ink);
  font-size: 0.95rem;
}

.field i {
  font-style: normal;
  font-weight: 500;
  color: var(--ink-faint);
  font-size: 0.85rem;
}

.field input,
.field textarea {
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 0.72rem 0.85rem;
}

.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--green);
  outline-offset: 1px;
  border-color: var(--green);
}

.field textarea {
  resize: vertical;
}

.choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.choice {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  cursor: pointer;
  background: var(--paper);
}

.choice:has(input:checked) {
  border-color: var(--green);
  background: rgba(39, 166, 104, 0.08);
  box-shadow: inset 0 0 0 1px var(--green);
}

.choice input {
  margin-top: 0.2rem;
  accent-color: var(--green);
}

.choice span {
  font-weight: 600;
}

.seg {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.seg label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.9rem;
}

.seg label:has(input:checked) {
  border-color: var(--green);
  background: rgba(39, 166, 104, 0.08);
  color: var(--green-deep);
}

.seg input {
  accent-color: var(--green);
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.urgent-note {
  margin: 0 0 0.4rem;
  grid-column: 1 / -1;
  border-radius: 10px;
  padding: 0.85rem 0.95rem;
  background: #fbeede;
  color: #8a4a17;
  border: 1px solid var(--gold-line);
  font-weight: 600;
}

.urgent-note strong {
  color: #8a4a17;
}

.form .button {
  grid-column: 1 / -1;
  justify-self: start;
}

.form-status {
  margin: 0.6rem 0 0;
  font-weight: 600;
  color: var(--ink-soft);
}

.form-status.ok {
  color: var(--green);
}

.form-status.err {
  color: var(--word);
}

.form-privacy {
  margin: 0.8rem 0 0;
  color: var(--ink-faint);
  font-size: 0.9rem;
}

/* ---- "Explore the family" cross-link bar (slim strip above the footer) ---- */
.cba-family-bar {
  position: relative;
  z-index: 1;
  width: min(var(--wrap), calc(100% - 2.5rem));
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 1.5rem;
  padding: 1.1rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
  font-weight: 500;
}

.cba-family-bar .cba-family-eyebrow {
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.7rem;
  color: var(--ink-faint);
  margin-right: 0.4rem;
}

.cba-family-bar a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink-soft);
  text-decoration: none;
}

.cba-family-bar a:hover,
.cba-family-bar a:focus {
  color: var(--ink);
}

.cba-family-bar .dot {
  width: 0.5rem;
  height: 0.5rem;
  flex: none;
  border-radius: 50%;
  background: var(--c, var(--home));
}

/* ---- Footer — light + airy (Glory) ---- */
.site-footer {
  position: relative;
  z-index: 1;
  background: var(--paper);
  border-top: 1px solid var(--line);
  color: var(--ink);
}

.footer-inner {
  padding: clamp(3rem, 5vw, 4.2rem) 0 1.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(5, minmax(120px, 0.6fr));
  gap: 1.75rem 2rem;
}

.site-footer a {
  color: var(--ink-soft);
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus {
  color: var(--green-deep);
}

.site-footer h2 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
}

.site-footer h3 {
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.9rem;
}

.site-footer p {
  color: var(--ink-soft);
  max-width: 32ch;
}

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.legal-line {
  border-top: 1px solid var(--line);
  padding: 1rem 0;
  color: var(--ink-faint);
  font-size: 0.84rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.25rem;
}

.legal-links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.6rem;
}

.legal-links a {
  color: var(--ink-faint);
  text-decoration: none;
}

.legal-links a:hover,
.legal-links a:focus {
  color: var(--green-deep);
}

/* Colophon — "A ministry of CBA Orlando" (light footer). */
.cba-colophon {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  font-weight: 500;
  font-size: 0.88rem;
  color: var(--ink-soft);
  text-decoration: none;
}

.cba-colophon .cba-mark {
  flex: none;
  border-radius: 7px;
}

.cba-colophon strong {
  color: var(--ink);
  font-weight: 600;
}

.site-footer a.cba-colophon:hover strong,
.site-footer a.cba-colophon:focus strong {
  text-decoration: underline;
}

/* Shared family legal line — sits just above the operational legal line. */
.family-legal {
  border-top: 1px solid var(--line);
  padding: 1rem 0 0.25rem;
  color: var(--ink-faint);
  font-size: 0.84rem;
  line-height: 1.7;
}

.family-legal + .legal-line {
  border-top: 0;
  padding-top: 0.5rem;
}

/* ---- Giving panel (Tithe.ly embed + security cues) ---- */
.give-panel {
  max-width: 640px;
  margin: 0 auto;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.85rem;
}

.give-secure {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.5rem;
  font-weight: 600;
  color: var(--green-deep);
}

.give-lock {
  flex: none;
  color: var(--green-deep);
}

.give-embed {
  margin-top: 1.25rem;
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
}

.give-embed-help {
  margin: 0 0 1rem;
}

.give-embed-btn.cba-give {
  font-size: 1.05rem !important;
  padding: 0.85rem 2rem !important;
}

.give-embed-fallback {
  margin-top: 1.5rem;
  background: var(--mist);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.give-embed-fallback h3 {
  margin-top: 0;
}

/* ---- Transparency / legal facts ---- */
.legal-facts {
  margin: 0;
  display: grid;
  gap: 0.6rem;
}

.legal-row {
  display: grid;
  grid-template-columns: minmax(110px, 0.5fr) 1fr;
  gap: 0.5rem 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--line);
}

.legal-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.legal-row dt {
  font-weight: 600;
  color: var(--green-deep);
}

.legal-row dd {
  margin: 0;
  color: var(--ink);
}

.subhead {
  text-align: center;
  margin: 2rem 0 1rem;
  color: var(--green-deep);
}

/* ---- Header Donate button — the ONLY header CTA (BRAND-FAMILY.md §9) ---- */
.header-give {
  flex: none;
}

.cba-give,
button.tithely-give-button.cba-give {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--green-bright), var(--green)) !important;
  color: #fff !important;
  font: 600 0.95rem/1 var(--sans) !important;
  padding: 0.6rem 1.5rem !important;
  border-radius: 999px !important;
  border: none !important;
  cursor: pointer;
  text-shadow: none !important;
  box-shadow: 0 8px 20px -8px rgba(28, 122, 78, 0.6);
  min-height: 0;
  transition: transform 0.15s, box-shadow 0.15s;
}

.cba-give:hover,
.cba-give:focus {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px -10px rgba(28, 122, 78, 0.7);
}

/* ---- The Spectrum — Ministries hub door-coded spoke cards (BRAND-FAMILY.md §2) */
.spoke-spectrum {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
}

.spoke-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-top: 4px solid var(--door, var(--home));
  border-radius: var(--radius);
  padding: 1.7rem 1.6rem 1.6rem;
  box-shadow: none;
  transition: transform 0.22s, box-shadow 0.22s, border-color 0.22s;
}

.spoke-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.spoke-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--door, var(--home)) 14%, white);
  color: var(--door, var(--home));
}

.spoke-icon svg {
  width: 26px;
  height: 26px;
}

.spoke-card h3 {
  margin: 0.2rem 0 0;
}

.spoke-card p {
  margin: 0;
  color: var(--ink-soft);
}

.spoke-card .button.spoke-cta {
  margin-top: auto;
  background: var(--door, var(--home));
  color: #fff;
  border-color: transparent;
  align-self: flex-start;
  box-shadow: 0 12px 26px -14px color-mix(in srgb, var(--door, var(--home)) 80%, black);
}

.spoke-card .button.spoke-cta:hover,
.spoke-card .button.spoke-cta:focus {
  filter: brightness(0.96);
  color: #fff;
}

.spoke-card .muted {
  margin: 0;
  font-size: 0.85rem;
}

/* ======================================================================
   HOMEPAGE — Glory in the Light (matches cba-glory.html faithfully)
   ====================================================================== */

/* ---- Hero ---- */
.home-hero {
  position: relative;
  z-index: 1;
  padding: clamp(3.5rem, 9vh, 7rem) 0 clamp(3rem, 6vh, 5rem);
}

.home-hero .hero-inner {
  width: min(var(--wrap), calc(100% - 2.5rem));
  margin: 0 auto;
  max-width: 920px;
}

.home-hero .eyebrow {
  margin-bottom: 0;
}

.home-hero h1 {
  font-size: clamp(3rem, 7.2vw, 6rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin: 1.6rem 0 0;
  max-width: 16ch;
}

.home-hero .hero-lede {
  font-size: clamp(1.12rem, 2vw, 1.3rem);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 33em;
  margin: 1.6rem 0 0;
}

.home-hero .actions {
  margin-top: 2.2rem;
}

.verse-whisper {
  margin: 2.5rem 0 0;
  padding-left: 1.3rem;
  border-left: 2px solid var(--gold-line);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.12rem;
  color: var(--ink-soft);
  max-width: 34em;
}

.verse-whisper cite {
  display: block;
  font-style: normal;
  font-family: var(--sans);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 0.5rem;
  font-weight: 600;
}

.meta-line {
  margin-top: 2.3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.4rem;
  align-items: center;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
}

.meta-line .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold-2);
}

/* Faint rotating sun behind the hero. */
.hero-sun {
  position: absolute;
  top: 6%;
  right: -3%;
  width: min(36vw, 400px);
  opacity: 0.5;
  z-index: -1;
  pointer-events: none;
  animation: spin 90s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-sun { animation: none; }
}

/* ---- Three open doors ---- */
.doors .section-head {
  margin-bottom: 2.6rem;
}

.doors .grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

.door {
  position: relative;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 2.1rem 1.9rem 1.8rem;
  overflow: hidden;
  transition: transform 0.22s, box-shadow 0.22s, border-color 0.22s;
}

.door::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green-bright), var(--gold-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s;
}

.door:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
  border-color: var(--line-strong);
}

.door:hover::before {
  transform: scaleX(1);
}

.door .idx {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--gold);
}

.door h3 {
  font-size: 1.45rem;
  margin: 0.7rem 0 0.55rem;
}

.door p {
  margin: 0 0 1.3rem;
  color: var(--ink-soft);
  font-size: 0.99rem;
}

.door .go {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--green-deep);
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
}

.door .go .arr,
.button .arr,
.door:hover .go .arr {
  transition: transform 0.2s;
}

.door:hover .go .arr,
.button:hover .arr {
  transform: translateX(4px);
}

/* ---- Offerings grid (hairline cells) ---- */
.offer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--gold-line);
}

.offer .cell {
  padding: 1.9rem 1.6rem;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  transition: background 0.25s;
}

.offer .cell:nth-child(3n) {
  border-right: none;
}

.offer .cell:hover {
  background: var(--mist);
}

.offer .cell .ic {
  width: 30px;
  height: 30px;
  color: var(--green);
  margin-bottom: 0.9rem;
}

.offer .cell h3 {
  font-size: 1.18rem;
  margin: 0 0 0.35rem;
}

.offer .cell p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

/* ---- The glory Scripture band (faint gold conic rays) ---- */
.glory {
  position: relative;
  margin: clamp(3rem, 6vw, 5rem) 0;
  padding: clamp(4.5rem, 11vw, 8rem) 0;
  text-align: center;
  overflow: hidden;
}

.glory::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(50% 120% at 50% 0%, rgba(232, 207, 139, 0.30), transparent 70%),
    linear-gradient(180deg, #f7f4e9, var(--paper));
  border-top: 1px solid var(--gold-line);
  border-bottom: 1px solid var(--gold-line);
}

.glory .rays {
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 120%;
  height: 140%;
  z-index: -1;
  opacity: 0.4;
  pointer-events: none;
  background: conic-gradient(from 180deg at 50% 0%,
    transparent 0deg, rgba(201, 158, 60, 0.12) 12deg, transparent 24deg,
    rgba(201, 158, 60, 0.12) 36deg, transparent 48deg, rgba(201, 158, 60, 0.12) 60deg, transparent 72deg);
}

.glory blockquote {
  margin: 0 auto;
  max-width: 18ch;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(2rem, 5vw, 3.8rem);
  line-height: 1.12;
  color: var(--green-deep);
  letter-spacing: -0.02em;
}

.glory cite {
  display: block;
  margin-top: 1.6rem;
  font-style: normal;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.glory .sub {
  margin-top: 1.1rem;
  color: var(--ink-faint);
  font-size: 0.92rem;
}

/* ---- Visit + "This week" gather card ---- */
.visit-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.gather {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 2.2rem;
  box-shadow: var(--shadow);
}

.gather .tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-deep);
  background: rgba(39, 166, 104, 0.12);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 1.2rem;
}

.gather .row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.gather .row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.gather .row .k {
  font-family: var(--serif);
  font-size: 1.1rem;
}

.gather .row .v {
  color: var(--ink-soft);
  font-size: 0.92rem;
  text-align: right;
}

/* ---- Orchestrated page-load motion (one staggered fade-up) ---- */
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

.rise {
  animation: rise 0.95s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

/* ---- Responsive ---- */
@media (max-width: 980px) {
  .nav-toggle {
    display: inline-flex;
    order: 3;
  }

  .header-right {
    order: 2;
    margin-left: 0;
    gap: 0.6rem;
  }

  .main-nav {
    position: absolute;
    left: 1.25rem;
    right: 1.25rem;
    top: calc(100% + 0.5rem);
    display: none;
    align-items: stretch;
    flex-direction: column;
    background: var(--paper-2);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 0.5rem;
    box-shadow: var(--shadow);
    z-index: 50;
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    color: var(--ink);
    padding: 0.6rem 0.65rem;
  }

  .main-nav a::after {
    display: none;
  }

  .split,
  .grid.three,
  .grid.four,
  .footer-inner,
  .directory-grid,
  .doors .grid,
  .offer,
  .visit-grid {
    grid-template-columns: 1fr;
  }

  .doors .grid,
  .offer {
    grid-template-columns: 1fr 1fr;
  }

  .offer .cell:nth-child(3n) {
    border-right: 1px solid var(--line);
  }

  .offer .cell:nth-child(2n) {
    border-right: none;
  }

  .urgent-strip .section-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .home-hero .hero-sun {
    opacity: 0.3;
  }
}

@media (max-width: 640px) {
  main section {
    padding: 3.4rem 0;
  }

  .grid.two,
  .form-grid,
  .choices,
  .spoke-spectrum,
  .doors .grid,
  .offer {
    grid-template-columns: 1fr;
  }

  .offer .cell {
    border-right: none;
  }

  .actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .schedule-row {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .gather .row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
  }

  .gather .row .v {
    text-align: left;
  }
}

@media (min-width: 981px) and (max-width: 1180px) {
  .footer-inner {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .cba-family-bar {
    gap: 0.35rem 1.1rem;
  }
}
