:root {
  --navy: #09060f;
  --navy-2: #2d0750;
  --gold: #0d70f6;
  --gold-light: #c7dcff;
  --purple: #6501b0;
  --purple-bright: #8808e9;
  --heading: #350061;
  --cream: #f7f3fc;
  --white: #ffffff;
  --ink: #170d21;
  --muted: #625b69;
  --line: #e3dbea;
  --shadow: 0 18px 48px rgba(45, 7, 80, .14);
  --radius: 22px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.skip-link { position: fixed; top: -80px; left: 18px; z-index: 999; background: var(--gold); color: var(--navy); padding: 10px 16px; font-weight: 800; }
.skip-link:focus { top: 16px; }
.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.eyebrow { margin: 0 0 10px; color: var(--purple); font-size: .8rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, h3 { margin-top: 0; color: var(--heading); font-family: Georgia, "Times New Roman", serif; line-height: 1.12; }
h1 { font-size: clamp(2.5rem, 6vw, 5.6rem); }
h2 { font-size: clamp(2rem, 4vw, 3.6rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.65rem); }
p { margin-top: 0; }
.lead { color: var(--muted); font-size: clamp(1.05rem, 1.7vw, 1.25rem); }
.section { padding: clamp(70px, 9vw, 120px) 0; }
.section-soft { background: var(--cream); }
.section-dark { background: linear-gradient(135deg, #09060f 0%, #25053f 55%, #430078 100%); color: var(--white); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: #63aaff; }
.section-heading { max-width: 740px; margin-bottom: 42px; }
.section-heading.center { margin-inline: auto; text-align: center; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 8px; border: 2px solid var(--gold); border-radius: 999px; padding: 11px 22px; background: var(--gold); color: var(--navy); font-weight: 850; text-decoration: none; transition: transform .2s, background .2s, color .2s; }
.button:hover { transform: translateY(-2px); background: #4392fb; }
.button-outline { background: transparent; color: var(--white); }
.button-outline:hover { background: var(--white); border-color: var(--white); color: var(--navy); }
.button-navy { border-color: var(--purple); background: var(--purple); color: var(--white); }
.button-navy:hover { border-color: var(--purple-bright); background: var(--purple-bright); }
.text-link { color: var(--purple); font-weight: 850; text-decoration-color: var(--gold); text-decoration-thickness: 3px; text-underline-offset: 5px; }

.site-header { position: sticky; top: 0; z-index: 100; border-bottom: 2px solid var(--purple); background: rgba(7,4,12,.97); color: var(--white); }
.admin-bar .site-header { top: 32px; }
.nav-wrap { display: flex; min-height: 92px; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--white); text-decoration: none; }
.site-logo { width: 148px; height: 76px; object-fit: contain; object-position: left center; }
.main-nav { display: flex; align-items: center; gap: 3px; }
.nav-menu { display: flex; align-items: center; gap: 3px; margin: 0; padding: 0; list-style: none; }
.nav-menu li { position: relative; }
.nav-menu > .menu-item-has-children > a::after { content: " ▾"; color: #63aaff; }
.nav-menu .sub-menu { position: absolute; top: calc(100% + 8px); left: 0; z-index: 20; display: none; width: 320px; margin: 0; border: 1px solid rgba(255,255,255,.14); border-radius: 14px; padding: 10px; background: #12091d; box-shadow: var(--shadow); list-style: none; }
.nav-menu li:hover > .sub-menu, .nav-menu li:focus-within > .sub-menu { display: grid; }
.nav-menu .sub-menu a { display: block; border-radius: 9px; padding: 11px 12px; line-height: 1.35; }
.main-nav a { border-radius: 999px; padding: 9px 11px; color: #edf4f8; font-size: .88rem; font-weight: 750; text-decoration: none; }
.main-nav a:hover, .main-nav a[aria-current="page"] { background: rgba(101,1,176,.35); color: #d9e8ff; }
.main-nav .give-link > a, .main-nav a.give-link { margin-left: 6px; background: linear-gradient(100deg, var(--gold), var(--purple-bright)); color: var(--white); }
.menu-toggle { display: none; border: 0; background: transparent; color: var(--white); font-weight: 800; }

.hero { position: relative; min-height: min(690px, calc(100vh - 92px)); overflow: hidden; background: var(--navy); color: var(--white); }
.hero-slide { position: absolute; inset: 0; opacity: 0; background-position: center; background-size: cover; transition: opacity 1s ease; }
.hero-slide.active { opacity: 1; }
.hero-slide-5 { background-position: center 18%; }
.hero-slide-7 { background-position: center 15%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,3,9,.68) 0%, rgba(34,4,58,.34) 52%, rgba(13,112,246,.08) 100%); }
.hero-content { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr; min-height: min(690px, calc(100vh - 92px)); align-items: center; padding-block: 76px; }
.hero-copy { max-width: 760px; }
.hero-logo-wrap { width: fit-content; margin-bottom: 24px; padding: 8px 10px; border: 2px solid rgba(255,255,255,.96); border-radius: 10px; background: rgba(255,255,255,.92); box-shadow: 0 12px 34px rgba(0,0,0,.34); backdrop-filter: blur(5px); }
.hero-inline-logo { display: block; width: min(70vw, 300px); height: auto; object-fit: contain; filter: drop-shadow(0 3px 8px rgba(0,0,0,.16)); }
.hero h1 { margin-bottom: 18px; color: var(--white); letter-spacing: -.035em; text-shadow: 0 3px 18px rgba(0,0,0,.72); }
.hero .eyebrow, .hero .tagline { text-shadow: 0 2px 14px rgba(0,0,0,.78); }
.hero .tagline { max-width: 680px; margin-bottom: 0; color: #eef6ff; font-size: clamp(1.1rem, 2.3vw, 1.55rem); letter-spacing: .04em; }
.hero-dots { position: absolute; z-index: 3; right: 28px; bottom: 28px; display: flex; gap: 8px; }
.hero-dot { width: 12px; height: 12px; border: 2px solid var(--white); border-radius: 50%; background: transparent; cursor: pointer; }
.hero-dot.active { background: var(--gold); border-color: var(--gold); }

.split { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(38px, 7vw, 90px); }
.split.reverse .split-media { order: 2; }
.split-media { position: relative; }
.split-media img { width: 100%; aspect-ratio: 4 / 3; border-radius: var(--radius); object-fit: cover; box-shadow: var(--shadow); }
.split-media::after { content: ""; position: absolute; right: -16px; bottom: -16px; z-index: -1; width: 55%; height: 55%; border-radius: var(--radius); background: linear-gradient(135deg, #d6e6ff, #e8d2fa); }
.feature-quote { margin: 28px 0; border-left: 5px solid var(--gold); padding: 4px 0 4px 20px; color: var(--navy); font-family: Georgia, serif; font-size: 1.35rem; font-weight: 700; }

.tile-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.tile { position: relative; min-height: 390px; overflow: hidden; border-radius: var(--radius); background: var(--navy); color: var(--white); box-shadow: var(--shadow); text-decoration: none; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7,25,41,.94), rgba(7,25,41,.08) 70%); }
.tile-content { position: absolute; right: 22px; bottom: 22px; left: 22px; z-index: 2; }
.tile h3 { margin: 0; color: var(--white); font-size: 1.75rem; }
.tile p { margin: 8px 0 0; color: #e8eef2; }
.tile:hover img { transform: scale(1.05); }

.pastor-note { margin: 14px 0 0; color: var(--muted); font-size: .9rem; }
.leader-photo img { aspect-ratio: 4 / 5; object-position: center top; }
.leadership-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.leadership-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.leadership-card > a { display: grid; grid-template-columns: minmax(180px, .78fr) minmax(0, 1.22fr); min-height: 430px; color: inherit; text-decoration: none; }
.leadership-card img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.leadership-card-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(26px, 4vw, 44px); }
.leadership-card-copy h2 { margin: 8px 0 24px; font-size: clamp(1.8rem, 3vw, 2.7rem); }
.leadership-placeholder { display: grid; place-items: center; background: linear-gradient(145deg, #09060f, var(--purple), var(--gold)); color: var(--white); font-family: Georgia, serif; font-size: clamp(4rem, 8vw, 7rem); }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { border: 1px solid var(--line); border-radius: 18px; padding: 28px; background: var(--white); box-shadow: 0 12px 30px rgba(16,42,67,.07); }
.image-card { overflow: hidden; padding: 0; }
.card-image { width: 100%; height: 220px; object-fit: cover; }
.card-body { padding: 28px; }
.card .kicker { color: var(--purple); font-size: .76rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.card h3 { margin: 8px 0 12px; }
.card p:last-child { margin-bottom: 0; }
.action-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 34px; }
.action-card { display: grid; min-height: 145px; place-items: end start; border: 1px solid rgba(255,255,255,.25); border-radius: 18px; padding: 20px; background: rgba(255,255,255,.06); color: var(--white); font-family: Georgia, serif; font-size: 1.15rem; font-weight: 800; text-decoration: none; }
.action-card:hover { border-color: #61a9ff; background: rgba(13,112,246,.17); }

.page-hero { padding: 90px 0 76px; background: linear-gradient(125deg, #09060f 0%, #4e008b 58%, #0d70f6 145%); color: var(--white); }
.page-hero-image { position: relative; display: flex; min-height: 340px; align-items: end; background-position: center 30%; background-size: cover; }
.page-hero-image::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(9,6,15,.95) 0%, rgba(45,7,80,.78) 48%, rgba(13,112,246,.28) 100%); }
.page-hero-content { position: relative; z-index: 1; }
.page-hero-about { background-position: center 34%; }
.page-hero-church-leadership { background-position: center 18%; }
.page-hero-rev-stephen-c-dickerson { background-position: center 14%; }
.page-hero-rev-bagby { background-position: center 28%; }
.page-hero-events { background-position: center 32%; }
.page-hero-connect { background-position: center 28%; }
.page-hero-receive-updates { background-position: center 24%; }
.page-hero-watch { background-position: center 24%; }
.page-hero-prayer { background-position: center 24%; }
.page-hero-join { background-position: center 26%; }
.page-hero h1 { max-width: 900px; margin-bottom: 16px; color: var(--white); font-size: clamp(2.8rem, 6vw, 5rem); }
.page-hero p { max-width: 760px; margin-bottom: 0; color: #dfeaf1; font-size: 1.2rem; }
.content-wrap { max-width: 840px; }
.timeline { margin: 40px 0 0; border-left: 3px solid var(--gold); padding-left: 30px; }
.timeline article { position: relative; margin-bottom: 38px; }
.timeline article::before { content: ""; position: absolute; top: 7px; left: -39px; width: 15px; height: 15px; border: 4px solid var(--cream); border-radius: 50%; background: var(--gold); }
.belief-list { display: grid; gap: 14px; }
.about-story { margin-bottom: 70px; }
.about-beliefs { border-top: 1px solid var(--line); padding-top: 70px; }
.village-content-section + .village-content-section { margin-top: 64px; border-top: 1px solid var(--line); padding-top: 64px; }
.visit-info-band { margin-bottom: 64px; color: var(--white); }
.belief { border: 1px solid var(--line); border-radius: 16px; padding: 22px 24px; background: var(--white); }
.belief h3 { margin-bottom: 8px; font-size: 1.25rem; }
.belief p { margin-bottom: 0; color: var(--muted); }
.info-band { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255,255,255,.2); }
.info-band article { padding: 30px; background: #12091d; text-align: center; }
.info-band strong { display: block; color: var(--gold-light); }
.faq { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: var(--white); padding: 0 20px; }
.faq summary { cursor: pointer; padding: 18px 0; color: var(--navy); font-weight: 850; }
.faq details p { padding-bottom: 18px; color: var(--muted); }

.form-shell { max-width: 820px; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 5vw, 48px); background: var(--white); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label, fieldset legend { color: var(--navy); font-weight: 800; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid #aebac3; border-radius: 10px; padding: 12px 14px; background: #fff; color: var(--ink); }
.field textarea { min-height: 150px; resize: vertical; }
.choice-row { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.choice-row label, .check-label { display: flex; align-items: flex-start; gap: 9px; font-weight: 500; }
.choice-row input, .check-label input { width: auto; margin-top: 5px; }
.honeypot { position: absolute; left: -9999px; }
.notice { border-left: 5px solid var(--gold); padding: 18px 22px; background: var(--cream); }
.join-introduction { margin-bottom: 38px; }
.join-paths { margin-bottom: 64px; }
.village-membership-form { margin: 0 auto 64px; }
.join-welcome { border-radius: var(--radius); padding: clamp(28px, 5vw, 52px); background: linear-gradient(135deg, #09060f 0%, #25053f 55%, #430078 100%); color: var(--white); }
.join-welcome h2 { color: var(--white); }
.join-welcome p { color: #e6dff0; }

.site-footer { padding: 65px 0 28px; border-top: 4px solid var(--purple); background: #07040c; color: #e6dff0; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 50px; }
.site-footer h2, .site-footer h3 { color: var(--white); }
.footer-mission { color: var(--gold-light); font-weight: 750; }
.site-footer h3 { font-family: inherit; font-size: .95rem; letter-spacing: .08em; text-transform: uppercase; }
.site-footer a { color: #dce7ed; }
.footer-links { display: grid; gap: 8px; }
.footer-bottom { margin-top: 45px; border-top: 1px solid rgba(255,255,255,.14); padding-top: 22px; color: #aebfca; font-size: .86rem; }

.compact-section { padding-block: 0; }
.entry-content > * { max-width: 100%; }
.page-builder-area { min-height: 160px; }
.entry-content a { color: var(--purple); }
.entry-image { margin-bottom: 30px; }
.entry-image img { border-radius: var(--radius); }
.entry-card { margin-bottom: 36px; border-bottom: 1px solid var(--line); padding-bottom: 30px; }
.entry-card h2 { margin-bottom: 10px; }
.entry-card a { text-decoration: none; }
.navigation.pagination { margin-top: 36px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.page-numbers { border-radius: 8px; padding: 7px 12px; background: var(--cream); text-decoration: none; }
.page-numbers.current { background: var(--purple); color: var(--white); }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.screen-reader-text:focus { top: 16px; left: 16px; z-index: 1000; width: auto; height: auto; clip: auto; padding: 10px 16px; background: var(--gold); color: var(--navy); }
.notice-success { border-left-color: #147a42; }
.notice-error { border-left-color: #b42318; }
.light-lead { color: #dfeaf1; }
.top-space { margin-top: 30px; }
.two-column-cards { grid-template-columns: 1fr 1fr; }

@media (max-width: 980px) {
  .menu-toggle { display: inline-flex; }
  .main-nav { position: fixed; inset: 92px 0 0; display: none; align-content: start; overflow-y: auto; padding: 24px; background: var(--navy); }
  .main-nav.open { display: grid; }
  .nav-menu { display: grid; align-content: start; }
  .nav-menu .sub-menu { position: static; display: grid; width: auto; margin: 4px 0 8px 18px; border: 0; box-shadow: none; }
  .main-nav a { padding: 14px 16px; font-size: 1rem; }
  .main-nav .give-link { margin: 8px 0 0; text-align: center; }
  .tile-grid { grid-template-columns: repeat(2, 1fr); }
  .action-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}

@media (max-width: 720px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  .site-logo { width: 124px; height: 64px; }
  .hero-content { grid-template-columns: 1fr; gap: 32px; }
  .hero-logo-wrap { padding: 7px 9px; border-radius: 9px; }
  .hero-inline-logo { width: min(76vw, 270px); }
  .split, .card-grid, .form-grid, .footer-grid, .info-band, .leadership-grid { grid-template-columns: 1fr; }
  .leadership-card > a { grid-template-columns: 1fr; }
  .leadership-card img, .leadership-placeholder { min-height: 420px; }
  .split.reverse .split-media { order: 0; }
  .tile-grid { grid-template-columns: 1fr; }
  .tile { min-height: 320px; }
  .action-grid { grid-template-columns: 1fr 1fr; }
  .field.full { grid-column: auto; }
  .two-column-cards { grid-template-columns: 1fr; }
  .hero::after { background: linear-gradient(0deg, rgba(5,3,9,.76), rgba(68,0,119,.24)); }
  .hero-slide-5 { background-position: 60% 18%; }
  .hero-slide-7 { background-position: 52% 12%; }
  .hero-dots { right: 16px; bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
