/* ============================================================
   FIRST BAPTIST CHURCH OF WARREN — Design System
   Colors: Espresso #312a22 on Cream #f3efec
   Fonts: Anton SC (Display) / New Amsterdam (Accent) / Stack Sans Headline (Body)
   ============================================================ */

:root {
  --bg: #f3efec;
  --primary: #312a22;
  --text: #444444;
  --tan: #c7bdb3;
  --muted: #6b655f;
  --muted-2: #5b5650;
  --light: #e4ded9;
  --line: #b5b5b5;
  --line-dark: #534d47;
  --font-display: "Anton SC", sans-serif;
  --font-serif: "New Amsterdam", serif;
  --font-body: "Stack Sans Headline", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- Typography ---------- */
h1, h2, h3, .display {
  font-family: var(--font-display);
  color: var(--primary);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1.05;
  letter-spacing: 0.01em;
}
h1 { font-size: clamp(48px, 7vw, 90px); }
h2 { font-size: clamp(38px, 5.5vw, 72px); }
h3 { font-size: clamp(26px, 3.2vw, 40px); }

.serif-accent { font-family: var(--font-serif); }

/* Section eyebrow label */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 34px; height: 1px;
  background: var(--line-dark);
}

.wrap { max-width: 1320px; margin: 0 auto; padding: 0 24px; }
section { padding: clamp(70px, 9vw, 130px) 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--primary);
  color: var(--bg) !important;
  border-radius: 999px;
  padding: 16px 30px;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: transform .25s ease, background .25s ease;
  border: 1px solid var(--primary);
}
.btn:hover { background: var(--line-dark); transform: translateY(-2px); }
.btn.ghost {
  background: transparent;
  color: var(--primary) !important;
  border: 1px solid var(--line-dark);
}
.btn.ghost:hover { background: var(--primary); color: var(--bg) !important; }
.btn .arrow { transition: transform .25s ease; }
.btn:hover .arrow { transform: translateX(4px); }

/* On dark sections */
.dark .btn { background: var(--bg); color: var(--primary) !important; border-color: var(--bg); }
.dark .btn:hover { background: var(--tan); border-color: var(--tan); }
.dark .btn.ghost { background: transparent; color: var(--bg) !important; border-color: var(--tan); }
.dark .btn.ghost:hover { background: var(--bg); color: var(--primary) !important; }

.dark { background: var(--primary); }
.dark h1, .dark h2, .dark h3 { color: var(--bg); }
.dark p, .dark li { color: var(--tan); }
.dark .eyebrow { color: var(--tan); }
.dark .eyebrow::before { background: var(--tan); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(243, 239, 236, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--light);
}
.nav-bar {
  max-width: 1320px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 44px; height: 44px; border-radius: 8px; }
.brand-name {
  font-family: var(--font-display);
  font-size: 20px;
  text-transform: uppercase;
  color: var(--primary);
  line-height: 1.1;
}
.brand-name small { display: block; font-family: var(--font-body); font-size: 11px; letter-spacing: .18em; color: var(--muted); }

.nav-links { display: flex; gap: 28px; list-style: none; align-items: center; }
.nav-links a {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color .2s ease;
}
.nav-links a:hover, .nav-links a.active { border-bottom-color: var(--primary); }
.nav-cta { display: inline-flex; }

.menu-toggle {
  display: none;
  background: none; border: 0; cursor: pointer;
  flex-direction: column; gap: 5px; padding: 8px;
}
.menu-toggle span { width: 26px; height: 2px; background: var(--primary); display: block; transition: .3s; }

@media (max-width: 940px) {
  .menu-toggle { display: flex; }
  .nav-links {
    position: fixed;
    inset: 72px 0 auto 0;
    background: var(--bg);
    flex-direction: column;
    align-items: flex-start;
    padding: 30px 24px 40px;
    gap: 20px;
    border-bottom: 1px solid var(--light);
    transform: translateY(-120%);
    transition: transform .35s ease;
    z-index: 99;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { font-size: 22px; }
  body.menu-open { overflow: hidden; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(50px, 7vw, 100px) 0 clamp(60px, 7vw, 90px); position: relative; overflow: hidden; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--light);
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 14px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 26px;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line-dark); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.hero p.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--muted-2); max-width: 560px; margin: 24px 0 34px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-photo { position: relative; }
.hero-photo img { border-radius: 24px; width: 100%; height: clamp(380px, 44vw, 580px); object-fit: cover; }
.hero-photo .chip {
  position: absolute; bottom: 24px; left: 24px;
  background: var(--bg);
  border-radius: 16px;
  padding: 16px 22px;
  box-shadow: 0 18px 40px rgba(49,42,34,.18);
}
.hero-photo .chip strong { font-family: var(--font-display); font-size: 24px; text-transform: uppercase; color: var(--primary); display: block; }
.hero-photo .chip span { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; background: var(--primary); padding: 20px 0; }
.marquee-track { display: flex; gap: 60px; white-space: nowrap; animation: scroll 30s linear infinite; width: max-content; }
.marquee-track span {
  font-family: var(--font-serif);
  font-size: 26px;
  color: var(--tan);
  display: flex; align-items: center; gap: 60px;
}
.marquee-track span::after { content: "✦"; font-size: 16px; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- About split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.split .photo-stack { position: relative; }
.split .photo-stack img { border-radius: 24px; }
.split .year-badge {
  position: absolute; top: -26px; right: -14px;
  background: var(--primary); color: var(--bg);
  border-radius: 50%;
  width: 120px; height: 120px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 15px; text-transform: uppercase; text-align: center; line-height: 1.25;
  transform: rotate(8deg);
}
.split p { color: var(--muted-2); margin-bottom: 18px; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* ---------- Schedule list ---------- */
.schedule-list { border-top: 1px solid var(--line-dark); }
.schedule-row {
  display: grid;
  grid-template-columns: 90px 1fr auto auto;
  gap: 24px; align-items: center;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
  transition: background .2s ease;
}
.schedule-row:hover { background: var(--light); }
.schedule-row .day {
  font-family: var(--font-display);
  font-size: 20px; text-transform: uppercase; color: var(--primary);
}
.schedule-row .what { font-size: 20px; color: var(--primary); font-weight: 500; }
.schedule-row .where { color: var(--muted); font-size: 15px; }
.schedule-row .time {
  font-family: var(--font-display);
  font-size: 26px; color: var(--primary); text-transform: uppercase;
}
.dark .schedule-row { border-bottom-color: var(--line-dark); }
.dark .schedule-row:hover { background: rgba(243,239,236,.06); }
.dark .schedule-row .day, .dark .schedule-row .time, .dark .schedule-row .what { color: var(--bg); }
.dark .schedule-row .where { color: var(--tan); }

@media (max-width: 700px) {
  .schedule-row { grid-template-columns: 1fr 1fr; row-gap: 8px; }
}

/* ---------- Sermon cards ---------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 900px) { .cards-3 { grid-template-columns: 1fr; } }

.sermon-card {
  background: #fff;
  border-radius: 20px;
  padding: 26px;
  border: 1px solid var(--light);
  transition: transform .25s ease, box-shadow .25s ease;
  display: flex; flex-direction: column; gap: 14px;
  min-height: 100%;
}
.sermon-card:hover { transform: translateY(-6px); box-shadow: 0 22px 46px rgba(49,42,34,.12); }
.sermon-card .date {
  font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
  display: flex; align-items: center; gap: 8px;
}
.sermon-card h3 { font-size: 24px; line-height: 1.2; }
.sermon-card .thumb { border-radius: 14px; overflow: hidden; position: relative; }
.sermon-card .thumb img { transition: transform .4s ease; aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.sermon-card:hover .thumb img { transform: scale(1.05); }
.sermon-card .play {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.sermon-card .play span {
  width: 58px; height: 58px;
  background: var(--bg); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: var(--primary);
  box-shadow: 0 10px 26px rgba(49,42,34,.3);
}

/* ---------- Numbered cards (ministries/services) ---------- */
.num-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 1000px) { .num-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .num-cards { grid-template-columns: 1fr; } }

.num-card {
  border: 1px solid var(--line-dark);
  border-radius: 20px;
  padding: 30px 26px;
  background: transparent;
  transition: background .25s ease, transform .25s ease;
  display: flex; flex-direction: column; gap: 16px;
}
.num-card:hover { background: var(--primary); transform: translateY(-6px); }
.num-card:hover * { color: var(--bg); }
.num-card .num { font-family: var(--font-display); font-size: 40px; color: var(--primary); }
.num-card h3 { font-size: 26px; }
.num-card p { font-size: 16px; color: var(--muted-2); }

/* ---------- Team grid ---------- */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 900px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .team-grid { grid-template-columns: 1fr; } }

.team-card { text-align: center; }
.team-card .avatar {
  border-radius: 20px; overflow: hidden; margin-bottom: 18px;
  aspect-ratio: 1/1; background: var(--light);
}
.team-card .avatar img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.team-card:hover .avatar img { transform: scale(1.06); }
.team-card h3 { font-size: 24px; margin-bottom: 4px; }
.team-card .role { color: var(--muted); font-size: 14px; text-transform: uppercase; letter-spacing: .12em; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band .verse {
  font-family: var(--font-serif);
  font-size: clamp(24px, 3vw, 34px);
  color: var(--tan);
  max-width: 820px; margin: 20px auto 36px;
  line-height: 1.4;
}
.cta-band .ref { font-size: 15px; letter-spacing: .2em; text-transform: uppercase; color: var(--tan); opacity: .8; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
@media (max-width: 800px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat .big {
  font-family: var(--font-display);
  font-size: clamp(50px, 6vw, 80px);
  color: var(--bg);
  line-height: 1;
}
.stat .label { color: var(--tan); font-size: 15px; text-transform: uppercase; letter-spacing: .12em; margin-top: 10px; }

/* ---------- Gallery strip ---------- */
.gallery-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 900px) { .gallery-strip { grid-template-columns: repeat(2, 1fr); } }
.gallery-strip a { border-radius: 18px; overflow: hidden; display: block; }
.gallery-strip img { aspect-ratio: 1/1; object-fit: cover; width: 100%; transition: transform .4s ease; }
.gallery-strip a:hover img { transform: scale(1.07); }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; background: none; border: 0; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 26px 0;
  font-family: var(--font-display); font-size: clamp(20px, 2.2vw, 28px);
  text-transform: uppercase; color: var(--primary); text-align: left;
}
.faq-q .plus { font-size: 30px; transition: transform .3s ease; }
.faq-item.open .plus { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-a p { padding: 0 0 26px; color: var(--muted-2); max-width: 760px; }

/* ---------- Contact info cards ---------- */
.info-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 800px) { .info-cards { grid-template-columns: 1fr; } }
.info-card {
  background: #fff; border: 1px solid var(--light); border-radius: 20px; padding: 32px 28px;
}
.info-card h3 { font-size: 22px; margin-bottom: 10px; }
.info-card p, .info-card a.link { color: var(--muted-2); font-size: 17px; }
.info-card a.link { text-decoration: underline; text-underline-offset: 4px; }
.info-card .icon { font-size: 30px; margin-bottom: 16px; }

.map-frame { border-radius: 24px; overflow: hidden; border: 1px solid var(--light); }
.map-frame iframe { width: 100%; height: 450px; border: 0; display: block; }

/* Intro banner for inner pages */
.page-hero { padding: clamp(60px, 8vw, 110px) 0 clamp(50px, 6vw, 80px); border-bottom: 1px solid var(--light); }
.page-hero p.lead { color: var(--muted-2); max-width: 640px; margin-top: 18px; font-size: 20px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--primary); color: var(--tan); padding-top: clamp(60px, 8vw, 100px); overflow: hidden; }
.footer-grid {
  display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px;
  max-width: 1320px; margin: 0 auto; padding: 0 24px 60px;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 {
  color: var(--bg); font-family: var(--font-display); font-size: 20px;
  text-transform: uppercase; margin-bottom: 18px;
}
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: var(--tan); font-size: 16px; }
.site-footer a:hover { color: var(--bg); text-decoration: underline; }
.footer-brand p { font-size: 16px; margin: 14px 0 20px; max-width: 300px; }
.socials { display: flex; gap: 12px; }
.socials a {
  width: 46px; height: 46px; border: 1px solid var(--line-dark); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; transition: .25s;
}
.socials a:hover { background: var(--bg); color: var(--primary); text-decoration: none; }
.socials svg { width: 20px; height: 20px; fill: currentColor; }

.giant-name {
  font-family: var(--font-display);
  font-size: clamp(60px, 14.5vw, 220px);
  text-transform: uppercase;
  text-align: center;
  color: var(--bg);
  line-height: .9;
  opacity: .16;
  white-space: nowrap;
  user-select: none;
  transform: translateY(12%);
}
.footer-bottom {
  border-top: 1px solid var(--line-dark);
  padding: 22px 24px;
  text-align: center;
  font-size: 14px;
  color: var(--tan);
}

/* ---------- Utility ---------- */
.center { text-align: center; }
.mt-60 { margin-top: 60px; }
.mt-40 { margin-top: 40px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px,5vw,60px); }
@media (max-width: 800px) { .two-col { grid-template-columns: 1fr; } }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ============================================================
   ANIMATIONS & SCROLL INTERACTIONS (Vanilla CSS / Transitions)
   ============================================================ */

/* Page load fade */
body { animation: pageIn .45s ease; }
@keyframes pageIn { from { opacity: 0; } }

/* Split-word heading animation (JS splits .st elements) */
.st .w {
  display: inline-block;
  opacity: 0;
  transform: translateY(45px) rotate(2.5deg);
  transition: opacity .7s cubic-bezier(.2,.65,.2,1), transform .7s cubic-bezier(.2,.65,.2,1);
  will-change: opacity, transform;
}
.st.in .w { opacity: 1; transform: none; }
.st.serif-accent { text-transform: none; }

/* Stagger children of .reveal-group */
.reveal-group > * { opacity: 0; transform: translateY(34px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.65,.2,1); }
.reveal-group.visible > * { opacity: 1; transform: none; }

/* Animated counter */
.stat .big { display: inline-block; }

/* Nav shadow on scroll */
.site-header.scrolled { box-shadow: 0 10px 30px rgba(49,42,34,.10); }

/* Hero badge entrance */
.hero-badge { animation: fadeDown .8s cubic-bezier(.2,.65,.2,1) both .1s; }
.hero p.lead { animation: fadeUp .8s cubic-bezier(.2,.65,.2,1) both .55s; }
.hero-actions { animation: fadeUp .8s cubic-bezier(.2,.65,.2,1) both .72s; }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-18px); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(26px); } }

/* Hero photo entrance + floating chip */
.hero-photo { animation: photoIn 1s cubic-bezier(.2,.65,.2,1) both .35s; }
@keyframes photoIn { from { opacity: 0; transform: translateX(50px) scale(.96); } }
.hero-photo .chip { animation: floaty 5s ease-in-out 1.4s infinite; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* Marquee hover pause */
.marquee:hover .marquee-track { animation-play-state: paused; }

/* Giant footer name slides in */
.giant-name { transition: transform 1.2s cubic-bezier(.2,.65,.2,1), opacity 1.2s ease; }
.giant-name.in { transform: translateY(0); }

/* ============================================================
   PAGE-LEVEL COMPONENTS (inner pages)
   ============================================================ */

/* Video embed (16:9) */
.video-embed {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 16/9;
  border: 1px solid var(--light);
  background: #000;
}
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Featured message layout */
.feature-split { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(30px,5vw,60px); align-items: center; }
@media (max-width: 900px) { .feature-split { grid-template-columns: 1fr; } }

/* Masonry gallery */
.masonry { columns: 3; column-gap: 20px; }
@media (max-width: 1000px) { .masonry { columns: 2; } }
@media (max-width: 560px) { .masonry { columns: 1; } }
.masonry figure {
  break-inside: avoid; margin-bottom: 20px; border-radius: 18px; overflow: hidden;
  cursor: zoom-in; position: relative;
}
.masonry img { width: 100%; transition: transform .5s ease; }
.masonry figure:hover img { transform: scale(1.06); }
.masonry figure::after {
  content: "🔍"; position: absolute; inset: auto 14px 14px auto;
  width: 40px; height: 40px; background: var(--bg); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 16px;
  opacity: 0; transition: opacity .3s ease;
}
.masonry figure:hover::after { opacity: 1; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(28,24,19,.94);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .35s ease;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img {
  max-width: 90vw; max-height: 86vh; border-radius: 14px;
  transform: scale(.94); transition: transform .35s cubic-bezier(.2,.65,.2,1);
}
.lightbox.open img { transform: scale(1); }
.lightbox .lb-close {
  position: absolute; top: 22px; right: 26px;
  background: none; border: 0; color: #f3efec; font-size: 40px; cursor: pointer;
}
.lightbox .lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(243,239,236,.14); border: 0; color: #f3efec;
  width: 54px; height: 54px; border-radius: 50%; font-size: 22px; cursor: pointer;
  transition: background .25s;
}
.lightbox .lb-nav:hover { background: rgba(243,239,236,.32); }
.lb-prev { left: 20px; } .lb-next { right: 20px; }
.lightbox .lb-count { position: absolute; bottom: 22px; left: 0; right: 0; text-align: center; color: #c7bdb3; font-size: 14px; letter-spacing: .15em; }
body.lb-open { overflow: hidden; }

/* Countdown (next event) */
.countdown { display: flex; gap: 18px; margin: 30px 0; flex-wrap: wrap; }
.count-cell {
  background: rgba(243,239,236,.07);
  border: 1px solid var(--line-dark);
  border-radius: 16px;
  min-width: 110px;
  padding: 22px 18px;
  text-align: center;
}
.count-cell .n { font-family: var(--font-display); font-size: clamp(34px,4vw,52px); color: var(--bg); line-height: 1; display: block; }
.count-cell .l { color: var(--tan); font-size: 13px; letter-spacing: .16em; text-transform: uppercase; display: block; margin-top: 8px; }

/* Calendar embed */
.calendar-frame { border-radius: 24px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 24px 50px rgba(49,42,34,.10); }
.calendar-frame iframe { width: 100%; height: 640px; border: 0; display: block; }

/* Doctrine / salvation numbered rows */
.doctrine-grid { counter-reset: doc; }
.doctrine-card {
  background: #fff; border: 1px solid var(--light); border-radius: 20px;
  padding: 30px 28px; display: flex; gap: 22px; align-items: flex-start;
  transition: transform .25s ease, box-shadow .25s ease;
}
.doctrine-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(49,42,34,.10); }
.doctrine-card .doc-num {
  font-family: var(--font-display); font-size: 34px; color: var(--primary);
  min-width: 62px; line-height: 1;
}
.doctrine-card h3 { font-size: 24px; margin-bottom: 8px; }
.doctrine-card p { color: var(--muted-2); font-size: 16px; margin-bottom: 8px; }
.doctrine-card .ref { font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

/* Pastor feature card */
.pastor-feature {
  display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(30px,5vw,60px); align-items: center;
  background: #fff; border: 1px solid var(--light); border-radius: 26px;
  padding: clamp(26px, 4vw, 50px);
}
@media (max-width: 850px) { .pastor-feature { grid-template-columns: 1fr; } }
.pastor-feature img { border-radius: 18px; width: 100%; }
.pastor-feature .meta { display: inline-block; background: var(--light); border-radius: 999px; padding: 8px 18px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--primary); margin: 14px 0 20px; }
.pastor-feature p { color: var(--muted-2); margin-bottom: 16px; }

/* Staff card with bio */
.staff-card {
  background: #fff; border: 1px solid var(--light); border-radius: 22px;
  padding: 28px; text-align: center;
  transition: transform .25s ease, box-shadow .25s ease;
  display: flex; flex-direction: column; gap: 12px;
}
.staff-card:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(49,42,34,.10); }
.staff-card .avatar { width: 160px; height: 160px; border-radius: 50%; overflow: hidden; margin: 0 auto 6px; }
.staff-card .avatar img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.staff-card:hover .avatar img { transform: scale(1.08); }
.staff-card h3 { font-size: 22px; }
.staff-card .role { color: var(--primary); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; }
.staff-card .since { color: var(--muted); font-size: 13px; }
.staff-card p.bio { font-size: 15px; color: var(--muted-2); }

/* 404 page */
.error-page { min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.error-page .error-num { font-family: var(--font-display); font-size: clamp(120px, 26vw, 300px); line-height: .9; color: var(--light); -webkit-text-stroke: 2px var(--line-dark); }

/* Small screens: countdown */
@media (max-width: 560px) { .count-cell { min-width: calc(50% - 9px); } }
