/* ============================================================
   Deliverance Baptist Church — Marianna, FL
   Design v4: clean & modern. White space, full-bleed photo
   hero, royal purple + gold on dark (palette from the DBC
   logo, #38226d), soft shadows, bold type.
   Type: Plus Jakarta Sans (display) + Inter (text).
   ============================================================ */

:root {
  --brand-950: #191134;
  --brand-900: #271a4d;
  --brand-700: #38226d;
  --brand-600: #4c3390;
  --brand-50: #efecf7;
  --gold: #c9a24b;
  --bg: #ffffff;
  --bg-soft: #f6f5fa;
  --ink: #1f1a31;
  --muted: #615c72;
  --line: #e8e6f0;
  --shadow-sm: 0 1px 2px rgba(23,16,47,.05), 0 10px 28px -14px rgba(23,16,47,.14);
  --shadow-lg: 0 28px 64px -28px rgba(23,16,47,.32);
  --radius: 20px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

a, button, summary { touch-action: manipulation; }

::selection { background: var(--brand-700); color: #fff; }

h1, h2, h3, h4 {
  font-family: "Plus Jakarta Sans", "Inter", "Segoe UI", sans-serif;
  color: var(--ink);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 5.2vw, 3.9rem); }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.22rem; line-height: 1.35; letter-spacing: -0.01em; }

h1 em, h2 em {
  font-style: normal;
  color: var(--brand-600);
}

p { margin-bottom: 1rem; }

a { color: var(--brand-700); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--brand-600);
  outline-offset: 3px;
  border-radius: 4px;
}

img { max-width: 100%; display: block; }

.container { width: min(1160px, 91%); margin: 0 auto; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--brand-700);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 12px 0;
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ---------- Eyebrow / kicker ---------- */
.kicker {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-600);
  margin-bottom: 16px;
}

/* ---------- Top bar ---------- */
.topbar {
  background: var(--brand-950);
  color: #d6d2e4;
  font-size: 0.8rem;
  padding: 8px 0;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
}
.topbar a { color: var(--gold); text-decoration: none; font-weight: 500; }
.topbar a:hover { text-decoration: underline; }

/* ---------- Header / Nav ---------- */
.site-header {
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
}
.brand {
  text-decoration: none;
  display: flex;
  align-items: center;
}
.brand .brand-logo {
  height: 62px;
  width: auto;
}
.nav-toggle {
  display: none;
  background: var(--brand-700);
  border: 0;
  color: #fff;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 10px;
  cursor: pointer;
}
.site-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  align-items: center;
}
.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 6px 0;
}
.site-nav a:hover { color: var(--brand-600); }
.site-nav a.active {
  color: var(--brand-700);
  box-shadow: 0 2px 0 var(--brand-700);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.94rem;
  letter-spacing: 0.01em;
  transition: background .2s, color .2s, border-color .2s, transform .15s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-solid {
  background: var(--brand-700);
  color: #fff;
  box-shadow: 0 10px 24px -12px rgba(56,34,109,.5);
}
.btn-solid:hover { background: var(--brand-900); color: #fff; }
.btn-ghost {
  border: 1.5px solid #d4cfe2;
  color: var(--ink);
  background: #fff;
}
.btn-ghost:hover { border-color: var(--brand-700); color: var(--brand-700); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Photos ---------- */
.photo-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.photo-wrap { position: relative; }

/* ---------- Hero (home, full-bleed photo) ---------- */
.hero {
  position: relative;
  min-height: min(88vh, 780px);
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(76deg, rgba(17,11,38,.87) 0%, rgba(17,11,38,.55) 48%, rgba(17,11,38,.22) 100%),
    linear-gradient(to top, rgba(17,11,38,.55) 0%, rgba(17,11,38,0) 40%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 120px 0 150px;
  max-width: 1160px;
}
.hero-content .kicker { color: var(--gold); }
.hero-content h1 {
  color: #fff;
  max-width: 700px;
  margin-bottom: 20px;
}
.hero-content h1 em { color: var(--gold); }
.hero-content .lead {
  font-size: 1.14rem;
  line-height: 1.65;
  color: rgba(255,255,255,.88);
  max-width: 540px;
  margin-bottom: 32px;
}
.hero .btn-ghost {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.45);
  color: #fff;
  backdrop-filter: blur(4px);
}
.hero .btn-ghost:hover { background: rgba(255,255,255,.16); border-color: #fff; color: #fff; }

/* ---------- Service times: floating cards over hero ---------- */
.times-band {
  position: relative;
  z-index: 5;
  margin-top: -72px;
  padding-bottom: 8px;
}
.times-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.time-slot {
  padding: 30px 34px;
  border-left: 1px solid var(--line);
}
.time-slot:first-child { border-left: 0; }
.time-day {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-600);
  margin-bottom: 8px;
}
.time-num {
  display: block;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 2.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--ink);
}
.time-num small {
  font-size: 0.95rem;
  font-weight: 700;
  margin-left: 3px;
  color: var(--muted);
}
.time-label {
  display: block;
  margin-top: 10px;
  font-size: 0.9rem;
  color: var(--muted);
}

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-sand { background: var(--bg-soft); }
.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head h2 { margin-bottom: 14px; }
.section-head p { color: var(--muted); margin-bottom: 0; font-size: 1.05rem; }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

/* ---------- Numbered feature cards ---------- */
.num-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.num-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
}
.num-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.num-item .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--brand-50);
  color: var(--brand-700);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: 18px;
}
.num-item h3 { margin-bottom: 10px; }
.num-item p { color: var(--muted); font-size: 0.95rem; margin-bottom: 0; }

/* ---------- Ministry cards ---------- */
.min-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.min-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.min-item h3 { margin-bottom: 4px; }
.min-lead {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-600);
  margin-bottom: 12px;
}
.min-item p { color: var(--muted); font-size: 0.95rem; margin-bottom: 0; }

/* ---------- Schedule rows (services page) ---------- */
.sched-row {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 40px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 30px 34px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 18px;
}
.sched-time .time-day { color: var(--brand-600); }
.sched-time .time-num { font-size: 2.4rem; }
.sched-copy h3 { margin-bottom: 8px; }
.sched-copy p { color: var(--muted); margin-bottom: 0; }

/* ---------- Quote band ---------- */
.quote-band {
  background:
    radial-gradient(1000px 400px at 85% -10%, rgba(201,162,75,.14), transparent 60%),
    var(--brand-900);
  color: #fff;
  padding: 96px 0;
}
.quote-band blockquote {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 700;
  letter-spacing: -0.015em;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.35;
  max-width: 840px;
}
.quote-band blockquote::before {
  content: "\201C";
  display: block;
  font-size: 4rem;
  line-height: 0.6;
  color: var(--gold);
  margin-bottom: 18px;
}
.quote-band cite {
  display: block;
  margin-top: 24px;
  font-style: normal;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.gallery-grid figure { margin: 0; }
.gallery-grid img {
  width: 100%;
  height: 290px;
  object-fit: cover;
  object-position: center 28%;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.gallery-grid figure:hover img { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.gallery-grid .feature { grid-column: span 2; }
.gallery-grid img.pos-low { object-position: center 78%; }
.gallery-grid figcaption {
  font-size: 0.86rem;
  color: var(--muted);
  padding-top: 12px;
}
.gallery-grid figcaption strong { color: var(--ink); font-weight: 700; }

/* ---------- Leadership portraits ---------- */
.leader-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 26px;
}
.leader-grid figure { margin: 0; }
.leader-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center 25%;
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
}
.leader-grid figcaption { padding-top: 16px; }
.leader-grid figcaption strong {
  display: block;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 700;
  font-size: 1.06rem;
  color: var(--ink);
}
.leader-grid figcaption span {
  display: block;
  margin-top: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-600);
}

/* ---------- Photo placeholders (awaiting shoot) ---------- */
.photo-ph {
  background: var(--bg-soft);
  border: 1.5px dashed #cbc6da;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  min-height: 290px;
  padding: 18px;
}
.photo-ph.tall { min-height: 380px; }

/* ---------- Info / NAP block ---------- */
.info-list { list-style: none; }
.info-list li {
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 18px;
  align-items: baseline;
}
.info-list li strong {
  min-width: 106px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-600);
}

.map-embed {
  border: 1px solid var(--line);
  width: 100%;
  height: 430px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

/* ---------- Forms ---------- */
.contact-form label {
  display: block;
  font-weight: 600;
  font-size: 0.86rem;
  color: var(--ink);
  margin: 18px 0 7px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  font: inherit;
  font-size: 0.96rem;
  background: #fff;
  color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--brand-600);
  box-shadow: 0 0 0 4px rgba(56,34,109,.14);
}
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form button { margin-top: 24px; border: 0; cursor: pointer; }

/* ---------- FAQ ---------- */
.faq { max-width: 800px; display: grid; gap: 14px; }
.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 24px;
  box-shadow: var(--shadow-sm);
}
.faq summary {
  cursor: pointer;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--ink);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1;
  color: var(--brand-600);
  flex-shrink: 0;
}
.faq details[open] summary::after { content: "\2013"; }
.faq details p {
  color: var(--muted);
  margin: 12px 0 0;
  font-size: 0.95rem;
}

/* ---------- Page head (interior pages) ---------- */
.page-head { padding: 80px 0 0; }
.page-head h1 { max-width: 760px; margin-bottom: 16px; }
.page-head p {
  color: var(--muted);
  max-width: 560px;
  font-size: 1.1rem;
  margin-bottom: 0;
}
.page-head + .section { padding-top: 60px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--brand-950);
  color: #c0bbd1;
  padding: 68px 0 0;
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 44px;
  padding-bottom: 46px;
}
.site-footer h4 {
  color: #fff;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}
.site-footer .foot-kicker {
  display: block;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.site-footer a { color: var(--gold); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 9px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 18px 0;
  font-size: 0.78rem;
  color: #9b94af;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-2 { grid-template-columns: 1fr; gap: 44px; }
  .num-grid, .leader-grid, .gallery-grid { grid-template-columns: 1fr 1fr; }
  .min-list { grid-template-columns: 1fr; }
  .sched-row { grid-template-columns: 1fr; gap: 12px; padding: 26px; }
  .section { padding: 64px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-content { padding: 96px 0 130px; }
}

@media (max-width: 620px) {
  .num-grid, .leader-grid, .gallery-grid { grid-template-columns: 1fr; }
  .gallery-grid .feature { grid-column: span 1; }
  .times-band { margin-top: -48px; }
  .times-grid { grid-template-columns: 1fr; }
  .time-slot {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 22px 26px;
  }
  .time-slot:first-child { border-top: 0; }
  .hero { min-height: 78vh; }
  .brand .brand-logo { height: 50px; }
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    padding: 8px 0 14px;
  }
  .site-nav.open { display: block; }
  .site-nav ul {
    flex-direction: column;
    gap: 0;
    width: 91%;
    margin: 0 auto;
    align-items: stretch;
  }
  .site-nav a {
    display: block;
    padding: 14px 2px;
    border-bottom: 1px solid var(--line);
  }
  .site-nav a.active { box-shadow: none; }
  .topbar .container { justify-content: center; text-align: center; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
