/* =========================================================
   Abraham Andebi - Design System
   Palette: Blanc (base) · Bleu royal · Or
   ========================================================= */

:root {
  /* Brand colors */
  --blue:        #163a9c;   /* bleu royal */
  --blue-bright: #1e4fd6;
  --blue-deep:   #0a1f57;
  --blue-night:  #060f33;
  --gold:        #c9a24b;
  --gold-light:  #e3c879;
  --gold-soft:   #f4ead2;

  --white:       #ffffff;
  --paper:       #f7f8fc;
  --paper-2:     #eef1f9;
  --ink:         #0e1530;
  --muted:       #5a6079;
  --line:        rgba(14, 21, 48, .10);

  /* Typography */
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Layout */
  --maxw: 1200px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 18px 50px -22px rgba(10, 31, 87, .35);
  --shadow-soft: 0 12px 40px -24px rgba(10, 31, 87, .45);
  --ease: cubic-bezier(.22, 1, .36, 1);

  --nav-h: 78px;
}

/* ----------------------------------------------------- Reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: clamp(15px, 1.05vw, 17px);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

/* ----------------------------------------------------- Helpers */
.wrap { width: min(var(--maxw), 92vw); margin-inline: auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font-size: .78rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--blue);
}
.eyebrow::before { content: ""; width: 30px; height: 2px; background: var(--gold); display: inline-block; }
.eyebrow.center { justify-content: center; }
.eyebrow.light { color: var(--gold-light); }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.08; letter-spacing: -.01em; }
.h-section { font-size: clamp(2rem, 4.6vw, 3.4rem); }
.lead { color: var(--muted); font-size: clamp(1.02rem, 1.6vw, 1.2rem); }
.text-gold { color: var(--gold); }
.serif-italic { font-style: italic; }

.section { padding: clamp(72px, 11vw, 140px) 0; position: relative; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-inline: auto; text-align: center; }

/* Buttons */
.btn {
  --b: var(--blue);
  display: inline-flex; align-items: center; gap: .6em;
  padding: .95em 1.7em; border-radius: 100px;
  font-weight: 600; font-size: .96rem; letter-spacing: .01em;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s, color .3s;
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 14px 30px -12px rgba(22,58,156,.7); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 20px 38px -12px rgba(22,58,156,.8); background: var(--blue-bright); }
.btn-gold { background: linear-gradient(120deg, var(--gold), var(--gold-light)); color: #2a2103; box-shadow: 0 14px 30px -12px rgba(201,162,75,.7); }
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -12px rgba(201,162,75,.85); }
.btn-ghost { border: 1.5px solid rgba(255,255,255,.5); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); transform: translateY(-3px); border-color: #fff; }
.btn-outline { border: 1.5px solid var(--blue); color: var(--blue); }
.btn-outline:hover { background: var(--blue); color: #fff; transform: translateY(-3px); }

/* ===================================================== NAVBAR */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center;
  transition: background .4s var(--ease), box-shadow .4s var(--ease), height .4s var(--ease);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; width: min(1320px, 94vw); }
.nav.scrolled { background: rgba(255,255,255,.86); backdrop-filter: saturate(180%) blur(16px); box-shadow: 0 8px 30px -18px rgba(10,31,87,.4); height: 66px; }

.brand { display: flex; align-items: center; gap: 12px; z-index: 2; }
.brand img { width: 46px; height: 46px; object-fit: contain; transition: transform .4s var(--ease); }
.brand:hover img { transform: rotate(-4deg) scale(1.05); }
.brand .brand-name { font-family: var(--serif); font-size: 1.15rem; font-weight: 600; letter-spacing: .04em; line-height: 1; white-space: nowrap; }
.brand .brand-sub { font-size: .62rem; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.brand-name, .brand-sub { color: #fff; transition: color .4s; }
.nav.scrolled .brand-name { color: var(--ink); }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: .92rem; font-weight: 500; color: rgba(255,255,255,.92); position: relative; transition: color .3s; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px; background: var(--gold); transition: width .35s var(--ease); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav.scrolled .nav-links a { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav .btn { padding: .7em 1.3em; font-size: .9rem; }

.burger { display: none; width: 44px; height: 44px; border-radius: 12px; flex-direction: column; gap: 5px; align-items: center; justify-content: center; z-index: 2; }
.burger span { width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: .3s var(--ease); }
.nav.scrolled .burger span { background: var(--ink); }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===================================================== HERO */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  color: #fff; overflow: hidden; padding-top: var(--nav-h);
  background: var(--blue-night);
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 30%; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(6,15,51,.94) 0%, rgba(6,15,51,.82) 38%, rgba(6,15,51,.45) 70%, rgba(6,15,51,.25) 100%),
    radial-gradient(120% 90% at 0% 100%, rgba(22,58,156,.6), transparent 60%);
}
.hero-inner { position: relative; z-index: 1; width: min(var(--maxw), 92vw); margin-inline: auto; padding: 40px 0; }
.hero-tag {
  display: inline-flex; align-items: center; gap: .7em; padding: .5em 1.1em; border-radius: 100px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18);
  font-size: .76rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; color: var(--gold-light);
  backdrop-filter: blur(6px);
}
.hero h1 {
  font-size: clamp(2.6rem, 7vw, 5.4rem); margin: 26px 0 0; max-width: 16ch; font-weight: 600;
}
.hero h1 .accent { color: var(--gold-light); font-style: italic; }
.hero p.sub { margin-top: 22px; max-width: 52ch; font-size: clamp(1.05rem, 1.7vw, 1.35rem); color: rgba(255,255,255,.85); }
.hero-actions { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 16px; }
.hero-meta { margin-top: 54px; display: flex; flex-wrap: wrap; gap: 38px; }
.hero-meta .item .n { font-family: var(--serif); font-size: 2rem; color: #fff; line-height: 1; }
.hero-meta .item .l { font-size: .82rem; color: rgba(255,255,255,.7); letter-spacing: .04em; margin-top: 6px; }
.hero-meta .divider { width: 1px; background: rgba(255,255,255,.2); }

.scrollcue { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; color: rgba(255,255,255,.6); font-size: .7rem; letter-spacing: .25em; text-transform: uppercase; }
.scrollcue .mouse { width: 22px; height: 36px; border: 2px solid rgba(255,255,255,.4); border-radius: 12px; position: relative; }
.scrollcue .mouse::after { content: ""; position: absolute; top: 7px; left: 50%; transform: translateX(-50%); width: 3px; height: 7px; background: var(--gold-light); border-radius: 2px; animation: wheel 1.6s infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translate(-50%, 0); } 40% { opacity: 1; } 80% { opacity: 0; transform: translate(-50%, 10px); } }

/* ===================================================== VERSE BAND */
.verse {
  background: linear-gradient(110deg, var(--blue-deep), var(--blue)); color: #fff; text-align: center;
  padding: clamp(50px, 7vw, 84px) 0; position: relative; overflow: hidden;
}
.verse::before, .verse::after { content: "\201C"; position: absolute; font-family: var(--serif); font-size: 14rem; color: rgba(255,255,255,.06); line-height: 1; }
.verse::before { top: -20px; left: 4%; }
.verse::after { content: "\201D"; bottom: -80px; right: 4%; }
.verse p { font-family: var(--serif); font-style: italic; font-size: clamp(1.4rem, 3.2vw, 2.3rem); max-width: 20ch; margin-inline: auto; line-height: 1.3; }
.verse .ref { margin-top: 20px; color: var(--gold-light); letter-spacing: .2em; text-transform: uppercase; font-size: .82rem; font-weight: 600; }

/* ===================================================== ABOUT */
.about { background: var(--white); }
.about .grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 86px); align-items: center; }
.about-figure { position: relative; }
.about-figure .photo { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); position: relative; z-index: 1; }
.about-figure .photo img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.about-figure .badge {
  position: absolute; z-index: 2; right: -18px; bottom: 36px;
  background: #fff; border-radius: 18px; padding: 18px 22px; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 14px; max-width: 240px;
}
.about-figure .badge .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--gold-soft); display: grid; place-items: center; color: var(--blue); flex: none; }
.about-figure .badge .ic svg { width: 22px; height: 22px; }
.about-figure .badge b { font-family: var(--serif); display: block; font-size: 1.05rem; }
.about-figure .badge span { font-size: .8rem; color: var(--muted); }
.about-figure .frame { position: absolute; inset: 26px -26px -26px 26px; border: 2px solid var(--gold); border-radius: var(--radius-lg); z-index: 0; }

.about-body h2 { margin: 18px 0 10px; }
.about-body .lead { margin-bottom: 18px; }
.about-body p { color: var(--muted); margin-bottom: 16px; }
.about-values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 30px 0; }
.about-values li { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.about-values li b { font-family: var(--serif); color: var(--blue); display: block; font-size: 1.05rem; }
.about-values li span { font-size: .82rem; color: var(--muted); }
.signature { font-family: var(--serif); font-style: italic; font-size: 1.5rem; color: var(--blue); margin-top: 8px; }

/* ===================================================== CULTES */
.cultes { background: var(--paper); }
.cultes .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.service-card {
  background: #fff; border-radius: var(--radius); padding: 34px; border: 1px solid var(--line);
  position: relative; overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.service-card .day { font-family: var(--serif); font-size: 1.7rem; color: var(--blue); }
.service-card .type { color: var(--gold); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-size: .8rem; margin-top: 4px; }
.service-card .time { display: flex; align-items: center; gap: 10px; margin-top: 18px; font-size: 1.05rem; }
.service-card .time svg { width: 20px; height: 20px; color: var(--blue); }
.service-card p { color: var(--muted); margin-top: 12px; }
.service-card.featured { border-top: 3px solid var(--gold); }
.service-card .sessions { margin-top: 20px; display: grid; gap: 2px; }
.service-card .sessions li { display: flex; align-items: baseline; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.service-card .sessions li:last-child { border-bottom: none; }
.service-card .sessions .t { font-family: var(--serif); font-weight: 600; color: var(--blue); font-size: 1.05rem; min-width: 72px; flex: none; }
.service-card .sessions .s { color: var(--ink); font-size: .96rem; }
.service-card .mode { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; font-size: .82rem; font-weight: 600; letter-spacing: .04em; color: var(--gold); text-transform: uppercase; }
.service-card .mode svg { width: 16px; height: 16px; }
.service-card .tag-live { display: none; position: absolute; top: 22px; right: 22px; align-items: center; gap: 7px; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #c0392b; }
.service-card.is-live .tag-live { display: inline-flex; }
.service-card .sessions li.live { position: relative; }
.service-card .sessions li.live .t { color: #c0392b; }
.service-card .sessions li.live .s::after { content: "En direct"; display: inline-flex; align-items: center; gap: 6px; margin-left: 10px; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #c0392b; vertical-align: middle; }
.service-card .tag-live .dot { width: 8px; height: 8px; border-radius: 50%; background: #e74c3c; box-shadow: 0 0 0 0 rgba(231,76,60,.6); animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(231,76,60,.6);} 70%{ box-shadow: 0 0 0 10px rgba(231,76,60,0);} 100%{ box-shadow:0 0 0 0 rgba(231,76,60,0);} }

.location {
  margin-top: 30px; background: linear-gradient(115deg, var(--blue-deep), var(--blue)); color: #fff;
  border-radius: var(--radius); padding: 34px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
}
.location .addr { display: flex; align-items: center; gap: 18px; }
.location .addr .pin { width: 54px; height: 54px; border-radius: 16px; background: rgba(255,255,255,.12); display: grid; place-items: center; flex: none; }
.location .addr .pin svg { width: 26px; height: 26px; color: var(--gold-light); }
.location .addr b { font-family: var(--serif); font-size: 1.25rem; }
.location .addr span { color: rgba(255,255,255,.8); font-size: .95rem; }

/* ===================================================== SERMONS */
.sermons { background: var(--white); }
.sermon-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.sermon-card {
  border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease); display: flex; flex-direction: column;
}
.sermon-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.sermon-card .thumb { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.sermon-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.sermon-card:hover .thumb img { transform: scale(1.08); }
.sermon-card .thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(6,15,51,.55)); }
.sermon-card .play { position: absolute; z-index: 2; inset: 0; margin: auto; width: 60px; height: 60px; border-radius: 50%; background: rgba(255,255,255,.92); display: grid; place-items: center; transition: transform .4s var(--ease), background .3s; }
.sermon-card .play svg { width: 22px; height: 22px; color: var(--blue); margin-left: 3px; }
.sermon-card:hover .play { transform: scale(1.12); background: var(--gold-light); }
.sermon-card .cat { position: absolute; z-index: 2; top: 14px; left: 14px; background: rgba(6,15,51,.6); color: #fff; font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: .4em .9em; border-radius: 100px; backdrop-filter: blur(4px); }
.sermon-card .body { padding: 22px 22px 26px; flex: 1; display: flex; flex-direction: column; }
.sermon-card h3 { font-size: 1.25rem; }
.sermon-card .meta { margin-top: auto; padding-top: 16px; display: flex; align-items: center; gap: 8px; color: var(--blue); font-weight: 600; font-size: .9rem; }
.sermon-card .meta svg { width: 16px; height: 16px; transition: transform .3s; }
.sermon-card:hover .meta svg { transform: translateX(4px); }
.sermons .center-cta { text-align: center; margin-top: 50px; }

/* ===================================================== BOOK */
.book { background: var(--blue-night); color: #fff; overflow: hidden; }
.book .grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.book-cover { position: relative; }
/* ---- 3D interactive book ---- */
.book-cover { display: flex; justify-content: center; }
.book3d-wrap { perspective: 1300px; display: flex; flex-direction: column; align-items: center; gap: 24px; padding: 12px 0; }
.book3d {
  --bw: 285px; --bh: 456px; --bd: 40px;
  position: relative; width: var(--bw); height: var(--bh);
  transform-style: preserve-3d; cursor: grab; touch-action: none; will-change: transform;
  animation: bfloat 6.5s ease-in-out infinite;
}
.book3d:active { cursor: grabbing; }
@keyframes bfloat { 0%, 100% { translate: 0 -8px; } 50% { translate: 0 8px; } }

.book3d .face { position: absolute; top: 50%; left: 50%; backface-visibility: hidden; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(0,0,0,.05); }
.book3d .front img, .book3d .back img { width: 100%; height: 100%; object-fit: cover; display: block; }
.book3d .front, .book3d .back { width: var(--bw); height: var(--bh); margin: calc(var(--bh) / -2) 0 0 calc(var(--bw) / -2); }
.book3d .front { transform: translateZ(calc(var(--bd) / 2)); border-radius: 3px 7px 7px 3px; }
.book3d .back { transform: rotateY(180deg) translateZ(calc(var(--bd) / 2)); border-radius: 7px 3px 3px 7px; }
.book3d .spine, .book3d .pages { width: var(--bd); height: var(--bh); margin: calc(var(--bh) / -2) 0 0 calc(var(--bd) / -2); }
.book3d .spine { transform: rotateY(-90deg) translateZ(calc(var(--bw) / 2)); }
.book3d .pages { transform: rotateY(90deg) translateZ(calc(var(--bw) / 2)); }
.book3d .top, .book3d .bottom { width: var(--bw); height: var(--bd); margin: calc(var(--bd) / -2) 0 0 calc(var(--bw) / -2); }
.book3d .top { transform: rotateX(90deg) translateZ(calc(var(--bh) / 2)); }
.book3d .bottom { transform: rotateX(-90deg) translateZ(calc(var(--bh) / 2)); }

/* Front cover */
.book3d .front { background: #fdfdfb; color: #15181d; box-shadow: inset 0 0 0 1px rgba(0,0,0,.05), -7px 0 14px -6px rgba(0,0,0,.35) inset; }
.book3d .front .bar { position: absolute; left: 16%; right: 16%; height: 6px; background: var(--gold); }
.book3d .front .bar.top { top: 0; } .book3d .front .bar.bottom { bottom: 0; }
.book3d .front .cover-inner { padding: 13% 9%; height: 100%; display: flex; flex-direction: column; text-align: center; }
.book3d .front .author { font-size: .74rem; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; }
.book3d .front .title { margin: auto 0; display: flex; flex-direction: column; gap: 1px; text-transform: uppercase; font-weight: 800; line-height: .92; }
.book3d .front .title .l1 { font-size: 2rem; }
.book3d .front .title .l2 { font-size: 1.55rem; }
.book3d .front .title .l2 i { font-style: italic; font-weight: 600; font-size: .58em; text-transform: lowercase; color: #8a8f99; margin-right: .15em; }
.book3d .front .title .l3 { font-size: 2.5rem; }
.book3d .front .title .amp { color: var(--gold); }
.book3d .front .tagline { font-family: var(--serif); font-style: italic; font-size: .72rem; color: #3a3f49; line-height: 1.4; }

/* Back cover */
.book3d .back { background: #fbfbf9; color: #1a1d24; display: flex; flex-direction: column; padding: 9% 9% 7%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.05), 7px 0 14px -6px rgba(0,0,0,.35) inset; }
.book3d .back .bc-protected { font-size: .5rem; text-align: center; color: #9aa1ad; letter-spacing: .03em; }
.book3d .back .bc-title { font-weight: 800; text-transform: uppercase; text-align: center; font-size: .9rem; margin-top: 9%; line-height: 1; }
.book3d .back .bc-title .amp { color: var(--gold); }
.book3d .back .bc-text { font-size: .54rem; line-height: 1.55; color: #3a3f49; margin-top: 6%; }
.book3d .back .bc-social { display: flex; align-items: center; gap: 6px; justify-content: center; margin-top: auto; color: #15181d; }
.book3d .back .bc-social svg { width: 13px; height: 13px; }
.book3d .back .bc-social span { font-size: .5rem; font-weight: 600; }
.book3d .back .bc-barcode { margin-top: 7%; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.book3d .back .bc-barcode .bars { width: 56%; height: 30px; background: repeating-linear-gradient(90deg, #15181d 0 1px, #fff 1px 3px, #15181d 3px 4px, #fff 4px 6px, #15181d 6px 8px, #fff 8px 11px); }
.book3d .back .bc-barcode .isbn { font-size: .5rem; letter-spacing: .12em; }

/* Spine, pages, edges */
.book3d .spine { background: linear-gradient(180deg, #fdfdfb, #efefe9); display: grid; place-items: center; }
.book3d .spine .spine-txt { writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; font-size: .5rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #15181d; }
.book3d .pages { background: repeating-linear-gradient(90deg, #dcdcd4 0 1px, #fbfbf9 1px 2.4px); }
.book3d .top, .book3d .bottom { background: repeating-linear-gradient(90deg, #e2e2da 0 1px, #fbfbf9 1px 2.6px); }

.book3d-hint { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--gold-light); opacity: .85; user-select: none; }
.book3d-hint svg { width: 16px; height: 16px; }
.book-cover .glow { position: absolute; inset: -8% -8% -24% -8%; background: radial-gradient(closest-side, rgba(201,162,75,.38), transparent); filter: blur(46px); z-index: -1; }
@media (max-width: 600px) { .book3d { --bw: 230px; --bh: 368px; --bd: 34px; } }
@media (prefers-reduced-motion: reduce) { .book3d { animation: none; } }
.book-body h2 { margin: 16px 0 6px; }
.book-body .book-sub { font-family: var(--serif); font-style: italic; color: var(--gold-light); font-size: clamp(1rem, 1.7vw, 1.2rem); margin-bottom: 18px; }
.book-body p { color: rgba(255,255,255,.78); margin-bottom: 16px; }
.book-themes { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 30px; }
.book-themes span { border: 1px solid rgba(255,255,255,.22); border-radius: 100px; padding: .5em 1.1em; font-size: .85rem; color: rgba(255,255,255,.9); }

/* ===================================================== MEDIA */
.media { background: var(--paper); }
.media-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.media-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; position: relative; overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease); display: flex; flex-direction: column;
}
.media-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.media-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--blue), var(--gold)); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.media-card:hover::before { transform: scaleX(1); }
.media-card .ic { width: 56px; height: 56px; border-radius: 16px; background: var(--gold-soft); color: var(--blue); display: grid; place-items: center; margin-bottom: 22px; }
.media-card .ic svg { width: 28px; height: 28px; }
.media-card h3 { font-size: 1.4rem; }
.media-card p { color: var(--muted); margin: 10px 0 20px; flex: 1; }
.media-card .link { color: var(--blue); font-weight: 600; display: inline-flex; align-items: center; gap: 8px; font-size: .92rem; }
.media-card .link svg { width: 16px; height: 16px; transition: transform .3s; }
.media-card:hover .link svg { transform: translateX(4px); }

/* ===================================================== GALLERY */
.gallery { background: var(--white); }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 16px; }
.gallery-grid figure { border-radius: 16px; overflow: hidden; position: relative; }
.gallery-grid figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.gallery-grid figure:hover img { transform: scale(1.07); }
.gallery-grid figure::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(6,15,51,.4), transparent 60%); opacity: 0; transition: opacity .4s; pointer-events: none; }
.gallery-grid figure:hover::after { opacity: 1; }
.gallery-grid .tall { grid-row: span 2; }
.gallery-grid .wide { grid-column: span 2; }

/* ===================================================== CONTACT / DON */
.contact { background: linear-gradient(180deg, var(--paper), #fff); }
.contact .grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 70px); }
.contact-info h2 { margin: 16px 0; }
.contact-list { margin-top: 26px; display: grid; gap: 14px; }
.contact-list a, .contact-list .row { display: flex; align-items: center; gap: 16px; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: 14px; transition: transform .3s var(--ease), border-color .3s; }
.contact-list a:hover { transform: translateX(6px); border-color: var(--gold); }
.contact-list .ic { width: 46px; height: 46px; border-radius: 12px; background: var(--gold-soft); color: var(--blue); display: grid; place-items: center; flex: none; }
.contact-list .ic svg { width: 22px; height: 22px; }
.contact-list b { display: block; font-size: .98rem; }
.contact-list span { font-size: .85rem; color: var(--muted); }

.donate-card { background: linear-gradient(125deg, var(--blue-deep), var(--blue)); color: #fff; border-radius: var(--radius-lg); padding: clamp(30px, 4vw, 48px); position: relative; overflow: hidden; }
.donate-card::after { content: ""; position: absolute; right: -40px; top: -40px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(closest-side, rgba(201,162,75,.4), transparent); }
.donate-card .eyebrow { color: var(--gold-light); }
.donate-card h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 14px 0; position: relative; }
.donate-card p { color: rgba(255,255,255,.82); margin-bottom: 24px; position: relative; }
.newsletter { margin-top: 26px; position: relative; }
.newsletter label { font-size: .82rem; color: rgba(255,255,255,.7); }
.newsletter .field { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.newsletter input { flex: 1; min-width: 200px; padding: .95em 1.2em; border-radius: 100px; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08); color: #fff; font: inherit; }
.newsletter input::placeholder { color: rgba(255,255,255,.5); }
.newsletter input:focus { outline: none; border-color: var(--gold-light); }
.newsletter .note { font-size: .78rem; color: rgba(255,255,255,.6); margin-top: 12px; }

/* ===================================================== FOOTER */
.footer { background: var(--blue-night); color: rgba(255,255,255,.7); padding: 70px 0 30px; }
.footer .top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer .brand-col img { width: 60px; filter: brightness(0) invert(1); margin-bottom: 18px; }
.footer .brand-col p { max-width: 36ch; font-size: .92rem; }
.footer h5 { color: #fff; font-family: var(--serif); font-weight: 600; font-size: 1.1rem; margin-bottom: 18px; }
.footer .links a { display: block; padding: 6px 0; font-size: .92rem; transition: color .3s, padding-left .3s; }
.footer .links a:hover { color: var(--gold-light); padding-left: 6px; }
.socials { display: flex; gap: 12px; margin-top: 8px; }
.socials a { width: 44px; height: 44px; border-radius: 12px; border: 1px solid rgba(255,255,255,.15); display: grid; place-items: center; transition: transform .3s var(--ease), background .3s, border-color .3s; }
.socials a svg { width: 20px; height: 20px; }
.socials a:hover { transform: translateY(-4px); background: var(--gold); border-color: var(--gold); color: #2a2103; }
.footer .bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 26px; font-size: .85rem; }
.footer .bottom a:hover { color: var(--gold-light); }

/* ===================================================== DONATE PAGE */
.don-hero {
  background: linear-gradient(125deg, var(--blue-night), var(--blue-deep) 55%, var(--blue));
  color: #fff; padding: calc(var(--nav-h) + 70px) 0 90px; text-align: center; position: relative; overflow: hidden;
}
.don-hero::before { content: "\201C"; position: absolute; top: -30px; left: 50%; transform: translateX(-50%); font-family: var(--serif); font-size: 16rem; color: rgba(255,255,255,.05); }
.don-hero h1 { font-size: clamp(2.4rem, 6vw, 4rem); margin-top: 14px; }
.don-hero .verse-q { max-width: 44ch; margin: 22px auto 0; font-family: var(--serif); font-style: italic; font-size: clamp(1.05rem, 2vw, 1.3rem); color: rgba(255,255,255,.86); position: relative; }
.don-hero .verse-ref { margin-top: 12px; color: var(--gold-light); letter-spacing: .2em; text-transform: uppercase; font-size: .78rem; font-weight: 600; }

.don-section { background: var(--paper); padding: clamp(50px, 7vw, 90px) 0; }
.don-wrap { width: min(1060px, 92vw); margin-inline: auto; display: grid; grid-template-columns: 1.5fr 1fr; gap: 30px; align-items: start; }
.don-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(26px, 4vw, 44px); box-shadow: var(--shadow-soft); }
.don-step { margin-bottom: 34px; }
.don-step:last-child { margin-bottom: 0; }
.don-step > .label { display: flex; align-items: center; gap: 12px; font-family: var(--serif); font-size: 1.25rem; margin-bottom: 18px; }
.don-step > .label .num { width: 30px; height: 30px; border-radius: 50%; background: var(--blue); color: #fff; font-family: var(--sans); font-size: .9rem; font-weight: 700; display: grid; place-items: center; flex: none; }

/* Frequency toggle */
.freq { display: inline-flex; background: var(--paper-2); border-radius: 100px; padding: 5px; gap: 4px; }
.freq button { padding: .6em 1.4em; border-radius: 100px; font-weight: 600; font-size: .92rem; color: var(--muted); transition: .3s var(--ease); }
.freq button.active { background: #fff; color: var(--blue); box-shadow: 0 6px 16px -8px rgba(10,31,87,.4); }

/* Amount chips */
.amounts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.amounts button { padding: 1em; border-radius: 14px; border: 1.5px solid var(--line); font-family: var(--serif); font-size: 1.3rem; font-weight: 600; color: var(--ink); transition: .25s var(--ease); }
.amounts button:hover { border-color: var(--gold); }
.amounts button.active { border-color: var(--blue); background: var(--blue); color: #fff; box-shadow: 0 12px 24px -12px rgba(22,58,156,.6); }
.amount-custom { margin-top: 14px; position: relative; }
.amount-custom .cur { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 600; }
.amount-custom input { width: 100%; padding: 1em 1em 1em 38px; border-radius: 14px; border: 1.5px solid var(--line); font: inherit; font-size: 1.1rem; }
.amount-custom input:focus { outline: none; border-color: var(--blue); }

/* Fields */
.don-field { margin-bottom: 16px; }
.don-field label { display: block; font-size: .85rem; font-weight: 600; color: var(--muted); margin-bottom: 7px; }
.don-field input, .don-field select, .don-field textarea {
  width: 100%; padding: .9em 1em; border-radius: 12px; border: 1.5px solid var(--line); font: inherit; background: #fff; color: var(--ink);
}
.don-field input:focus, .don-field select:focus, .don-field textarea:focus { outline: none; border-color: var(--blue); }
.don-field textarea { resize: vertical; min-height: 90px; }
.don-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* Summary sidebar */
.don-summary { background: linear-gradient(150deg, var(--blue-deep), var(--blue)); color: #fff; border-radius: var(--radius-lg); padding: clamp(26px, 4vw, 36px); position: sticky; top: 90px; box-shadow: var(--shadow); }
.don-summary h3 { font-size: 1.4rem; margin-bottom: 6px; }
.don-summary .sub { color: rgba(255,255,255,.7); font-size: .9rem; margin-bottom: 22px; }
.don-summary .row { display: flex; justify-content: space-between; gap: 12px; padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,.12); font-size: .95rem; }
.don-summary .row span:first-child { color: rgba(255,255,255,.65); }
.don-summary .row span:last-child { font-weight: 600; text-align: right; }
.don-summary .total { display: flex; justify-content: space-between; align-items: baseline; margin: 20px 0 6px; }
.don-summary .total .lbl { color: rgba(255,255,255,.7); }
.don-summary .total .amt { font-family: var(--serif); font-size: 2.4rem; color: var(--gold-light); }
.don-summary .btn { width: 100%; justify-content: center; margin-top: 18px; }
.don-summary .secure { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 16px; font-size: .78rem; color: rgba(255,255,255,.6); }
.don-summary .secure svg { width: 14px; height: 14px; }

/* Confirmation */
.don-thanks { display: none; text-align: center; padding: clamp(40px, 6vw, 80px) 0; }
.don-thanks.show { display: block; }
.don-thanks .check { width: 90px; height: 90px; border-radius: 50%; background: var(--gold-soft); color: var(--blue); display: grid; place-items: center; margin: 0 auto 26px; animation: pop .5s var(--ease); }
.don-thanks .check svg { width: 44px; height: 44px; }
@keyframes pop { 0% { transform: scale(.4); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.don-thanks h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.don-thanks p { color: var(--muted); max-width: 48ch; margin: 14px auto 0; }
.don-thanks .recap { display: inline-flex; flex-wrap: wrap; gap: 10px 26px; justify-content: center; margin: 26px auto 0; padding: 20px 30px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; }
.don-thanks .recap b { color: var(--blue); }
.don-thanks .pay-note { margin-top: 26px; font-size: .9rem; }
.don-thanks .pay-note a { color: var(--blue); font-weight: 600; }
.don-thanks .actions { margin-top: 30px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

@media (max-width: 880px) {
  .don-wrap { grid-template-columns: 1fr; }
  .don-summary { position: static; }
}
@media (max-width: 520px) {
  .amounts { grid-template-columns: repeat(2, 1fr); }
  .don-grid-2 { grid-template-columns: 1fr; }
}

/* ===================================================== LIGHTBOX */
.gallery-grid figure { cursor: zoom-in; }
.lightbox { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 4vw; background: rgba(6,15,51,.93); backdrop-filter: blur(8px); }
.lightbox.open { display: flex; }
.lightbox .lb-stage { display: grid; place-items: center; max-width: 100%; max-height: 100%; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 12px; box-shadow: 0 30px 90px -20px rgba(0,0,0,.8); animation: lbin .35s var(--ease); }
@keyframes lbin { from { opacity: 0; transform: scale(.95); } to { opacity: 1; transform: none; } }
.lb-btn { position: absolute; z-index: 2; color: #fff; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font-size: 2rem; line-height: 0; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); transition: .3s var(--ease); }
.lb-btn:hover { background: var(--gold); color: #2a2103; border-color: var(--gold); transform: scale(1.06); }
.lb-close { top: 22px; right: 22px; }
.lb-prev { left: 22px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 22px; top: 50%; transform: translateY(-50%); }
.lb-prev:hover, .lb-next:hover { transform: translateY(-50%) scale(1.06); }
@media (max-width: 600px) { .lb-prev { left: 10px; } .lb-next { right: 10px; } .lb-btn { width: 46px; height: 46px; font-size: 1.6rem; } }

/* Back to top */
.totop { position: fixed; right: 24px; bottom: 24px; z-index: 90; width: 50px; height: 50px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transform: translateY(20px); transition: .4s var(--ease); }
.totop.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.totop:hover { background: var(--gold); color: #2a2103; }
.totop svg { width: 22px; height: 22px; }

/* ===================================================== REVEAL ANIM */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }

/* ===================================================== MOBILE MENU PANEL */
.mobile-panel {
  position: fixed; inset: 0; z-index: 99; background: var(--blue-night); color: #fff;
  display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 0 8vw;
  transform: translateY(-100%); transition: transform .55s var(--ease); visibility: hidden;
}
.mobile-panel.open { transform: translateY(0); visibility: visible; }
.mobile-panel a { font-family: var(--serif); font-size: clamp(1.6rem, 7vw, 2rem); padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.mobile-panel a:hover { color: var(--gold-light); }
.mobile-panel .m-cta { margin-top: 34px; display: flex; flex-direction: column; gap: 14px; }
.mobile-panel .m-cta .btn { width: 100%; justify-content: center; font-size: 1rem; padding: 1.05em 1.7em; box-shadow: none; }
.mobile-panel .m-cta a { border-bottom: none; padding: 0; font-family: var(--sans); }

/* ===================================================== RESPONSIVE */
@media (max-width: 980px) {
  .nav-links, .nav-cta .btn-outline { display: none; }
  .nav-cta .btn-gold { padding: .6em 1.1em; font-size: .82rem; }
  .burger { display: flex; }
  .about .grid, .cultes .grid, .book .grid, .contact .grid { grid-template-columns: 1fr; }
  .about-figure { max-width: 440px; margin-inline: auto; }
  .about-figure .frame { inset: 20px -16px -16px 16px; }
  .sermon-grid, .media-grid { grid-template-columns: 1fr 1fr; }
  .footer .top { grid-template-columns: 1fr 1fr; }
  .book-cover { display: flex; justify-content: center; }
}
@media (max-width: 680px) {
  .hero-meta { gap: 24px; }
  .hero-meta .divider { display: none; }
  .about-values { grid-template-columns: 1fr; }
  .sermon-grid, .media-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; }
  .gallery-grid .wide { grid-column: span 2; }
  .cultes .grid { grid-template-columns: 1fr; }
  .footer .top { grid-template-columns: 1fr; }
  .location { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
