:root {
  --white: #FFFFFF;
  --off-white: #FAFAFA;
  --cream: #F5F3EF;
  --sand: #E8E4DD;
  --warm-gray: #9B9590;
  --charcoal: #2C2825;
  --deep-black: #1A1714;
  --accent: #C4A97D;
  --accent-light: #D4BE98;
  --accent-subtle: rgba(196, 169, 125, 0.08);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* Keep in-page jump targets clear of the fixed nav */
section[id] { scroll-margin-top: 72px; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--white);
  color: var(--charcoal);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ========== NAV ========== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

nav.scrolled {
  padding: 14px 48px;
  box-shadow: 0 1px 0 rgba(0,0,0,0.04);
}

/* Frosted background for the scrolled nav. It lives on a pseudo-element, not
   the nav itself: a backdrop-filter on the nav would trap the full-screen
   mobile menu inside the nav bar's height. */
nav::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

nav.scrolled::before { opacity: 1; }

.nav-logo {
  display: block;
  position: relative;
  width: 180px;
  height: 44px;
  text-decoration: none;
  transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1), height 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-logo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.4s;
}

.nav-logo .logo-dark { opacity: 0; }

nav.scrolled .nav-logo { width: 156px; height: 38px; }
nav.scrolled .nav-logo .logo-white { opacity: 0; }
nav.scrolled .nav-logo .logo-dark { opacity: 1; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: rgba(255,255,255,0.92);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  position: relative;
  transition: color 0.3s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--accent);
  transition: width 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a:hover {
  color: var(--white);
}

nav.scrolled .nav-links a {
  color: var(--charcoal);
}

nav.scrolled .nav-links a:hover {
  color: var(--deep-black);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  z-index: 200;
}

.hamburger span {
  width: 24px;
  height: 1.5px;
  background: var(--white);
  transition: all 0.3s;
}

nav.scrolled .hamburger span {
  background: var(--charcoal);
}

/* "I'm New" call-to-action in the nav: gold outline */
.nav-links a.nav-cta {
  padding: 8px 18px;
  border: 1.5px solid var(--accent);
  border-radius: 60px;
  color: var(--white);
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.nav-links a.nav-cta::after { display: none; }

.nav-links a.nav-cta:hover,
.nav-links a.nav-cta.active {
  background: var(--accent);
  color: var(--deep-black);
}

nav.scrolled .nav-links a.nav-cta { color: var(--deep-black); }

nav.scrolled .nav-links a.nav-cta:hover,
nav.scrolled .nav-links a.nav-cta.active {
  background: var(--accent);
  color: var(--deep-black);
}

/* Nav over a light banner (e.g. Kids): dark text before scrolling */
nav.on-light .nav-links a,
nav.on-light .sub-toggle { color: var(--charcoal); }

nav.on-light .nav-links a:hover,
nav.on-light .has-dropdown:hover .sub-toggle { color: var(--deep-black); }

nav.on-light .nav-links a.nav-cta { color: var(--deep-black); }

nav.on-light .hamburger span { background: var(--charcoal); }

/* ========== DROPDOWNS ========== */
.has-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

/* "About" and "Connect" are labels that open their menus, not links */
.sub-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
  padding: 0;
  background: none;
  border: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.92);
  cursor: pointer;
  transition: color 0.3s;
}

/* Same gold underline as the other menu items */
.sub-toggle::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--accent);
  transition: width 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.has-dropdown:hover .sub-toggle::after,
.sub-toggle.active::after { width: calc(100% - 16px); }

.has-dropdown:hover .sub-toggle { color: var(--white); }
nav.scrolled .has-dropdown:hover .sub-toggle { color: var(--deep-black); }

.sub-toggle svg { transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1); }

nav.scrolled .sub-toggle { color: var(--charcoal); }

.dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  min-width: 220px;
  padding: 10px;
  list-style: none;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(26, 23, 20, 0.16), 0 0 0 1px rgba(0,0,0,0.04);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 8px);
  transition: opacity 0.25s, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.25s;
}

/* Invisible bridge so the menu stays open while the pointer crosses the gap */
.dropdown::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -16px;
  height: 16px;
}

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown,
.has-dropdown.open .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.has-dropdown:hover .sub-toggle svg,
.has-dropdown.open .sub-toggle svg { transform: rotate(180deg); }

.nav-links .dropdown a {
  display: block;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  color: var(--charcoal);
  transition: background 0.2s, color 0.2s;
}

.nav-links .dropdown a::after { display: none; }

.nav-links .dropdown a:hover,
.nav-links .dropdown a:focus-visible {
  background: var(--cream);
  color: var(--deep-black);
}

.nav-links .dropdown a[aria-current="page"] {
  color: var(--deep-black);
  background: var(--cream);
  font-weight: 600;
}

/* ========== HERO ========== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 120px 24px 80px;
  position: relative;
  overflow: hidden;
}

/* Background photo */
.hero-bg {
  position: absolute;
  inset: 0;
  background: url('../img/hero-bw.jpg') center 35% / cover no-repeat;
  z-index: 0;
  transform: scale(1.06);
  will-change: transform;
}

/* Legibility scrim over the photo */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to bottom, rgba(26,23,20,0.72) 0%, rgba(26,23,20,0.55) 45%, rgba(26,23,20,0.80) 100%),
    radial-gradient(ellipse at 50% 45%, rgba(26,23,20,0.15) 0%, rgba(26,23,20,0.65) 100%);
  pointer-events: none;
}

.hero > *:not(.hero-bg) {
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 32px;
  opacity: 0;
  animation: fadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards;
}

.hero h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(42px, 7vw, 88px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--white);
  text-shadow: 0 2px 40px rgba(0,0,0,0.35);
  max-width: 800px;
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.4s forwards;
}

.hero-sub {
  font-size: 17px;
  font-weight: 300;
  color: rgba(255,255,255,0.82);
  max-width: 460px;
  line-height: 1.65;
  margin-bottom: 48px;
  opacity: 0;
  animation: fadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.6s forwards;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  opacity: 0;
  animation: fadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.8s forwards;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 36px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-radius: 60px;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  border: none;
}

.btn-primary {
  background: var(--deep-black);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--charcoal);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(26, 23, 20, 0.15);
}

.btn-secondary {
  background: transparent;
  color: var(--charcoal);
  border: 1.5px solid var(--sand);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--deep-black);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(196, 169, 125, 0.1);
}

/* Hero buttons sit on the photo — invert for contrast */
.hero .btn-primary,
.page-hero .btn-primary {
  background: var(--white);
  color: var(--deep-black);
}

.hero .btn-primary:hover,
.page-hero .btn-primary:hover {
  background: var(--cream);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.hero .btn-secondary,
.page-hero .btn-secondary {
  background: rgba(255,255,255,0.06);
  color: var(--white);
  border-color: rgba(255,255,255,0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.hero .btn-secondary:hover,
.page-hero .btn-secondary:hover {
  border-color: var(--accent-light);
  color: var(--white);
  background: rgba(255,255,255,0.12);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.btn-arrow {
  transition: transform 0.3s;
}

.btn:hover .btn-arrow {
  transform: translateX(3px);
}

/* Scroll indicator — centered with margins, not a transform, because
   the fadeUp animation overwrites transform */
.hero > .scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: max-content;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: fadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 1.2s forwards;
}

.scroll-indicator span {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.6), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

/* ========== SERMON SERIES ========== */
.series {
  background: var(--cream);
  padding: 100px 48px;
}

.series-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 64px;
  align-items: center;
}

.series-art {
  display: block;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(26, 23, 20, 0.12);
  text-decoration: none;
}

.series-art img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.series-art:hover img {
  transform: scale(1.03);
}

.series-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.series-art:hover .series-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.06);
}

.series-play svg { margin-left: 4px; }

.series-eyebrow {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.series-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(32px, 4.4vw, 52px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--deep-black);
  margin-bottom: 20px;
}

.series-desc {
  font-size: 17px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--warm-gray);
  max-width: 460px;
  margin-bottom: 20px;
}

.series-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--warm-gray);
  margin-bottom: 36px;
}

.series-meta span:empty {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent-light);
}

.series-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Event details inside the home page event feature */
.event-details { max-width: 460px; margin-bottom: 32px; }
.event-details .visit-detail:last-of-type { margin-bottom: 0; }

@media (max-width: 1024px) {
  .event-details { margin-left: auto; margin-right: auto; text-align: left; }
}

/* ========== DIVIDER ========== */
.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 48px;
}

.divider-line {
  flex: 1;
  max-width: 200px;
  height: 1px;
  background: var(--sand);
}

.divider-icon {
  width: 8px;
  height: 8px;
  margin: 0 20px;
  border: 1.5px solid var(--accent-light);
  border-radius: 50%;
}

/* ========== MINISTRIES ========== */
.ministries {
  padding: 80px 48px 120px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-label {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--deep-black);
  margin-bottom: 0;
}

.section-subtitle {
  font-size: 16px;
  font-weight: 300;
  color: var(--warm-gray);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.6;
}

.ministry-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.ministry-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  background: var(--off-white);
  border: 1px solid rgba(0,0,0,0.04);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.ministry-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.07);
  border-color: transparent;
}

.card-visual {
  height: 270px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Photo/logo-filled card visuals */
.card-visual.visual-image {
  padding: 0;
}

.card-visual.visual-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.ministry-card:hover .visual-image img {
  transform: scale(1.05);
}

.card-kids .card-visual.visual-image { background: #FFFFFF; }
.card-college .card-visual.visual-image { background: #CC0000; }
.card-youth .card-visual.visual-image { background: #0C0B0B; }
/* Square lockup — show it whole; the dark edge blends with the card bg */
.card-youth .card-visual.visual-image img { object-fit: contain; padding: 36px; }
.card-app .card-visual.visual-image { background: #141414; }
/* Keep the full app graphic visible — its dark edge blends with the card bg */
.card-app .card-visual.visual-image img { object-fit: contain; }

.card-content {
  padding: 28px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-title {
  font-family: 'DM Serif Display', serif;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--deep-black);
  margin-bottom: 8px;
}

.card-desc {
  font-size: 14px;
  font-weight: 300;
  color: var(--warm-gray);
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--charcoal);
  text-decoration: none;
  transition: gap 0.3s;
}

.ministry-card:hover .card-link {
  gap: 10px;
  color: var(--deep-black);
}

/* ========== VISIT ========== */
.visit {
  padding: 40px 48px 120px;
  max-width: 1200px;
  margin: 0 auto;
}

/* When Visit follows a cream band (interior pages), give it room */
.section-cream + .visit { padding-top: 100px; }

.visit-inner {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 64px;
  align-items: center;
}

.visit-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--deep-black);
  margin-bottom: 32px;
}

.visit-detail {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 0;
  border-top: 1px solid var(--sand);
}

.visit-detail:last-of-type {
  border-bottom: 1px solid var(--sand);
  margin-bottom: 32px;
}

.visit-detail svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.visit-detail-label {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 5px;
}

.visit-detail-value {
  font-size: 17px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--charcoal);
}

.visit-map {
  display: block;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--sand);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.07);
  transition: all 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.visit-map:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.1);
}

.visit-map img {
  display: block;
  width: 100%;
  height: auto;
}

/* ========== FOOTER ========== */
footer {
  background: var(--cream);
  border-top: 1px solid var(--sand);
  padding: 60px 48px 40px;
  text-align: center;
}

.footer-logo {
  margin-bottom: 24px;
}

.footer-logo img {
  width: 230px;
  max-width: 60%;
  height: auto;
  opacity: 0.85;
}

.footer-text {
  font-size: 13px;
  color: var(--warm-gray);
  line-height: 1.7;
  margin-bottom: 8px;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--sand);
  color: var(--charcoal);
  transition: all 0.3s;
}

.footer-social a:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--white);
  transform: translateY(-2px);
}

.footer-divider {
  width: 40px;
  height: 1px;
  background: var(--sand);
  margin: 24px auto;
}

.footer-copy {
  font-size: 12px;
  color: var(--warm-gray);
  opacity: 0.6;
}

/* ========== ANIMATIONS ========== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* Scroll reveal for ministry cards */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .ministry-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .series-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
    justify-items: center;
  }

  .series-desc { margin-left: auto; margin-right: auto; }
  .series-meta, .series-actions { justify-content: center; }

  .visit-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  nav {
    padding: 16px 24px;
  }

  nav.scrolled {
    padding: 12px 24px;
  }

  .nav-logo { width: 148px; height: 36px; }
  nav.scrolled .nav-logo { width: 132px; height: 32px; }

  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    z-index: 150;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a,
  .nav-links.open a,
  nav.scrolled .nav-links.open a {
    font-size: 24px;
  }

  .nav-links.open a,
  nav.scrolled .nav-links.open a {
    color: var(--charcoal);
  }

  .nav-links.open ~ .hamburger span {
    background: var(--charcoal);
  }

  .hamburger {
    display: flex;
  }

  .hero {
    padding: 100px 24px 80px;
    min-height: 90vh;
  }

  .hero h1 {
    margin-bottom: 20px;
  }

  .hero-sub {
    font-size: 15px;
    margin-bottom: 36px;
  }

  .series {
    padding: 64px 24px;
  }

  .ministries {
    padding: 60px 24px 80px;
  }

  .visit {
    padding: 20px 24px 80px;
  }

  .ministry-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }

  .card-visual {
    height: 300px;
  }

  footer {
    padding: 48px 24px 32px;
  }
}

@media (max-width: 480px) {
  .hero-buttons {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
  }

  .btn {
    justify-content: center;
  }
}

/* ========================================================
   INTERIOR PAGES
   Shared components for every page other than the home page.
   ======================================================== */

/* Current page in the nav */
.nav-links a.active::after { width: 100%; }

/* ========== PAGE HERO ========== */
.page-hero {
  min-height: 40vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 130px 24px 64px;
  position: relative;
  overflow: hidden;
  background: var(--deep-black);
}

/* Banner that fills the screen, for short pages like Thank You */
.page-hero.tall { min-height: 78vh; }

.page-hero-bg {
  position: absolute;
  inset: 0;
  background-position: center 40%;
  background-size: cover;
  background-repeat: no-repeat;
  z-index: 0;
  transform: scale(1.06);
  will-change: transform;
}

/* Same scrim as the home hero, so every banner reads the same */
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to bottom, rgba(26,23,20,0.72) 0%, rgba(26,23,20,0.55) 45%, rgba(26,23,20,0.80) 100%),
    radial-gradient(ellipse at 50% 45%, rgba(26,23,20,0.15) 0%, rgba(26,23,20,0.65) 100%);
  pointer-events: none;
}

.page-hero > *:not(.page-hero-bg) {
  position: relative;
  z-index: 2;
}

.page-hero .hero-eyebrow { margin-bottom: 20px; }

.page-hero h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--white);
  text-shadow: 0 2px 40px rgba(0,0,0,0.35);
  max-width: 820px;
  opacity: 0;
  animation: fadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards;
}

.page-hero .hero-sub {
  margin: 24px 0 0;
  max-width: 560px;
  animation-delay: 0.5s;
}

.page-hero .hero-buttons {
  margin-top: 40px;
  animation-delay: 0.7s;
}

/* Banners that use a ministry logo as the page title (Kids, Youth) */
.page-hero h1.has-logo { text-shadow: none; line-height: 0; }

.hero-logo {
  display: block;
  width: min(230px, 56vw);
  height: auto;
  margin: 0 auto;
}

.hero-logo-wide { width: min(480px, 78vw); }

/* College banner: SOCO red with the topographic lines blended in */
.college-hero { background: #CC0000; }

.college-hero .page-hero-bg {
  background-color: #CC0000;
  background-blend-mode: screen;
  opacity: 0.7;
}

.college-hero::before {
  background: linear-gradient(to bottom, rgba(90,0,0,0.12) 0%, rgba(90,0,0,0) 45%, rgba(90,0,0,0.12) 100%);
}

.college-hero .hero-eyebrow { color: rgba(255,255,255,0.88); }
.college-hero .hero-sub { color: rgba(255,255,255,0.92); }

/* Kids banner: light, in the Sojourn Kids logo colors, with the logo as the title */
.kids-hero {
  background: #F7F7F7 url('../img/kids/kids-banner-bg.svg') center / cover no-repeat;
}

.kids-hero::before { display: none; }


.kids-hero .hero-eyebrow { color: #005284; }

.kids-hero .hero-sub {
  color: #005284;
  font-weight: 400;
}

/* ========== CONTENT SECTIONS ========== */
.section {
  padding: 100px 48px;
}

.section-cream { background: var(--cream); }

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-narrow {
  max-width: 760px;
  margin: 0 auto;
}

.section-header.align-left {
  text-align: left;
  margin-bottom: 40px;
}

/* Long-form text */
.prose {
  font-size: 17px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--charcoal);
}

.prose p + p { margin-top: 20px; }

.prose h2 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--deep-black);
  margin: 56px 0 20px;
}

.prose h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 24px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--deep-black);
  margin: 40px 0 12px;
}

.prose > :first-child { margin-top: 0; }

.prose ul, .prose ol {
  margin: 16px 0 0 22px;
}

.prose li { margin-top: 8px; }
.prose li::marker { color: var(--accent); }

.prose strong { font-weight: 600; }

.prose a {
  color: var(--deep-black);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
}

.lead {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: var(--deep-black);
}

/* Text beside an image */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.split.image-left .split-media { order: -1; }

.split-media {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(26, 23, 20, 0.12);
}

.split-media img {
  display: block;
  width: 100%;
  height: auto;
}

/* Numbered/feature list, e.g. values, beliefs */
.feature-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.feature {
  background: var(--off-white);
  border: 1px solid rgba(0,0,0,0.04);
  border-radius: 20px;
  padding: 40px 36px;
}

.section-cream .feature { background: var(--white); }

.feature-num {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 16px;
}

.feature-title {
  font-family: 'DM Serif Display', serif;
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--deep-black);
  margin-bottom: 12px;
}

.feature-text {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--warm-gray);
}

/* Photo strip */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.photo-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 16px;
}

/* Closing call to action */
.cta-band {
  background: var(--cream);
  padding: 100px 48px;
  text-align: center;
}

.cta-band .section-title { margin-bottom: 16px; }
.cta-band .section-subtitle { margin-bottom: 36px; }

.cta-band .series-actions { justify-content: center; }

/* Grid of links to sub-pages (About, Connect overviews) */
.link-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.link-grid.two { grid-template-columns: repeat(2, 1fr); }

.link-card {
  display: flex;
  flex-direction: column;
  background: var(--off-white);
  border: 1px solid rgba(0,0,0,0.04);
  border-radius: 20px;
  padding: 36px 32px 32px;
  text-decoration: none;
  color: inherit;
  transition: all 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.link-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.07);
  border-color: transparent;
}

.link-card .feature-text { flex: 1; margin-bottom: 24px; }

.link-card:hover .card-link { gap: 10px; color: var(--deep-black); }

/* Big statement with supporting text (Mission & Vision) */
.statement {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 64px;
  align-items: start;
}

.statement .lead { margin-bottom: 24px; }

/* Long numbered list of articles (Beliefs) */
.article-list {
  border-top: 1px solid var(--sand);
}

.article {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  padding: 56px 0;
  border-bottom: 1px solid var(--sand);
}

.article-head {
  position: sticky;
  top: 110px;
  align-self: start;
}

.article-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--deep-black);
}

.article-summary {
  font-size: 19px;
  font-weight: 500;
  line-height: 1.55;
  color: var(--deep-black);
  margin-bottom: 18px;
}

/* Team */
.team-group + .team-group { margin-top: 80px; }

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px 24px;
}

.team-member img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  border-radius: 20px;
  background: var(--sand);
  margin-bottom: 18px;
}

.team-name {
  font-family: 'DM Serif Display', serif;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--deep-black);
  margin-bottom: 4px;
}

.team-role {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

/* Partners */
.partner-list {
  display: grid;
  gap: 24px;
}

.partner {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 48px;
  align-items: center;
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.04);
  border-radius: 20px;
  padding: 32px;
}

.partner-logo {
  height: 180px;
  border-radius: 14px;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

.partner-logo.on-dark { background: var(--deep-black); }

.partner-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.partner .feature-text { margin-bottom: 24px; }

/* ========== FORMS ========== */
.form-card {
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.04);
  border-radius: 20px;
  padding: 48px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.05);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 20px;
}

.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }

.field > label,
.field > legend {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

fieldset.field {
  border: none;
  padding: 0;
  margin: 0;
}

fieldset.field legend { margin-bottom: 12px; padding: 0; }

.field input,
.field textarea {
  width: 100%;
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  color: var(--charcoal);
  background: var(--off-white);
  border: 1px solid var(--sand);
  border-radius: 12px;
  padding: 14px 16px;
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
}

.field textarea { min-height: 140px; resize: vertical; line-height: 1.6; }

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--white);
  box-shadow: 0 0 0 4px var(--accent-subtle);
}

/* Radio buttons and checkboxes shown as pill toggles */
.choices { display: flex; flex-wrap: wrap; gap: 10px; }

.choice { position: relative; }

.field .choice input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  opacity: 0;
  pointer-events: none;
}

.choice span {
  display: inline-block;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--charcoal);
  border: 1.5px solid var(--sand);
  border-radius: 60px;
  cursor: pointer;
  transition: all 0.25s;
}

.choice span:hover { border-color: var(--accent); }

.choice input:checked + span {
  background: var(--deep-black);
  border-color: var(--deep-black);
  color: var(--white);
}

.choice input:focus-visible + span {
  box-shadow: 0 0 0 4px var(--accent-subtle);
  border-color: var(--accent);
}

.form-actions { margin-top: 32px; }

.form-actions .btn { font-size: 15px; }

.form-note {
  font-size: 13px;
  color: var(--warm-gray);
  margin-top: 16px;
}

.hidden-field { position: absolute; left: -9999px; }

/* Grid of class/ministry info cards with photos (Kids) */
.photo-card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* Five cards: three on top, two centered below */
.photo-card-grid.five { grid-template-columns: repeat(6, 1fr); }
.photo-card-grid.five > * { grid-column: span 2; }
.photo-card-grid.five > :nth-child(4) { grid-column: 2 / span 2; }

.photo-card {
  background: var(--off-white);
  border: 1px solid rgba(0,0,0,0.04);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.section-cream .photo-card { background: var(--white); }

.photo-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.photo-card-body { padding: 28px 24px 32px; }

.photo-card ul {
  list-style: none;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--warm-gray);
}

.photo-card li { padding: 10px 0; border-top: 1px solid var(--sand); }
.photo-card li:first-child { border-top: none; padding-top: 0; }

/* Callout box */
.note {
  border-left: 3px solid var(--accent);
  background: var(--accent-subtle);
  padding: 20px 24px;
  border-radius: 0 12px 12px 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--charcoal);
}

/* Third-party embeds (Subsplash sermons, events, giving) */
.embed-frame {
  min-height: 400px;
}

/* 16:9 video player (Subsplash latest sermon) */
.video-frame {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  background: var(--deep-black);
  box-shadow: 0 24px 60px rgba(26, 23, 20, 0.12);
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Static map image (Community Groups) */
.map-card {
  max-width: 960px;
  margin: 0 auto 48px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--sand);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.07);
}

.map-card img {
  display: block;
  width: 100%;
  height: auto;
}

/* Tap-to-enlarge map (Community Groups) */
.map-zoom {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  background: none;
  font: inherit;
  cursor: zoom-in;
}

.map-zoom-hint {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--charcoal);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--sand);
  border-radius: 60px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  transition: background 0.2s, color 0.2s;
}

.map-zoom:hover .map-zoom-hint,
.map-zoom:focus-visible .map-zoom-hint {
  background: var(--deep-black);
  color: var(--white);
}

/* Full-screen map viewer */
.map-viewer {
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
}

.map-viewer::backdrop { background: rgba(26, 23, 20, 0.88); }

.map-viewer-scroll {
  width: 100%;
  height: 100%;
  overflow: auto;
  display: flex;
  align-items: center;
  padding: 24px;
  -webkit-overflow-scrolling: touch;
}

.map-viewer-scroll img {
  display: block;
  width: min(1200px, 100%);
  height: auto;
  margin: auto;
  border-radius: 14px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

.map-viewer-close {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  background: var(--white);
  color: var(--deep-black);
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Phones: show the map at full size; swipe to look around */
@media (max-width: 768px) {
  /* Just the magnifier icon, so the hint doesn't cover street labels */
  .map-zoom-hint { right: 8px; bottom: 8px; padding: 8px; }
  .map-zoom-text { display: none; }

  .map-viewer-scroll { padding: 72px 16px 24px; }
  .map-viewer-scroll img { width: 1000px; max-width: none; }
}

/* Community group listing */
.group-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.group-card {
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.04);
  border-radius: 20px;
  padding: 32px 28px;
}

.group-when {
  font-family: 'DM Serif Display', serif;
  font-size: 24px;
  font-weight: 400;
  color: var(--deep-black);
  margin-bottom: 4px;
}

.group-time {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.group-detail {
  font-size: 15px;
  line-height: 1.6;
  color: var(--charcoal);
  padding: 10px 0;
  border-top: 1px solid var(--sand);
}

.group-detail span {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--warm-gray);
}

.group-detail a { color: var(--charcoal); text-decoration: none; }
.group-detail a:hover { color: var(--accent); }

/* ========== INTERIOR RESPONSIVE ========== */
@media (max-width: 1024px) {
  .split {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .split.image-left .split-media { order: 0; }

  .link-grid,
  .group-grid,
  .photo-card-grid,
  .photo-card-grid.five { grid-template-columns: repeat(2, 1fr); }
  .photo-card-grid.five > *,
  .photo-card-grid.five > :nth-child(4) { grid-column: auto; }
  .team-grid { grid-template-columns: repeat(3, 1fr); }

  .statement,
  .article {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .article-head { position: static; }

  .partner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 768px) {
  .page-hero {
    min-height: 34vh;
    padding: 110px 24px 52px;
  }

  .section,
  .cta-band {
    padding: 64px 24px;
  }

  .section-cream + .visit { padding-top: 64px; }

  .feature-list,
  .photo-grid {
    grid-template-columns: 1fr;
  }

  .feature { padding: 32px 28px; }

  .kids-hero { background-image: url('../img/kids/kids-banner-bg-mobile.svg'); }

  .link-grid,
  .link-grid.two,
  .group-grid,
  .photo-card-grid,
  .photo-card-grid.five,
  .form-grid { grid-template-columns: 1fr; }
  .form-card { padding: 28px 20px; }
  .team-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
  .team-name { font-size: 19px; }
  .team-role { font-size: 12px; letter-spacing: 0.12em; }
  .article { padding: 40px 0; }
  .partner { padding: 20px; }
}

/* ========== MOBILE MENU WITH DROPDOWNS ========== */
@media (max-width: 768px) {
  .nav-links a.nav-cta,
  .nav-links.open a.nav-cta,
  nav.scrolled .nav-links.open a.nav-cta {
    display: inline-block;
    margin-top: 8px;
    padding: 10px 28px;
    font-size: 20px;
    color: var(--deep-black);
  }

  .nav-links {
    justify-content: flex-start;
    padding: 110px 24px 48px;
    gap: 24px;
    overflow-y: auto;
  }

  .nav-links > li {
    width: 100%;
    text-align: center;
  }

  .has-dropdown {
    flex-wrap: wrap;
    justify-content: center;
  }

  .sub-toggle,
  nav.scrolled .sub-toggle {
    gap: 10px;
    font-size: 24px;
    color: var(--charcoal);
  }

  .sub-toggle svg { width: 14px; height: 9px; }

  /* Sub-menus expand in place instead of floating */
  .dropdown,
  .has-dropdown:hover .dropdown,
  .has-dropdown:focus-within .dropdown,
  .has-dropdown.open .dropdown {
    display: none;
    position: static;
    flex-basis: 100%;
    min-width: 0;
    padding: 4px 0 0;
    background: none;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    text-align: center;
  }

  .has-dropdown.open .dropdown { display: block; }

  .has-dropdown:hover .sub-toggle svg { transform: none; }
  .has-dropdown.open .sub-toggle svg { transform: rotate(180deg); }

  .nav-links .dropdown a,
  .nav-links.open .dropdown a,
  nav.scrolled .nav-links.open .dropdown a {
    font-size: 17px;
    font-weight: 400;
    padding: 8px 0;
    color: var(--warm-gray);
  }

  .nav-links .dropdown a:hover { background: none; color: var(--deep-black); }
  .nav-links .dropdown a[aria-current="page"] { background: none; color: var(--deep-black); }
}
