/* ==========================================================================
   Providence Baptist Church — Louisville, Kentucky
   providencebaptistchurchky.org
   ========================================================================== */

:root {
  --forest-900: #152a20;
  --forest-800: #1e3a2c;
  --forest-700: #294d3b;
  --forest-600: #36634c;
  --forest-100: #e2ebe3;
  --forest-050: #f0f5f0;
  --bark-700: #5b4130;
  --bark-500: #8a6a52;
  --gold-600: #9a6a2a;
  --gold-500: #c4883b;
  --gold-400: #dca962;
  --ink: #2a2622;
  --ink-soft: #5e584d;
  --paper: #fdfbf7;
  --cream: #f5efe3;
  --line: #e5dccd;
  --radius: 16px;
  --shadow-sm: 0 2px 10px rgba(52, 38, 22, 0.08);
  --shadow-md: 0 12px 34px rgba(52, 38, 22, 0.16);
  --font-display: "Lora", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", "Inter", -apple-system, "Segoe UI", sans-serif;
  --header-h: 80px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--forest-600); text-decoration: none; }
a:hover { color: var(--gold-600); }

h1, h2, h3, .display { font-family: var(--font-display); line-height: 1.18; color: var(--forest-900); }

.container { width: min(1160px, 92%); margin-inline: auto; }
.container--narrow { width: min(840px, 92%); margin-inline: auto; }

section { padding: clamp(60px, 8.5vw, 104px) 0; }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: 14px;
}

.section-title { font-size: clamp(1.85rem, 3.5vw, 2.6rem); margin-bottom: 18px; }
.section-lede { color: var(--ink-soft); max-width: 660px; font-size: 1.05rem; }

.center { text-align: center; }
.center .section-lede { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.94rem;
  letter-spacing: 0.04em;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
}
.btn:hover { transform: translateY(-2px); }

.btn--gold { background: var(--gold-500); color: var(--forest-900); box-shadow: 0 8px 22px rgba(193, 154, 61, 0.35); }
.btn--gold:hover { background: var(--gold-400); color: var(--forest-900); }

.btn--navy { background: var(--forest-700); color: #fff; box-shadow: 0 8px 22px rgba(34, 54, 94, 0.3); }
.btn--navy:hover { background: var(--forest-600); color: #fff; }

.btn--outline-light { border-color: rgba(255, 255, 255, 0.85); color: #fff; }
.btn--outline-light:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }

.btn--outline { border-color: var(--forest-700); color: var(--forest-700); }
.btn--outline:hover { background: var(--forest-050); }

.btn-row { display: flex; gap: 16px; flex-wrap: wrap; }
.btn-row--center { justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); border-color: var(--line); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: var(--header-h);
}

.brand { display: flex; align-items: center; gap: 12px; color: var(--forest-900); min-width: 0; }
.brand-logo { height: 58px; width: auto; display: block; }
.brand:hover { color: var(--forest-900); }
.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--forest-800), var(--forest-600));
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.brand-mark svg { width: 24px; height: 24px; fill: var(--gold-400); }
.brand-text { line-height: 1.2; min-width: 0; }
.brand-text .name { font-family: var(--font-display); font-weight: 700; font-size: 18px; display: block; }
.brand-text .place { font-size: 11.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-600); font-weight: 700; }

.main-nav { display: flex; align-items: center; gap: clamp(4px, 1vw, 10px); }
.main-nav > a, .nav-drop > button {
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.01em;
  padding: 8px 12px;
  border-radius: 8px;
  background: none;
  border: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}
.main-nav > a:hover, .nav-drop > button:hover { color: var(--forest-700); background: var(--forest-050); }
.main-nav > a.is-active, .nav-drop.is-active > button { color: var(--forest-700); box-shadow: inset 0 -2px 0 var(--gold-500); border-radius: 8px 8px 0 0; }
.main-nav .btn { padding: 11px 24px; font-size: 0.88rem; margin-left: 8px; }
.main-nav .btn:hover { transform: none; }

.nav-drop { position: relative; }
.nav-drop > button::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); margin-left: 2px; }
.nav-drop-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 250px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  padding: 8px;
  display: none;
  z-index: 110;
}
.nav-drop.is-open .nav-drop-menu { display: block; }
.nav-drop-menu a {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
}
.nav-drop-menu a:hover { background: var(--forest-050); color: var(--forest-700); }
.nav-drop-menu a.is-active { color: var(--forest-700); font-weight: 700; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 44px;
  height: 44px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
}
.nav-toggle span { display: block; width: 26px; height: 2.5px; background: var(--forest-900); border-radius: 2px; transition: transform 0.25s ease, opacity 0.25s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

@media (max-width: 1080px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: 10px 5vw 28px;
    display: none;
  }
  .main-nav.is-open { display: flex; }
  .main-nav > a, .nav-drop > button { width: 100%; padding: 14px 6px; font-size: 1.04rem; border-bottom: 1px solid var(--line); border-radius: 0; justify-content: space-between; }
  .main-nav > a.is-active, .nav-drop.is-active > button { box-shadow: inset 3px 0 0 var(--gold-500); padding-left: 12px; }
  .nav-drop-menu { position: static; box-shadow: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 0 0 8px 14px; min-width: 0; }
  .main-nav .btn { margin: 18px 0 0; }
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  min-height: min(88vh, 780px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--header-h) + 70px) 0 110px;
  color: #fff;
  background-color: var(--forest-900);
  background:
    linear-gradient(180deg, rgba(18, 34, 26, 0.62) 0%, rgba(18, 34, 26, 0.38) 40%, rgba(18, 34, 26, 0.48) 70%, rgba(18, 34, 26, 0.82) 100%),
    url("../assets/img/hero-hamilton-valley.jpg") center 62% / cover no-repeat var(--forest-900);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.9), transparent 75%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.9), transparent 75%);
}
.hero > .container { position: relative; }
.hero .eyebrow { color: var(--gold-400); }
.hero h1 {
  color: #fff;
  font-size: clamp(2.4rem, 6vw, 4.3rem);
  max-width: 18ch;
  margin: 0 auto 20px;
}
.hero h1 em { font-style: italic; color: var(--gold-400); }
.hero .verse { max-width: 640px; margin: 0 auto 38px; font-size: 1.06rem; color: rgba(255, 255, 255, 0.85); font-style: italic; font-family: var(--font-display); }
.hero .verse cite { display: block; font-family: var(--font-body); font-style: normal; font-weight: 700; font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-400); margin-top: 10px; }
.hero .btn-row { justify-content: center; }

.hero-times {
  position: absolute;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  display: flex;
  gap: clamp(18px, 3.5vw, 44px);
  flex-wrap: wrap;
  justify-content: center;
  font-size: 0.85rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
  width: 92%;
}
.hero-times strong { color: var(--gold-400); font-weight: 700; }

/* ---------- Page hero (interior) ---------- */
.page-hero {
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'><path fill='%23213e30' fill-opacity='.7' d='M0 86 L120 60 L240 76 L380 40 L500 70 L640 34 L780 64 L900 30 L1040 62 L1180 42 L1320 70 L1440 52 L1440 120 L0 120 Z'/><path fill='%23152a20' d='M0 104 L160 92 L320 100 L480 88 L660 100 L840 86 L1000 98 L1180 90 L1320 100 L1440 94 L1440 120 L0 120 Z'/></svg>") center bottom / 100% auto no-repeat,
    radial-gradient(900px 420px at 85% -10%, rgba(220, 169, 98, 0.3), transparent 60%),
    radial-gradient(700px 420px at 10% 110%, rgba(54, 99, 76, 0.6), transparent 65%),
    linear-gradient(150deg, var(--forest-900), var(--forest-700));
  color: #fff;
  padding: calc(var(--header-h) + clamp(52px, 8vw, 88px)) 0 clamp(72px, 9vw, 110px);
  text-align: center;
}
.page-hero .eyebrow { color: var(--gold-400); }
.page-hero h1 { color: #fff; font-size: clamp(2.1rem, 4.8vw, 3.2rem); margin-bottom: 14px; }
.page-hero p { max-width: 660px; margin-inline: auto; color: rgba(255, 255, 255, 0.85); font-size: 1.04rem; }

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 24px; margin-top: 46px; }
.card-grid--3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.card-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--forest-800), var(--forest-600));
  display: grid;
  place-items: center;
  margin: 28px 26px 0;
}
.card-icon svg { width: 26px; height: 26px; fill: var(--gold-400); }
.card-body { padding: 20px 26px 28px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-body h3 { font-size: 1.28rem; }
.card-body p { color: var(--ink-soft); font-size: 0.95rem; flex: 1; }
.card-link { font-weight: 700; font-size: 0.88rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold-600); }
.card-link:hover { color: var(--forest-700); }

/* ---------- Service times ---------- */
.times { background: var(--cream); }
.times-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; margin-top: 46px; }
.time-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.time-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: linear-gradient(var(--gold-500), var(--forest-600));
}
.time-card .time { font-family: var(--font-display); font-size: 2.3rem; color: var(--forest-700); line-height: 1.1; }
.time-card h3 { margin: 10px 0 4px; font-size: 1.14rem; }
.time-card p { color: var(--ink-soft); font-size: 0.94rem; }

/* ---------- Split section ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 72px); align-items: center; }
.split .photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
.split .photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }

/* ---------- Numbered beliefs list ---------- */
.beliefs-list { list-style: none; counter-reset: belief; display: grid; gap: 16px; margin-top: 42px; }
.beliefs-list li {
  counter-increment: belief;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  padding: 22px 26px 22px 74px;
  position: relative;
  font-size: 1.02rem;
}
.beliefs-list li::before {
  content: counter(belief);
  position: absolute;
  left: 22px;
  top: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--forest-800), var(--forest-600));
  color: var(--gold-400);
  font-family: var(--font-display);
  font-weight: 700;
  display: grid;
  place-items: center;
  font-size: 1.05rem;
}
.beliefs-list .ref { display: block; margin-top: 6px; font-size: 0.88rem; font-weight: 700; color: var(--gold-600); letter-spacing: 0.02em; }

/* ---------- Quote / verse band ---------- */
.quote-band { background: var(--cream); text-align: center; }
.quote-band blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  font-style: italic;
  color: var(--forest-800);
  max-width: 26ch;
  margin: 0 auto 18px;
  line-height: 1.45;
}
.quote-band cite { font-family: var(--font-body); font-style: normal; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.82rem; color: var(--gold-600); }

/* ---------- Video embeds ---------- */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; margin-top: 46px; }
.video-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--forest-900);
  border: 1px solid var(--line);
}
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Archive content (migrated pages) ---------- */
.archive-wrap { display: grid; grid-template-columns: 1fr; gap: 0; }
.archive-content { max-width: 840px; margin-inline: auto; font-size: 1rem; }
.archive-content p, .archive-content div { margin-bottom: 10px; }
.archive-content u { text-decoration: none; }
.archive-content h2 {
  font-size: 1.55rem;
  margin: 46px 0 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gold-500);
}
.archive-content h2:first-child { margin-top: 0; }
.archive-content a {
  font-weight: 600;
  color: var(--forest-600);
}
.archive-content a:hover { color: var(--gold-600); text-decoration: underline; }
.archive-content ol, .archive-content ul { padding-left: 22px; margin: 12px 0; display: grid; gap: 8px; }
.archive-note {
  background: var(--forest-050);
  border: 1px solid var(--line);
  border-left: 5px solid var(--gold-500);
  border-radius: 12px;
  padding: 18px 22px;
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin: 0 auto 38px;
  max-width: 840px;
}
.archive-note a { font-weight: 700; }

/* link rows inside archives */
.archive-content .link-row { margin-bottom: 4px; }

/* ---------- Filter box ---------- */
.filter-bar { max-width: 840px; margin: 0 auto 34px; position: relative; }
.filter-bar input {
  width: 100%;
  padding: 15px 20px 15px 52px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: #fff;
  font-size: 1rem;
  font-family: var(--font-body);
  box-shadow: var(--shadow-sm);
}
.filter-bar input:focus { outline: none; border-color: var(--forest-600); box-shadow: 0 0 0 3px rgba(45, 70, 120, 0.14); }
.filter-bar::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23545e74"><path d="M15.5 14h-.79l-.28-.27a6.5 6.5 0 1 0-.7.7l.27.28v.79l5 4.99L20.49 19zm-6 0A4.5 4.5 0 1 1 14 9.5 4.5 4.5 0 0 1 9.5 14z"/></svg>') no-repeat center / contain;
}
.filter-empty { display: none; text-align: center; color: var(--ink-soft); padding: 30px 0; }

/* hidden by filter */
.f-hide { display: none !important; }

/* ---------- Audio play buttons ---------- */
.audio-inline { display: block; width: 100%; max-width: 480px; margin: 8px 0 14px; }

/* ---------- Pastor card ---------- */
.pastor-card {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: clamp(28px, 4vw, 52px);
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  max-width: 940px;
  margin: 0 auto;
}
.pastor-card img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.pastor-card .bio { padding: clamp(24px, 3vw, 44px); }
.pastor-card .bio h2 { font-size: 1.7rem; margin-bottom: 4px; }
.pastor-card .bio .role { color: var(--gold-600); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.82rem; margin-bottom: 16px; }
.pastor-card .bio p { color: var(--ink-soft); font-size: 0.98rem; }
@media (max-width: 760px) { .pastor-card { grid-template-columns: 1fr; } .pastor-card img { max-height: 380px; } }

/* ---------- Forms ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-md); padding: clamp(28px, 4vw, 48px); }
label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 7px; color: var(--forest-900); }
input, textarea, select {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.97rem;
  color: var(--ink);
  background: var(--cream);
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--forest-600); box-shadow: 0 0 0 3px rgba(45, 70, 120, 0.14); background: #fff; }

/* ---------- Contact / info ---------- */
.info-list { list-style: none; display: grid; gap: 14px; margin-top: 26px; }
.info-list li { display: flex; gap: 14px; align-items: baseline; }
.info-list .ico { color: var(--gold-600); font-weight: 800; flex-shrink: 0; width: 24px; }
.info-list a { font-weight: 600; }

.map-embed { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.map-embed iframe { display: block; width: 100%; height: 380px; border: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  background:
    radial-gradient(800px 400px at 85% 0%, rgba(220, 169, 98, 0.3), transparent 60%),
    linear-gradient(120deg, var(--forest-900), var(--forest-700));
  color: #fff;
  text-align: center;
}
.cta-band h2 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 16px; }
.cta-band p { color: rgba(255, 255, 255, 0.85); max-width: 600px; margin: 0 auto 34px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--forest-900); color: rgba(255, 255, 255, 0.78); padding: 70px 0 0; font-size: 0.94rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 52px; }
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-family: var(--font-body); font-size: 0.84rem; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 18px; }
.site-footer ul { list-style: none; display: grid; gap: 10px; }
.site-footer a { color: rgba(255, 255, 255, 0.78); }
.site-footer a:hover { color: var(--gold-400); }
.footer-brand .name { font-family: var(--font-display); font-size: 1.35rem; color: #fff; font-weight: 700; }
.footer-brand p { margin-top: 12px; max-width: 36ch; }
.footer-brand .tagline { color: var(--gold-400); font-family: var(--font-display); font-style: italic; font-size: 1.02rem; }
.footer-social { display: flex; gap: 12px; margin-top: 20px; }
.footer-social a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: grid;
  place-items: center;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.footer-social a:hover { background: rgba(255, 255, 255, 0.12); border-color: var(--gold-400); }
.footer-social svg { width: 18px; height: 18px; fill: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); padding: 22px 0; font-size: 0.84rem; color: rgba(255, 255, 255, 0.55); }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Utility ---------- */
.mt-1 { margin-top: 12px; }
.mt-2 { margin-top: 24px; }
.mt-3 { margin-top: 40px; }
.bg-cream { background: var(--cream); }
.prose { max-width: 760px; margin-inline: auto; }
.prose p { margin-bottom: 18px; }
.prose .scripture { font-weight: 700; color: var(--forest-800); }


/* ---------- Text size control ---------- */
.header-tools { display: flex; align-items: center; gap: 10px; margin-left: 12px; }
.main-nav { margin-left: auto; }
.text-size {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
  flex-shrink: 0;
}
.text-size button {
  background: none;
  border: 0;
  padding: 7px 11px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  color: var(--forest-800);
  cursor: pointer;
  transition: background 0.15s ease;
}
.text-size button:hover { background: var(--forest-050); }
.text-size button:disabled { opacity: 0.35; cursor: default; background: none; }
.text-size button + button { border-left: 1.5px solid var(--line); }
.text-size .big { font-size: 17px; }
html.text-lg { font-size: 112.5%; }
html.text-xl { font-size: 125%; }
html.text-xxl { font-size: 140%; }
@media (max-width: 1080px) {
  .header-tools { margin-left: auto; }
  .main-nav { margin-left: 0; }
}

@media (max-width: 600px) {
  .header-inner { gap: 10px; }
  .brand-mark { width: 40px; height: 40px; }
  .brand-mark svg { width: 22px; height: 22px; }
  .brand-text .name { font-size: 16px; line-height: 1.15; }
  .brand-logo { height: 44px; }
  .brand-text .place { font-size: 10.5px; }
  .header-tools { gap: 4px; margin-left: 8px; }
  .text-size button { padding: 6px 9px; }
  .nav-toggle { width: 38px; }
}

/* ---------- Slideshow ---------- */
.slideshow { max-width: 980px; margin: 44px auto 0; outline: none; }
.slideshow:focus-visible .ss-stage { box-shadow: 0 0 0 3px var(--gold-400), var(--shadow-md); }
.ss-stage { position: relative; background: var(--forest-900); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); aspect-ratio: 3 / 2; }
.ss-slide { position: absolute; inset: 0; margin: 0; display: none; }
.ss-slide.is-active { display: block; }
.ss-slide img { width: 100%; height: 100%; object-fit: contain; display: block; }
.ss-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.9); color: var(--forest-800); font-size: 1.9rem; line-height: 1; cursor: pointer; display: grid; place-items: center; box-shadow: var(--shadow-sm); z-index: 2; transition: background 0.15s ease, transform 0.15s ease; padding-bottom: 4px; }
.ss-nav:hover { background: #fff; transform: translateY(-50%) scale(1.06); }
.ss-prev { left: 14px; }
.ss-next { right: 14px; }
.ss-caption { min-height: 3.4em; padding: 16px 8px 0; text-align: center; color: var(--ink); font-size: 1.04rem; line-height: 1.55; max-width: 820px; margin-inline: auto; }
.ss-caption .ss-date { display: block; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-600); font-weight: 700; margin-top: 4px; }
.ss-bar { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 10px; flex-wrap: wrap; }
.ss-bar button { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 16px; font-family: var(--font-body); font-weight: 600; font-size: 0.88rem; color: var(--forest-800); cursor: pointer; transition: background 0.15s ease; }
.ss-bar button:hover { background: var(--forest-050); }
.ss-bar button[aria-pressed="true"] { background: var(--forest-700); color: #fff; border-color: var(--forest-700); }
.ss-counter { font-weight: 700; color: var(--ink-soft); font-variant-numeric: tabular-nums; min-width: 64px; text-align: center; }
.ss-thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 14px 4px 10px; scrollbar-width: thin; scrollbar-color: var(--gold-500) transparent; }
.ss-thumbs button { flex: 0 0 auto; width: 92px; height: 62px; border-radius: 8px; overflow: hidden; border: 3px solid transparent; padding: 0; background: var(--forest-900); cursor: pointer; opacity: 0.7; transition: opacity 0.15s ease, border-color 0.15s ease; }
.ss-thumbs button img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ss-thumbs button:hover { opacity: 1; }
.ss-thumbs button.is-active { opacity: 1; border-color: var(--gold-500); }
.ss-fs-caption { display: none; }
.ss-stage:fullscreen { border-radius: 0; aspect-ratio: auto; width: 100vw; height: 100vh; background: #000; }
.ss-stage:fullscreen .ss-fs-caption { display: block; position: absolute; left: 0; right: 0; bottom: 0; background: rgba(21, 42, 32, 0.85); color: #fff; padding: 14px 70px; text-align: center; font-size: 1.1rem; z-index: 2; }
.ss-stage:fullscreen .ss-fs-caption:empty { display: none; }
@media (max-width: 640px) {
  .ss-nav { width: 40px; height: 40px; font-size: 1.5rem; }
  .ss-prev { left: 8px; }
  .ss-next { right: 8px; }
  .ss-thumbs button { width: 72px; height: 50px; }
  .ss-caption { font-size: 0.98rem; }
}

/* ---------- Timeline (history) ---------- */
.timeline { position: relative; margin-top: 48px; padding-left: 34px; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 3px; background: linear-gradient(var(--gold-500), var(--forest-600)); border-radius: 2px; }
.timeline-item { position: relative; padding: 0 0 44px 26px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before { content: ""; position: absolute; left: -34px; top: 8px; width: 19px; height: 19px; border-radius: 50%; background: #fff; border: 4px solid var(--gold-500); box-shadow: 0 0 0 4px rgba(196, 136, 59, 0.18); }
.timeline-item .era { font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.8rem; color: var(--gold-600); }
.timeline-item h3 { font-size: 1.45rem; margin: 6px 0 10px; }
.timeline-item p { color: var(--ink-soft); max-width: 68ch; }
.timeline-item p + p { margin-top: 10px; }
@media (max-width: 520px) { .timeline { padding-left: 26px; } .timeline-item { padding-left: 18px; } .timeline-item::before { left: -26px; width: 17px; height: 17px; } }

.photo-caption { font-size: 0.84rem; color: var(--ink-soft); padding: 12px 14px; background: #fff; line-height: 1.5; }
.split figure.photo { display: flex; flex-direction: column; }

.split .photo--plain { box-shadow: none; border-radius: 0; }

/* ---------- Background hymn control ---------- */
.music-player {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 90;
  display: flex;
  align-items: stretch;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(21, 42, 32, 0.92);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(8px);
  overflow: hidden;
}
.music-player button {
  background: none;
  border: 0;
  color: #fff;
  font-family: var(--font-body);
  cursor: pointer;
  transition: background 0.18s ease;
}
.music-player button:hover { background: rgba(255, 255, 255, 0.12); }
.music-player button:focus-visible { outline: 2px solid var(--gold-400); outline-offset: -3px; }
.music-skip {
  padding: 0 14px;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--gold-400);
  display: grid;
  place-items: center;
}
.music-toggle {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
  border-right: 1px solid rgba(255, 255, 255, 0.14);
  max-width: 15rem;
}
.music-toggle .music-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.music-toggle .music-count { font-weight: 400; font-size: 0.76rem; opacity: 0.65; flex-shrink: 0; }
.music-toggle .music-note { font-size: 1.15rem; line-height: 1; color: var(--gold-400); flex-shrink: 0; }
.music-toggle .music-bars { display: none; align-items: flex-end; gap: 2px; height: 14px; width: 16px; flex-shrink: 0; }
.music-toggle .music-bars i { display: block; width: 3px; background: var(--gold-400); border-radius: 1px; height: 40%; animation: music-bar 0.9s ease-in-out infinite; }
.music-toggle .music-bars i:nth-child(2) { animation-delay: 0.2s; height: 100%; }
.music-toggle .music-bars i:nth-child(3) { animation-delay: 0.4s; height: 65%; }
@keyframes music-bar { 0%, 100% { transform: scaleY(0.45); } 50% { transform: scaleY(1); } }
.music-toggle.is-playing .music-bars { display: flex; }
.music-toggle.is-playing .music-note { display: none; }
@media (max-width: 640px) {
  .music-player { left: 12px; bottom: 12px; }
  /* keep every control a comfortable touch target (>=44px) */
  .music-player button { min-height: 44px; }
  .music-toggle { padding: 9px 10px; font-size: 0.8rem; max-width: 9.5rem; }
  .music-skip { padding: 0 13px; min-width: 44px; font-size: 1.35rem; }
}
@media (prefers-reduced-motion: reduce) { .music-toggle .music-bars i { animation: none; } }
@media print { .music-player { display: none; } }

/* ---------- Photo hero ---------- */
.hero::before { display: none; }
@media (max-width: 700px) {
  .hero { background-image: linear-gradient(180deg, rgba(18, 34, 26, 0.66) 0%, rgba(18, 34, 26, 0.42) 40%, rgba(18, 34, 26, 0.5) 70%, rgba(18, 34, 26, 0.84) 100%), url("../assets/img/hero-hamilton-valley-mobile.jpg"); }
}
.footer-credit { flex-basis: 100%; font-size: 0.78rem; opacity: 0.7; }
.footer-credit a { color: inherit; text-decoration: underline; }

/* ---------- Church directory ---------- */
.dir-nav { display: flex; flex-wrap: wrap; gap: 7px; justify-content: center; margin: 0 auto 44px; max-width: 900px; }
.dir-nav a {
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--forest-050);
  border: 1px solid var(--line);
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--forest-700);
}
.dir-nav a:hover { background: var(--forest-700); color: #fff; border-color: var(--forest-700); }
.directory { max-width: 860px; margin-inline: auto; }
.dir-state {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 1.5rem;
  margin: 46px 0 16px;
  padding-bottom: 9px;
  border-bottom: 2px solid var(--gold-500);
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.dir-state:first-child { margin-top: 0; }
.dir-tally { font-family: var(--font-body); font-size: 0.8rem; font-weight: 700; color: var(--ink-soft); letter-spacing: 0.08em; }
.dir-row {
  padding: 11px 4px 11px 16px;
  border-left: 3px solid var(--line);
  font-size: 0.96rem;
  line-height: 1.6;
  color: var(--ink);
}
.dir-row + .dir-row { border-top: 1px solid var(--line); }
.dir-row:hover { border-left-color: var(--gold-500); background: var(--cream); }
.dir-row a { font-weight: 700; white-space: nowrap; }
.dir-status { text-align: center; color: var(--ink-soft); font-size: 0.9rem; margin: -18px 0 26px; min-height: 1.2em; }
@media (max-width: 640px) {
  .dir-nav { gap: 5px; }
  .dir-nav a { padding: 5px 10px; font-size: 0.78rem; }
  .dir-state { font-size: 1.3rem; }
  .dir-row { font-size: 0.92rem; padding-left: 12px; }
}

/* ---------- Back to top ---------- */
.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 95;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(21, 42, 32, 0.92);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease, background 0.2s ease;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--forest-700); }
.to-top:focus-visible { outline: 2px solid var(--gold-400); outline-offset: 3px; }
.to-top svg { width: 26px; height: 26px; fill: var(--gold-400); }
@media (max-width: 640px) {
  .to-top { right: 14px; bottom: 14px; width: 44px; height: 44px; }
  .to-top svg { width: 23px; height: 23px; }
}
@media (prefers-reduced-motion: reduce) { .to-top { transition: opacity 0.2s ease, visibility 0.2s ease; transform: none; } }
@media print { .to-top { display: none; } }

/* ---------- YouTube channel player ---------- */
.yt-channel { max-width: 1000px; margin-inline: auto; }
.yt-stage { margin-top: 40px; }
.yt-player {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
}
.yt-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-nowplaying { text-align: center; margin-top: 16px; font-size: 1.02rem; color: var(--ink); }
.yt-nowplaying strong { font-family: var(--font-display); font-size: 1.2rem; color: var(--forest-900); display: block; }
.yt-nowplaying span { font-size: 0.85rem; color: var(--ink-soft); letter-spacing: 0.06em; }
.yt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin-top: 34px; }
.yt-card {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.yt-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.yt-card.is-active { border-color: var(--gold-500); box-shadow: 0 0 0 2px var(--gold-500); }
.yt-card:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 2px; }
.yt-thumb { position: relative; display: block; background: #000; }
.yt-thumb img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.yt-play {
  position: absolute;
  left: 50%; top: 50%;
  width: 44px; height: 30px;
  transform: translate(-50%, -50%);
  border-radius: 7px;
  background: rgba(21, 42, 32, 0.82);
  transition: background 0.18s ease;
}
.yt-play::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-40%, -50%);
  border-style: solid;
  border-width: 6px 0 6px 10px;
  border-color: transparent transparent transparent #fff;
}
.yt-card:hover .yt-play, .yt-card.is-active .yt-play { background: var(--gold-600); }
.yt-meta { padding: 0 12px 13px; display: flex; flex-direction: column; gap: 3px; }
.yt-title { font-size: 0.9rem; font-weight: 600; color: var(--ink); line-height: 1.35; }
.yt-date { font-size: 0.78rem; color: var(--ink-soft); }
@media (max-width: 640px) {
  .yt-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
  .yt-title { font-size: 0.84rem; }
}
