/* Living Waters — site styles */
:root {
  --deep: #0b2a3c;
  --ocean: #12476a;
  --river: #176187;
  --spring: #7bd5e8;
  --mist: #e8f4f7;
  --sand: #f7f3ea;
  --gold: #e4c687;
  --gold-ink: #805b10;
  --ink: #1d2b33;
  --muted: #4b5d67;
  --white: #ffffff;
  --line: #d5e3e8;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --max: 1120px;
  --radius: 12px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  caret-color: var(--river);
}
::selection {
  background: rgba(23, 97, 135, 0.18);
  color: var(--deep);
}
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--sand);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a {
  color: var(--river);
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}
a:hover { color: var(--ocean); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--river);
  outline-offset: 3px;
}
.site-header a:focus-visible,
.site-header button:focus-visible,
.hero a:focus-visible,
.band a:focus-visible,
.site-footer a:focus-visible {
  outline-color: var(--spring);
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 24px;
  z-index: 100;
  background: var(--white);
  color: var(--deep);
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(11, 42, 60, 0.25);
  transition: top 0.2s var(--ease-out);
}
.skip-link:focus {
  top: 16px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .35s var(--ease-out), box-shadow .35s var(--ease-out), padding .35s var(--ease-out);
  padding: 20px 0;
}
.site-header.scrolled, .site-header.solid {
  background: rgba(11, 42, 60, .95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 6px 24px rgba(0,0,0,.18);
  padding: 12px 0;
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--serif); font-size: 1.6rem; font-weight: 600;
  color: var(--white); text-decoration: none; letter-spacing: .5px;
}
.brand:hover { color: var(--white); }
.brand svg { width: 30px; height: 30px; }
.nav-links { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  color: rgba(255,255,255,.9); text-decoration: none;
  font-size: .95rem; font-weight: 500; padding: 8px 14px; border-radius: 999px;
  transition: background .2s var(--ease-out), color .2s var(--ease-out);
}
.nav-links a:hover, .nav-links a.active { background: rgba(255,255,255,.16); color: var(--white); }
.nav-toggle {
  display: none; background: none; border: 0; color: var(--white);
  width: 44px; height: 44px; cursor: pointer; padding: 0;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 24px; height: 2px; background: currentColor; margin: 0 auto;
  position: relative; transition: transform .3s var(--ease-out), background .3s var(--ease-out);
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 92vh; min-height: 92svh;
  display: flex; align-items: center; justify-content: center; text-align: center;
  color: var(--white); overflow: hidden;
  background-color: var(--deep);
  background-image: linear-gradient(180deg, #091f2e 0%, #0d354f 52%, #134e73 100%);
}
.hero.page-hero {
  min-height: 44vh;
  min-height: 44svh;
}
.hero-inner { position: relative; z-index: 3; padding: 128px 24px 156px; max-width: 840px; }
.hero.page-hero .hero-inner { padding: 118px 24px 124px; }
.scripture-meta {
  display: block; font-size: .82rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--spring); font-weight: 600; margin-bottom: 16px;
}
.hero h1 {
  font-family: var(--serif); font-weight: 600; line-height: 1.08;
  font-size: clamp(2.7rem, 6.4vw, 4.8rem); margin: 0 0 22px;
  text-wrap: balance;
}
.hero.page-hero h1 {
  font-size: clamp(2.4rem, 5.2vw, 3.8rem);
  margin-bottom: 18px;
}
.hero h1 .accent { color: #bfeaf3; }
.hero .verse {
  font-family: var(--serif); font-style: italic; font-size: clamp(1.22rem, 2.3vw, 1.55rem);
  color: rgba(255,255,255,.92); margin: 0 auto 10px; max-width: 66ch;
}
.hero .ref {
  display: inline-block;
  font-size: .85rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold); font-weight: 600;
}
.hero-actions { margin-top: 36px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* rising bubbles / light particles */
.particles { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.particles span {
  position: absolute; bottom: -20px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.85), rgba(191,234,243,.2));
  animation: rise linear infinite; opacity: 0;
}
@keyframes rise {
  0% { transform: translateY(0) translateX(0); opacity: 0; }
  10% { opacity: .65; }
  100% { transform: translateY(-100vh) translateX(24px); opacity: 0; }
}

/* static shoreline divider */
.waves { position: absolute; left: 0; right: 0; bottom: -2px; z-index: 2; height: 110px; pointer-events: none; }
.hero.page-hero .waves { height: 84px; }
.waves svg { width: 100%; height: 100%; position: absolute; bottom: 0; left: 0; }
.waves .w1 { opacity: .28; }
.waves .w2 { opacity: .55; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 12px 26px; border-radius: 999px; font-weight: 600; font-size: .95rem;
  text-decoration: none; transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out), background .2s var(--ease-out), color .2s var(--ease-out);
  border: 0; cursor: pointer; font-family: var(--sans);
}
.btn-primary { background: var(--white); color: var(--deep); box-shadow: 0 10px 28px rgba(0,0,0,.22); }
.btn-primary:hover { transform: translateY(-2px); color: var(--deep); box-shadow: 0 14px 34px rgba(0,0,0,.28); }
.btn-ghost { color: var(--white); border: 1.5px solid rgba(255,255,255,.65); background: rgba(11, 42, 60, 0.25); }
.btn-ghost:hover { background: rgba(255,255,255,.15); color: var(--white); }
.btn-dark { background: var(--ocean); color: var(--white); box-shadow: 0 8px 22px rgba(11,42,60,.16); }
.btn-dark:hover { background: var(--deep); color: var(--white); transform: translateY(-2px); }

/* ---------- Sections ---------- */
section { padding: 96px 0; }
.section-tight-top { padding-top: 24px; }
.section-head { text-align: center; max-width: 700px; margin: 0 auto 52px; }
h2 {
  font-family: var(--serif); font-weight: 600; color: var(--deep);
  font-size: clamp(2rem, 4.2vw, 3rem); line-height: 1.15; margin: 0 0 14px;
  text-wrap: balance;
}
h3 { font-family: var(--serif); font-weight: 600; color: var(--deep); font-size: 1.55rem; margin: 0 0 10px; line-height: 1.25; }
.lead { font-size: 1.1rem; color: var(--muted); margin: 0 auto; max-width: 62ch; }

.intro { background: var(--sand); }
.intro-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.intro-text p { color: var(--muted); max-width: 65ch; }
.big-quote {
  font-family: var(--serif); font-size: clamp(1.55rem, 2.8vw, 2.1rem); line-height: 1.38;
  color: var(--ocean); font-style: italic; margin: 0; padding: 8px 0 8px 28px;
  border-left: 1px solid var(--gold-ink);
}
.big-quote cite {
  display: block; margin-top: 16px; font-style: normal; font-family: var(--sans);
  font-size: .84rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-ink); font-weight: 600;
}

/* cards (interactive links to Scripture themes) */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card {
  display: flex; flex-direction: column;
  background: var(--white); border-radius: var(--radius); padding: 34px 30px;
  border: 1px solid var(--line);
  box-shadow: 0 2px 6px rgba(11,42,60,.04), 0 14px 36px rgba(11,42,60,.06);
  transition: transform .28s var(--ease-out), box-shadow .28s var(--ease-out), border-color .28s var(--ease-out);
  position: relative; text-decoration: none; color: inherit;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--river);
  box-shadow: 0 18px 44px rgba(11,42,60,.12);
  color: inherit;
}
.card .icon {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: var(--mist); color: var(--river); margin-bottom: 20px;
}
.card .icon svg { width: 26px; height: 26px; }
.card p { color: var(--muted); margin: 0 0 18px; flex: 1; }
.card-footer {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-top: 14px; border-top: 1px solid var(--line);
}
.ref-line {
  font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold-ink); font-weight: 700;
}
.card-cta {
  font-size: .85rem; font-weight: 600; color: var(--river);
  display: inline-flex; align-items: center; gap: 4px;
}
.card:hover .card-cta { color: var(--ocean); }

/* journey / timeline */
.journey { background: linear-gradient(180deg, var(--mist), var(--sand)); }
.timeline {
  position: relative; max-width: 780px; margin: 0 auto;
  list-style: none; padding: 0;
}
.timeline::before {
  content: ""; position: absolute; left: 16px; top: 8px; bottom: 8px; width: 2px;
  background: linear-gradient(180deg, var(--river), var(--ocean));
}
.t-item {
  position: relative; padding: 0 0 40px 52px; text-align: left;
}
.t-item:last-child { padding-bottom: 0; }
.t-item::before {
  content: ""; position: absolute; left: 9px; top: 6px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--white); border: 3px solid var(--river); box-shadow: 0 0 0 5px rgba(23, 97, 135, 0.14);
}
.t-book {
  display: inline-block; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--river); font-weight: 700;
}
.t-item blockquote {
  margin: 6px 0 0; font-family: var(--serif); font-size: 1.35rem;
  font-style: italic; color: var(--ink); line-height: 1.45; max-width: 62ch;
}

/* Verse of the day */
.votd-section { padding: 76px 0; }
.votd-card {
  max-width: 760px; margin: 0 auto; text-align: center;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 48px 40px; box-shadow: 0 12px 36px rgba(11,42,60,.06);
}
.votd-label {
  display: block; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--river); font-weight: 700; margin-bottom: 14px;
}
.votd-text {
  font-family: var(--serif); font-size: clamp(1.55rem, 3.2vw, 2.25rem);
  line-height: 1.35; color: var(--ocean); font-style: italic; margin: 0 0 14px;
}
.votd-ref {
  display: inline-block; font-size: .85rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--gold-ink); font-weight: 700;
}

/* invitation band */
.band {
  position: relative; color: var(--white); text-align: center; overflow: hidden;
  background-color: var(--deep);
  background-image: linear-gradient(135deg, var(--deep), var(--ocean) 65%, #165980);
}
.band h2 { color: var(--white); max-width: 24ch; margin-left: auto; margin-right: auto; }
.band p { color: rgba(255,255,255,.9); max-width: 60ch; margin: 0 auto 32px; font-size: 1.1rem; }
.band .ripple {
  position: absolute; left: 50%; top: 50%; border: 1px solid rgba(255,255,255,.12); border-radius: 50%;
  transform: translate(-50%, -50%); animation: ripple 11s ease-out infinite; pointer-events: none;
}
.band .ripple:nth-child(2) { animation-delay: 5.5s; }
@keyframes ripple { from { width: 0; height: 0; opacity: .9; } to { width: 1200px; height: 1200px; opacity: 0; } }
.band .container { position: relative; z-index: 1; }

/* ---------- Scripture page ---------- */
.filter-bar {
  display: flex; flex-direction: column; align-items: center; gap: 14px; margin-bottom: 44px;
}
.filter { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.filter button {
  font-family: var(--sans); font-size: .92rem; font-weight: 600; cursor: pointer;
  min-height: 44px; padding: 9px 18px; border-radius: 999px;
  border: 1.5px solid #bfd7e0; background: var(--white); color: var(--ocean);
  transition: background .2s var(--ease-out), border-color .2s var(--ease-out), color .2s var(--ease-out);
  display: inline-flex; align-items: center; gap: 8px;
}
.filter button:hover { border-color: var(--river); color: var(--deep); }
.filter button.active,
.filter button[aria-pressed="true"] {
  background: var(--ocean); border-color: var(--ocean); color: var(--white);
}
.filter-count {
  font-size: .78rem; font-weight: 600; padding: 2px 8px; border-radius: 999px;
  background: var(--mist); color: var(--river);
  font-variant-numeric: tabular-nums;
}
.filter button.active .filter-count,
.filter button[aria-pressed="true"] .filter-count {
  background: rgba(255,255,255,.2); color: var(--white);
}
.filter-status {
  font-size: .9rem; color: var(--muted); margin: 0;
  font-variant-numeric: tabular-nums;
}

.verses { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.verse-card {
  background: var(--white); border-radius: var(--radius); padding: 32px;
  border: 1px solid var(--line);
  box-shadow: 0 8px 28px rgba(11,42,60,.06);
  display: flex; flex-direction: column; justify-content: space-between;
}
.verse-card.featured {
  grid-column: 1 / -1;
  background: linear-gradient(180deg, #ffffff 0%, #f4f9fb 100%);
  padding: 40px;
}
.verse-card.hide { display: none; }
.verse-card .v-ref {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line);
}
.verse-card .v-ref strong { font-family: var(--serif); font-size: 1.4rem; color: var(--deep); }
.verse-card.featured .v-ref strong { font-size: 1.6rem; }
.verse-card .tag {
  font-size: .74rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-ink); font-weight: 700; white-space: nowrap;
}
.verse-card blockquote {
  font-family: var(--serif); font-size: 1.24rem; line-height: 1.55;
  margin: 0 0 16px; color: var(--ink);
}
.verse-card.featured blockquote {
  font-size: clamp(1.35rem, 2.4vw, 1.65rem); line-height: 1.48; color: var(--ocean);
}
.verse-card .reflect {
  font-family: var(--sans); font-size: .95rem; color: var(--muted);
  margin: 0; padding-top: 14px; border-top: 1px solid #e3eef2;
}

.sc { font-variant: small-caps; }

/* ---------- About page ---------- */
.prose { max-width: 740px; margin: 0 auto; }
.prose p { color: var(--muted); font-size: 1.06rem; max-width: 66ch; }
.prose h2 { margin-top: 52px; }
.prose > div:first-child h2 { margin-top: 0; }
.values { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin: 28px 0 36px; }
.value {
  background: var(--white); border-radius: var(--radius); padding: 26px 28px;
  border: 1px solid var(--line);
  box-shadow: 0 4px 18px rgba(11,42,60,.05);
}
.value h3 { font-size: 1.35rem; margin-bottom: 8px; }
.value p { margin: 0; font-size: .98rem; }
.prose-cta { margin-top: 32px; }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; }
.contact-info .lead { margin: 0 0 34px; }
.contact-info .item { display: flex; gap: 16px; margin-bottom: 26px; }
.contact-info .item .icon {
  flex: 0 0 48px; height: 48px; border-radius: 50%;
  background: var(--mist); color: var(--river); display: grid; place-items: center;
}
.contact-info .item .icon svg { width: 22px; height: 22px; }
.contact-info .item h3 { font-size: 1.25rem; margin: 0 0 4px; }
.contact-info .item p { margin: 0; color: var(--muted); font-size: .98rem; }
.form {
  background: var(--white); border-radius: var(--radius); padding: 40px;
  border: 1px solid var(--line);
  box-shadow: 0 14px 44px rgba(11,42,60,.08);
}
.form-intro {
  font-size: .92rem; color: var(--muted); margin: 0 0 22px;
  padding-bottom: 16px; border-bottom: 1px solid var(--line);
}
.form label {
  display: block; font-size: .88rem; font-weight: 600; color: var(--deep); margin-bottom: 6px;
}
.form label .optional {
  font-weight: 400; color: var(--muted); font-size: .82rem;
}
.form input, .form textarea, .form select {
  width: 100%; font: inherit; font-size: 1rem; padding: 12px 16px; border-radius: 10px;
  border: 1.5px solid #c5d9e0; background: #fbfdfe; color: var(--ink); margin-bottom: 20px;
  transition: border-color .2s var(--ease-out), box-shadow .2s var(--ease-out);
}
.form input:focus, .form textarea:focus, .form select:focus {
  outline: none; border-color: var(--river); box-shadow: 0 0 0 4px rgba(23,97,135,.18);
}
.form textarea { min-height: 150px; resize: vertical; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-actions {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.form-status {
  margin-top: 20px; padding: 18px 20px; border-radius: 10px;
  background: var(--mist); border: 1px solid #b8dce6; color: var(--deep);
  font-size: .95rem; line-height: 1.55;
}
.form-status[hidden] { display: none; }
.form-status strong { display: block; margin-bottom: 4px; color: var(--deep); }
.form-status-actions {
  margin-top: 12px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center;
}
.btn-small {
  min-height: 38px; padding: 8px 16px; font-size: .86rem;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--deep); color: rgba(255,255,255,.8); padding: 64px 0 32px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.site-footer h4 { color: var(--white); font-family: var(--serif); font-size: 1.35rem; font-weight: 600; margin: 0 0 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: rgba(255,255,255,.82); text-decoration: none; }
.site-footer a:hover { color: var(--spring); }
.site-footer .brand { margin-bottom: 14px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.14); padding-top: 24px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .85rem;
}

/* ---------- Reveal on scroll (progressive enhancement) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .75s var(--ease-out), transform .75s var(--ease-out);
}
.js .reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- Mobile nav backdrop ---------- */
.nav-backdrop {
  position: fixed; inset: 0; z-index: 40;
  background: rgba(9, 31, 46, 0.55);
  opacity: 0; pointer-events: none;
  transition: opacity .3s var(--ease-out);
}
.nav-open .nav-backdrop {
  opacity: 1; pointer-events: auto;
}

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .intro-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  section { padding: 68px 0; }
  .container { padding: 0 18px; }
  .nav-toggle { display: block; position: relative; z-index: 60; }
  .nav-links {
    position: fixed; inset: 0 0 0 auto; z-index: 55;
    width: min(78vw, 320px); flex-direction: column; gap: 6px;
    background: var(--deep); padding: 88px 20px 24px;
    transform: translateX(100%); transition: transform .32s var(--ease-out), visibility .32s;
    visibility: hidden;
  }
  .nav-open .nav-links {
    transform: none; visibility: visible;
    box-shadow: -10px 0 40px rgba(0,0,0,.35);
  }
  .nav-links a { display: block; font-size: 1.05rem; padding: 12px 16px; }
  .cards, .verses, .values, .form .row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .t-item { padding: 0 0 36px 44px; }
  .form { padding: 28px 22px; }
  .votd-card { padding: 34px 24px; }
  .hero-inner { padding: 112px 18px 132px; }
  .hero.page-hero .hero-inner { padding: 104px 18px 104px; }
}

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