/* ============================================================
   Calvary Chapel Southern Vermont — Enhanced Design System
   Palette: warm bark browns + sage green + cream (original brand, refined)
   Type: Cormorant Garamond (display) / Source Sans 3 (body)
   ============================================================ */

:root {
  /* Brand colors (refined from original) */
  --bark-900: #3f2f1e;
  --bark-800: #52402a;
  --bark-700: #6b5337;
  --bark-600: #7d6141;
  --walnut: #8b6f47;
  --walnut-soft: #a98f68;
  --sage-700: #67804f;
  --sage-600: #7a9161;
  --sage-500: #9caf88;
  --sage-100: #e8eee1;
  --cream: #faf7f2;
  --linen: #f5efe7;
  --sand: #e5dcd3;
  --white: #ffffff;
  --gold: #c9a227;

  /* Semantic */
  --text-heading: var(--bark-700);
  --text-body: #5f4c33;
  --text-muted: #7d6a50;

  --shadow-sm: 0 1px 3px rgba(63, 47, 30, 0.08), 0 1px 2px rgba(63, 47, 30, 0.06);
  --shadow-md: 0 4px 16px rgba(63, 47, 30, 0.1), 0 2px 4px rgba(63, 47, 30, 0.06);
  --shadow-lg: 0 12px 32px rgba(63, 47, 30, 0.14), 0 4px 8px rgba(63, 47, 30, 0.07);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;

  --container: 1160px;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text-body);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-heading);
  line-height: 1.15;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); }
h3 { font-size: clamp(1.35rem, 2.5vw, 1.6rem); }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--sage-700); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--bark-700); }

:focus-visible {
  outline: 3px solid var(--sage-600);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--sage-500); color: var(--white); }

/* ---------- Utilities ---------- */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 1rem;
  z-index: 100;
  background: var(--bark-700);
  color: var(--white);
  padding: 0.6rem 1.2rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  transition: top 0.2s ease;
}
.skip-link:focus { top: 0; color: var(--white); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sage-700);
  margin-bottom: 1rem;
}
.eyebrow::before, .eyebrow--center::after {
  content: "";
  width: 34px;
  height: 1.5px;
  background: var(--sage-500);
}
.eyebrow--light { color: var(--sage-100); }
.eyebrow--light::before, .eyebrow--light::after { background: var(--sage-500); }

.section { padding-block: clamp(4rem, 9vw, 7rem); }
.section--linen { background: var(--linen); }
.section--white { background: var(--white); }

.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head p { font-size: 1.15rem; color: var(--text-muted); }

.lead { font-size: clamp(1.1rem, 2vw, 1.3rem); line-height: 1.65; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 52px;
  padding: 0.85rem 2rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: var(--font-body);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.25s ease, transform 0.2s ease;
}
.btn svg { flex-shrink: 0; }

.btn--primary { background: var(--sage-600); color: var(--white); box-shadow: var(--shadow-md); }
.btn--primary:hover { background: var(--sage-700); color: var(--white); box-shadow: var(--shadow-lg); transform: translateY(-2px); }

.btn--dark { background: var(--bark-700); color: var(--white); box-shadow: var(--shadow-md); }
.btn--dark:hover { background: var(--bark-800); color: var(--white); box-shadow: var(--shadow-lg); transform: translateY(-2px); }

.btn--outline { border-color: var(--bark-700); color: var(--bark-700); background: transparent; }
.btn--outline:hover { background: var(--bark-700); color: var(--white); }

.btn--outline-light { border-color: rgba(255,255,255,0.85); color: var(--white); background: rgba(255,255,255,0.08); backdrop-filter: blur(4px); }
.btn--outline-light:hover { background: var(--white); color: var(--bark-700); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(107, 83, 55, 0.12);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--bark-700);
}
.brand:hover { color: var(--bark-900); }
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--sage-500), var(--sage-700));
  display: grid;
  place-items: center;
  color: var(--white);
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.28rem;
  line-height: 1.1;
}
.brand-name small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--sage-700);
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  display: inline-block;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--bark-700);
  transition: background-color 0.2s ease, color 0.2s ease;
}
.nav-links a:hover { background: var(--sage-100); color: var(--bark-900); }
.nav-links a[aria-current="page"] { background: var(--sage-600); color: var(--white); }

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--bark-700);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle:hover { background: var(--sage-100); }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    background: var(--cream);
    border-bottom: 1px solid rgba(107, 83, 55, 0.15);
    box-shadow: var(--shadow-lg);
    padding: 1rem clamp(1.25rem, 4vw, 2.5rem) 1.5rem;
    display: none;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { display: block; padding: 0.8rem 1rem; }
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  min-height: min(88vh, 760px);
  display: flex;
  align-items: center;
  color: var(--white);
  isolation: isolate;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(105deg, rgba(63, 47, 30, 0.92) 0%, rgba(82, 64, 42, 0.82) 45%, rgba(107, 83, 55, 0.55) 100%);
}
.hero .container { padding-block: clamp(5rem, 12vw, 8rem); }
.hero-content { max-width: 44rem; }
.hero h1 { color: var(--white); margin-bottom: 0.4em; }
.hero .lead { color: var(--sand); font-family: var(--font-display); font-size: clamp(1.3rem, 2.6vw, 1.65rem); margin-bottom: 2.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  position: relative;
  background:
    radial-gradient(1200px 400px at 15% -10%, rgba(156, 175, 136, 0.35), transparent 60%),
    linear-gradient(120deg, var(--bark-800), var(--bark-700) 55%, var(--walnut));
  color: var(--white);
  padding-block: clamp(4.5rem, 9vw, 7rem);
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
}
.page-hero::before {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  border: 1.5px solid rgba(156, 175, 136, 0.25);
}
.page-hero h1 { color: var(--white); }
.page-hero .lead { color: var(--sand); max-width: 42rem; }

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid rgba(107, 83, 55, 0.09);
  box-shadow: var(--shadow-sm);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: rgba(156, 175, 136, 0.5); }

.icon-badge {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  background: var(--sage-100);
  color: var(--sage-700);
  margin-bottom: 1.1rem;
  flex-shrink: 0;
}
.icon-badge--solid { background: linear-gradient(140deg, var(--sage-500), var(--sage-700)); color: var(--white); }
.icon-badge--round { border-radius: 50%; }

/* ---------- Schedule ---------- */
.schedule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}
@media (min-width: 1080px) {
  .schedule-grid { grid-template-columns: repeat(5, 1fr); }
  .schedule-grid .card { padding: 1.5rem 1.35rem; }
}
.day-card { display: flex; flex-direction: column; }
.day-card h3 {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding-bottom: 0.9rem;
  margin-bottom: 1.1rem;
  border-bottom: 2px solid var(--sage-100);
}
.day-card h3 svg { color: var(--sage-600); }
.event-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.event-list li { display: grid; gap: 0.15rem; padding-left: 1rem; border-left: 3px solid var(--sage-500); }
.event-time {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage-700);
}
.event-title { font-weight: 600; color: var(--bark-700); line-height: 1.35; }

/* ---------- Split layout ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

/* ---------- Verse / quote blocks ---------- */
.verse-block {
  background: var(--linen);
  border-left: 4px solid var(--sage-500);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.4rem 1.7rem;
  margin: 1.6rem 0;
}
.verse-ref {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--bark-700);
  margin-bottom: 0.35rem;
}
.verse-text { color: var(--text-body); font-style: italic; margin: 0; }

.verse-block--light {
  background: rgba(255, 255, 255, 0.12);
  border-left-color: rgba(255, 255, 255, 0.85);
}
.verse-block--light .verse-ref, .verse-block--light .verse-text { color: var(--white); }

/* ---------- Panels ---------- */
.panel-dark {
  background:
    radial-gradient(800px 300px at 85% 0%, rgba(156, 175, 136, 0.3), transparent 55%),
    linear-gradient(135deg, var(--bark-800), var(--bark-700));
  color: var(--sand);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3.5rem);
  box-shadow: var(--shadow-lg);
}
.panel-dark h2, .panel-dark h3 { color: var(--white); }

.panel-sage {
  background: linear-gradient(135deg, var(--sage-600), var(--sage-700));
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3.5rem);
  box-shadow: var(--shadow-lg);
}
.panel-sage h2, .panel-sage h3 { color: var(--white); }

/* ---------- Steps / numbered flow ---------- */
.gospel-step { display: flex; gap: 1.6rem; }
.step-no {
  font-family: var(--font-display);
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 1;
  color: var(--sage-500);
  min-width: 2ch;
}
@media (max-width: 640px) { .gospel-step { flex-direction: column; gap: 0.6rem; } }

/* ---------- Grid helpers ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }

/* ---------- Checklist ---------- */
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.9rem; }
.check-list li { display: flex; align-items: flex-start; gap: 0.75rem; }
.check-list svg { color: var(--sage-600); flex-shrink: 0; margin-top: 0.2rem; }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 1.3rem; }
.form-field { display: grid; gap: 0.45rem; }
.form-field label { font-weight: 600; color: var(--bark-700); font-size: 0.95rem; }
.form-field input,
.form-field textarea {
  width: 100%;
  font: inherit;
  color: var(--text-body);
  background: var(--white);
  border: 1.5px solid rgba(107, 83, 55, 0.25);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--sage-600);
  box-shadow: 0 0 0 4px rgba(156, 175, 136, 0.25);
}
.form-field textarea { resize: vertical; min-height: 160px; }

.form-note {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  background: var(--sage-100);
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  font-size: 0.95rem;
  color: var(--sage-700);
}
.form-note svg { flex-shrink: 0; margin-top: 0.15rem; }
.form-note[hidden] { display: none; }

/* ---------- Video embed ---------- */
.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bark-900);
  box-shadow: var(--shadow-lg);
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Map ---------- */
.map-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(107, 83, 55, 0.12);
  min-height: 420px;
}
.map-frame iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }

/* ---------- Contact rows ---------- */
.contact-row { display: flex; align-items: flex-start; gap: 1rem; }
.contact-row + .contact-row { margin-top: 1.4rem; }
.contact-row svg { color: var(--sage-600); flex-shrink: 0; margin-top: 0.2rem; }
.contact-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage-700);
  display: block;
}
.contact-value { font-size: 1.08rem; font-weight: 600; color: var(--bark-700); }
address { font-style: normal; }

/* ---------- Resource cards ---------- */
.resource-card { display: flex; flex-direction: column; height: 100%; }
.resource-card h3 { display: flex; align-items: center; gap: 0.6rem; font-size: 1.25rem; }
.resource-card p { color: var(--text-muted); font-size: 0.98rem; flex-grow: 1; }
.resource-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--sage-700);
}
.resource-link:hover { color: var(--bark-700); }
.resource-link svg { transition: transform 0.2s ease; }
.resource-link:hover svg { transform: translateX(4px); }

.resource-cat-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: clamp(2.5rem, 5vw, 3.5rem) 0 1.5rem;
}
.resource-cat-head:first-of-type { margin-top: 0; }
.resource-cat-head h2 { margin: 0; font-size: clamp(1.5rem, 3vw, 1.9rem); }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  background:
    radial-gradient(900px 340px at 80% 120%, rgba(156, 175, 136, 0.4), transparent 60%),
    linear-gradient(120deg, var(--bark-800), var(--bark-700));
  color: var(--sand);
  text-align: center;
  padding-block: clamp(4rem, 8vw, 6rem);
  overflow: hidden;
}
.cta-band h2 { color: var(--white); }
.cta-band .lead { max-width: 42rem; margin-inline: auto; margin-bottom: 2rem; color: var(--sand); }
.cta-band .hero-actions { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bark-900);
  color: rgba(229, 220, 211, 0.85);
  padding-top: clamp(3.5rem, 7vw, 5rem);
  font-size: 0.98rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: clamp(2rem, 5vw, 4rem);
  padding-bottom: 3rem;
}
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr; } }

.site-footer h3 {
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: 1.1rem;
}
.site-footer a { color: rgba(229, 220, 211, 0.85); }
.site-footer a:hover { color: var(--sage-500); }

.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.footer-contact { display: grid; gap: 0.9rem; }
.footer-contact-row { display: flex; gap: 0.7rem; align-items: flex-start; }
.footer-contact-row svg { color: var(--sage-500); flex-shrink: 0; margin-top: 0.25rem; }

.footer-bottom {
  border-top: 1px solid rgba(229, 220, 211, 0.15);
  padding-block: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem;
  font-size: 0.88rem;
  color: rgba(229, 220, 211, 0.6);
}
.footer-social { display: flex; gap: 0.8rem; }
.footer-social a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  transition: background-color 0.2s ease, color 0.2s ease;
}
.footer-social a:hover { background: var(--sage-600); color: var(--white); }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }

/* ---------- Misc ---------- */
.divider-leaf {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--sage-600);
  margin: clamp(2rem, 5vw, 3rem) auto;
}
.divider-leaf::before, .divider-leaf::after {
  content: "";
  height: 1.5px;
  width: min(120px, 20vw);
  background: linear-gradient(to var(--dir, right), transparent, var(--sage-500));
}
.divider-leaf::before { --dir: right; }
.divider-leaf::after { --dir: left; }
