/* ============================================================
   The Hill Church
   Palette:  #1D1D1D  #7B4CFF  #FFFFFF  +  #F4F2ED (light)
   Type:     Manrope (display)  +  Inter (body)
   Aesthetic: clean, confident, alternating dark/light sections.
   ============================================================ */

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

:root {
  --black: #1D1D1D;
  --black-2: #141414;
  --black-3: #0a0a0a;
  --brand: #7B4CFF;
  --brand-hover: #8f64ff;
  --brand-deep: #5a2ee0;
  --white: #FFFFFF;
  --ink-dim: #b8b8b8;
  --muted: #7a7a7a;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);
  --radius: 16px;
  --radius-sm: 8px;
  --maxw: 1240px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --bg-light: #F4F2ED;
  --ink-light-muted: #5a5a5a;
  --line-light: rgba(29, 29, 29, 0.12);
  --line-light-strong: rgba(29, 29, 29, 0.24);
  --font-display: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; color: inherit; }
a { color: inherit; text-decoration: none; }
address { font-style: normal; }

/* ---------- Type ---------- */
.h2, h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4.6vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-wrap: balance;
  margin: 0;
}
/* How section has the longest headline - shrink a touch so it fits */
.how .h2 { font-size: clamp(1.8rem, 3.6vw, 2.9rem); }
.h2--light { color: var(--black); }

/* Eyebrow with decorative dashes on BOTH sides */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--brand);
  padding: 0;
  margin-bottom: 20px;
}
.eyebrow::before,
.eyebrow::after {
  content: "";
  display: inline-block;
  width: 32px; height: 2px;
  background: currentColor;
}
.eyebrow--light { color: var(--black); }
.eyebrow--white { color: var(--white); }

.lede {
  max-width: 64ch;
  font-size: clamp(1rem, 1.15vw, 1.15rem);
  line-height: 1.7;
  color: var(--ink-dim);
  margin: 0 0 2.25rem;
  text-wrap: balance;
}
.lede--compact { margin-bottom: 1.75rem; }

/* Give subtext room to breathe below the headline (was touching the H2) */
.section__head .lede,
.connect__inner .lede { margin-top: 20px; }

/* Desktop-only line break - wraps naturally on narrow screens */
.dbr { display: inline; }
@media (max-width: 640px) { .dbr { display: none; } }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0;
  z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px clamp(16px, 3vw, 36px);
  transition: background 0.3s var(--ease), padding 0.3s var(--ease), border-color 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(29, 29, 29, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
  padding: 14px clamp(16px, 3vw, 36px);
}
.nav__brand { display: flex; align-items: center; }
.nav__brand img { height: 38px; transition: height 0.3s var(--ease); }
.nav.is-scrolled .nav__brand img { height: 32px; }

.nav__links {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; gap: 26px;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.nav__links li a:not(.nav__cta) {
  color: var(--white);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s var(--ease);
}
.nav__links li a:not(.nav__cta):hover { color: var(--brand); }

.nav__cta {
  padding: 9px 16px;
  background: var(--brand);
  color: var(--white);
  font-weight: 700;
  transition: background 0.2s var(--ease);
  border-radius: 0;
}
.nav__cta:hover { background: var(--brand-hover); }

.nav__toggle {
  display: none;
  background: transparent; border: 2px solid var(--white);
  width: 40px; height: 40px;
  position: relative;
}
.nav__toggle span {
  position: absolute; left: 8px; right: 8px; height: 2px;
  background: var(--white); transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav__toggle span:nth-child(1) { top: 13px; }
.nav__toggle span:nth-child(2) { bottom: 13px; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed; top: 86px; left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    gap: 0; padding: 0;
    background: var(--black);
    border-bottom: 1px solid var(--line);
    opacity: 0; pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  }
  .nav__links.is-open { opacity: 1; pointer-events: auto; transform: translateY(0); }
  .nav__links li { width: 100%; }
  .nav__links li a:not(.nav__cta) {
    display: block; padding: 16px 22px;
    border-bottom: 1px solid var(--line);
  }
  .nav__cta { display: block; margin: 14px 22px; text-align: center; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease), border-color 0.2s var(--ease);
  border-radius: 0;
  border: 2px solid transparent;
}
.btn--primary {
  background: var(--brand);
  color: var(--white);
}
.btn--primary:hover { background: var(--white); color: var(--black); }
.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn--ghost:hover { background: var(--white); color: var(--black); }
.btn--lg { padding: 16px 30px; font-size: 0.9rem; }
.btn--dark {
  background: var(--black);
  color: var(--white);
}
.btn--dark:hover { background: var(--white); color: var(--black); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  padding: 120px clamp(20px, 4vw, 56px) 90px;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center;
  background-color: var(--black);
  overflow: hidden;
  isolation: isolate;
}

/* Photo layer - drop file at assets/hero-bg.jpg */
.hero__bg {
  position: absolute; inset: 0;
  z-index: 0;
  background: url("assets/hero-bg.jpg") center/cover no-repeat fixed;
}
.hero__bg::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg,
      rgba(29, 29, 29, 0.35) 0%,
      rgba(29, 29, 29, 0.55) 55%,
      rgba(29, 29, 29, 0.88) 100%);
}

.hero__mark {
  width: clamp(56px, 7vw, 80px);
  margin: 0 auto 24px;
}

.hero__inner {
  position: relative; z-index: 2;
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
}

.hero__headline {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 5.4vw, 4.4rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
  margin: 0 auto 36px;
  max-width: none;
  color: var(--white);
}
.hero__headline .hero__accent {
  color: var(--brand);
  display: inline-block;
}

.hero__cta {
  display: flex; gap: 12px; flex-wrap: wrap; justify-content: center;
  margin-bottom: 30px;
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-family: var(--font-display);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--white);
  opacity: 0.75;
  transition: opacity 0.2s var(--ease);
  animation: scrollNudge 2.4s var(--ease-out) infinite;
}
.hero__scroll:hover { opacity: 1; }
.hero__scroll svg { width: 22px; height: 22px; color: var(--white); }
@keyframes scrollNudge {
  0%, 100% { transform: translate(-50%, 0); }
  50%      { transform: translate(-50%, 6px); }
}

/* ---------- Marquee ---------- */
.marquee {
  background: var(--brand);
  color: var(--white);
  overflow: hidden;
  border-top: 2px solid var(--brand-deep);
  border-bottom: 2px solid var(--brand-deep);
  position: relative;
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 32s linear infinite;
  padding: 12px 0;
  will-change: transform;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(0.82rem, 1.05vw, 1rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0 24px;
  display: inline-flex; align-items: center; gap: 24px;
  white-space: nowrap;
}
.marquee__star {
  font-size: 0.9em;
  color: var(--white);
  opacity: 0.75;
}
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- Generic section ---------- */
.section {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(72px, 9vw, 120px) clamp(20px, 4vw, 56px);
}

/* Section heads are centered by default - override with .section__head--left if needed */
.section__head {
  margin: 0 auto 56px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.section__head .eyebrow { margin-bottom: 20px; }
.section__head--left {
  margin-left: 0; margin-right: 0;
  text-align: left;
  align-items: flex-start;
}

/* Full-centered section layouts */
.section--centered { text-align: center; }
.section--centered .lede { margin-left: auto; margin-right: auto; }

/* ---------- Why ---------- */
.why .lede {
  max-width: 68ch;
  font-size: clamp(1.02rem, 1.2vw, 1.18rem);
  margin-bottom: 3rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-top: 8px;
}
@media (max-width: 780px) { .stats { grid-template-columns: 1fr; } }
.stat {
  padding: 44px 24px 44px;
  border-right: 1px solid var(--line);
  text-align: center;
}
.stat:last-child { border-right: 0; }
@media (max-width: 780px) {
  .stat { border-right: 0; border-bottom: 1px solid var(--line); padding: 34px 0; }
  .stat:last-child { border-bottom: 0; }
}
.stat__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.8rem, 5.8vw, 4.6rem);
  line-height: 1;
  letter-spacing: -0.045em;
  color: var(--brand);
  margin-bottom: 14px;
}
.stat__label {
  font-size: 0.92rem;
  color: var(--ink-dim);
  max-width: 26ch;
  margin: 0 auto;
  line-height: 1.5;
  font-weight: 500;
}

/* ---------- Mission & Vision - Manifesto ---------- */
.manifesto {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}
.manifesto__item {
  display: block;
  padding: 46px 0 50px;
  border-top: 1px solid rgba(29, 29, 29, 0.14);
  text-align: center;
  position: relative;
  transition: background 0.3s var(--ease);
}
.manifesto__item:last-child { border-bottom: 1px solid rgba(29, 29, 29, 0.14); }
@media (max-width: 640px) {
  .manifesto__item { padding: 36px 0 40px; }
}

.manifesto__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.4rem, 7vw, 5.8rem);
  line-height: 0.85;
  color: var(--brand);
  letter-spacing: -0.055em;
  align-self: start;
  transition: transform 0.4s var(--ease);
}

.manifesto__body-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding-top: 10px;
}

.manifesto__label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--brand);
}

.manifesto__body {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.4rem, 2.4vw, 2.1rem);
  line-height: 1.25;
  letter-spacing: -0.025em;
  margin: 0 auto;
  max-width: 30ch;
  color: inherit;
}

/* ---------- Values ---------- */
.values__grid {
  list-style: none; padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
@media (max-width: 900px) { .values__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .values__grid { grid-template-columns: 1fr; } }

.value {
  position: relative;
  padding: 44px 30px 36px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  min-height: 260px;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  transition: background 0.3s var(--ease);
}
.value:hover { background: rgba(123, 76, 255, 0.06); }

.value__icon {
  width: 52px; height: 52px;
  color: var(--brand);
  margin-bottom: 22px;
  display: block;
}
.value__icon svg { width: 100%; height: 100%; display: block; overflow: visible; }

.value__num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.72rem;
  color: var(--brand);
  margin-bottom: 10px;
  letter-spacing: 0.24em;
  position: absolute; top: 18px; right: 22px;
}
.value__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  letter-spacing: -0.02em;
  margin: 0 0 10px;
  color: var(--white);
}
.value__copy {
  margin: 0; color: var(--ink-dim); font-size: 0.92rem; line-height: 1.55;
  max-width: 26ch;
}

/* Icon hover animations - each icon has its own subtle motion when hovered.
   No scroll-triggered auto-play, so nothing fires inconsistently as the user scrolls. */
.value:hover .icon-book { animation: bookRock 2.4s var(--ease-out); transform-origin: center; }
@keyframes bookRock {
  0%, 100% { transform: rotate(0deg); }
  25%      { transform: rotate(-5deg); }
  75%      { transform: rotate(5deg); }
}

.value:hover .icon-cross { animation: crossPulse 2.2s var(--ease-out); transform-origin: center; }
@keyframes crossPulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.08); }
}

.value:hover .icon-note { animation: noteBounce 2.2s var(--ease-out); transform-origin: center; }
@keyframes noteBounce {
  0%   { transform: translateY(0) rotate(0); }
  25%  { transform: translateY(-5px) rotate(-3deg); }
  50%  { transform: translateY(0) rotate(0); }
  75%  { transform: translateY(-3px) rotate(2deg); }
  100% { transform: translateY(0) rotate(0); }
}

.value:hover .icon-community { animation: commPulse 2.2s var(--ease-out); transform-origin: center; }
@keyframes commPulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.07); }
}

.value:hover .icon-plane { animation: planeFly 2.2s var(--ease-out); transform-origin: center; }
@keyframes planeFly {
  0%, 100% { transform: translate(0, 0) rotate(0); }
  50%      { transform: translate(6px, -6px) rotate(-4deg); }
}

.value:hover .icon-prayer { animation: prayerPulse 2.6s var(--ease-out); transform-origin: center; }
@keyframes prayerPulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.06); }
}

/* ---------- How ---------- */
.how__stage {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
  margin-top: 16px;
}
@media (max-width: 900px) { .how__stage { grid-template-columns: 1fr; } }

.how__canvas {
  width: 100%;
  aspect-ratio: 3 / 2;
  background: transparent;
  border: 0;
}
.how__canvas circle { transition: cx 1s var(--ease-out), cy 1s var(--ease-out), r 1s var(--ease-out), opacity 0.5s var(--ease); }

.how__controls { display: flex; flex-direction: column; gap: 10px; }

/* Condensed tabs: compact until active, then expand to reveal copy.
   Siblings shift when one opens - that's the intended behavior. */
.how__tab {
  text-align: left;
  background: transparent;
  border: 0;
  padding: 14px 4px;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 18px;
  row-gap: 10px;
  transition: padding 0.3s var(--ease);
  border-radius: 0;
}

.how__tab:hover .how__tab-title { color: var(--brand); }
.how__tab.is-active {
  padding: 18px 4px 22px;
}
.how__tab.is-active .how__tab-title {
  color: var(--brand);
  font-size: clamp(1.55rem, 2.1vw, 1.9rem);
  letter-spacing: -0.025em;
}

.how__tab-num {
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: start;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--brand);
  letter-spacing: 0.06em;
  padding-top: 2px;
}
.how__tab.is-active .how__tab-num { opacity: 0.85; }

.how__tab-title {
  grid-column: 2;
  grid-row: 1;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.28rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--white);
  transition: color 0.25s var(--ease), font-size 0.3s var(--ease), letter-spacing 0.3s var(--ease);
}

.how__tab-copy {
  grid-column: 2;
  grid-row: 2;
  font-size: 0.92rem;
  color: var(--ink-dim);
  line-height: 1.55;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin: 0;
  transition: max-height 0.4s var(--ease), opacity 0.3s var(--ease) 0.05s;
}
.how__tab.is-active .how__tab-copy {
  max-height: 200px;
  opacity: 1;
}

/* ---------- Visit ---------- */
/* Full-bleed church photo with parallax (fixed background attachment) */
.visit {
  position: relative;
  isolation: isolate;
}
.visit::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: calc(50% - 50vw);
  width: 100vw;
  z-index: -1;
  background: url('assets/church.jpg') center / cover no-repeat fixed;
}

.visit__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  margin-bottom: 40px;
}
@media (max-width: 900px) { .visit__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .visit__grid { grid-template-columns: 1fr; } }

.visit__card {
  padding: 32px 24px 34px;
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  transition: background 0.3s var(--ease);
}
.visit__card:last-child { border-right: 0; }
@media (max-width: 900px) {
  .visit__card:nth-child(2) { border-right: 0; }
  .visit__card:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 520px) {
  .visit__card { border-right: 0; border-bottom: 1px solid var(--line); }
  .visit__card:last-child { border-bottom: 0; }
}
.visit__card:hover { background: rgba(123, 76, 255, 0.06); }

.visit__icon {
  width: 40px; height: 40px;
  color: var(--brand);
  margin-bottom: 18px;
}

.visit__card-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: -0.015em;
  margin: 0 0 10px;
  color: var(--white);
}
.visit__card-body {
  margin: 0;
  color: var(--ink-dim);
  font-size: 0.9rem;
  line-height: 1.55;
  max-width: 24ch;
}

.visit__map {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  border: 1px solid var(--line);
  background: var(--black-2);
  overflow: hidden;
}
@media (max-width: 900px) { .visit__map { grid-template-columns: 1fr; } }

.visit__map-embed {
  position: relative;
  min-height: 360px;
}
.visit__map-embed iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
  filter: grayscale(0.4) contrast(1.05);
}
@media (max-width: 900px) {
  .visit__map-embed { min-height: 300px; }
}

.visit__map-info {
  padding: clamp(26px, 3vw, 38px);
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  gap: 16px;
  border-left: 1px solid var(--line);
  text-align: left;
}
@media (max-width: 900px) {
  .visit__map-info { border-left: 0; border-top: 1px solid var(--line); align-items: center; text-align: center; }
}
.visit__map-info .eyebrow { margin-bottom: 0; }
.visit__map-info address {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--white);
}
.visit__map-info address strong { font-weight: 700; }

/* ---------- Pastors ---------- */
.pastors__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(32px, 4vw, 56px);
  max-width: 1080px;
  margin: 0 auto;
}
@media (max-width: 900px) { .pastors__grid { grid-template-columns: 1fr; gap: 56px; } }

.pastor { display: flex; flex-direction: column; text-align: center; align-items: center; }

.pastor__photo {
  margin: 0 0 26px;
  aspect-ratio: 4 / 3;
  width: 100%;
  overflow: hidden;
  background: var(--black-2);
  border: 1px solid var(--line);
}
.pastor__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 25%;
  display: block;
  transition: transform 0.6s var(--ease-out);
}
.pastor:hover .pastor__photo img { transform: scale(1.03); }

.pastor__content { display: flex; flex-direction: column; align-items: center; }

.pastor__role {
  font-family: var(--font-display);
  font-size: 0.72rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.24em;
  color: var(--brand);
  margin-bottom: 10px;
}
.pastor__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 2.4vw, 2.15rem);
  letter-spacing: -0.03em;
  margin: 0 0 20px;
  color: var(--white);
}
.pastor__bio {
  color: var(--ink-dim);
  line-height: 1.65;
  font-size: 0.96rem;
  margin: 0 0 22px;
  max-width: 50ch;
}
.pastor__email {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--brand);
  text-transform: lowercase;
  transition: color 0.2s var(--ease);
}
.pastor__email:hover { color: var(--white); }

/* ---------- Sermons ---------- */
.sermons { text-align: center; position: relative; isolation: isolate; }
/* Full-bleed worship photo behind the section with a dark, slightly purple wash */
.sermons::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: calc(50% - 50vw);
  width: 100vw;
  z-index: -1;
  background: url('assets/duo-worship-purple.jpg?v=5') center / cover no-repeat;
}
.sermons__inner { max-width: 60ch; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }

/* ---------- Give ---------- */
.give {
  padding: 0;
  max-width: none;
}
.give__card {
  position: relative;
  overflow: hidden;
  padding: clamp(64px, 10vw, 130px) clamp(20px, 4vw, 56px);
  background: var(--brand);
  color: var(--white);
  text-align: center;
}
.give__inner {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  z-index: 2;
}
.give__inner .eyebrow { color: var(--white); }
.give__inner .eyebrow::before,
.give__inner .eyebrow::after { background: var(--white); opacity: 0.7; }

.give__logo {
  width: clamp(64px, 8vw, 96px);
  height: auto;
  margin: 0 auto 26px;
  display: block;
}
.give__copy {
  max-width: 52ch;
  font-size: 1.04rem;
  line-height: 1.7;
  margin: 1.25rem auto 2.25rem;
  color: var(--white);
}
.give h2 { color: var(--white); max-width: 20ch; }

/* ---------- Connect ---------- */
.connect { text-align: center; }
.connect__inner { max-width: 1000px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.connect__actions { display: inline-flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* ---------- Footer ---------- */
.foot {
  padding: 50px clamp(20px, 4vw, 56px) 34px;
  border-top: 1px solid var(--line);
  max-width: var(--maxw);
  margin: 0 auto;
}
.foot__top {
  display: flex; justify-content: space-between; align-items: center;
  gap: 28px; flex-wrap: wrap;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.foot__brand img { height: 26px; }
.foot__nav {
  display: flex; gap: 22px; flex-wrap: wrap;
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.foot__nav a { color: var(--ink-dim); transition: color 0.2s var(--ease); }
.foot__nav a:hover { color: var(--brand); }
.foot__bot {
  padding-top: 22px;
  display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.82rem;
}
.foot__bot p { margin: 0; }

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  will-change: opacity, transform;
}
.reveal.is-in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
  .marquee__track { animation: none; }
}

/* ============================================================
   Alternating light sections (About, How, Pastors)
   Full-bleed bg via box-shadow + clip-path trick, so we don't
   need to restructure the max-width'd .section wrappers.
   ============================================================ */
.section--light {
  background: var(--bg-light);
  color: var(--black);
  box-shadow: 0 0 0 100vmax var(--bg-light);
  clip-path: inset(0 -100vmax);
}

/* Typography flips */
.section--light .h2 { color: var(--black); }
.section--light .lede { color: var(--ink-light-muted); }

/* Mission / Vision cards */
.section--light .duo__grid,
.section--light .card { border-color: var(--line-light); }
.section--light .card__body { color: var(--black); }
.section--light .card:hover { background: rgba(123, 76, 255, 0.06); }

/* Stats - not applied right now (Why stays dark), but safe to leave */
.section--light .stats,
.section--light .stat { border-color: var(--line-light); }
.section--light .stat__label { color: var(--ink-light-muted); }

/* Values */
.section--light .values__grid,
.section--light .value { border-color: var(--line-light); }
.section--light .value__title { color: var(--black); }
.section--light .value__copy { color: var(--ink-light-muted); }
.section--light .value:hover { background: rgba(123, 76, 255, 0.06); }

/* How (Gather / Scatter / Sent) */
.section--light .how__canvas { background: transparent; border: 0; }
.section--light .how__tab { background: transparent; }
.section--light .how__tab:hover { background: transparent; }
.section--light .how__tab-title { color: var(--black); }
.section--light .how__tab-copy { color: var(--ink-light-muted); }
.section--light .how__tab.is-active .how__tab-title { color: var(--brand); }

/* Visit */
.section--light .visit__grid,
.section--light .visit__card,
.section--light .visit__map,
.section--light .visit__map-info { border-color: var(--line-light); }
.section--light .visit__card { background: #FFFFFF; }
.section--light .visit__card:hover { background: rgba(123, 76, 255, 0.06); }
.section--light .visit__card-title { color: var(--black); }
.section--light .visit__card-body { color: var(--ink-light-muted); }
.section--light .visit__map { background: #FFFFFF; }
.section--light .visit__map-info address { color: var(--black); }

/* Pastors */
.section--light .pastor__photo {
  background: #FFFFFF;
  border-color: var(--line-light);
}
.section--light .pastor__name { color: var(--black); }
.section--light .pastor__bio { color: var(--ink-light-muted); }
.section--light .pastor__email:hover { color: var(--black); }

/* ============================================================
   Interior pages (Hill Kids, Sent Communities)
   ============================================================ */

/* Visually hidden but available to screen readers / SEO */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Compact page header (not full-screen like the home hero) */
.page-hero {
  position: relative;
  padding: clamp(132px, 17vh, 200px) clamp(20px, 4vw, 56px) clamp(56px, 8vh, 96px);
  text-align: center;
  background: var(--black);
  overflow: hidden;
  isolation: isolate;
}
.page-hero--kids {
  /* Kids brand: blue-dominant with Hill purple mixed in. Purple anchors the top
     so the (white) nav stays legible; cyan/blue fills the lower two-thirds. */
  background: linear-gradient(155deg, #6f4bff 0%, #3aa0f0 48%, #21e0f4 100%);
}
.page-hero__inner { position: relative; z-index: 2; max-width: 1200px; margin: 0 auto; }
.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.3rem, 5.4vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  margin: 0 0 22px;
  color: var(--white);
  text-wrap: balance;
}
.page-hero__lede {
  font-size: clamp(1.04rem, 1.4vw, 1.24rem);
  line-height: 1.7;
  color: var(--ink-dim);
  max-width: 62ch;
  margin: 0 auto;
  text-wrap: balance;
}
/* On the bright kids gradient, lighten the subtext for contrast */
.page-hero--kids .page-hero__lede { color: rgba(255, 255, 255, 0.94); }
.kids-hero__logo {
  width: clamp(230px, 34vw, 400px);
  height: auto;
  margin: 0 auto 30px;
  display: block;
}

/* Centered lead statement used at the top of interior content */
.statement {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: inherit;
  text-wrap: balance;
}

/* Q&A blocks (Kids: Safe / Fun / Learn) */
.qa { max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; }
.qa__item {
  padding: 40px 0 44px;
  border-top: 1px solid var(--line-light);
}
.qa__item:last-child { border-bottom: 1px solid var(--line-light); }
.qa__q {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.35rem, 2.6vw, 1.95rem);
  letter-spacing: -0.025em;
  margin: 0 0 16px;
  color: var(--brand);
}
.qa__a {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.72;
  color: var(--ink-light-muted);
  max-width: 74ch;
}

/* Three pillars (Sent Communities: Worship / Mission / Care) reuse .values look,
   but allow a wider copy measure */
.pillars__grid {
  list-style: none; padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
@media (max-width: 860px) { .pillars__grid { grid-template-columns: 1fr; } }
.pillar {
  padding: 38px 30px 40px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.pillar__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  color: var(--brand);
}
.pillar__copy { margin: 0; color: rgba(255, 255, 255, 0.92); font-size: 0.98rem; line-height: 1.6; }

/* Sent Community location cards */
.locations {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(18px, 3vw, 28px);
  max-width: 980px;
  margin: 0 auto;
}
@media (max-width: 720px) { .locations { grid-template-columns: 1fr; } }
.location {
  border: 1px solid var(--line-light);
  padding: clamp(26px, 4vw, 38px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: background 0.3s var(--ease);
}
.location:hover { background: rgba(123, 76, 255, 0.05); }
.location__time {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand);
}
.location__addr {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.16rem;
  letter-spacing: -0.015em;
  color: var(--black);
  margin: 0;
}
.location__leaders { margin: 0; color: var(--ink-light-muted); font-size: 0.98rem; line-height: 1.55; }
.location__email {
  margin-top: 6px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand);
  transition: color 0.2s var(--ease);
}
.location__email:hover { color: var(--brand-deep); }

/* VBS callout: cyan kids-branded card variant of .give */
.give--kids .give__card { background: #21e0f4; }
.give--kids .give__inner .eyebrow,
.give--kids .give h2,
.give--kids .give__copy { color: #0d2b31; }
.give--kids .give__inner .eyebrow::before,
.give--kids .give__inner .eyebrow::after { background: #0d2b31; opacity: 0.6; }
.give--kids .btn--dark { background: #7b4cff; color: #fff; }
.give--kids .btn--dark:hover { background: #0d2b31; color: #fff; }
.kids-vbs__logo { width: clamp(150px, 20vw, 220px); height: auto; margin: 0 auto 22px; display: block; }

/* ============================================================
   Duotone backgrounds for dark sections (brand purple).
   Full-bleed via the left/100vw trick; dark gradient keeps text legible.
   ============================================================ */
.why, .values, .connect--home, .connect--sent, .connect--kids, .sc-pillars {
  position: relative;
  isolation: isolate;
}
.why::before, .values::before,
.connect--home::before, .connect--sent::before, .connect--kids::before,
.sc-pillars::before, .page-hero--sent::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: calc(50% - 50vw);
  width: 100vw;
  z-index: -1;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.why::before { background-image: url('assets/duo-worship.jpg?v=5'); }
.values::before { background-image: url('assets/duo-congregation.jpg?v=5'); }
.connect--home::before { background-image: url('assets/duo-fellowship.jpg?v=5'); }
.connect--sent::before { background-image: url('assets/duo-smiling.jpg?v=5'); }
.connect--kids::before { background-image: url('assets/duo-kids.jpg?v=5'); }
.sc-pillars::before { background-image: url('assets/duo-worship.jpg?v=5'); }
.page-hero--sent::before { background-image: url('assets/duo-congregation.jpg?v=5'); }
