/* ==========================================================
   Mt. Taylor Baptist Church: shared stylesheet
   Layout: photo-led pages; each opens on a landscape hero with a
   stepped-mesa edge, then alternates light sand and night-sky bands.
   Palette from the land: sandstone, turquoise sky, terracotta cliffs,
   sunset over Mt. Taylor, juniper green, and the night sky.
   ========================================================== */

:root {
  --bg: #fdf8f1;
  --surface: #ffffff;
  --surface-2: #f6ecdf;
  --line: #ecdcc6;
  --ink: #2b211b;
  --ink-soft: #64554a;
  --accent: #c4532d;          /* terracotta */
  --accent-deep: #9e3f1f;
  --sunset: #f08a24;
  --gold: #f4b942;
  --teal: #1b8f9e;            /* turquoise */
  --teal-soft: #d9f0f2;
  --link: #137582;
  --juniper: #3f6b4f;
  --plum: #a8406f;
  --night: #1d2340;
  --night-2: #2a3157;
  --on-night: #fdf8f1;
  --on-night-soft: rgba(253, 248, 241, 0.78);
  --veil: rgba(29, 35, 64, 0.6);

  --radius: 16px;
  --radius-lg: 26px;
  --shadow-sm: 0 2px 10px rgba(43, 33, 27, 0.08);
  --shadow: 0 14px 36px rgba(43, 33, 27, 0.13);
  --shadow-lg: 0 26px 64px rgba(43, 33, 27, 0.22);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;

  --max: 1180px;
  --gutter: 16px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #12162b;
    --surface: #1b2140;
    --surface-2: #222a4d;
    --line: #313a66;
    --ink: #f4ece1;
    --ink-soft: #bcb0a2;
    --accent: #e8714a;
    --accent-deep: #c4532d;
    --teal: #35b4c3;
    --teal-soft: #1c3a4d;
    --link: #6fd0db;
    --night: #0b0f21;
    --night-2: #171d3a;
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.3);
    --shadow: 0 14px 36px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 26px 64px rgba(0, 0, 0, 0.5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #12162b;
  --surface: #1b2140;
  --surface-2: #222a4d;
  --line: #313a66;
  --ink: #f4ece1;
  --ink-soft: #bcb0a2;
  --accent: #e8714a;
  --accent-deep: #c4532d;
  --teal: #35b4c3;
  --teal-soft: #1c3a4d;
  --link: #6fd0db;
  --night: #0b0f21;
  --night-2: #171d3a;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.3);
  --shadow: 0 14px 36px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 26px 64px rgba(0, 0, 0, 0.5);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background 0.4s, color 0.4s;
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: var(--link); }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h2 { font-size: clamp(2rem, 4.4vw, 3.1rem); }
h3 { font-size: 1.4rem; }
p { margin: 0 0 1em; }
.lead { font-size: 1.18rem; color: var(--ink-soft); max-width: 62ch; }
.muted { color: var(--ink-soft); }
.container { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
.narrow { max-width: 760px; }

.ico {
  width: 1.25em;
  height: 1.25em;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -0.2em;
}
.ico.solid { fill: currentColor; stroke: none; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent), var(--sunset));
}
.on-dark .eyebrow, .eyebrow.light { color: var(--gold); }
.on-dark .eyebrow::before, .eyebrow.light::before { background: var(--gold); }

.section { padding-block: clamp(72px, 9vw, 120px); position: relative; }
.section.tight { padding-block: clamp(48px, 6vw, 80px); }
.section.alt { background: var(--surface-2); }
.section-head { max-width: 700px; margin-bottom: 44px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.center .lead { margin-inline: auto; }
.section-head.row {
  max-width: none;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}
.section-head.row > div { max-width: 640px; min-width: 0; }

/* Dark "night sky" bands */
.on-dark {
  background: var(--night);
  color: var(--on-night);
  overflow: hidden;
}
.on-dark .lead, .on-dark .muted { color: var(--on-night-soft); }
.on-dark a:not(.btn) { color: var(--gold); }
.glow::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 85% 15%, rgba(27, 143, 158, 0.35), transparent 50%),
    radial-gradient(circle at 8% 92%, rgba(196, 83, 45, 0.4), transparent 50%);
}
.on-dark > .container { position: relative; z-index: 1; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font: 700 1rem/1.2 var(--font-body);
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s, color 0.3s;
}
.btn:hover { transform: translateY(-3px); }
.btn .ico { transition: transform 0.3s var(--ease); }
.btn:hover .ico.arrow { transform: translateX(4px); }
.btn-primary {
  background: linear-gradient(135deg, var(--sunset), var(--accent));
  color: #fff;
  box-shadow: 0 10px 24px rgba(196, 83, 45, 0.32);
}
.btn-primary:hover { box-shadow: 0 16px 32px rgba(196, 83, 45, 0.45); }
.btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.2); }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { box-shadow: 0 12px 26px rgba(27, 143, 158, 0.35); }
.btn-outline { color: var(--ink); border-color: var(--line); background: var(--surface); }
.btn-outline:hover { border-color: var(--teal); color: var(--link); }
.btn-fb { background: #1877f2; color: #fff; }
.btn-yt { background: #e62117; color: #fff; }
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  text-decoration: none;
  color: var(--link);
}
.text-link:hover .ico { transform: translateX(4px); }
.text-link .ico { transition: transform 0.3s var(--ease); }

/* ---------- Navigation ---------- */
.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: var(--surface);
  color: var(--ink);
  padding: 10px 16px;
  border-radius: 10px;
}
.skip:focus { top: 12px; }

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding: calc(16px + env(safe-area-inset-top, 0px)) 0 16px;
  transition: background 0.4s, padding 0.4s, box-shadow 0.4s;
  color: #fff;
}
.nav.scrolled {
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(14px);
  padding-block: calc(9px + env(safe-area-inset-top, 0px)) 9px;
  box-shadow: var(--shadow-sm);
  color: var(--ink);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.brand-mark { width: 46px; height: 46px; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-family: var(--font-display); font-size: 1.3rem; }
.brand-text span { font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.85; }

.nav-links { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; align-items: center; }
.nav-links a {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.94rem;
  padding: 8px 13px;
  border-radius: 999px;
  transition: background 0.25s, color 0.25s;
}
.nav-links a:hover { background: rgba(255, 255, 255, 0.18); }
.nav-links a[aria-current="page"] { background: rgba(255, 255, 255, 0.22); }
.nav.scrolled .nav-links a:hover,
.nav.scrolled .nav-links a[aria-current="page"] { background: var(--teal-soft); color: var(--link); }
.nav-links .nav-cta {
  background: linear-gradient(135deg, var(--sunset), var(--accent));
  color: #fff !important;
  margin-left: 6px;
}
.nav-tools { display: flex; align-items: center; gap: 6px; }
.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 0;
  background: transparent;
  color: inherit;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.25s;
}
.icon-btn:hover { background: rgba(127, 127, 127, 0.18); }
.theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .moon { display: block; }
}

.menu-toggle { display: none; position: relative; }
.menu-toggle span {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 2.5px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.3s, opacity 0.3s;
}
.menu-toggle span:nth-child(1) { top: 14px; }
.menu-toggle span:nth-child(2) { top: 20px; }
.menu-toggle span:nth-child(3) { top: 26px; }
.nav.open .menu-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav.open .menu-toggle span:nth-child(2) { opacity: 0; }
.nav.open .menu-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Home hero ---------- */
.hero {
  position: relative;
  min-height: min(100svh, 920px);
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  background: var(--night);
}
.hero-slides { position: absolute; inset: 0; z-index: -2; }
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.1);
  transition: opacity 1.8s ease, transform 9s linear;
}
.hero-slide.active { opacity: 1; transform: scale(1); }
.hero::after, .page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(20, 24, 46, 0.6) 0%, rgba(20, 24, 46, 0.15) 42%, rgba(20, 24, 46, 0.78) 100%),
    linear-gradient(90deg, rgba(20, 24, 46, 0.55) 0%, transparent 70%);
}
.hero-content { padding-block: 150px 140px; max-width: 760px; }
.hero .eyebrow, .page-hero .eyebrow { color: var(--gold); }
.hero .eyebrow::before, .page-hero .eyebrow::before { background: var(--gold); }
.hero h1 {
  font-size: clamp(2.7rem, 7.4vw, 5.6rem);
  line-height: 1.02;
  margin-bottom: 22px;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}
.hero h1 em, .page-hero h1 em {
  font-style: italic;
  background: linear-gradient(90deg, var(--gold), var(--sunset));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p { font-size: clamp(1.1rem, 2vw, 1.3rem); max-width: 560px; opacity: 0.95; margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-dots { position: absolute; right: 32px; bottom: 130px; display: flex; flex-direction: column; gap: 10px; }
.hero-dots button {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: height 0.4s var(--ease), background 0.3s;
}
.hero-dots button.active { height: 30px; background: var(--gold); }
.hero-caption {
  position: absolute;
  right: 32px;
  bottom: 84px;
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.8;
}

/* ---------- Inner page hero ---------- */
.page-hero {
  position: relative;
  min-height: 460px;
  display: flex;
  align-items: flex-end;
  color: #fff;
  isolation: isolate;
  overflow: hidden;
  background: var(--night);
}
.page-hero .bg {
  position: absolute;
  inset: -40px 0 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
  animation: heroZoom 14s ease-out both;
}
@keyframes heroZoom { from { transform: scale(1.12); } to { transform: scale(1); } }
.page-hero .container { padding-block: 150px 100px; }
.page-hero h1 { font-size: clamp(2.5rem, 6vw, 4.4rem); margin-bottom: 14px; text-shadow: 0 4px 24px rgba(0, 0, 0, 0.3); }
.page-hero p { font-size: 1.2rem; max-width: 600px; opacity: 0.95; margin: 0; }
.crumbs { display: flex; gap: 8px; font-size: 0.85rem; margin-bottom: 18px; opacity: 0.85; }
.crumbs a { color: #fff; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

.mesa-edge { position: absolute; left: 0; right: 0; bottom: -1px; height: 56px; z-index: 1; color: var(--bg); pointer-events: none; }
.mesa-edge svg, .mesa-top svg { width: 100%; height: 100%; display: block; }

/* ---------- Service times ---------- */
.times { position: relative; z-index: 5; margin-top: -70px; }
.times-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1.25fr repeat(3, 1fr);
  overflow: hidden;
}
.times-live {
  background: linear-gradient(140deg, #1b9aaa, #137582);
  color: #fff;
  padding: 30px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.times-live .label { font-size: 0.76rem; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.9; font-weight: 700; }
.times-live .next { font-family: var(--font-display); font-size: 1.7rem; margin: 6px 0 2px; line-height: 1.15; }
.times-live .when { font-weight: 600; }
.live-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
  margin-right: 8px;
  animation: pulse 2s infinite;
}
.live-dot.red { background: #ff4d4d; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(244, 185, 66, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(244, 185, 66, 0); }
  100% { box-shadow: 0 0 0 0 rgba(244, 185, 66, 0); }
}
.time-item { padding: 28px 26px; border-left: 1px solid var(--line); transition: background 0.3s; }
.time-item:hover { background: var(--surface-2); }
.time-item .badge-ico {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  color: var(--c);
  background: color-mix(in srgb, var(--c) 15%, transparent);
}
.time-item h3 { font-size: 1.15rem; margin-bottom: 4px; }
.time-item p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }
.time-item strong { color: var(--accent); font-size: 1.05rem; font-variant-numeric: tabular-nums; }

/* ---------- Split layouts ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split > * { min-width: 0; }
.split.wide-left { grid-template-columns: 1.15fr 1fr; }
.split.top { align-items: start; }

.photo-stack { position: relative; height: 560px; }
.photo-stack img {
  position: absolute;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.photo-stack .a { inset: 0 18% 12% 0; width: 82%; height: 88%; }
.photo-stack .b { right: 0; bottom: 0; width: 46%; height: 52%; border: 8px solid var(--bg); }
.stat-badge {
  position: absolute;
  left: -12px;
  bottom: 40px;
  z-index: 2;
  background: var(--night);
  color: var(--on-night);
  border-radius: 20px;
  padding: 18px 22px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 14px;
  align-items: center;
}
.stat-badge .num { font-family: var(--font-display); font-size: 2.6rem; color: var(--gold); line-height: 1; font-variant-numeric: tabular-nums; }
.stat-badge .txt { font-size: 0.85rem; line-height: 1.3; }

.photo-frame { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); position: relative; }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.photo-frame figcaption, .cap {
  position: absolute;
  left: 14px;
  bottom: 14px;
  right: 14px;
  width: fit-content;
  background: rgba(20, 24, 46, 0.72);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
}

.chip-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 30px; padding: 0; list-style: none; }
.chip-list li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
}
.chip-list .ico { color: var(--accent); }

/* ---------- Baptism feature ---------- */
.baptism-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.baptism-grid > * { min-width: 0; }
.baptism-photos { display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px; height: 600px; }
.baptism-photos .photo-frame:first-child { grid-row: span 2; }
.baptism-photos .photo-frame { box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4); }
blockquote.verse {
  margin: 28px 0;
  padding: 24px 26px;
  border-left: 4px solid var(--gold);
  background: rgba(255, 255, 255, 0.07);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-style: italic;
  line-height: 1.45;
}
blockquote.verse cite {
  display: block;
  margin-top: 10px;
  font: normal 700 0.9rem var(--font-body);
  color: var(--gold);
}
blockquote.verse.light-bg { background: var(--surface); box-shadow: var(--shadow-sm); border-left-color: var(--accent); }
blockquote.verse.light-bg cite { color: var(--accent); }

/* ---------- Doorway cards (links to other pages) ---------- */
.doorways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.door {
  position: relative;
  min-height: 420px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
  box-shadow: var(--shadow);
}
.door img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1s var(--ease); }
.door::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 18%, var(--tint, rgba(20, 24, 46, 0.92)) 64%); }
.door:hover img { transform: scale(1.07); }
.door .inner { padding: 28px; }
.door .kicker { font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 800; opacity: 0.9; }
.door h3 { font-size: 1.8rem; margin: 4px 0 8px; }
.door p { font-size: 0.97rem; opacity: 0.92; margin-bottom: 14px; }
.door .go { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.door:hover .go .ico { transform: translateX(5px); }
.door .go .ico { transition: transform 0.3s var(--ease); }

/* ---------- Anniversary / countdown banner ---------- */
.banner {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: #fff;
  box-shadow: var(--shadow-lg);
  isolation: isolate;
}
.banner .bg { position: absolute; inset: 0; z-index: -2; background: url("images/sunset-mt-taylor.jpg") center/cover; transition: transform 1.2s var(--ease); }
.banner:hover .bg { transform: scale(1.04); }
.banner::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(20, 24, 46, 0.94) 25%, rgba(20, 24, 46, 0.35)); }
.banner .inner { padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center; }
.banner .inner > * { min-width: 0; }
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gold);
  color: #1d2340;
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.countdown { display: flex; gap: 12px; flex-wrap: wrap; }
.countdown div {
  flex: 1;
  min-width: 70px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  border-radius: 14px;
  padding: 12px 10px;
  text-align: center;
}
.countdown strong { display: block; font-family: var(--font-display); font-size: 2rem; line-height: 1; font-variant-numeric: tabular-nums; }
.countdown span { font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.8; }

/* ---------- Pastor ---------- */
.pastor-card {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.pastor-card > * { min-width: 0; }
.pastor-photo { position: relative; background: #050505; min-height: 380px; }
.pastor-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.pastor-photo .names {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 60px 28px 22px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.85));
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.3rem;
}
.pastor-photo .names small { display: block; font: 600 0.82rem var(--font-body); color: var(--gold); letter-spacing: 0.08em; text-transform: uppercase; }
.pastor-body { padding: clamp(30px, 5vw, 56px); }
.pastor-body h3 { font-size: 2rem; margin-bottom: 4px; }
.pastor-body .role { color: var(--accent); font-weight: 700; margin-bottom: 18px; }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 26px 0 0; }
.facts div { background: var(--surface-2); border-radius: var(--radius); padding: 16px; text-align: center; }
.facts strong { display: block; font-family: var(--font-display); font-size: 2rem; color: var(--accent); line-height: 1.1; font-variant-numeric: tabular-nums; }
.facts span { font-size: 0.85rem; color: var(--ink-soft); }

.timeline { list-style: none; padding: 0; margin: 26px 0 0; position: relative; }
.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(var(--sunset), var(--teal));
}
.timeline li { position: relative; padding-left: 36px; margin-bottom: 18px; }
.timeline li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--surface);
  border: 3px solid var(--sunset);
}
.timeline li:last-child::before { border-color: var(--teal); }
.timeline .yr { display: block; font-weight: 800; color: var(--accent); font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; }
.on-dark .timeline li::before { background: var(--night); }

/* ---------- Beliefs accordion ---------- */
.accordion { display: flex; flex-direction: column; gap: 12px; }
.acc-item {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius);
  transition: background 0.3s, border-color 0.3s;
}
.acc-item.open { background: rgba(255, 255, 255, 0.12); border-color: rgba(244, 185, 66, 0.55); }
.acc-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: 0;
  color: inherit;
  padding: 20px 22px;
  font: 600 1.18rem/1.3 var(--font-display);
  text-align: left;
  cursor: pointer;
}
.acc-btn .plus {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  position: relative;
  transition: transform 0.4s var(--ease), background 0.3s;
}
.acc-btn .plus::before, .acc-btn .plus::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 2px;
  margin: -1px 0 0 -6px;
  background: #fff;
  border-radius: 2px;
}
.acc-btn .plus::after { transform: rotate(90deg); transition: transform 0.4s var(--ease); }
.acc-item.open .plus { background: var(--gold); transform: rotate(180deg); }
.acc-item.open .plus::after { transform: rotate(0deg); }
.acc-item.open .plus::before, .acc-item.open .plus::after { background: #1d2340; }
.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.45s var(--ease); }
.acc-item.open .acc-panel { grid-template-rows: 1fr; }
.acc-panel > div { overflow: hidden; }
.acc-panel p { padding: 0 22px 20px; margin: 0; color: var(--on-night-soft); }
.acc-panel .ref { display: block; padding: 0 22px 20px; margin-top: -8px; font-size: 0.85rem; color: var(--gold); font-weight: 700; }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.cards.four { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.3s;
  min-width: 0;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card .badge-ico {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  color: var(--c, var(--teal));
  background: color-mix(in srgb, var(--c, var(--teal)) 15%, transparent);
}
.card .badge-ico .ico { width: 24px; height: 24px; }
.card h3 { font-size: 1.22rem; margin-bottom: 6px; }
.card p { margin: 0; color: var(--ink-soft); font-size: 0.98rem; }
.card .freq {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c, var(--teal));
}

/* ---------- Ministry rows ---------- */
.ministry-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.ministry-row + .ministry-row { margin-top: clamp(60px, 8vw, 100px); }
.ministry-row > * { min-width: 0; }
.ministry-row.flip > :first-child { order: 2; }
.ministry-row .photo-frame { aspect-ratio: 4 / 3.4; max-width: 100%; }
.ministry-row .photo-frame.tall { aspect-ratio: 4 / 4.6; }
.check-list { padding: 0; margin: 18px 0 0; list-style: none; }
.check-list li { padding: 11px 0 11px 36px; position: relative; border-bottom: 1px dashed var(--line); }
.check-list li:last-child { border-bottom: 0; }
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: var(--teal-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231b8f9e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/14px no-repeat;
}

.sub-nav {
  position: sticky;
  top: calc(64px + env(safe-area-inset-top, 0px));
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.sub-nav ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 10px 0; overflow-x: auto; scrollbar-width: none; }
.sub-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  transition: all 0.25s;
}
.sub-nav a:hover, .sub-nav a.active { background: var(--teal); border-color: var(--teal); color: #fff; }

/* ---------- Mosaic + lightbox ---------- */
.mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; grid-auto-flow: dense; gap: 14px; }
.mosaic button {
  border: 0;
  padding: 0;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
  position: relative;
  background: var(--surface-2);
}
.mosaic button img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.mosaic button:hover img { transform: scale(1.07); }
.mosaic button .cap { opacity: 0; transform: translateY(8px); transition: all 0.35s var(--ease); }
.mosaic button:hover .cap, .mosaic button:focus-visible .cap { opacity: 1; transform: none; }
.m-wide { grid-column: span 2; }
.m-tall { grid-row: span 2; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(10, 12, 26, 0.95);
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox figure { margin: 0; max-width: 1100px; width: 100%; text-align: center; color: #fff; }
.lightbox img { max-height: 80vh; margin: 0 auto; border-radius: 14px; transform: scale(0.95); transition: transform 0.4s var(--ease); }
.lightbox.open img { transform: none; }
.lightbox figcaption { margin-top: 14px; opacity: 0.85; }
.lb-btn {
  position: absolute;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.25s;
}
.lb-btn:hover { background: rgba(255, 255, 255, 0.25); }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 20px; top: 50%; translate: 0 -50%; }
.lb-next { right: 20px; top: 50%; translate: 0 -50%; }

/* ---------- Events ---------- */
.events-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: start; }
.events-grid > * { min-width: 0; }
.feature-event {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: #fff;
  min-height: 600px;
  display: flex;
  align-items: flex-end;
  box-shadow: var(--shadow-lg);
  isolation: isolate;
}
.feature-event .bg { position: absolute; inset: 0; z-index: -2; background: url("images/sunset-mt-taylor.jpg") center/cover; transition: transform 1.2s var(--ease); }
.feature-event:hover .bg { transform: scale(1.05); }
.feature-event::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20, 24, 46, 0.1), rgba(20, 24, 46, 0.94) 70%); }
.feature-event .inner { padding: 34px; width: 100%; }
.feature-event h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.feature-event .countdown { margin: 20px 0; }
.schedule { list-style: none; padding: 0; margin: 0; font-size: 0.95rem; }
.schedule li { display: flex; gap: 14px; padding: 8px 0; border-top: 1px solid rgba(255, 255, 255, 0.16); }
.schedule li span:first-child { color: var(--gold); font-weight: 700; min-width: 84px; font-variant-numeric: tabular-nums; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.filter {
  font: 700 0.9rem var(--font-body);
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition: all 0.25s;
}
.filter.active, .filter:hover { background: var(--night); color: var(--on-night); border-color: var(--night); }
.event-list { display: flex; flex-direction: column; gap: 12px; }
.event {
  display: flex;
  gap: 18px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 20px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), opacity 0.3s;
}
.event:hover { transform: translateX(6px); box-shadow: var(--shadow); }
.event[hidden] { display: none; }
.event .date {
  flex-shrink: 0;
  width: 64px;
  height: 68px;
  border-radius: 14px;
  background: var(--c, var(--accent));
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.event .date small { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.event .date strong { font-family: var(--font-display); font-size: 1.8rem; font-variant-numeric: tabular-nums; }
.event h3 { font: 800 1.04rem/1.3 var(--font-body); margin: 0 0 2px; }
.event p { margin: 0; font-size: 0.93rem; color: var(--ink-soft); }
.event .when-chip { margin-left: auto; font-size: 0.78rem; font-weight: 700; color: var(--link); white-space: nowrap; }
.event.past { opacity: 0.45; }

.week { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.week > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; min-width: 0; }
.week .day { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.week .t { font-family: var(--font-display); font-size: 2rem; color: var(--accent); line-height: 1.2; font-variant-numeric: tabular-nums; }
.week h3 { font: 800 1.02rem var(--font-body); margin: 6px 0 4px; }
.week p { margin: 0; font-size: 0.92rem; color: var(--ink-soft); }

/* ---------- Media ---------- */
.live-panel {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--surface);
}
.live-panel > * { min-width: 0; }
.live-screen {
  position: relative;
  min-height: 380px;
  background: #0b0f21 url("images/sanctuary-christmas.jpg") center 40%/cover;
  display: flex;
  align-items: flex-end;
  color: #fff;
  isolation: isolate;
}
.live-screen::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 12, 26, 0.2), rgba(10, 12, 26, 0.88)); }
.live-screen .inner { padding: 30px; width: 100%; }
.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(6px);
  padding: 6px 12px;
  border-radius: 999px;
}
.live-pill.on { background: #e62117; }
.live-screen h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 12px 0 6px; }
.live-info { padding: clamp(26px, 4vw, 40px); }
.stream-times { list-style: none; padding: 0; margin: 14px 0 24px; }
.stream-times li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.stream-times li span:last-child { font-weight: 700; color: var(--accent); }

.platforms { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.platform {
  border-radius: var(--radius-lg);
  padding: clamp(26px, 4vw, 40px);
  color: #fff;
  position: relative;
  overflow: hidden;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.platform.fb { background: linear-gradient(140deg, #1877f2, #0d4fb0); }
.platform.yt { background: linear-gradient(140deg, #e62117, #9b1009); }
.platform .big-ico { width: 54px; height: 54px; fill: #fff; margin-bottom: 8px; }
.platform h3 { font-size: 1.7rem; margin: 0; }
.platform p { opacity: 0.92; margin: 0 0 14px; }
.platform .btn { background: #fff; color: #1d2340; align-self: flex-start; }
.platform::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}
.platform .handle { font-size: 0.88rem; opacity: 0.85; font-weight: 600; word-break: break-all; }

.playlists { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.playlist { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; min-width: 0; display: flex; flex-direction: column; }
.player {
  position: relative;
  aspect-ratio: 16 / 9;
  max-width: 100%;
  background: #000;
  border: 0;
  padding: 0;
  width: 100%;
  cursor: pointer;
  overflow: hidden;
  display: block;
}
.player img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; transition: transform 0.8s var(--ease), opacity 0.3s; }
.player:hover img { transform: scale(1.06); opacity: 1; }
.player .play {
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  width: 68px;
  height: 48px;
  border-radius: 14px;
  background: #e62117;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s var(--ease);
}
.player:hover .play { transform: scale(1.12); }
.player .play .ico { fill: #fff; stroke: none; width: 24px; height: 24px; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.playlist .body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.playlist .series { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.playlist h3 { margin: 0; font-size: 1.5rem; }
.playlist p { color: var(--ink-soft); font-size: 0.97rem; margin: 0 0 8px; }
.playlist .text-link { margin-top: auto; }

.fb-embed { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 14px; display: flex; justify-content: center; }
.fb-embed iframe { border: 0; width: 100%; max-width: 500px; height: 560px; border-radius: 12px; background: var(--surface-2); }

.share-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.copy-field {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 6px 6px 18px;
  min-width: 0;
  max-width: 100%;
}
.copy-field code { font-size: 0.88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; color: var(--ink); }
.copy-field button { flex-shrink: 0; padding: 8px 16px; font-size: 0.88rem; }

/* ---------- Contact ---------- */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 24px 0 30px; }
.steps li { counter-increment: step; position: relative; padding: 0 0 22px 60px; }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -2px;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--sunset), var(--accent));
  color: #fff;
  font-weight: 800;
  display: grid;
  place-items: center;
}
.steps h3 { font: 800 1.05rem var(--font-body); margin: 0 0 2px; }
.steps p { margin: 0; color: var(--ink-soft); font-size: 0.97rem; }
.map-wrap { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); height: 320px; background: var(--surface-2); }
.map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }
.info-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
.info-tiles > * {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  font-size: 0.95rem;
  min-width: 0;
  transition: border-color 0.25s, background 0.25s;
}
a.info-tile:hover { border-color: var(--teal); }
.info-tiles .ico { color: var(--accent); margin-top: 3px; }
.info-tiles strong { display: block; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }

.form-card { background: var(--surface); border-radius: var(--radius-lg); padding: clamp(26px, 4vw, 42px); border: 1px solid var(--line); box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { margin-bottom: 16px; min-width: 0; }
.field > label, .field > .label { display: block; font-weight: 700; font-size: 0.88rem; margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%;
  font: inherit;
  padding: 13px 16px;
  border-radius: 12px;
  border: 2px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--teal) 20%, transparent);
}
.field textarea { min-height: 120px; resize: vertical; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label {
  position: relative;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 8px 14px;
  border-radius: 999px;
  border: 2px solid var(--line);
  background: var(--bg);
  cursor: pointer;
  transition: all 0.25s;
}
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips label:has(input:checked) { background: var(--accent); border-color: var(--accent); color: #fff; }
.chips label:has(input:focus-visible) { outline: 3px solid var(--teal); outline-offset: 2px; }
.form-success { text-align: center; padding: 40px 10px; }
.form-success .check {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin: 0 auto 16px;
  background: var(--teal);
  display: grid;
  place-items: center;
  color: #fff;
  animation: pop 0.6s var(--ease);
}
.form-success .check .ico { width: 34px; height: 34px; stroke-width: 3; }
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }

.faq { display: flex; flex-direction: column; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 22px; transition: border-color 0.3s; }
.faq details[open] { border-color: var(--teal); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 0;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { transition: transform 0.3s var(--ease); color: var(--teal); }
.faq details[open] summary .ico { transform: rotate(45deg); }
.faq details p { color: var(--ink-soft); margin: 0 0 18px; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band h2 { margin-bottom: 14px; }
.cta-band .lead { margin: 0 auto 30px; }
.cta-band .hero-actions { justify-content: center; }

/* ---------- Footer ---------- */
.footer { background: var(--night); color: var(--on-night-soft); padding-block: 74px 30px; position: relative; }
.footer .mesa-top { position: absolute; top: -55px; left: 0; right: 0; height: 56px; color: var(--night); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer h4 { color: var(--on-night); font: 800 0.8rem var(--font-body); letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 14px; }
.footer a { color: var(--on-night-soft); text-decoration: none; }
.footer a:hover { color: var(--gold); }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 8px; }
.footer .brand { color: var(--on-night); margin-bottom: 14px; }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: grid;
  place-items: center;
  transition: background 0.3s, transform 0.3s;
}
.socials a:hover { background: var(--accent); transform: translateY(-3px); }
.socials svg { width: 20px; height: 20px; fill: #fff; }
.footer-bottom {
  margin-top: 50px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.82rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

.to-top {
  position: fixed;
  right: 20px;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  z-index: 40;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 0;
  background: var(--teal);
  color: #fff;
  cursor: pointer;
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: all 0.4s var(--ease);
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--accent); }
/* ---------- Reveal on scroll (only when JS is running) ---------- */
.js .reveal { opacity: 0; transform: translateY(36px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal[data-delay="1"] { transition-delay: 0.1s; }
.js .reveal[data-delay="2"] { transition-delay: 0.2s; }
.js .reveal[data-delay="3"] { transition-delay: 0.3s; }

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

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav-links a { padding: 8px 9px; font-size: 0.9rem; }
}
@media (max-width: 1000px) {
  .times-card { grid-template-columns: 1fr 1fr; }
  .times-live { grid-column: span 2; }
  .time-item:nth-child(2) { border-left: 0; }
  .time-item:nth-child(4) { grid-column: span 2; border-left: 0; border-top: 1px solid var(--line); }
  .split, .split.wide-left, .baptism-grid, .events-grid, .pastor-card, .live-panel, .ministry-row, .banner .inner { grid-template-columns: 1fr; }
  .ministry-row.flip > :first-child { order: 0; }
  .photo-stack { height: 460px; }
  .baptism-photos { height: 520px; }
  .doorways, .cards, .playlists { grid-template-columns: 1fr 1fr; }
  .cards.four, .week { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .mosaic { grid-template-columns: repeat(2, 1fr); }
  .pastor-photo { min-height: 420px; }
}
@media (max-width: 900px) {
  .menu-toggle { display: grid; }
  .nav-links {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    background: var(--bg);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s;
    z-index: -1;
  }
  .nav.open { color: var(--ink); }
  .nav.open .nav-links { opacity: 1; pointer-events: auto; }
  .nav-links a { font-size: 1.3rem !important; padding: 10px 20px !important; }
  .nav-links a[aria-current="page"] { background: var(--teal-soft); color: var(--link); }
  .nav-links .nav-cta { margin: 10px 0 0; }
  .hero-dots, .hero-caption { display: none; }
}
@media (max-width: 640px) {
  .times-card { grid-template-columns: 1fr; }
  .times-live, .time-item:nth-child(4) { grid-column: auto; }
  .time-item { border-left: 0; border-top: 1px solid var(--line); }
  .doorways, .cards, .cards.two, .cards.four, .playlists, .platforms, .info-tiles, .form-row, .footer-grid, .week { grid-template-columns: 1fr; }
  .door { min-height: 340px; }
  .mosaic { grid-auto-rows: 160px; }
  .photo-stack { height: 360px; }
  .stat-badge { left: 8px; bottom: 16px; }
  .baptism-photos { height: 440px; }
  .facts strong { font-size: 1.6rem; }
  .feature-event .inner { padding: 24px; }
  .page-hero { min-height: 380px; }
  .page-hero .container { padding-block: 130px 80px; }
  .event .when-chip { display: none; }
}

/* ---------- Form notice and legal pages ---------- */
.check-label { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; font-size: 0.92rem; cursor: pointer; }
.check-label input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--accent); flex-shrink: 0; }
.form-note { font-size: 0.85rem; color: var(--ink-soft); background: var(--surface-2); border-radius: 12px; padding: 12px 14px; margin: 0 0 16px; }

.legal { max-width: 760px; }
.legal h2 { font-size: 1.7rem; margin-top: 44px; }
.legal h2:first-child { margin-top: 0; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: 6px; }
.legal .updated { color: var(--ink-soft); font-weight: 700; }
.legal .credit-list { display: grid; gap: 14px; margin: 18px 0 0; padding: 0; list-style: none; }
.credit-list li {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
}
.credit-list li > * { min-width: 0; }
.credit-list img { width: 120px; height: 84px; object-fit: cover; border-radius: 10px; }
.credit-list p { margin: 0; font-size: 0.93rem; }
.credit-list strong { display: block; font-size: 1rem; }
.license-text { white-space: pre-wrap; font-size: 0.82rem; background: var(--surface-2); border-radius: 12px; padding: 16px; overflow-x: auto; }
@media (max-width: 640px) {
  .credit-list li { grid-template-columns: 1fr; }
  .credit-list img { width: 100%; height: 160px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .hero-slide { transform: none; }
}
