/* ============================================================
   Union Point Church — shared stylesheet
   Warm documentary-community aesthetic.
   Palette: terracotta / warm cream / deep teal accent
   Type: Fraunces (display serif) + Work Sans (humanist sans)
   ============================================================ */

:root {
  --cream:        #F8EFE2;
  --cream-deep:   #F1E4D0;
  --paper:        #FCF8F1;
  --terracotta:   #C15A2E;
  --terracotta-d: #9F461F;
  --terracotta-l: #E1794E;
  --teal:         #1F4A47;
  --teal-deep:    #12302E;
  --teal-soft:    #3C6864;
  --ink:          #2B2119;
  --ink-soft:     #5B4C3F;
  --ink-faint:    #8A7A6A;
  --gold:         #C9963F;
  --line:         rgba(43, 33, 25, 0.12);
  --line-soft:    rgba(43, 33, 25, 0.07);

  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1200px;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 10px;

  --shadow-soft: 0 20px 50px -25px rgba(43, 33, 25, 0.35);
  --shadow-card: 0 14px 34px -18px rgba(43, 33, 25, 0.28);
}

html, body { overflow-x: clip; }

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 0.4em;
  letter-spacing: -0.01em;
  line-height: 1.08;
}

h1 { font-weight: 500; }

p { margin: 0 0 1em; line-height: 1.65; color: var(--ink-soft); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

@media (max-width: 640px) {
  .container { padding: 0 22px; }
}

/* --- Texture: subtle warm grain overlay --- */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============================== NAV ============================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cream);
  border-bottom: 1px solid var(--line-soft);
}

/* backdrop-filter on an ancestor becomes a containing block for fixed-position
   descendants (like the mobile .nav-links panel), breaking full-viewport overlays.
   Blur is applied here instead, on a pseudo-element with no fixed descendants,
   to keep the glass effect without touching descendant positioning. */
@supports (backdrop-filter: blur(1px)) {
  .site-header {
    background: rgba(248, 239, 226, 0.86);
  }
  .site-header::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    backdrop-filter: blur(14px) saturate(140%);
  }
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  max-width: var(--container);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
}

.brand .mark {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding: 4px 0;
  transition: color 0.25s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--terracotta-d); }

.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--terracotta);
  border-radius: 2px;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--terracotta);
  color: var(--paper) !important;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  transition: background 0.25s ease, transform 0.25s ease;
}
.nav-cta:hover { background: var(--terracotta-d); transform: translateY(-1px); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

@media (max-width: 860px) {
  .nav-links { position: fixed; inset: 68px 0 0 0; background: var(--cream); flex-direction: column;
    justify-content: flex-start; align-items: flex-start; padding: 30px 32px; gap: 26px;
    transform: translateX(100%); transition: transform 0.35s ease; z-index: 90; }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 22px; }
  .nav-cta { order: 5; }
  .nav-toggle { display: block; z-index: 101; }
}

/* ============================== BUTTONS ============================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.btn-primary { background: var(--terracotta); color: var(--paper); }
.btn-primary:hover { background: var(--terracotta-d); transform: translateY(-2px); }

.btn-ghost { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); transform: translateY(-2px); }

.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: var(--cream-deep); transform: translateY(-2px); }

.btn-teal { background: var(--teal); color: var(--paper); }
.btn-teal:hover { background: var(--teal-deep); transform: translateY(-2px); }

.btn-outline-light { background: transparent; border-color: rgba(252,248,241,0.55); color: var(--paper); }
.btn-outline-light:hover { background: rgba(252,248,241,0.14); border-color: var(--paper); }

/* ============================== EYEBROW / TAGS ============================== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terracotta-d);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--terracotta);
}

.eyebrow.on-dark { color: var(--terracotta-l); }
.eyebrow.on-dark::before { background: var(--terracotta-l); }

/* ============================== SECTIONS ============================== */
section { position: relative; }

.section-pad { padding: 110px 0; }
@media (max-width: 780px) { .section-pad { padding: 76px 0; } }

.section-head {
  max-width: 640px;
  margin: 0 0 56px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.section-head h2 { font-size: clamp(32px, 4.4vw, 46px); }
.section-head p { font-size: 18px; }

/* ============================== FOOTER ============================== */
.site-footer {
  background: var(--teal-deep);
  color: var(--cream);
  padding: 84px 0 34px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(248, 239, 226, 0.14);
}

@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; row-gap: 40px; }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-brand .brand { color: var(--cream); font-size: 22px; margin-bottom: 14px; }
.footer-brand p { color: rgba(248,239,226,0.68); max-width: 320px; }

.footer-col h4 {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--terracotta-l);
  margin-bottom: 18px;
  font-weight: 600;
}
.footer-col a, .footer-col p {
  display: block;
  color: rgba(248,239,226,0.75);
  font-size: 15px;
  margin-bottom: 12px;
  transition: color 0.25s ease;
}
.footer-col a:hover { color: var(--cream); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  font-size: 13px;
  color: rgba(248,239,226,0.5);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom a { color: rgba(248,239,226,0.7); }
.footer-bottom a:hover { color: var(--cream); }

/* ============================== UTILITIES ============================== */
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

.reveal {
  opacity: 0;
  transform: translateY(28px);
}
.reveal.is-visible {
  animation: reveal-up 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes reveal-up {
  to { opacity: 1; transform: translateY(0); }
}

.stagger > * { opacity: 0; transform: translateY(24px); }
.stagger.is-visible > * {
  animation: reveal-up 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.stagger.is-visible > *:nth-child(1) { animation-delay: 0.02s; }
.stagger.is-visible > *:nth-child(2) { animation-delay: 0.12s; }
.stagger.is-visible > *:nth-child(3) { animation-delay: 0.22s; }
.stagger.is-visible > *:nth-child(4) { animation-delay: 0.32s; }
.stagger.is-visible > *:nth-child(5) { animation-delay: 0.42s; }
.stagger.is-visible > *:nth-child(6) { animation-delay: 0.52s; }

.kb-media { overflow: hidden; }
.kb-media img { transition: transform 6s cubic-bezier(0.16, 1, 0.3, 1); transform: scale(1.06); }
.kb-media.kb-active img { transform: scale(1); }

@media (prefers-reduced-motion: reduce) {
  .reveal, .stagger > * { opacity: 1 !important; transform: none !important; animation: none !important; }
  .kb-media img { transition: none !important; }
}

/* ============================================================
   HOME
   ============================================================ */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--teal-deep);
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(18,48,46,0.15) 0%, rgba(18,48,46,0.18) 40%, rgba(24,17,12,0.86) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 32px 88px;
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
  color: var(--paper);
}
.hero-content h1 {
  color: var(--paper);
  font-size: clamp(42px, 7vw, 84px);
  max-width: 15ch;
  font-weight: 500;
}
.hero-content .lede {
  color: rgba(252,248,241,0.86);
  font-size: clamp(17px, 1.9vw, 20px);
  max-width: 46ch;
  margin-bottom: 32px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-scroll {
  position: absolute;
  right: 32px;
  bottom: 34px;
  z-index: 2;
  color: rgba(252,248,241,0.7);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.hero-scroll .line { width: 1px; height: 44px; background: rgba(252,248,241,0.4); overflow: hidden; }
.hero-scroll .line::after {
  content: ""; display: block; width: 100%; height: 40%; background: var(--terracotta-l);
  animation: scroll-line 2.2s ease-in-out infinite;
}
@keyframes scroll-line { 0% { transform: translateY(-100%);} 100% { transform: translateY(280%);} }
@media (max-width: 700px) { .hero-scroll { display: none; } }

.welcome {
  background: var(--paper);
}
.welcome-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
@media (max-width: 900px) { .welcome-grid { grid-template-columns: 1fr; gap: 40px; } }

.welcome-copy h2 { font-size: clamp(30px, 4vw, 42px); }
.welcome-copy p { font-size: 18px; }
.welcome-copy .signoff { font-family: var(--serif); font-style: italic; color: var(--ink); font-size: 19px; margin-top: 22px; }

.welcome-media { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-soft); }
.welcome-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/5; }
.welcome-media .tag {
  position: absolute; left: 22px; bottom: 22px;
  background: rgba(252,248,241,0.92); backdrop-filter: blur(6px);
  color: var(--ink); padding: 10px 18px; border-radius: 999px; font-size: 13px; font-weight: 600;
}

/* Service-times teaser strip */
.times-strip {
  background: var(--teal);
  color: var(--paper);
}
.times-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(252,248,241,0.14);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
@media (max-width: 780px) { .times-grid { grid-template-columns: 1fr; } }

.time-card {
  background: var(--teal);
  padding: 44px 38px;
}
.time-card .label { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--terracotta-l); font-weight: 600; margin-bottom: 14px; }
.time-card h3 { color: var(--paper); font-size: 26px; margin-bottom: 8px; }
.time-card p { color: rgba(252,248,241,0.72); font-size: 15px; margin-bottom: 0; }

/* What to expect strip */
.expect {
  background: var(--cream);
}
.expect-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
@media (max-width: 980px) { .expect-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .expect-grid { grid-template-columns: 1fr; } }

.expect-item {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  padding: 34px 28px;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.expect-item:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); }
.expect-item .num { font-family: var(--serif); font-size: 15px; color: var(--terracotta); font-weight: 600; margin-bottom: 16px; }
.expect-item h3 { font-size: 20px; margin-bottom: 10px; }
.expect-item p { font-size: 15px; margin-bottom: 0; }

/* Clip teaser row (home) */
.clip-teaser { background: var(--paper); }
.teaser-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 48px;
}
@media (max-width: 640px) { .teaser-head { flex-direction: column; align-items: flex-start; } }

/* Visit CTA banner */
.visit-cta {
  position: relative;
  background: var(--teal-deep);
  color: var(--paper);
  overflow: hidden;
}
.visit-cta-media { position: absolute; inset: 0; }
.visit-cta-media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.34; }
.visit-cta-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(18,48,46,0.92) 20%, rgba(18,48,46,0.55) 100%); }
.visit-cta-inner { position: relative; z-index: 2; text-align: center; max-width: 720px; margin: 0 auto; }
.visit-cta h2 { color: var(--paper); font-size: clamp(32px, 5vw, 52px); }
.visit-cta p { color: rgba(252,248,241,0.78); font-size: 18px; }
.visit-cta .hero-actions { justify-content: center; }

/* ============================================================
   CARDS — sermon clip cards (used on home teaser + watch grid)
   ============================================================ */
.clip-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--ink);
  box-shadow: var(--shadow-card);
  cursor: pointer;
}
.clip-card .clip-media { aspect-ratio: 9/16; overflow: hidden; position: relative; }
.clip-card .clip-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.16,1,0.3,1); }
.clip-card:hover .clip-media img { transform: scale(1.06); }
.clip-card .clip-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(18,15,12,0) 45%, rgba(18,15,12,0.88) 100%);
}
.clip-card .duration {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  background: rgba(18,15,12,0.55); backdrop-filter: blur(4px);
  color: var(--paper); font-size: 12px; font-weight: 600; letter-spacing: 0.04em;
  padding: 5px 10px; border-radius: 999px;
}
.clip-card .play-ring {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0.85);
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(252,248,241,0.92);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 2;
}
.clip-card:hover .play-ring { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.clip-card .play-ring svg { width: 18px; height: 18px; fill: var(--terracotta-d); margin-left: 3px; }
.clip-card .clip-info {
  position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 2;
}
.clip-card .series { color: var(--terracotta-l); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 6px; }
.clip-card h3 { color: var(--paper); font-size: 18px; margin-bottom: 0; font-weight: 500; line-height: 1.28; }

.clip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
@media (max-width: 980px) { .clip-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .clip-grid { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto; } }

/* ============================================================
   WATCH PAGE — livestream placeholder
   ============================================================ */
.watch-hero {
  background: var(--teal-deep);
  padding: 68px 0 30px;
}
.watch-hero h1 { color: var(--paper); font-size: clamp(38px, 5.6vw, 58px); max-width: 16ch; }
.watch-hero p { color: rgba(252,248,241,0.75); font-size: 18px; max-width: 54ch; }

.live-panel {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/9;
  background: linear-gradient(155deg, #16332f 0%, #12302e 45%, #0e2624 100%);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(252,248,241,0.08);
}
.live-panel .panel-texture {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 20% 20%, rgba(193,90,46,0.16), transparent 45%),
                     radial-gradient(circle at 80% 85%, rgba(193,90,46,0.12), transparent 50%);
}
.live-panel .panel-grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(252,248,241,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(252,248,241,0.05) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at 50% 50%, black 0%, transparent 78%);
}
.live-panel-inner {
  position: relative; z-index: 2;
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 32px;
  color: var(--paper);
}
.live-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(193,90,46,0.16);
  border: 1px solid rgba(225,121,78,0.45);
  color: var(--terracotta-l);
  padding: 7px 16px 7px 12px;
  border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 26px;
}
.live-badge .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--terracotta-l);
  animation: pulse-dot 1.8s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(225,121,78,0.5); }
  50% { opacity: 0.65; box-shadow: 0 0 0 7px rgba(225,121,78,0); }
}
.live-badge.offline { background: rgba(252,248,241,0.08); border-color: rgba(252,248,241,0.18); color: rgba(252,248,241,0.75); }
.live-badge.offline .dot { background: rgba(252,248,241,0.6); animation: none; }

.live-panel-inner .play-btn {
  width: 84px; height: 84px; border-radius: 50%;
  background: rgba(252,248,241,0.94);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 26px;
  box-shadow: 0 0 0 14px rgba(252,248,241,0.06);
  transition: transform 0.3s ease;
}
.live-panel:hover .play-btn { transform: scale(1.06); }
.live-panel-inner .play-btn svg { width: 26px; height: 26px; fill: var(--terracotta-d); margin-left: 4px; }

.live-panel-inner h2 { color: var(--paper); font-size: clamp(24px, 3vw, 32px); margin-bottom: 8px; }
.live-panel-inner p { color: rgba(252,248,241,0.65); font-size: 15px; margin-bottom: 0; }

.live-panel-inner .countdown {
  display: flex; gap: 18px; margin-top: 26px;
}
.live-panel-inner .countdown .unit { text-align: center; }
.live-panel-inner .countdown .unit .n { font-family: var(--serif); font-size: 28px; color: var(--paper); display: block; }
.live-panel-inner .countdown .unit .u { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(252,248,241,0.55); }

.live-meta {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
  margin-top: 26px;
  padding-top: 26px; border-top: 1px solid var(--line-soft);
}
.live-meta .platforms { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.live-meta .platforms span {
  font-size: 13px; font-weight: 600; color: var(--ink-soft);
  border: 1px solid var(--line); padding: 6px 14px; border-radius: 999px;
}

/* Watch grid section */
.watch-grid-section { background: var(--paper); }
.watch-filter { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 44px; }
.watch-filter button {
  font-family: var(--sans); font-size: 14px; font-weight: 600;
  padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line);
  background: transparent; color: var(--ink-soft); cursor: pointer;
  transition: all 0.25s ease;
}
.watch-filter button.active,
.watch-filter button:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ============================================================
   MINISTRIES
   ============================================================ */
.ministries-hero { background: var(--cream-deep); padding: 92px 0 70px; }
.ministries-hero h1 { font-size: clamp(38px, 6vw, 62px); max-width: 16ch; }
.ministries-hero p { font-size: 18px; max-width: 56ch; }

.ministry-list { display: flex; flex-direction: column; gap: 2px; background: var(--line); }
.ministry-row {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  min-height: 480px;
  background: var(--paper);
}
.ministry-row:nth-child(even) { grid-template-columns: 1.15fr 1fr; }
.ministry-row:nth-child(even) .ministry-media { order: 2; }
.ministry-row:nth-child(even) .ministry-copy { order: 1; }

@media (max-width: 860px) {
  .ministry-row, .ministry-row:nth-child(even) { grid-template-columns: 1fr; min-height: unset; }
  .ministry-row:nth-child(even) .ministry-media,
  .ministry-row .ministry-media { order: 1; }
  .ministry-row:nth-child(even) .ministry-copy,
  .ministry-row .ministry-copy { order: 2; }
}

.ministry-media { position: relative; overflow: hidden; min-height: 340px; }
.ministry-media img { width: 100%; height: 100%; object-fit: cover; }

.ministry-copy {
  display: flex; flex-direction: column; justify-content: center;
  padding: 64px 72px;
}
@media (max-width: 860px) { .ministry-copy { padding: 44px 32px; } }
@media (max-width: 640px) { .ministry-copy { padding: 40px 24px; } }

.ministry-copy .tag {
  font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--terracotta-d);
  margin-bottom: 16px;
}
.ministry-copy h2 { font-size: clamp(28px, 3.4vw, 38px); margin-bottom: 16px; }
.ministry-copy p { font-size: 16.5px; margin-bottom: 24px; max-width: 46ch; }
.ministry-copy .meta-row { display: flex; gap: 22px; flex-wrap: wrap; margin-bottom: 26px; }
.ministry-copy .meta-row div { font-size: 14px; color: var(--ink-soft); }
.ministry-copy .meta-row strong { display: block; color: var(--ink); font-family: var(--serif); font-size: 17px; }

/* ============================================================
   VISIT PAGE
   ============================================================ */
.visit-hero { background: var(--cream-deep); padding: 92px 0 70px; }
.visit-hero h1 { font-size: clamp(38px, 6vw, 62px); max-width: 16ch; }

.visit-times {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
@media (max-width: 860px) { .visit-times { grid-template-columns: 1fr; } }
.visit-time-card {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  padding: 38px 32px;
}
.visit-time-card .label { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--terracotta-d); font-weight: 600; margin-bottom: 14px; }
.visit-time-card h3 { font-size: 24px; margin-bottom: 10px; }
.visit-time-card p { font-size: 15px; }

.expect-detail { background: var(--cream); }
.expect-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
@media (max-width: 900px) { .expect-detail-grid { grid-template-columns: 1fr; gap: 36px; } }

.expect-detail-list { display: flex; flex-direction: column; gap: 28px; }
.expect-detail-list .item { display: flex; gap: 20px; }
.expect-detail-list .item .n {
  font-family: var(--serif); font-size: 20px; color: var(--paper);
  background: var(--terracotta); width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.expect-detail-list .item h3 { font-size: 19px; margin-bottom: 6px; }
.expect-detail-list .item p { font-size: 15.5px; margin-bottom: 0; }

.expect-detail-media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-soft); }
.expect-detail-media img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }

/* Location / directions block */
.location-block { background: var(--teal-deep); color: var(--paper); }
.location-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
@media (max-width: 900px) { .location-grid { grid-template-columns: 1fr; gap: 36px; } }
.location-copy h2 { color: var(--paper); }
.location-copy p { color: rgba(252,248,241,0.72); }
.location-detail-list { display: flex; flex-direction: column; gap: 22px; margin: 30px 0; }
.location-detail-list .row { display: flex; gap: 16px; align-items: flex-start; }
.location-detail-list .row svg { flex-shrink: 0; width: 20px; height: 20px; fill: var(--terracotta-l); margin-top: 3px; }
.location-detail-list .row div strong { display: block; color: var(--paper); font-size: 15.5px; margin-bottom: 3px; }
.location-detail-list .row div span { color: rgba(252,248,241,0.68); font-size: 14.5px; }

.map-placeholder {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3.4;
  position: relative;
  background:
    linear-gradient(rgba(252,248,241,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(252,248,241,0.06) 1px, transparent 1px),
    #183f3c;
  background-size: 34px 34px, 34px 34px, cover;
  border: 1px solid rgba(252,248,241,0.12);
}
.map-placeholder .pin {
  position: absolute; top: 46%; left: 50%; transform: translate(-50%, -100%);
  display: flex; flex-direction: column; align-items: center;
}
.map-placeholder .pin .dot {
  width: 20px; height: 20px; border-radius: 50% 50% 50% 0; background: var(--terracotta);
  transform: rotate(-45deg);
  box-shadow: 0 0 0 8px rgba(193,90,46,0.2);
}
.map-placeholder .pin .ring {
  width: 90px; height: 90px; border-radius: 50%; border: 1px solid rgba(193,90,46,0.4);
  position: absolute; top: 26px; left: 50%; transform: translateX(-50%);
  animation: ring-pulse 2.6s ease-out infinite;
}
@keyframes ring-pulse { 0% { transform: translateX(-50%) scale(0.4); opacity: 0.9;} 100% { transform: translateX(-50%) scale(1.3); opacity: 0;} }
.map-placeholder .label {
  position: absolute; bottom: 22px; left: 22px; right: 22px;
  background: rgba(12,32,30,0.7); backdrop-filter: blur(6px);
  padding: 14px 18px; border-radius: var(--radius-sm);
  font-size: 13.5px; color: rgba(252,248,241,0.85);
}

/* Nursery / kids info */
.kids-info { background: var(--paper); }
.kids-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
@media (max-width: 900px) { .kids-info-grid { grid-template-columns: 1fr; gap: 36px; } }
.kids-info-media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-soft); }
.kids-info-media img { width: 100%; aspect-ratio: 5/4; object-fit: cover; }
.kids-info-list { display: flex; flex-direction: column; gap: 16px; margin-top: 24px; }
.kids-info-list .row { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; color: var(--ink-soft); }
.kids-info-list .row svg { flex-shrink: 0; width: 18px; height: 18px; fill: var(--terracotta); margin-top: 3px; }

/* Contact / prayer form */
.contact-block { background: var(--cream-deep); }
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 64px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }

.contact-copy h2 { font-size: clamp(28px, 3.6vw, 40px); }
.contact-copy ul { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-direction: column; gap: 16px; }
.contact-copy ul li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--ink-soft); }
.contact-copy ul li svg { flex-shrink: 0; width: 18px; height: 18px; fill: var(--terracotta); margin-top: 2px; }

.form-card {
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: 44px;
  box-shadow: var(--shadow-card);
}
@media (max-width: 560px) { .form-card { padding: 28px 22px; } }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink); letter-spacing: 0.02em; }
.field input, .field select, .field textarea {
  font-family: var(--sans);
  font-size: 15px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--cream);
  color: var(--ink);
  transition: border-color 0.25s ease, background 0.25s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--terracotta); background: var(--paper);
}
.field textarea { resize: vertical; min-height: 120px; font-family: var(--sans); }

.field-group { margin-bottom: 8px; }
.field-radio-group { display: flex; gap: 10px; flex-wrap: wrap; }
.field-radio-group label {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 500; color: var(--ink-soft);
  border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px;
  cursor: pointer; transition: all 0.2s ease;
}
.field-radio-group input { accent-color: var(--terracotta); }
.field-radio-group label:has(input:checked) { border-color: var(--terracotta); background: rgba(193,90,46,0.08); color: var(--ink); }

.form-submit-row { display: flex; align-items: center; gap: 18px; margin-top: 8px; flex-wrap: wrap; }
.form-note { font-size: 13px; color: var(--ink-faint); }

.form-success {
  display: none;
  text-align: center;
  padding: 50px 20px;
}
.form-success.show { display: block; }
.form-success .icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(31,74,71,0.1); color: var(--teal);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 20px;
}
.form-success .icon svg { width: 28px; height: 28px; fill: var(--teal); }
.form-success h3 { font-size: 22px; margin-bottom: 8px; }
.form-success p { max-width: 40ch; margin: 0 auto; }

/* ============================================================
   GUIDE PAGE
   ============================================================ */
.guide-body { background: var(--paper); }
.guide-hero { background: var(--cream-deep); padding: 84px 0 60px; }
.guide-hero .eyebrow { margin-bottom: 20px; }
.guide-hero h1 { font-size: clamp(34px, 5vw, 50px); max-width: 18ch; }
.guide-hero p { font-size: 18px; max-width: 58ch; }

.guide-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 900px) { .guide-layout { grid-template-columns: 1fr; } }

.guide-toc {
  position: sticky; top: 110px;
  display: flex; flex-direction: column; gap: 4px;
  padding: 22px;
  background: var(--cream);
  border-radius: var(--radius-md);
  border: 1px solid var(--line-soft);
}
@media (max-width: 900px) { .guide-toc { position: static; } }
.guide-toc a {
  font-size: 14px; color: var(--ink-soft); padding: 9px 10px; border-radius: 8px;
  transition: all 0.2s ease;
}
.guide-toc a:hover { background: var(--paper); color: var(--terracotta-d); }

.guide-content { max-width: 720px; }
.guide-content h2 {
  font-size: 27px; margin-top: 56px; padding-top: 16px;
  scroll-margin-top: 110px;
}
.guide-content h2:first-child { margin-top: 0; }
.guide-content h3 { font-size: 19px; margin-top: 30px; }
.guide-content p { font-size: 16.5px; }
.guide-content ul, .guide-content ol { color: var(--ink-soft); font-size: 16px; line-height: 1.7; padding-left: 22px; }
.guide-content li { margin-bottom: 10px; }
.guide-content code {
  font-family: "SF Mono", Menlo, monospace; font-size: 0.88em;
  background: var(--cream); border: 1px solid var(--line-soft); border-radius: 5px; padding: 2px 7px;
  color: var(--terracotta-d);
}
.guide-content pre {
  background: var(--teal-deep); color: var(--cream);
  padding: 20px 22px; border-radius: var(--radius-sm);
  overflow-x: auto; font-size: 14px; line-height: 1.6;
}
.guide-content pre code { background: none; border: none; color: inherit; padding: 0; }
.guide-content blockquote {
  border-left: 3px solid var(--terracotta);
  margin: 24px 0; padding: 4px 0 4px 20px;
  font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--ink);
}
.guide-content hr { border: none; border-top: 1px solid var(--line-soft); margin: 44px 0; }
.guide-content .callout {
  background: var(--cream); border: 1px solid var(--line-soft); border-radius: var(--radius-md);
  padding: 22px 26px; margin: 26px 0;
}
.guide-content .callout p:last-child { margin-bottom: 0; }
.guide-content .swatches { display: flex; gap: 14px; flex-wrap: wrap; margin: 20px 0; }
.guide-content .swatch { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-soft); }
.guide-content .swatch .chip { width: 56px; height: 56px; border-radius: 12px; border: 1px solid var(--line-soft); }

