/* ============================================================
   Triumph Baptist Church — Cullen, Virginia
   Established 1840
   ============================================================ */

:root {
  --navy:        #12305c;
  --navy-deep:   #0c2044;
  --navy-soft:   #1d4479;
  --gold:        #c2a14d;
  --gold-light:  #d9bd71;
  --cream:       #f6f3ec;
  --paper:       #ffffff;
  --ink:         #21262e;
  --ink-soft:    #5a6472;
  --rule:        #e2e0d8;

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --wrap: 1140px;
  --shadow-sm: 0 2px 10px rgba(18, 48, 92, .07);
  --shadow-md: 0 10px 34px rgba(18, 48, 92, .12);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 92px; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--navy); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 .5em;
  color: var(--navy);
}

.skip-link {
  position: absolute; left: -9999px;
  background: var(--gold); color: var(--navy-deep);
  padding: .75rem 1.25rem; z-index: 200; font-weight: 700;
}
.skip-link:focus { left: 1rem; top: 1rem; }

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

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-block;
  padding: .85rem 1.9rem;
  font-family: var(--sans);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  border: 2px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .15s;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }

.btn-gold        { background: var(--gold); color: var(--navy-deep); border-color: var(--gold); }
.btn-gold:hover  { background: var(--gold-light); border-color: var(--gold-light); }

.btn-navy        { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-navy:hover  { background: var(--navy-soft); border-color: var(--navy-soft); }

.btn-ghost       { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; }

.btn-ghost-light       { background: transparent; color: #fff; border-color: rgba(255,255,255,.65); }
.btn-ghost-light:hover { background: #fff; color: var(--navy); border-color: #fff; }

/* ============================================================
   TOP BAR
   ============================================================ */

.topbar {
  background: var(--navy-deep);
  color: rgba(255,255,255,.86);
  font-size: .78rem;
  letter-spacing: .06em;
  text-align: center;
  padding: .55rem 1rem;
}
.topbar-sep { margin: 0 .9rem; opacity: .4; }

@media (max-width: 700px) {
  .topbar-sep { display: none; }
  .topbar-item { display: block; line-height: 1.6; }
}

/* ============================================================
   NAV
   ============================================================ */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem clamp(1rem, 4vw, 2.5rem);
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--rule);
  backdrop-filter: blur(8px);
  transition: padding .25s, box-shadow .25s;
}
.nav.scrolled { padding: .5rem clamp(1rem, 4vw, 2.5rem); box-shadow: var(--shadow-sm); }

.nav-brand { display: flex; align-items: center; gap: .7rem; }
.nav-brand:hover { text-decoration: none; }

.nav-logo {
  width: 48px; height: 48px;
  object-fit: contain;
  transition: width .25s, height .25s;
}
.nav.scrolled .nav-logo { width: 38px; height: 38px; }

.nav-brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.nav-brand-text strong {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--navy);
}
.nav-brand-text em {
  font-style: normal;
  font-size: .62rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.nav-menu { display: flex; align-items: center; gap: 1.15rem; }
.nav-menu a {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--ink);
  padding: .35rem 0;
  border-bottom: 2px solid transparent;
}
.nav-menu a:hover { color: var(--navy); border-bottom-color: var(--gold); text-decoration: none; }

.nav-give {
  background: var(--navy);
  color: #fff !important;
  padding: .6rem 1.4rem !important;
  border-radius: 2px;
  border-bottom: none !important;
}
.nav-give:hover { background: var(--gold); color: var(--navy-deep) !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 26px;
  margin: 0 auto;
  background: var(--navy);
  transition: transform .25s, opacity .25s;
}

@media (max-width: 1060px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--rule);
    box-shadow: var(--shadow-md);
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
  }
  .nav-menu.open { max-height: 80vh; }
  .nav-menu a {
    padding: 1rem clamp(1rem, 4vw, 2.5rem);
    border-bottom: 1px solid var(--rule);
  }
  .nav-menu a:hover { background: var(--cream); border-bottom-color: var(--rule); }
  .nav-give {
    margin: .9rem clamp(1rem, 4vw, 2.5rem) 1.2rem;
    text-align: center;
    border-bottom: none;
  }
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
  position: relative;
  padding: clamp(3.5rem, 9vw, 6.5rem) 1.5rem clamp(3rem, 7vw, 5rem);
  text-align: center;
  color: #fff;
  background: var(--navy-deep);
  overflow: hidden;
}

/* The church building, dimmed behind the text. Sits in its own layer so the
   overlay can be tuned without touching the photo. */
/* Three explicit layers: photo (0), darkening overlay (1), text (2).
   The overlay cannot live on .hero-photo::after — the parent's filter would
   blur it too — and it cannot be an unlayered .hero::before, because a
   pseudo-element paints BEFORE its sibling and the photo would cover it. */
.hero-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url("images/church-exterior.jpg") center 30% / cover no-repeat;
  /* Blurred so the building's own signage does not compete with the headline;
     scaled up slightly so the blur has no soft edge at the borders. */
  filter: blur(4px) saturate(.85);
  transform: scale(1.08);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(12,32,68,.82) 0%, rgba(12,32,68,.9) 55%, rgba(12,32,68,.96) 100%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.hero-inner { max-width: 900px; margin: 0 auto; position: relative; z-index: 2; }

/* The seal artwork sits on a white background, so it is presented as a white
   circular badge rather than knocked out — inverting it would erase the art. */
.hero-seal {
  width: clamp(150px, 25vw, 220px);
  aspect-ratio: 1;
  margin: 0 auto 1.9rem;
  padding: 6px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--gold), 0 14px 40px rgba(0,0,0,.35);
}

.hero-kicker {
  margin: 0 0 .6rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.hero-title {
  margin: 0;
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  font-weight: 600;
  letter-spacing: .02em;
  color: #fff;
}

.hero-sub {
  margin: .35rem 0 2.4rem;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  font-style: italic;
  color: rgba(255,255,255,.78);
}

.hero-times {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  margin: 0 auto 2.6rem;
  max-width: 780px;
  border-top: 1px solid rgba(255,255,255,.2);
  border-bottom: 1px solid rgba(255,255,255,.2);
}
.hero-time {
  flex: 1 1 200px;
  padding: 1.4rem 1rem;
  border-left: 1px solid rgba(255,255,255,.14);
}
.hero-time:first-child { border-left: none; }
.hero-time-day {
  display: block;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: .35rem;
}
.hero-time-hour {
  display: block;
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 600;
  color: #fff;
}

@media (max-width: 640px) {
  .hero-time { flex-basis: 100%; border-left: none; border-top: 1px solid rgba(255,255,255,.14); }
  .hero-time:first-child { border-top: none; }
}

/* Narrow screens crop in tight, which pushes the building's signage right
   behind the headline. Frame higher (sky and steeple) and blur a touch more. */
@media (max-width: 700px) {
  .hero-photo {
    background-position: center 12%;
    filter: blur(6px) saturate(.85);
  }
}

.hero-buttons { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* ============================================================
   NAMESAKE VERSE — Psalm 47:1
   ============================================================ */

.verse-band {
  padding: clamp(2.75rem, 6vw, 4.25rem) clamp(1.25rem, 5vw, 3rem);
  text-align: center;
  background: var(--cream);
  border-bottom: 1px solid var(--rule);
}
.verse-text {
  max-width: 860px;
  margin: 0 auto .75rem;
  font-family: var(--serif);
  font-size: clamp(1.4rem, 3.4vw, 2.15rem);
  font-style: italic;
  line-height: 1.4;
  color: var(--navy);
}
.verse-text strong {
  font-style: normal;
  font-weight: 700;
  letter-spacing: .03em;
  color: var(--gold);
}
.verse-ref {
  margin: 0 0 .6rem;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--navy);
}
.verse-note {
  margin: 0;
  font-size: .93rem;
  color: var(--ink-soft);
}

/* ============================================================
   PHOTO BAND
   ============================================================ */

.photo-band { margin: 0 0 3.25rem; }
.photo-band img {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  object-position: center 34%;
  border-radius: 2px;
  box-shadow: var(--shadow-md);
}
.photo-band figcaption {
  margin-top: .8rem;
  text-align: center;
  font-size: .84rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ============================================================
   QUICK ACTION CARDS
   ============================================================ */

.quick {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1px;
  background: var(--rule);
  border-bottom: 1px solid var(--rule);
}
.quick-card {
  padding: 2.4rem 1.75rem;
  background: #fff;
  text-align: center;
  transition: background .2s, transform .2s;
}
.quick-card:hover { background: var(--cream); text-decoration: none; transform: translateY(-3px); }

.quick-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  margin-bottom: 1rem;
  border: 2px solid var(--gold);
  border-radius: 50%;
  color: var(--gold);
  font-size: 1.25rem;
}
.quick-card h3 { margin: 0 0 .3rem; font-size: 1.45rem; }
.quick-card p  { margin: 0; font-size: .92rem; color: var(--ink-soft); }

/* ============================================================
   SECTIONS
   ============================================================ */

.section {
  padding: clamp(3.5rem, 8vw, 6rem) clamp(1.25rem, 5vw, 3rem);
  max-width: var(--wrap);
  margin: 0 auto;
}
.section-navy,
.section-cream { max-width: none; }

.section-navy {
  background: var(--navy);
  color: rgba(255,255,255,.88);
}
.section-cream { background: var(--cream); }

.section-navy > *,
.section-cream > * { max-width: var(--wrap); margin-left: auto; margin-right: auto; }

.eyebrow {
  margin: 0 0 .5rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold);
  text-align: center;
}
.eyebrow-light { color: var(--gold-light); }

.section-title {
  margin: 0 0 1.1rem;
  font-size: clamp(2rem, 4.6vw, 3rem);
  text-align: center;
}
.section-title-light { color: #fff; }
.section-title::after {
  content: "";
  display: block;
  width: 62px; height: 2px;
  margin: .9rem auto 0;
  background: var(--gold);
}

.section-lede {
  max-width: 720px;
  margin: 0 auto 3rem;
  text-align: center;
  font-size: 1.08rem;
  color: var(--ink-soft);
}
.section-lede-light { color: rgba(255,255,255,.82); }

/* ============================================================
   PASTOR WELCOME
   ============================================================ */

.pastor { margin-bottom: 3.5rem; }

.pastor-card {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2.5rem;
  align-items: center;
  padding: 2.5rem;
  background: var(--cream);
  border-left: 4px solid var(--gold);
  box-shadow: var(--shadow-sm);
}

/* Full-length portrait, so it gets a tall frame rather than a circle crop. */
.pastor-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
  border-radius: 3px;
  border-bottom: 4px solid var(--gold);
  box-shadow: var(--shadow-md);
}

.pastor-words h3 { font-size: 1.75rem; }
.pastor-words p  { margin: 0 0 1rem; font-size: 1.08rem; font-style: italic; color: var(--ink); }

.pastor-name {
  font-style: normal !important;
  font-family: var(--serif);
  font-size: 1.15rem !important;
  font-weight: 700;
  color: var(--navy) !important;
}
.pastor-name span {
  display: block;
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

@media (max-width: 760px) {
  .pastor-card { grid-template-columns: 1fr; gap: 1.75rem; padding: 2rem 1.5rem; text-align: center; }
  .pastor-photo { width: 210px; margin: 0 auto; }
}

/* ============================================================
   WHAT TO EXPECT
   ============================================================ */

.expect-title {
  font-size: 1.9rem;
  text-align: center;
  margin-bottom: 2rem;
}
.expect-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 2rem;
}
.expect-item { text-align: center; }
.expect-item h4 {
  font-size: 1.35rem;
  margin-bottom: .4rem;
  padding-bottom: .6rem;
  border-bottom: 1px solid var(--rule);
}
.expect-item p { margin: 0; font-size: .96rem; color: var(--ink-soft); }

/* ============================================================
   SERVICE TIMES
   ============================================================ */

.times-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 1.75rem;
  margin-bottom: 2rem;
}
.times-card {
  padding: 2.5rem 1.75rem;
  text-align: center;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 3px;
}
.times-card-feature {
  background: rgba(194,161,77,.14);
  border-color: var(--gold);
}
.times-card h3 {
  margin: 0 0 .5rem;
  font-size: 1.5rem;
  color: #fff;
}
.times-hour {
  margin: 0 0 .7rem;
  font-family: var(--serif);
  font-size: 2.1rem;
  font-weight: 600;
  color: var(--gold-light);
}
.times-note { margin: 0; font-size: .93rem; color: rgba(255,255,255,.72); }

/* Dial-in line for folks who cannot get out to Bible study. */
.times-dial {
  margin: 1rem 0 0;
  padding-top: .9rem;
  border-top: 1px solid rgba(255,255,255,.18);
}
.times-dial-label {
  display: block;
  margin-bottom: .15rem;
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.times-dial a {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.35);
}
.times-dial a:hover { color: var(--gold-light); border-bottom-color: var(--gold-light); }

.times-footnote {
  text-align: center;
  font-size: .92rem;
  color: rgba(255,255,255,.68);
}
.times-footnote a { color: var(--gold-light); text-decoration: underline; }

/* ============================================================
   MINISTRIES
   ============================================================ */

.ministry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.75rem;
}
.ministry {
  padding: 2rem 1.85rem;
  background: #fff;
  border: 1px solid var(--rule);
  border-top: 3px solid var(--navy);
  border-radius: 2px;
  transition: transform .2s, box-shadow .2s, border-top-color .2s;
}
.ministry:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-top-color: var(--gold);
}
.ministry h3 { font-size: 1.5rem; }
.ministry p  { font-size: .97rem; color: var(--ink-soft); margin: 0 0 1rem; }
.ministry a {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--navy);
}
.ministry a:hover { color: var(--gold); }

/* Missions card carries the Souper Bowl photo, so it spans the full row. */
.ministry-wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 0;
  padding: 0;
  overflow: hidden;
}
.ministry-photo {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  object-position: center 42%;
}
.ministry-body { padding: 2rem 1.85rem; align-self: center; }
.ministry-body h3 { font-size: 1.5rem; }
.ministry-body p  { font-size: .97rem; color: var(--ink-soft); margin: 0 0 1rem; }

@media (max-width: 720px) {
  .ministry-wide { grid-template-columns: 1fr; }
  .ministry-photo { min-height: 220px; max-height: 300px; }
}

/* ============================================================
   HISTORY
   ============================================================ */

.history-body {
  max-width: 780px;
  margin: 0 auto 3.5rem;
}
.history-body p { margin: 0 0 1.3rem; font-size: 1.06rem; }
.history-close {
  padding-left: 1.4rem;
  border-left: 3px solid var(--gold);
  font-family: var(--serif);
  font-size: 1.25rem !important;
  font-style: italic;
  color: var(--navy);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 0;
  border-top: 2px solid var(--gold);
}
.timeline-item {
  padding: 1.75rem 1.4rem;
  border-right: 1px solid var(--rule);
}
.timeline-item:last-child { border-right: none; }
.timeline-year {
  display: block;
  margin-bottom: .5rem;
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
}
.timeline-item p { margin: 0; font-size: .93rem; color: var(--ink-soft); }

@media (max-width: 720px) {
  .timeline-item { border-right: none; border-bottom: 1px solid var(--rule); }
  .timeline-item:last-child { border-bottom: none; }
}

/* ============================================================
   EVENTS
   ============================================================ */

.event-list { border-top: 1px solid var(--rule); }

.event-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 2rem;
  align-items: center;
  padding: 1.9rem 0;
  border-bottom: 1px solid var(--rule);
}
.event-when {
  text-align: center;
  padding: 1rem .5rem;
  background: var(--navy);
  border-radius: 2px;
}
.event-day {
  display: block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .17em;
  color: var(--gold-light);
}
.event-time {
  display: block;
  font-family: var(--serif);
  font-size: 1.2rem;
  color: #fff;
}
.event-what h3 { font-size: 1.5rem; margin-bottom: .25rem; }
.event-what p  { margin: 0; font-size: .97rem; color: var(--ink-soft); }

.events-note {
  margin-top: 2rem;
  text-align: center;
  font-size: .94rem;
  color: var(--ink-soft);
}

@media (max-width: 620px) {
  .event-row { grid-template-columns: 1fr; gap: 1rem; text-align: center; }
  .event-when { max-width: 150px; margin: 0 auto; }
}

/* ============================================================
   PRAYER
   ============================================================ */

.prayer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}
.prayer-verse {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  font-family: var(--serif);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--gold-light);
}

/* ============================================================
   GIVE
   ============================================================ */

.give-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(265px, 1fr));
  gap: 1.75rem;
  margin-bottom: 2.75rem;
}
.give-card {
  padding: 2.1rem 1.75rem;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 2px;
  text-align: center;
}
.give-card h3 { font-size: 1.5rem; }
.give-card p  { margin: 0 0 .8rem; font-size: .97rem; color: var(--ink-soft); }
.give-link {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* Once Givelify is wired up this card carries the main call to action. */
.give-card-online { border-color: var(--gold); border-top: 3px solid var(--gold); }
.give-btn { width: 100%; margin-top: .4rem; }
.give-fineprint {
  margin: .9rem 0 0 !important;
  font-size: .82rem;
  color: var(--ink-soft);
}

.give-verse {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  font-family: var(--serif);
  font-size: 1.22rem;
  font-style: italic;
  color: var(--navy);
}

/* ============================================================
   CONTACT
   ============================================================ */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 3rem;
  align-items: start;
}
.contact-info h3 { font-size: 1.85rem; margin-bottom: 1.25rem; }

.contact-line { margin: 0 0 1.1rem; font-size: 1rem; }
.contact-line strong {
  display: block;
  font-family: var(--sans);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .15rem;
}

.contact-sub {
  font-size: .86rem;
  color: var(--ink-soft);
}

.contact-buttons { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.75rem; }

.contact-map {
  min-height: 420px;
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-sm);
}
.contact-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
}

@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; gap: 2.25rem; }
  .contact-map, .contact-map iframe { min-height: 320px; }
}

/* ============================================================
   WATCH / SERMONS
   ============================================================ */

/* No aspect-ratio by default: while the placeholder is showing, the box
   must grow to fit its text. On a narrow phone a locked 16:9 frame is only
   ~156px tall and the message spills straight out of it. The ratio is
   applied by .has-video, which the script adds when a real embed goes in. */
.watch-player {
  position: relative;
  background: var(--navy-deep);
  border-radius: 3px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.watch-player.has-video { aspect-ratio: 16 / 9; }
.watch-player iframe { width: 100%; height: 100%; border: 0; display: block; }

.watch-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 280px;
  padding: clamp(2rem, 6vw, 3rem) clamp(1.25rem, 5vw, 1.75rem);
  text-align: center;
  color: rgba(255,255,255,.85);
}
.watch-placeholder-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 62px; height: 62px;
  margin-bottom: .4rem;
  border: 2px solid var(--gold);
  border-radius: 50%;
  color: var(--gold);
  font-size: 1.4rem;
  padding-left: 5px;
}
.watch-placeholder h3 { margin: 0; color: #fff; font-size: 1.6rem; }
.watch-placeholder p  { margin: 0 0 .8rem; max-width: 430px; font-size: .96rem; }
.watch-placeholder .btn-navy { background: var(--gold); color: var(--navy-deep); border-color: var(--gold); }
.watch-placeholder .btn-navy:hover { background: var(--gold-light); border-color: var(--gold-light); }

/* Title / date line under the featured player. */
.watch-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .3rem 1rem;
  margin: 1rem 0 0;
}
.watch-caption strong {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--navy);
}
.watch-caption span {
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
}

/* --- the rest of the sermon library --- */

.sermon-more { margin-top: 3rem; }
.sermon-more-title {
  margin: 0 0 1.5rem;
  font-size: 1.75rem;
  text-align: center;
}
.sermon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.75rem;
}
.sermon-card {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 3px;
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.sermon-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.sermon-media {
  aspect-ratio: 16 / 9;
  background: var(--navy-deep);
}
.sermon-media iframe { width: 100%; height: 100%; border: 0; display: block; }
.sermon-body { padding: 1.1rem 1.35rem 1.35rem; }
.sermon-body h4 { margin: 0 0 .2rem; font-size: 1.25rem; }
.sermon-meta {
  margin: 0;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
}

/* --- the live Facebook page feed --- */

.watch-feed {
  display: grid;
  grid-template-columns: minmax(0, 500px) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
  margin-top: 3.25rem;
  padding-top: 3rem;
  border-top: 1px solid var(--rule);
}

.fb-frame {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 3px;
  overflow: hidden;
  min-height: 700px;
}
.fb-frame iframe { display: block; width: 100%; border: 0; }

.watch-feed-copy h3 { font-size: 1.9rem; margin-bottom: .6rem; }
.watch-feed-copy p  { color: var(--ink-soft); }

.watch-live {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin: 1.25rem 0 1.5rem;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--navy) !important;
}
.watch-live-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #c0392b;
  box-shadow: 0 0 0 4px rgba(192,57,43,.18);
  flex: none;
}

.watch-note {
  margin: 1.1rem 0 0;
  font-size: .86rem;
  color: var(--ink-soft);
}

@media (max-width: 900px) {
  .watch-feed { grid-template-columns: 1fr; gap: 2rem; }
  .fb-frame { min-height: 620px; }
}

/* ============================================================
   MEET THE CHURCH
   ============================================================ */

.meet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.75rem;
  margin-bottom: 3rem;
}

.meet-card {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 3px;
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.meet-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.meet-media {
  position: relative;
  aspect-ratio: 9 / 16;
  max-height: 440px;
  background: var(--navy-deep);
}
.meet-media video,
.meet-media iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
  display: block;
}

.meet-body { padding: 1.35rem 1.5rem 1.6rem; }
.meet-body h3 { margin: 0 0 .15rem; font-size: 1.35rem; }
.meet-role {
  margin: 0 0 .7rem;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
}
.meet-quote {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--ink-soft);
}

/* Shown while videos.js has no entries yet. */
.meet-empty {
  grid-column: 1 / -1;
  padding: 3.25rem 2rem;
  text-align: center;
  background: #fff;
  border: 1px dashed var(--rule);
  border-radius: 3px;
}
.meet-empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px; height: 60px;
  margin-bottom: 1rem;
  padding-left: 5px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  color: var(--gold);
  font-size: 1.3rem;
}
.meet-empty h3 { margin: 0 0 .4rem; font-size: 1.6rem; }
.meet-empty p  { margin: 0 auto; max-width: 480px; color: var(--ink-soft); }

.meet-invite {
  padding: 2.25rem 2rem;
  text-align: center;
  background: #fff;
  border-left: 4px solid var(--gold);
  box-shadow: var(--shadow-sm);
}
.meet-invite h3 { margin: 0 0 .4rem; font-size: 1.6rem; }
.meet-invite p  { margin: 0 auto 1.4rem; max-width: 560px; color: var(--ink-soft); }

/* ============================================================
   MODAL + PRAYER FORM
   ============================================================ */

/* .modal is display:flex, so the hidden attribute needs to win. */
[hidden] { display: none !important; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3rem) 1rem;
  overflow-y: auto;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(9, 22, 46, .72);
  backdrop-filter: blur(3px);
}

.modal-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 620px;
  margin: auto;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  background: #fff;
  border-top: 4px solid var(--gold);
  border-radius: 3px;
  box-shadow: 0 30px 70px rgba(0,0,0,.4);
}

.modal-close {
  position: absolute;
  top: .5rem; right: .75rem;
  width: 44px; height: 44px;
  padding: 0;
  background: none;
  border: none;
  font-size: 2rem;
  line-height: 1;
  color: var(--ink-soft);
  cursor: pointer;
}
.modal-close:hover { color: var(--navy); }

.modal-eyebrow { text-align: left; }
.modal-title {
  margin: 0 0 1.5rem;
  font-size: clamp(1.85rem, 4vw, 2.4rem);
}
.modal-title::after {
  content: "";
  display: block;
  width: 56px; height: 2px;
  margin-top: .75rem;
  background: var(--gold);
}

/* --- form fields --- */

.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.field { margin-bottom: 1.25rem; }
.fieldset { border: none; padding: 0; margin-inline: 0; }

.field-label {
  display: block;
  margin-bottom: .4rem;
  padding: 0;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--navy);
}
.req {
  margin-left: .4rem;
  font-size: .66rem;
  letter-spacing: .1em;
  color: var(--gold);
}

.prayer-form textarea,
.prayer-form input[type="text"],
.prayer-form input[type="email"],
.prayer-form input[type="tel"] {
  width: 100%;
  padding: .8rem .9rem;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--rule);
  border-radius: 2px;
  transition: border-color .15s, background .15s;
}
.prayer-form textarea { resize: vertical; min-height: 120px; }
.prayer-form textarea:focus,
.prayer-form input:focus {
  outline: none;
  background: #fff;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(18,48,92,.12);
}

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }

.field-hint {
  margin: -.5rem 0 1.25rem;
  font-size: .84rem;
  color: var(--ink-soft);
}

.radio-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.radio {
  display: flex;
  align-items: center;
  gap: .55rem;
  flex: 1 1 200px;
  padding: .75rem 1rem;
  background: var(--cream);
  border: 1px solid var(--rule);
  border-radius: 2px;
  font-size: .95rem;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.radio:hover { border-color: var(--navy); }
.radio input { accent-color: var(--navy); width: 18px; height: 18px; }
.radio:has(input:checked) {
  background: #fff;
  border-color: var(--navy);
  box-shadow: inset 0 0 0 1px var(--navy);
}

.contact-reveal {
  padding: 1.35rem 1.25rem .25rem;
  margin-bottom: 1.25rem;
  background: var(--cream);
  border-left: 3px solid var(--gold);
  border-radius: 2px;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  margin-bottom: 1.5rem;
  font-size: .95rem;
  color: var(--ink-soft);
  cursor: pointer;
}
.check input { accent-color: var(--navy); width: 18px; height: 18px; margin-top: .15rem; }

.form-error {
  margin: 0 0 1rem;
  padding: .8rem 1rem;
  font-size: .92rem;
  color: #7d2020;
  background: #fdf1f1;
  border-left: 3px solid #b3352f;
  border-radius: 2px;
}

.prayer-submit { width: 100%; }
.prayer-submit:disabled { opacity: .6; cursor: wait; transform: none; }

.form-note {
  margin: 1.1rem 0 0;
  text-align: center;
  font-size: .87rem;
  color: var(--ink-soft);
}

.form-success { text-align: center; padding: 1rem 0; }
.form-success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px; height: 64px;
  margin-bottom: 1rem;
  border: 2px solid var(--gold);
  border-radius: 50%;
  color: var(--gold);
  font-size: 1.7rem;
}
.form-success h3 { font-size: 1.75rem; margin-bottom: .5rem; }
.form-success p  { margin: 0 auto 1rem; max-width: 420px; color: var(--ink-soft); }
.form-success-verse {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--navy) !important;
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,.72);
  font-size: .93rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 2.75rem;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(2.75rem, 6vw, 4.25rem) clamp(1.25rem, 5vw, 3rem);
}

.footer-logo {
  width: 108px;
  aspect-ratio: 1;
  margin-bottom: 1rem;
  padding: 4px;
  background: #fff;
  border-radius: 50%;
}
.footer-est {
  margin: 0 0 .9rem;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.footer-mission { margin: 0; font-size: .9rem; line-height: 1.75; }

.footer-col h4 {
  margin: 0 0 1rem;
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
}
.footer-col p { margin: 0 0 1rem; line-height: 1.75; }
.footer-col a {
  display: block;
  margin-bottom: .5rem;
  color: rgba(255,255,255,.72);
}
.footer-col a:hover { color: var(--gold-light); text-decoration: none; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 1.4rem 1.25rem;
  text-align: center;
}
.footer-bottom p { margin: 0; font-size: .84rem; color: rgba(255,255,255,.5); }

@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2.25rem; }
}
@media (max-width: 560px) {
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-logo { margin-left: auto; margin-right: auto; }
}

/* ============================================================
   TOUCH TARGETS
   ------------------------------------------------------------
   On phones and tablets every control needs roughly 44x44px of
   tappable area (Apple's guideline; Android asks for 48). Small
   text links are the usual offenders — they measure ~18px tall,
   which is a miss-and-try-again on a real thumb. Padding gives
   them height without changing how they look.
   ============================================================ */

@media (max-width: 1060px) {

  /* "Follow Triumph Youth →", "Join the choir →", etc. */
  .ministry a,
  .ministry-body a,
  .give-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }

  /* Footer link columns — these sat at 25px and stacked tightly. */
  .footer-col a {
    display: flex;
    align-items: center;
    min-height: 44px;
    margin-bottom: 0;
  }

  /* Email and phone in the Contact block sit on their own line,
     so they can take the full 44px. */
  .contact-line a,
  .times-dial a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }

  /* The Bible Study call-in number appears mid-sentence in Events. It is a
     number older members will actually be dialling, so it gets as much
     padding as a sentence allows rather than the usual inline treatment. */
  .event-what a[href^="tel:"] {
    display: inline-block;
    padding: .6rem 0;
    font-weight: 700;
    white-space: nowrap;
  }

  /* These three sit mid-sentence. WCAG exempts inline text links from
     the target-size rule — padding lifts them to ~36px, which is as far
     as you can go without breaking the paragraph. */
  .watch-note a,
  .times-footnote a,
  .events-note a,
  .form-note a {
    display: inline-block;
    padding: .35rem 0;
  }

  /* The Give button inside the open mobile menu measured 40px. */
  .nav-give {
    padding: .95rem 1.4rem !important;
  }
}

/* Footer collapses to one centred column on small screens, so the
   full-width flex links need their text centred too. */
@media (max-width: 560px) {
  .footer-col a { justify-content: center; }
}

/* ============================================================
   MOTION
   ============================================================ */

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