/* ──────────────────────────────────────────────────────────────
   Києво-Троєщинська церква - photo-led editorial theme
   Quiet church identity, real imagery, restrained motion.
   ────────────────────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* Palette */
  --brown:        #6B2E1D;
  --brown-soft:   #8C4A32;
  --amber:        #B85C2B;
  --amber-light:  #D99A4E;
  --pine:         #173E35;
  --pine-soft:    #2E6256;
  --ink:          #1D2430;
  --cream:        #F7F1E6;
  --cream-warm:   #EFE3D0;
  --paper:        #FFFCF7;
  --text:         #1D2430;
  --text-soft:    #4F5A5A;
  --muted:        #7C746A;
  --border:       #D8C8B5;
  --border-soft:  #E9DDD0;
  --shadow-color: 41, 32, 22;

  /* Typography */
  --serif: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;

  /* Spatial */
  --radius-sm: 6px;
  --radius:    8px;
  --radius-lg: 8px;
  --radius-xl: 8px;

  --shadow-sm: 0 2px 10px rgba(var(--shadow-color), 0.06);
  --shadow:    0 10px 30px rgba(var(--shadow-color), 0.10);
  --shadow-lg: 0 22px 70px rgba(var(--shadow-color), 0.16);

  --container: 1180px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  --nav-h: 76px;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--text);
  line-height: 1.65;
  font-weight: 400;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--amber); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--brown); }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; }
::selection { background: var(--amber-light); color: #fff; }

/* ── Typography ─────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: 0;
}
h1 { font-size: 5.8rem; font-weight: 600; }
h2 { font-size: 2.6rem; }
h3 { font-size: 1.35rem; font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }
p  { color: var(--text-soft); }

.serif { font-family: var(--serif); }
.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pine-soft);
  margin-bottom: 14px;
}

/* ── Layout primitives ──────────────────────────────────────── */
.container { max-width: var(--container); margin: 0 auto; padding: 0 28px; }
.section { padding: clamp(72px, 11vw, 130px) 0; }
.section-alt,
.section-map {
  background:
    linear-gradient(180deg, rgba(23, 62, 53, 0.035), rgba(184, 92, 43, 0.035)),
    var(--cream-warm);
}
.section-paper { background: var(--paper); }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 64px; }
.section-head h2 { margin-bottom: 18px; }
.section-head p  { font-size: 1.05rem; color: var(--text-soft); }
.divider {
  width: 0;
  height: 2px;
  background: var(--pine-soft);
  margin: 22px auto 0;
  transition: width 1s var(--ease-out);
}
.section-head.visible .divider { width: 56px; }

/* ── Navigation ─────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  background: rgba(251, 246, 238, 0.78);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.nav.scrolled {
  background: rgba(251, 246, 238, 0.94);
  border-bottom-color: var(--border);
  box-shadow: 0 1px 0 rgba(var(--shadow-color), 0.04);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--brown);
  font-family: var(--serif);
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: 0;
  white-space: nowrap;
}
.nav-logo:hover { color: var(--amber); }
.nav-logo-img { width: 36px; height: 36px; flex-shrink: 0; }
.nav-logo-text { line-height: 1; }
.nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
}
.nav-links a {
  position: relative;
  display: inline-block;
  padding: 10px 16px;
  color: var(--text);
  font-size: 0.94rem;
  font-weight: 500;
  border-radius: 999px;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav-links a:hover { color: var(--brown); background: rgba(184, 85, 24, 0.06); }
.nav-links a.active {
  color: var(--brown);
  background: rgba(184, 85, 24, 0.10);
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 10px;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--brown);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.nav.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-logo { font-size: 1rem; }
  .nav-links {
    position: absolute;
    top: var(--nav-h); left: 0; right: 0;
    background: var(--cream);
    flex-direction: column;
    padding: 16px;
    gap: 4px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
  }
  .nav-links a { width: 100%; padding: 14px 18px; }
  .nav.open .nav-links {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1.5px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease),
              border-color 0.2s var(--ease), color 0.2s var(--ease),
              box-shadow 0.25s var(--ease);
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--pine);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--brown);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.btn-outline {
  background: transparent;
  color: var(--pine);
  border-color: var(--pine);
}
.btn-outline:hover {
  background: var(--pine);
  color: #fff;
  transform: translateY(-2px);
}
.btn-block {
  width: 100%;
  padding: 16px;
}
.hero .btn-primary {
  background: #F2C078;
  color: #17211F;
  border-color: #F2C078;
}
.hero .btn-primary:hover {
  background: #fff;
  color: #17211F;
  border-color: #fff;
}
.hero .btn-outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.68);
  background: rgba(255, 255, 255, 0.08);
}
.hero .btn-outline:hover {
  color: #17211F;
  background: #fff;
  border-color: #fff;
}
.btn-ghost {
  background: transparent;
  color: var(--brown);
  padding: 10px 18px;
}
.btn-ghost:hover { color: var(--amber); }
.btn .arrow { transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 92svh;
  padding-top: var(--nav-h);
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(11, 23, 25, 0.82) 0%, rgba(21, 35, 31, 0.66) 42%, rgba(21, 35, 31, 0.18) 72%),
    linear-gradient(180deg, rgba(11, 23, 25, 0.20), rgba(11, 23, 25, 0.34)),
    url("/img/church2.jpg") center / cover no-repeat;
}
.hero::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 36%;
  background: linear-gradient(180deg, transparent, rgba(8, 19, 20, 0.52));
  opacity: 0.55;
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: block;
  width: 100%;
  padding: 116px 28px 72px;
}
.hero-content { max-width: 820px; }
.hero h1 {
  color: #fff;
  max-width: 760px;
  margin-bottom: 24px;
  text-wrap: balance;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.42);
}
.hero .eyebrow { color: #F6D099; }
.hero-lead {
  font-size: 1.18rem;
  color: rgba(255, 255, 255, 0.86);
  margin-bottom: 36px;
  max-width: 620px;
  line-height: 1.65;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 56px; }
.hero-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(160px, 1fr));
  gap: 0;
  max-width: 520px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(255, 252, 247, 0.10);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.hero-meta-item { padding: 20px 22px; }
.hero-meta-item + .hero-meta-item { border-left: 1px solid rgba(255, 255, 255, 0.22); }
.hero-meta-item small {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.66);
  margin-bottom: 4px;
}
.hero-meta-item strong {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: #fff;
  font-weight: 600;
}

@media (max-width: 920px) {
  h1 { font-size: 4.25rem; }
  h2 { font-size: 2.25rem; }
  .hero {
    background:
      linear-gradient(180deg, rgba(11, 23, 25, 0.82), rgba(11, 23, 25, 0.56)),
      url("/img/church2.jpg") 58% center / cover no-repeat;
  }
  .hero-meta { grid-template-columns: 1fr; }
  .hero-meta-item + .hero-meta-item {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
  }
}
@media (max-width: 540px) {
  h1 { font-size: 2.85rem; }
  h2 { font-size: 2rem; }
  .hero { min-height: 88svh; }
  .hero-grid { padding: 82px 20px 54px; }
  .hero-lead { font-size: 1.05rem; }
  .hero-actions .btn { width: 100%; }
}

/* ── Page hero (subpages) ───────────────────────────────────── */
.page-hero {
  padding: calc(var(--nav-h) + 70px) 0 70px;
  background:
    linear-gradient(90deg, rgba(18, 35, 35, 0.86), rgba(18, 35, 35, 0.54)),
    url("/img/church.jpg") center / cover no-repeat;
  position: relative;
  text-align: center;
  color: #fff;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  display: block;
  width: 56px; height: 2px;
  background: #F2C078;
  margin: 30px auto 0;
}
.page-hero-about {
  background:
    linear-gradient(90deg, rgba(18, 35, 35, 0.84), rgba(18, 35, 35, 0.50)),
    url("/img/church_main.jpg") center 44% / cover no-repeat;
}
.page-hero-contact {
  background:
    linear-gradient(90deg, rgba(18, 35, 35, 0.84), rgba(18, 35, 35, 0.50)),
    url("/img/church1.jpg") center / cover no-repeat;
}
.page-hero-sermons {
  background:
    linear-gradient(90deg, rgba(18, 35, 35, 0.88), rgba(18, 35, 35, 0.58)),
    url("/img/church2.jpg") center / cover no-repeat;
}
.page-hero .breadcrumb {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: 0.04em;
  margin-bottom: 20px;
}
.page-hero .breadcrumb a { color: rgba(255, 255, 255, 0.78); }
.page-hero .breadcrumb a:hover { color: #F2C078; }
.page-hero .breadcrumb span { margin: 0 8px; }
.page-hero h1 {
  color: #fff;
  margin-bottom: 14px;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.34);
}
.page-hero p {
  max-width: 580px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.05rem;
}

/* ── Cards / Pillars ────────────────────────────────────────── */
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.pillar {
  background: var(--paper);
  padding: 38px 30px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  border-top: 4px solid var(--pine);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.pillar:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--border);
}
.pillar-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  background: #F2E4CF;
  color: var(--pine);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 22px;
  box-shadow: inset 0 0 0 1px rgba(23, 62, 53, 0.10);
}
.pillar h3 { margin-bottom: 12px; color: var(--ink); }
.pillar p  { font-size: 0.97rem; color: var(--text-soft); }

/* ── Service times ──────────────────────────────────────────── */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.service {
  display: flex;
  gap: 22px;
  background: var(--paper);
  padding: 26px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border-soft);
  border-left: 4px solid var(--pine);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.service:hover { border-color: var(--border); box-shadow: var(--shadow-sm); }
.service-day {
  flex-shrink: 0;
  width: 60px;
  text-align: center;
  border-right: 1px solid var(--border);
  padding-right: 22px;
}
.service-day strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.7rem;
  color: var(--pine);
  font-weight: 600;
  line-height: 1;
}
.service-day small {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 6px;
}
.service-info h3 { font-size: 1.05rem; margin-bottom: 8px; color: var(--ink); }
.service-info p  { font-size: 0.92rem; margin-bottom: 4px; color: var(--text-soft); }
.service-info p:last-child { margin-bottom: 0; }

/* ── Quote block ────────────────────────────────────────────── */
.quote-block {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  padding: 0 24px;
}
.quote-block::before {
  content: "\201C";
  font-family: var(--serif);
  font-size: 7rem;
  line-height: 1;
  color: var(--amber);
  opacity: 0.18;
  position: absolute;
  top: -36px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}
.quote-block blockquote {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-style: italic;
  color: var(--brown);
  line-height: 1.45;
  margin-bottom: 18px;
}
.quote-block cite {
  font-style: normal;
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ── About: story split ─────────────────────────────────────── */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}
.split-text h2 { margin-bottom: 22px; }
.split-text p { margin-bottom: 16px; font-size: 1rem; }
.split-figure {
  aspect-ratio: 5 / 6;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.split-figure img { width: 100%; height: 100%; object-fit: cover; }
.split.reverse .split-figure { order: -1; }
@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; }
  .split.reverse .split-figure { order: 0; }
  .split-figure { max-width: 540px; margin: 0 auto; }
}

/* ── Values list (horizontal lines) ─────────────────────────── */
.values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0;
  border-top: 1px solid var(--border);
}
.value {
  padding: 30px 28px;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  transition: background 0.25s var(--ease);
}
.value:hover { background: var(--paper); }
.value:nth-child(3n) { border-right: none; }
.value-num {
  font-family: var(--serif);
  font-size: 0.95rem;
  color: var(--amber);
  letter-spacing: 0.14em;
  margin-bottom: 14px;
}
.value h3 { font-size: 1.2rem; margin-bottom: 8px; color: var(--brown); }
.value p  { font-size: 0.95rem; color: var(--text-soft); }
@media (max-width: 720px) {
  .value { border-right: none; }
}

/* ── CTA strip ─────────────────────────────────────────────── */
.cta {
  text-align: center;
  background:
    linear-gradient(90deg, rgba(17, 45, 40, 0.94), rgba(107, 46, 29, 0.80)),
    url("/img/church_main.jpg") center / cover no-repeat;
  color: #fff;
  padding: clamp(70px, 9vw, 110px) 28px;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08), transparent);
  opacity: 0.32;
  pointer-events: none;
}
.cta > * { position: relative; }
.cta .eyebrow { color: var(--amber-light); }
.cta h2 { color: #fff; margin-bottom: 18px; }
.cta p {
  max-width: 560px;
  margin: 0 auto 36px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.06rem;
}
.cta .btn-primary { background: var(--amber); }
.cta .btn-primary:hover { background: var(--amber-light); }
.cta .btn-outline { color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.cta .btn-outline:hover { background: #fff; color: var(--brown); border-color: #fff; }
.cta-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Contact page ───────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(36px, 5vw, 64px);
  align-items: start;
}
.contact-info h2 { margin-bottom: 12px; }
.contact-info > p { margin-bottom: 36px; color: var(--text-soft); }
.contact-block {
  display: flex;
  gap: 18px;
  padding: 22px 0;
  border-top: 1px solid var(--border);
}
.contact-block:last-child { border-bottom: 1px solid var(--border); }
.contact-block .icon {
  flex-shrink: 0;
  width: 42px; height: 42px;
  border-radius: 12px;
  background: rgba(184, 85, 24, 0.10);
  color: var(--amber);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}
.contact-block h4 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.contact-block p { font-size: 0.98rem; color: var(--text); margin-bottom: 4px; }
.contact-block a { color: var(--brown); }
.contact-block a:hover { color: var(--amber); }

.contact-form {
  background: var(--paper);
  padding: clamp(28px, 4vw, 48px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
}
.contact-form h2 { margin-bottom: 8px; }
.contact-form .form-sub { color: var(--text-soft); margin-bottom: 28px; font-size: 0.95rem; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  background: var(--cream);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--sans);
  font-size: 0.96rem;
  color: var(--text);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--pine-soft);
  background: var(--paper);
  box-shadow: 0 0 0 4px rgba(23, 62, 53, 0.10);
}
.form-group textarea { resize: vertical; min-height: 130px; line-height: 1.55; }
.form-success {
  display: none;
  margin-top: 16px;
  padding: 14px 18px;
  background: rgba(184, 85, 24, 0.08);
  color: var(--brown);
  border-left: 3px solid var(--amber);
  border-radius: var(--radius-sm);
  font-size: 0.94rem;
}
.form-success.show { display: block; }
.form-error {
  display: none;
  margin-top: 16px;
  padding: 14px 18px;
  background: #fee2e2;
  color: #b91c1c;
  border-left: 3px solid #dc2626;
  border-radius: var(--radius-sm);
  font-size: 0.94rem;
}
.form-error.show { display: block; }

@media (max-width: 820px) {
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

/* ── Schedule table ─────────────────────────────────────────── */
.schedule {
  width: 100%;
  border-collapse: collapse;
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-soft);
}
.schedule th {
  background: var(--cream-warm);
  color: var(--brown);
  text-align: left;
  padding: 16px 22px;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
}
.schedule td {
  padding: 16px 22px;
  border-bottom: 1px solid var(--border-soft);
  font-size: 0.96rem;
  color: var(--text);
}
.schedule tbody tr:last-child td { border-bottom: none; }
.schedule tbody tr:hover td { background: rgba(184, 85, 24, 0.04); }
.schedule td:nth-child(2) { color: var(--pine); font-weight: 600; font-family: var(--serif); font-size: 1.05rem; }
@media (max-width: 640px) {
  .schedule th, .schedule td { padding: 12px 14px; font-size: 0.88rem; }
}

/* ── Map ────────────────────────────────────────────────────── */
.map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-soft);
  aspect-ratio: 16 / 9;
}
.map-wrap iframe { width: 100%; height: 100%; border: none; display: block; }

/* ── Sermons page ───────────────────────────────────────────── */
.stream-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--brown);
}
.stream-frame iframe { width: 100%; height: 100%; border: none; display: block; }
.stream-skeleton {
  position: absolute; inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  font-family: var(--serif);
  font-size: 1.2rem;
  font-style: italic;
  background: linear-gradient(135deg, var(--brown), #4a230d);
}

.stream-meta {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
}
.stream-meta .title-block h3 {
  font-size: 1.5rem;
  margin-bottom: 6px;
}
.stream-meta .title-block small {
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.video-card {
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-soft);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
  display: flex;
  flex-direction: column;
}
.video-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--border);
}
.video-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--cream-warm);
}
.video-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}
.video-card:hover .video-thumb img { transform: scale(1.06); }
.video-thumb::after {
  content: "▶";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 56px; height: 56px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--brown);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  padding-left: 4px;
  box-shadow: var(--shadow);
  transition: transform 0.25s var(--ease);
}
.video-card:hover .video-thumb::after { transform: translate(-50%, -50%) scale(1.08); }
.video-body { padding: 20px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.video-body h4 {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--brown);
  margin-bottom: 8px;
  line-height: 1.35;
}
.video-body small { color: var(--muted); font-size: 0.82rem; margin-top: auto; }

.stream-empty {
  background: var(--paper);
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 32px;
  text-align: center;
  color: var(--muted);
}
.stream-empty h3 { margin-bottom: 8px; }
.stream-empty p { margin-top: 8px; }
.stream-empty-action { margin-top: 18px; }
.stream-note {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ── Footer ─────────────────────────────────────────────────── */
.footer {
  background:
    linear-gradient(180deg, #163A34 0%, #102823 100%);
  color: rgba(255, 255, 255, 0.76);
  padding: 64px 0 28px;
  font-size: 0.94rem;
  border-top: 6px solid #D99A4E;
}
.footer-inner { max-width: var(--container); margin: 0 auto; padding: 0 28px; }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1.55fr) repeat(3, minmax(160px, 1fr));
  gap: 30px;
  padding-bottom: 42px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}
.footer-brand .footer-logo {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}
.footer-brand img {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: rgba(255, 252, 247, 0.92);
  border-radius: 50%;
  padding: 5px;
}
.footer-brand h3 {
  color: #fff;
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.15;
}
.footer-brand p {
  max-width: 420px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.70);
}
.footer-col {
  padding-top: 8px;
}
.footer-col h4 {
  color: #F2C078;
  font-family: var(--sans);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 16px;
}
.footer-col ul li {
  margin-bottom: 9px;
  line-height: 1.55;
}
.footer-col a {
  color: rgba(255, 255, 255, 0.80);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
}
.footer-col a:hover {
  color: #F2C078;
  text-decoration-color: rgba(242, 192, 120, 0.65);
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 22px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.58);
}
@media (max-width: 800px) {
  .footer { padding-top: 52px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { display: block; }
  .footer-bottom span { display: block; margin-top: 8px; }
}

/* ── Reveal animations ──────────────────────────────────────────
   Content is visible by default. The .is-revealing class is added
   by JS only if IntersectionObserver is supported. If JS fails or
   never runs, the page stays fully visible (no animation, but no
   blank page either).
   ────────────────────────────────────────────────────────────── */
.reveal {
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal.is-revealing {
  opacity: 0;
  transform: translateY(28px);
}
.reveal.is-revealing.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .reveal.is-revealing { opacity: 1; transform: none; }
  .hero-figure img { transform: none !important; }
}

/* ── Helpers ────────────────────────────────────────────────── */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--brown);
  color: #fff;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  z-index: 1000;
}
.skip-link:focus { left: 16px; color: #fff; }
