/* Colors — change these to restyle the whole site */
:root {
  --maroon: #6e1a17;
  --maroon-dark: #4d100e;
  --cream: #fbeedb;
  --sand: #e6ddd0;
  --blue: #2f78c4;
  --gold: #e8b23a;
  --red: #b5322b;
  --ink: #3a1a14;
  --white: #fffdf9;
  --radius: 18px;
  --shadow: 0 12px 30px rgba(77, 16, 14, .15);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font: 400 1.125rem/1.6 "Source Serif 4", Georgia, serif;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
h1, h2, h3 { font-family: "Marcellus", Georgia, serif; font-weight: 400; color: var(--maroon); line-height: 1.12; margin: 0 0 .5em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); }
h3 { font-size: 1.6rem; }
section { padding: clamp(56px, 8vw, 110px) clamp(16px, 5vw, 72px); position: relative; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 20px;
  padding: 10px clamp(16px, 4vw, 56px); background: rgba(230, 221, 208, .92);
  backdrop-filter: blur(8px); border-bottom: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--blue), var(--gold), var(--red)) 1;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--maroon); font-family: "Marcellus", serif; font-size: 1.3rem; margin-right: auto; }
.brand img { border-radius: 10px; background: #fff; }
#menu { display: flex; gap: 6px; }
#menu a { color: var(--maroon); text-decoration: none; padding: 8px 14px; border-radius: 999px; transition: background .2s, color .2s; }
#menu a:hover, #menu a.active { background: var(--maroon); color: var(--cream); }
.nav-tools { display: flex; gap: 8px; align-items: center; }
.lang { font: 700 .9rem "Source Serif 4", serif; border: 2px solid var(--blue); color: var(--blue); background: #fff; border-radius: 999px; padding: 6px 14px; cursor: pointer; transition: .2s; }
.lang:hover { background: var(--blue); color: #fff; }
.burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.burger span { display: block; width: 24px; height: 3px; margin: 4px 0; background: var(--maroon); border-radius: 2px; transition: .25s; }

/* ---------- Buttons ---------- */
.btn { display: inline-block; font: 600 1.05rem "Source Serif 4", serif; padding: 13px 26px; border-radius: 999px; text-decoration: none; cursor: pointer; border: 2px solid transparent; transition: transform .2s, box-shadow .2s, background .2s; }
.btn:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.btn.primary { background: var(--maroon); color: var(--cream); }
.btn.blue { background: var(--blue); color: #fff; }
.btn.gold { background: var(--gold); color: var(--maroon-dark); }
.btn.ghost { background: transparent; color: var(--maroon); border-color: var(--maroon); }

/* ---------- Hero ---------- */
.hero { background: var(--sand); padding-bottom: 150px; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: minmax(220px, 420px) 1fr; gap: clamp(28px, 5vw, 80px); align-items: center; max-width: 1280px; margin: 0 auto; position: relative; z-index: 1; }
.logo-card { background: #fff; border-radius: 28px; padding: 28px; box-shadow: var(--shadow); animation: float 6s ease-in-out infinite; }
.hero-text { text-align: center; }
.lead { font-size: clamp(1.25rem, 2.3vw, 1.75rem); color: var(--maroon); }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .45; }
.b1 { width: 380px; height: 380px; background: var(--blue); top: -120px; left: -100px; animation: drift 14s ease-in-out infinite; }
.b2 { width: 300px; height: 300px; background: var(--gold); bottom: 0; right: 10%; animation: drift 18s ease-in-out infinite reverse; }
.b3 { width: 220px; height: 220px; background: var(--red); top: 30%; right: -60px; opacity: .3; animation: drift 16s ease-in-out infinite; }
.wave { position: absolute; bottom: -1px; left: 0; width: 100%; height: 110px; fill: var(--cream); }

.countdown { margin: 8px auto 26px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.cd-label { font-size: 1rem; letter-spacing: .04em; color: var(--maroon); }
.cd-boxes { display: flex; gap: 10px; }
.cd-boxes div { background: #fff; border-radius: 14px; padding: 8px 14px; min-width: 72px; box-shadow: 0 4px 14px rgba(0,0,0,.07); }
.cd-boxes div:nth-child(1) { border-bottom: 4px solid var(--blue); }
.cd-boxes div:nth-child(2) { border-bottom: 4px solid var(--gold); }
.cd-boxes div:nth-child(3) { border-bottom: 4px solid var(--red); }
.cd-boxes b { display: block; font: 400 1.9rem "Marcellus", serif; color: var(--maroon); }
.cd-boxes small { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }

/* ---------- Visit ---------- */
.visit-grid { display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: clamp(20px, 3vw, 44px); align-items: center; max-width: 1400px; margin: 0 auto; }
.visit-mid { text-align: center; }
.photo { border-radius: var(--radius); box-shadow: var(--shadow); object-fit: cover; width: 100%; }
.visit-grid > .photo { height: 100%; max-height: 640px; }
.tilt { transition: transform .4s ease; }
.tilt:nth-of-type(1):hover { transform: rotate(-1.5deg) scale(1.02); }
.tilt:hover { transform: rotate(1.5deg) scale(1.02); }
.cards { display: grid; gap: 14px; margin: 6px 0 36px; }
.card { display: flex; gap: 16px; align-items: center; text-align: left; padding: 16px 20px; border-radius: var(--radius); background: #fff; box-shadow: 0 6px 18px rgba(0,0,0,.06); border-left: 8px solid var(--blue); transition: transform .25s; }
.card:hover { transform: translateX(6px); }
.card.gold { border-left-color: var(--gold); }
.card.red { border-left-color: var(--red); }
.card .ic { font-size: 1.7rem; width: 52px; height: 52px; flex: none; display: grid; place-items: center; border-radius: 50%; background: rgba(47,120,196,.12); }
.card.gold .ic { background: rgba(232,178,58,.2); }
.card h4 { margin: 0; font: 600 1.2rem "Source Serif 4", serif; color: var(--maroon); }
.card p { margin: 0; }
.place { font-size: 1.3rem; color: var(--maroon); }
.map { max-width: 1400px; margin: 48px auto 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); height: 320px; }
.map iframe { width: 100%; height: 100%; border: 0; }

/* ---------- About ---------- */
.about { background: linear-gradient(180deg, var(--cream), #fff6ea); }
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: center; max-width: 1280px; margin: 0 auto; }
.about-grid > div { text-align: center; }
.leaders { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 30px; }
.leader { background: #fff; border-radius: 16px; padding: 12px 18px; box-shadow: 0 6px 16px rgba(0,0,0,.06); border-top: 5px solid var(--blue); transition: transform .25s; }
.leader:nth-child(2) { border-top-color: var(--gold); }
.leader:nth-child(3) { border-top-color: var(--red); }
.leader:hover { transform: translateY(-5px) rotate(-1deg); }
.leader strong { display: block; color: var(--maroon); }
.leader span { font-size: .95rem; }
.photo.wide { aspect-ratio: 2.7 / 1; }
.photo.pastors { aspect-ratio: 3 / 4; }

/* ---------- Family ---------- */
.family { text-align: center; padding-left: 0; padding-right: 0; }
.family h2 { padding: 0 16px; }
.marquee { overflow: hidden; padding: 18px 0; background: var(--maroon); color: var(--cream); margin: 20px 0 10px; transform: rotate(-1.2deg); }
.marquee-track { display: inline-flex; white-space: nowrap; animation: scroll 40s linear infinite; font: 400 clamp(1.3rem, 2.4vw, 1.9rem) "Marcellus", serif; }
.marquee-track span { padding-right: 60px; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.hint { font-size: .95rem; opacity: .7; margin: 24px 0 18px; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 1400px; margin: 0 auto; padding: 0 clamp(16px, 5vw, 72px); }
.gallery button { padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: var(--radius); overflow: hidden; position: relative; box-shadow: var(--shadow); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s; }
.gallery button:hover img { transform: scale(1.08); }
.gallery button::after { content: attr(data-cap); position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 12px; color: #fff; text-align: left; font-weight: 600; background: linear-gradient(transparent, rgba(77,16,14,.85)); opacity: 0; transform: translateY(10px); transition: .3s; }
.gallery button:hover::after, .gallery button:focus-visible::after { opacity: 1; transform: none; }

/* ---------- Contact ---------- */
.contact { background: var(--sand); padding-bottom: 30px; }
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; max-width: 1280px; margin: 0 auto; align-items: start; }
.tag { font-size: 1.3rem; color: var(--blue); font-style: italic; }
.contact-box { background: #fff; border-radius: 24px; padding: 30px; box-shadow: var(--shadow); text-align: right; border-top: 6px solid var(--gold); }
.email { display: inline-block; font: 400 clamp(1.05rem, 2vw, 1.5rem) "Marcellus", serif; color: var(--maroon); word-break: break-all; margin-bottom: 16px; }
.contact-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.socials { display: flex; gap: 10px; justify-content: flex-end; margin-top: 14px; }
.socials a { color: var(--blue); font-weight: 600; }
footer { text-align: center; font-size: .95rem; margin-top: 60px; opacity: .8; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(40, 10, 8, .92); display: flex; align-items: center; justify-content: center; padding: 20px; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 1000px; text-align: center; }
.lightbox img { max-height: 78vh; margin: 0 auto; border-radius: 14px; }
.lightbox figcaption { color: var(--cream); margin-top: 12px; font-size: 1.2rem; }
.lb-close, .lb-nav { position: absolute; background: rgba(255,255,255,.15); color: #fff; border: 0; border-radius: 50%; width: 52px; height: 52px; font-size: 2rem; cursor: pointer; line-height: 1; }
.lb-close { top: 18px; right: 18px; }
.lb-nav.prev { left: 14px; } .lb-nav.next { right: 14px; }
.lb-close:hover, .lb-nav:hover { background: var(--gold); color: var(--maroon-dark); }

/* ---------- Animations ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
@keyframes float { 50% { transform: translateY(-12px) rotate(-1deg); } }
@keyframes drift { 50% { transform: translate(60px, 40px) scale(1.15); } }
@keyframes scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Phones & tablets ---------- */
@media (max-width: 900px) {
  .burger { display: block; }
  #menu { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: var(--sand); padding: 10px 16px 18px; box-shadow: 0 10px 20px rgba(0,0,0,.1); display: none; }
  #menu.open { display: flex; }
  .brand span { font-size: 1.05rem; }
  .hero-inner, .visit-grid, .about-grid, .contact-inner { grid-template-columns: 1fr; }
  .logo-card { max-width: 260px; margin: 0 auto; }
  .visit-grid > .photo { max-height: 380px; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .contact-box { text-align: center; }
  .contact-actions, .socials { justify-content: center; }
}
@media (max-width: 520px) {
  .brand span { display: none; }
  .gallery { grid-template-columns: 1fr; }
  .cd-boxes div { min-width: 62px; padding: 6px 10px; }
}
