/* ==========================================================================
   Grace Missionary Baptist Church — site styles
   ========================================================================== */

:root {
  /* Brand */
  --wine-950: #1f000c;
  --wine-900: #2e0513;
  --wine-800: #45001b;
  --wine-700: #5a1a2e;
  --wine-600: #6a2b3e;
  --wine-400: #91374f;
  --wine-200: #d9b3bd;
  --gold: #d4a857;
  --gold-soft: #e9cf98;

  /* Neutrals */
  --cream: #fbf7f1;
  --sand: #f3ebe0;
  --stone: #e6dccf;
  --ink: #1e1417;
  --ink-soft: #5b4d51;
  --white: #ffffff;

  /* Type */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Layout */
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 20px;
  --radius-lg: 32px;
  --header-h: 84px;
  --shadow: 0 20px 50px -20px rgba(46, 5, 19, 0.35);
  --shadow-sm: 0 8px 24px -12px rgba(46, 5, 19, 0.25);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  font-variation-settings: "opsz" 144;
}
h1 { font-size: clamp(2.8rem, 7vw, 5.6rem); }
h2 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); letter-spacing: -0.01em; }
p { margin: 0 0 1.1em; }
em.accent, .accent { font-style: italic; color: var(--wine-400); }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--gold); color: var(--wine-950);
  padding: 10px 16px; border-radius: 10px; font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 16px; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

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

.section { padding: clamp(72px, 11vw, 140px) 0; position: relative; }
.section--tight { padding: clamp(56px, 7vw, 96px) 0; }
.section--sand { background: var(--sand); }
.section--wine { background: var(--wine-800); color: var(--cream); }
.section--dark { background: var(--wine-950); color: var(--cream); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--wine-400); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.section--wine .eyebrow,
.section--dark .eyebrow,
.hero .eyebrow,
.page-hero .eyebrow { color: var(--gold); }

.lead { font-size: clamp(1.08rem, 1.5vw, 1.25rem); color: var(--ink-soft); max-width: 60ch; }
.section--wine .lead, .section--dark .lead { color: rgba(251, 247, 241, 0.78); }

.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--wine-800); --btn-fg: var(--cream);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px; border: 2px solid transparent;
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 700; font-size: 0.98rem; letter-spacing: 0.01em; text-decoration: none;
  cursor: pointer; transition: transform 0.35s var(--ease), background 0.25s, box-shadow 0.35s var(--ease), color 0.25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn svg { width: 18px; height: 18px; flex: none; transition: transform 0.35s var(--ease); }
.btn:hover svg.arrow { transform: translateX(4px); }
.btn--gold { --btn-bg: var(--gold); --btn-fg: var(--wine-950); }
.btn--gold:hover { --btn-bg: var(--gold-soft); }
.btn--light { --btn-bg: var(--cream); --btn-fg: var(--wine-800); }
.btn--ghost { --btn-bg: transparent; --btn-fg: currentColor; border-color: currentColor; }
.btn--ghost:hover { --btn-bg: rgba(255, 255, 255, 0.08); }
.btn--sm { padding: 10px 18px; font-size: 0.88rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; color: var(--wine-800); text-decoration: none;
  border-bottom: 2px solid var(--gold); padding-bottom: 2px;
}
.link-arrow svg { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }
.section--wine .link-arrow, .section--dark .link-arrow { color: var(--cream); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  transition: background 0.35s, box-shadow 0.35s, height 0.35s var(--ease);
}
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-header.is-scrolled,
.site-header.is-solid {
  background: rgba(251, 247, 241, 0.92);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 rgba(46, 5, 19, 0.08);
  --header-h: 72px;
}

.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 56px; width: auto; transition: height 0.35s var(--ease); }
.brand .logo-dark { display: none; }
.site-header.is-scrolled .brand .logo-light,
.site-header.is-solid .brand .logo-light { display: none; }
.site-header.is-scrolled .brand .logo-dark,
.site-header.is-solid .brand .logo-dark { display: block; }
.site-header.is-scrolled .brand img { height: 46px; }
@media (max-width: 520px) { .brand img { height: 46px; } .site-header.is-scrolled .brand img { height: 40px; } }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  position: relative; padding: 10px 14px; border-radius: 999px;
  color: var(--cream); text-decoration: none; font-weight: 600; font-size: 0.95rem;
  transition: color 0.25s, background 0.25s;
}
.nav a:not(.btn):hover { background: rgba(255, 255, 255, 0.1); }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 50%; bottom: 3px; width: 5px; height: 5px;
  background: var(--gold); border-radius: 50%; transform: translateX(-50%);
}
.site-header.is-scrolled .nav a:not(.btn),
.site-header.is-solid .nav a:not(.btn) { color: var(--ink); }
.site-header.is-scrolled .nav a:not(.btn):hover,
.site-header.is-solid .nav a:not(.btn):hover { background: rgba(69, 0, 27, 0.07); }
.nav .btn { margin-left: 10px; }
.nav a.btn { color: var(--btn-fg); }

.nav-toggle {
  display: none; width: 48px; height: 48px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, 0.12); cursor: pointer; position: relative; z-index: 120;
}
.nav-toggle span {
  position: absolute; left: 14px; right: 14px; height: 2px; background: var(--cream); border-radius: 2px;
  transition: transform 0.35s var(--ease), opacity 0.2s, top 0.35s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 18px; }
.nav-toggle span:nth-child(2) { top: 23px; }
.nav-toggle span:nth-child(3) { top: 28px; }
.site-header.is-scrolled .nav-toggle,
.site-header.is-solid .nav-toggle { background: rgba(69, 0, 27, 0.08); }
.site-header.is-scrolled .nav-toggle span,
.site-header.is-solid .nav-toggle span { background: var(--wine-800); }
.nav-open .nav-toggle { background: rgba(255, 255, 255, 0.12) !important; }
.nav-open .nav-toggle span { background: var(--cream) !important; }
.nav-open .nav-toggle span:nth-child(1) { top: 23px; transform: rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { top: 23px; transform: rotate(-45deg); }

@media (max-width: 1020px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 0; z-index: 110;
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px;
    padding: 100px var(--gutter) 40px;
    background: var(--wine-950);
    background-image: radial-gradient(circle at 85% 10%, rgba(145, 55, 79, 0.55), transparent 55%);
    opacity: 0; visibility: hidden; transform: translateY(-12px);
    transition: opacity 0.35s var(--ease), transform 0.45s var(--ease), visibility 0.35s;
  }
  .nav-open .nav { opacity: 1; visibility: visible; transform: none; }
  .brand { position: relative; z-index: 120; }
  .nav-open .site-header { background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav-open .brand .logo-light { display: block !important; }
  .nav-open .brand .logo-dark { display: none !important; }
  .nav a:not(.btn), .site-header.is-scrolled .nav a:not(.btn), .site-header.is-solid .nav a:not(.btn) {
    color: var(--cream); font-family: var(--font-display); font-size: clamp(1.8rem, 7vw, 2.6rem);
    font-weight: 400; padding: 6px 0; background: none !important;
  }
  .nav a[aria-current="page"] { color: var(--gold) !important; }
  .nav a[aria-current="page"]::after { display: none; }
  .nav .btn { margin: 24px 0 0; font-family: var(--font-body); font-size: 1rem; padding: 15px 28px; }
  .nav-open { overflow: hidden; }
}

/* ---------- Home hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  padding: calc(var(--header-h) + 40px) 0 80px;
  background: var(--wine-950); color: var(--cream); overflow: hidden; isolation: isolate;
}
.hero__bg {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(ellipse at 15% 20%, rgba(145, 55, 79, 0.55), transparent 55%),
    radial-gradient(ellipse at 90% 90%, rgba(212, 168, 87, 0.18), transparent 50%),
    linear-gradient(160deg, var(--wine-800), var(--wine-950) 70%);
}
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
  opacity: 0.12; mix-blend-mode: overlay;
}
.hero__cross {
  position: absolute; z-index: -1; right: -8%; top: 50%; width: min(70vw, 900px); aspect-ratio: 1;
  transform: translateY(-50%); opacity: 0.07; pointer-events: none;
}
.hero__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.hero h1 { margin-bottom: 0.35em; }
.hero h1 .script {
  display: block; font-style: italic; font-weight: 400; color: var(--gold);
  font-size: 1.12em; line-height: 0.95;
}
.hero__text { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: rgba(251, 247, 241, 0.8); max-width: 54ch; margin-bottom: 34px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 48px; }

.times { display: flex; flex-wrap: wrap; gap: 12px; }
.time-chip {
  display: flex; align-items: center; gap: 14px; padding: 12px 20px 12px 14px;
  border-radius: 16px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
}
.time-chip__icon {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(212, 168, 87, 0.16); color: var(--gold); flex: none;
}
.time-chip__icon svg { width: 20px; height: 20px; }
.time-chip strong { display: block; font-size: 1.05rem; line-height: 1.2; }
.time-chip span { font-size: 0.82rem; color: rgba(251, 247, 241, 0.65); }

.hero__media { position: relative; aspect-ratio: 4 / 5; max-width: 520px; justify-self: end; width: 100%; }
.hero__photo {
  position: absolute; border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6);
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__photo--main { inset: 0 0 18% 12%; }
.hero__photo--main img { filter: saturate(1.15) contrast(1.05); }
.hero__photo--small { width: 52%; aspect-ratio: 1; left: 0; bottom: 0; border: 6px solid var(--wine-950); }
.hero__badge {
  position: absolute; right: -6%; bottom: 4%; width: 168px; height: 168px; border-radius: 50%;
  background: var(--gold); color: var(--wine-950); display: grid; place-items: center; text-align: center;
  box-shadow: var(--shadow);
}
.hero__badge svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 22s linear infinite; }
.hero__badge img { width: 58px; }
@keyframes spin { to { transform: rotate(360deg); } }

.hero__scroll {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid rgba(251, 247, 241, 0.35); border-radius: 20px;
}
.hero__scroll::after {
  content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px;
  background: var(--gold); border-radius: 4px; animation: scrolldot 2s var(--ease) infinite;
}
@keyframes scrolldot { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

@media (max-width: 900px) {
  .hero { min-height: auto; padding-bottom: 72px; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { justify-self: center; max-width: 440px; margin-top: 8px; }
  .hero__scroll { display: none; }
}
@media (max-width: 520px) {
  .hero__badge { width: 132px; height: 132px; right: -2%; }
  .hero__badge img { width: 46px; }
  .time-chip { width: 100%; }
}

/* ---------- Marquee ---------- */
.marquee {
  background: var(--gold); color: var(--wine-950); overflow: hidden; padding: 18px 0;
  font-family: var(--font-display); font-size: clamp(1.3rem, 2.4vw, 1.9rem); font-style: italic;
  white-space: nowrap; user-select: none;
}
.marquee__track { display: inline-flex; gap: 40px; animation: marquee 38s linear infinite; padding-right: 40px; }
.marquee__track span { display: inline-flex; align-items: center; gap: 40px; }
.marquee__track span::after { content: "✦"; font-style: normal; font-size: 0.7em; color: var(--wine-600); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Welcome ---------- */
.welcome { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.welcome__portrait { position: relative; max-width: 480px; }
.welcome__portrait::before {
  content: ""; position: absolute; inset: 12% 0 0 0; border-radius: 50% 50% var(--radius-lg) var(--radius-lg);
  background: linear-gradient(170deg, var(--wine-400), var(--wine-800));
}
.welcome__portrait img { position: relative; width: 100%; filter: grayscale(1) contrast(1.08); mix-blend-mode: normal; }
.welcome__portrait figcaption {
  position: absolute; left: 50%; bottom: -22px; transform: translateX(-50%);
  background: var(--cream); padding: 14px 24px; border-radius: 16px; box-shadow: var(--shadow-sm);
  text-align: center; white-space: nowrap;
}
.welcome__portrait figcaption strong { display: block; font-family: var(--font-display); font-size: 1.15rem; font-weight: 500; }
.welcome__portrait figcaption span { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--wine-400); font-weight: 700; }
.signature { width: 180px; margin: 8px 0 28px; opacity: 0.85; }
@media (max-width: 860px) {
  .welcome { grid-template-columns: 1fr; }
  .welcome__portrait { margin: 0 auto 30px; width: 86%; }
}

/* ---------- Theme banner ---------- */
.theme-banner { position: relative; overflow: hidden; isolation: isolate; text-align: center; }
.theme-banner__bg { position: absolute; inset: 0; z-index: -1; }
.theme-banner__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.28; filter: grayscale(0.3); }
.theme-banner__bg::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(69, 0, 27, 0.55), var(--wine-800) 78%);
}
.theme-year {
  font-family: var(--font-display); font-size: clamp(5rem, 18vw, 15rem); line-height: 0.8; font-weight: 600;
  color: transparent; -webkit-text-stroke: 1.5px rgba(212, 168, 87, 0.55); letter-spacing: -0.04em;
  margin-bottom: -0.18em;
}
.theme-title { font-size: clamp(2.6rem, 7vw, 5.8rem); margin-bottom: 0.3em; }
.theme-title em { color: var(--gold); font-weight: 400; }
.theme-verse { max-width: 720px; margin: 0 auto 10px; font-family: var(--font-display); font-size: clamp(1.1rem, 1.9vw, 1.45rem); font-style: italic; line-height: 1.5; color: rgba(251, 247, 241, 0.88); }
.theme-ref { font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 700; color: var(--gold); }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: clamp(18px, 2.4vw, 28px); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1020px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) { .grid--3, .grid--2 { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .grid--4 { grid-template-columns: 1fr; } }

.card {
  position: relative; background: var(--white); border-radius: var(--radius); padding: clamp(26px, 3vw, 36px);
  border: 1px solid rgba(69, 0, 27, 0.07); box-shadow: 0 1px 2px rgba(46, 5, 19, 0.04);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card__icon {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 22px;
  background: linear-gradient(145deg, var(--wine-600), var(--wine-800)); color: var(--gold);
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 0.4em; }
.card p { color: var(--ink-soft); margin-bottom: 0; }
.card__meta { font-family: var(--font-display); font-size: clamp(2rem, 3.4vw, 2.6rem); color: var(--wine-800); line-height: 1; margin-bottom: 10px; }
.card__meta small { font-size: 0.5em; font-family: var(--font-body); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--wine-400); margin-left: 4px; }
.card__tag {
  display: inline-block; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--wine-400); margin-bottom: 14px;
}
.card--link { text-decoration: none; display: flex; flex-direction: column; }
.card--link .link-arrow { margin-top: auto; padding-top: 22px; border: 0; align-self: flex-start; }
.card--link p { margin-bottom: 0; }
.card--feature { background: var(--wine-800); color: var(--cream); border: 0; }
.card--feature .card__meta { color: var(--gold); }
.card--feature p { color: rgba(251, 247, 241, 0.75); }
.card--feature .card__tag { color: var(--gold-soft); }
.card--feature .card__icon { background: rgba(212, 168, 87, 0.15); }

.zoom-box {
  margin-top: 20px; padding: 14px 16px; border-radius: 14px; background: rgba(0, 0, 0, 0.18);
  display: grid; gap: 8px; font-size: 0.9rem;
}
.zoom-box div { display: flex; justify-content: space-between; align-items: center; gap: 10px; white-space: nowrap; }
.zoom-box code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.95rem; color: var(--cream); letter-spacing: 0.04em; }
.copy-btn {
  border: 1px solid rgba(255, 255, 255, 0.25); background: transparent; color: var(--gold-soft);
  border-radius: 999px; padding: 4px 12px; font-size: 0.75rem; font-weight: 700; cursor: pointer;
  transition: background 0.2s;
}
.copy-btn:hover { background: rgba(255, 255, 255, 0.1); }
.copy-btn.is-copied { background: var(--gold); color: var(--wine-950); border-color: var(--gold); }

/* ---------- Latest news (filled in by live-content.js) ---------- */
.news-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; max-width: none; }
.news-head h2 { margin-bottom: 0; }
.news-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; text-decoration: none; color: inherit; }
.news-card__img { aspect-ratio: 16 / 9; background: var(--wine-900); overflow: hidden; }
.news-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.news-card:hover .news-card__img img { transform: scale(1.05); }
.news-card__body { padding: clamp(20px, 2.4vw, 28px); }
.news-card h3 { margin-bottom: 0.35em; }

/* ---------- Sermon ---------- */
.sermon { display: grid; grid-template-columns: 1.35fr 0.65fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.video {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--wine-950); box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.7); cursor: pointer;
}
.video img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease), opacity 0.4s; opacity: 0.85; }
.video:hover img { transform: scale(1.04); opacity: 1; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 92px; height: 92px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--gold); color: var(--wine-950); display: grid; place-items: center;
  box-shadow: 0 0 0 0 rgba(212, 168, 87, 0.6); animation: pulse 2.4s infinite;
  transition: transform 0.35s var(--ease);
}
.video:hover .video__play { transform: translate(-50%, -50%) scale(1.08); }
.video__play svg { width: 30px; height: 30px; margin-left: 5px; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(212, 168, 87, 0.55); } 70% { box-shadow: 0 0 0 26px rgba(212, 168, 87, 0); } 100% { box-shadow: 0 0 0 0 rgba(212, 168, 87, 0); } }
.video__label {
  position: absolute; left: 20px; top: 20px; display: inline-flex; align-items: center; gap: 8px;
  background: rgba(31, 0, 12, 0.7); backdrop-filter: blur(6px); color: var(--cream);
  padding: 8px 14px; border-radius: 999px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
}
.video__label i { width: 8px; height: 8px; border-radius: 50%; background: #ff4d4d; }
@media (max-width: 900px) { .sermon { grid-template-columns: 1fr; } }

/* ---------- Scripture ---------- */
.scripture { text-align: center; max-width: 900px; margin: 0 auto; }
.scripture__mark { font-family: var(--font-display); font-size: 7rem; line-height: 0.5; color: var(--gold); height: 44px; }
.scripture blockquote {
  margin: 0 0 20px; font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.45rem, 3vw, 2.3rem); line-height: 1.35; letter-spacing: -0.01em;
}
.scripture cite { font-style: normal; font-size: 0.8rem; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; color: var(--wine-400); }

/* ---------- Give / App CTA ---------- */
.cta-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(18px, 2.4vw, 28px); }
.cta-panel {
  position: relative; overflow: hidden; isolation: isolate; border-radius: var(--radius-lg);
  padding: clamp(36px, 5vw, 64px); min-height: 360px; display: flex; flex-direction: column; justify-content: flex-end;
}
.cta-panel h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
.cta-panel p { max-width: 42ch; }
.cta-panel--give { background: var(--wine-800); color: var(--cream); }
.cta-panel--give p { color: rgba(251, 247, 241, 0.78); }
.cta-panel--give::before {
  content: ""; position: absolute; z-index: -1; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 168, 87, 0.35), transparent 70%);
}
.cta-panel--app { background: var(--gold); color: var(--wine-950); }
.cta-panel--app::before {
  content: ""; position: absolute; z-index: -1; right: -40px; top: -40px; width: 240px; height: 240px;
  background: url("../images/shield.png") center / contain no-repeat; opacity: 0.16; transform: rotate(12deg);
}
.store-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.store-btn {
  display: inline-flex; align-items: center; gap: 12px; padding: 10px 20px 10px 16px; border-radius: 14px;
  background: var(--wine-950); color: var(--cream); text-decoration: none; transition: transform 0.3s var(--ease);
}
.store-btn:hover { transform: translateY(-2px); }
.store-btn svg { width: 26px; height: 26px; }
.store-btn small { display: block; font-size: 0.68rem; opacity: 0.75; line-height: 1.1; }
.store-btn strong { display: block; font-size: 1.05rem; line-height: 1.2; }
@media (max-width: 860px) { .cta-split { grid-template-columns: 1fr; } .cta-panel { min-height: 300px; } }

/* ---------- Visit / map ---------- */
.visit { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(28px, 4vw, 56px); align-items: stretch; }
.visit__info { display: flex; flex-direction: column; justify-content: center; }
.info-list { list-style: none; padding: 0; margin: 28px 0 32px; display: grid; gap: 18px; }
.info-list li { display: flex; gap: 16px; align-items: flex-start; }
.info-list .ico {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; flex: none;
  background: var(--sand); color: var(--wine-800);
}
.section--sand .info-list .ico { background: var(--white); }
.info-list .ico svg { width: 20px; height: 20px; }
.info-list small { display: block; font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 800; color: var(--wine-400); }
.info-list a, .info-list span { font-weight: 600; text-decoration: none; font-size: 1.05rem; }
.info-list a:hover { color: var(--wine-400); }
.map {
  border-radius: var(--radius-lg); overflow: hidden; min-height: 420px; box-shadow: var(--shadow);
  border: 6px solid var(--white); background: var(--stone);
}
.map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; filter: grayscale(0.25) contrast(1.05); }
@media (max-width: 860px) { .visit { grid-template-columns: 1fr; } .map, .map iframe { min-height: 320px; } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden; color: var(--cream);
  padding: calc(var(--header-h) + clamp(70px, 10vw, 130px)) 0 clamp(70px, 9vw, 120px);
  background: var(--wine-950);
}
.page-hero__bg { position: absolute; inset: 0; z-index: -1; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.5; }
.page-hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, var(--wine-950) 20%, rgba(46, 5, 19, 0.6) 65%, rgba(46, 5, 19, 0.3));
}
.page-hero h1 { font-size: clamp(2.8rem, 7vw, 5.2rem); max-width: 14ch; }
.page-hero h1 em { color: var(--gold); font-weight: 400; }
.page-hero .lead { color: rgba(251, 247, 241, 0.8); }
.breadcrumbs { font-size: 0.85rem; color: rgba(251, 247, 241, 0.6); margin-bottom: 22px; }
.breadcrumbs a { color: rgba(251, 247, 241, 0.85); text-decoration: none; }
.breadcrumbs a:hover { color: var(--gold); }

/* ---------- About: story + timeline ---------- */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.story__img { position: relative; }
.story__img img { border-radius: var(--radius-lg); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; box-shadow: var(--shadow); }
.story__stat {
  position: absolute; right: -18px; bottom: -28px; background: var(--gold); color: var(--wine-950);
  padding: 22px 28px; border-radius: var(--radius); box-shadow: var(--shadow);
}
.story__stat strong { display: block; font-family: var(--font-display); font-size: 3rem; line-height: 1; font-weight: 600; }
.story__stat span { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
@media (max-width: 860px) { .story { grid-template-columns: 1fr; } .story__stat { right: 12px; } }

.timeline { position: relative; max-width: 920px; margin: 0 auto; }
.timeline::before {
  content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px;
  background: linear-gradient(var(--gold), rgba(212, 168, 87, 0.15));
}
.tl-item { position: relative; width: 50%; padding: 0 48px 56px 0; }
.tl-item:nth-child(even) { margin-left: 50%; padding: 0 0 56px 48px; }
.tl-item::before {
  content: ""; position: absolute; top: 10px; right: -9px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--wine-950); border: 3px solid var(--gold); box-shadow: 0 0 0 6px rgba(212, 168, 87, 0.15);
}
.tl-item:nth-child(even)::before { right: auto; left: -9px; }
.tl-item:nth-child(odd) { text-align: right; }
.tl-year { font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 3.2rem); color: var(--gold); line-height: 1; margin-bottom: 6px; }
.tl-item h3 { color: var(--cream); margin-bottom: 0.3em; }
.tl-item p { color: rgba(251, 247, 241, 0.72); margin: 0; }
@media (max-width: 720px) {
  .timeline::before { left: 9px; }
  .tl-item, .tl-item:nth-child(odd), .tl-item:nth-child(even) { width: 100%; margin-left: 0; padding: 0 0 44px 44px; text-align: left; }
  .tl-item::before, .tl-item:nth-child(even)::before { left: 0; right: auto; }
}

.lineage .card { text-align: center; }
.lineage .card__num {
  font-family: var(--font-display); font-size: 4rem; line-height: 1; color: var(--wine-200); margin-bottom: 8px; font-weight: 600;
}
.lineage .card--feature .card__num { color: var(--gold); }

.vision {
  text-align: center; font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 4.8rem); line-height: 1.05; letter-spacing: -0.02em;
}
.vision em { color: var(--gold); }

/* ---------- Pastor page ---------- */
.pastor-hero { padding-bottom: 0; }
.pastor-hero__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: end; }
.pastor-hero__grid > div:first-child { padding-bottom: clamp(70px, 9vw, 120px); }
.pastor-hero__img { position: relative; align-self: end; }
.pastor-hero__img::before {
  content: ""; position: absolute; left: 8%; right: 8%; bottom: 0; height: 80%;
  border-radius: 50% 50% 0 0; background: radial-gradient(circle at 50% 30%, var(--wine-400), var(--wine-700) 70%);
}
.pastor-hero__img img { position: relative; width: 100%; max-width: 520px; margin: 0 auto; filter: grayscale(1) contrast(1.1); }
@media (max-width: 860px) {
  .pastor-hero__grid { grid-template-columns: 1fr; }
  .pastor-hero__grid > div:first-child { padding-bottom: 0; }
  .pastor-hero__img { max-width: 400px; margin: 0 auto; width: 90%; }
}

.bio { display: grid; grid-template-columns: 0.75fr 1.25fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.bio__aside { position: sticky; top: 110px; }
.bio__body p { font-size: 1.08rem; }
.bio__body p:first-of-type::first-letter {
  font-family: var(--font-display); float: left; font-size: 4.6rem; line-height: 0.85; padding: 6px 12px 0 0; color: var(--wine-800);
}
.bio__body h3 { margin-top: 1.6em; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.facts li {
  display: flex; gap: 14px; align-items: center; background: var(--white); padding: 14px 18px; border-radius: 14px;
  border: 1px solid rgba(69, 0, 27, 0.07);
}
.facts b { font-family: var(--font-display); font-weight: 500; font-size: 1.35rem; color: var(--wine-800); min-width: 58px; }
.facts span { font-size: 0.93rem; color: var(--ink-soft); line-height: 1.4; }
.pill-list { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 12px 0 0; }
.pill-list li { padding: 8px 16px; border-radius: 999px; background: var(--sand); font-size: 0.9rem; font-weight: 600; color: var(--wine-800); }
@media (max-width: 860px) { .bio { grid-template-columns: 1fr; } .bio__aside { position: static; } }

/* ---------- Events ---------- */
.weekly { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 28px); }
@media (max-width: 860px) { .weekly { grid-template-columns: 1fr; } }
.event-card {
  display: grid; grid-template-columns: 1.1fr 0.9fr; background: var(--white); border-radius: var(--radius-lg);
  overflow: hidden; border: 1px solid rgba(69, 0, 27, 0.07); transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.event-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.event-card + .event-card { margin-top: 28px; }
.event-card__img { position: relative; background: var(--wine-950); }
.event-card__img img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 9; }
.event-card__body { padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; justify-content: center; }
.event-date { display: inline-flex; align-items: stretch; gap: 0; margin-bottom: 18px; border-radius: 14px; overflow: hidden; align-self: flex-start; border: 1px solid rgba(69, 0, 27, 0.12); }
.event-date b { background: var(--wine-800); color: var(--cream); padding: 8px 14px; font-family: var(--font-display); font-size: 1.5rem; font-weight: 500; line-height: 1; display: grid; place-items: center; }
.event-date span { padding: 8px 14px; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--wine-800); display: grid; place-items: center; line-height: 1.25; }
.event-card h3 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); }
.event-card p { color: var(--ink-soft); }
.event-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.event-meta .event-date { margin-bottom: 0; }
.badge-past {
  background: var(--sand); color: var(--ink-soft);
  padding: 6px 12px; border-radius: 999px; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
}
@media (max-width: 860px) { .event-card { grid-template-columns: 1fr; } }

/* ---------- Connect form ---------- */
.connect { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
@media (max-width: 960px) { .connect { grid-template-columns: 1fr; } }
.form-card { background: var(--white); border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 52px); box-shadow: var(--shadow); }
.reason-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 28px; border: 0; padding: 0; }
.reason-grid legend { font-weight: 700; margin-bottom: 12px; font-size: 0.95rem; }
@media (max-width: 620px) { .reason-grid { grid-template-columns: repeat(2, 1fr); } }
.reason { position: relative; }
.reason input { position: absolute; opacity: 0; pointer-events: none; }
.reason label {
  display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 16px; border-radius: 16px; cursor: pointer;
  border: 2px solid var(--stone); font-weight: 700; font-size: 0.92rem; line-height: 1.25;
  transition: border-color 0.2s, background 0.2s, transform 0.3s var(--ease);
}
.reason label svg { width: 22px; height: 22px; color: var(--wine-400); }
.reason label:hover { border-color: var(--wine-200); }
.reason input:checked + label { border-color: var(--wine-800); background: rgba(69, 0, 27, 0.04); }
.reason input:checked + label svg { color: var(--wine-800); }
.reason input:focus-visible + label { outline: 3px solid var(--gold); outline-offset: 2px; }

.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: 0.9rem; }
.field label .opt { font-weight: 500; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: 14px; border: 2px solid var(--stone); background: var(--cream);
  transition: border-color 0.2s, background 0.2s; font-size: 1rem;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--wine-600); background: var(--white); }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2345001b' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; background-size: 18px;
}
@media (max-width: 620px) { .fields { grid-template-columns: 1fr; } }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 28px; }
.form-foot small { color: var(--ink-soft); max-width: 40ch; }
.form-status { margin-top: 18px; padding: 14px 18px; border-radius: 14px; background: var(--sand); font-weight: 600; display: none; }
.form-status.is-visible { display: block; }

.side-card { background: var(--wine-800); color: var(--cream); border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 44px); }
.side-card h3 { color: var(--cream); }
.side-card .info-list .ico { background: rgba(255, 255, 255, 0.08); color: var(--gold); }
.side-card .info-list small { color: var(--gold-soft); }
.side-card .info-list a:hover { color: var(--gold); }
.side-card + .side-card { margin-top: 20px; }
.side-card--light { background: var(--white); color: var(--ink); }
.side-card--light h3 { color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer { background: var(--wine-950); color: rgba(251, 247, 241, 0.72); padding: clamp(64px, 8vw, 100px) 0 32px; position: relative; overflow: hidden; }
.footer-cta {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 28px;
  padding-bottom: clamp(48px, 6vw, 72px); margin-bottom: clamp(48px, 6vw, 72px); border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-cta h2 { color: var(--cream); margin: 0; font-size: clamp(2rem, 4.4vw, 3.4rem); max-width: 22ch; }
.footer-cta h2 em { color: var(--gold); font-weight: 400; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-grid h4 { font-family: var(--font-body); font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); font-weight: 800; margin-bottom: 18px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-grid a { text-decoration: none; transition: color 0.2s; }
.footer-grid a:hover { color: var(--gold); }
.footer-brand img { height: 56px; width: auto; margin-bottom: 20px; }
.footer-brand p { max-width: 34ch; font-size: 0.95rem; }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.07); color: var(--cream); transition: background 0.25s, color 0.25s, transform 0.3s var(--ease);
}
.socials a:hover { background: var(--gold); color: var(--wine-950); transform: translateY(-3px); }
.socials svg { width: 18px; height: 18px; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.08); font-size: 0.85rem; color: rgba(251, 247, 241, 0.5);
}
.footer-watermark {
  position: absolute; right: -2%; bottom: -8%; font-family: var(--font-display); font-style: italic;
  font-size: clamp(8rem, 24vw, 22rem); line-height: 1; color: rgba(255, 255, 255, 0.025); pointer-events: none; user-select: none;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Share toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 300; transform: translate(-50%, 20px);
  background: var(--wine-950); color: var(--cream); padding: 12px 22px; border-radius: 999px; font-weight: 600;
  box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity 0.3s, transform 0.4s var(--ease);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.no-js .reveal { opacity: 1; transform: none; }

.hero .rise { opacity: 0; transform: translateY(24px); animation: rise 1s var(--ease) forwards; }
.hero .rise-1 { animation-delay: 0.1s; }
.hero .rise-2 { animation-delay: 0.22s; }
.hero .rise-3 { animation-delay: 0.34s; }
.hero .rise-4 { animation-delay: 0.46s; }
.hero .rise-5 { animation-delay: 0.6s; }
@keyframes rise { to { opacity: 1; transform: none; } }

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

/* ---------- Utilities ---------- */
.center { text-align: center; }
.mt-lg { margin-top: clamp(36px, 5vw, 56px); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
