:root {
  --black: #073047;
  --near-black: #102a43;
  --muted-black: rgba(16, 42, 67, 0.78);
  --light: #fffdf6;
  --white: #ffffff;
  --blue: #0b6fa4;
  --link-blue: #075985;
  --bright-blue: #ffd166;
  --dark-card: #0f4c5c;
  --gold: #ffd166;
  --green: #1f8a5b;
  --soft-sky: #e8f7ff;
  --soft-gold: #fff4cf;
  --shadow: rgba(7, 48, 71, 0.16) 3px 5px 30px 0px;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--near-black);
  background: var(--light);
  letter-spacing: -0.374px;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, video, iframe { max-width: 100%; }
button, input, select, textarea { font: inherit; }
:target { scroll-margin-top: 84px; }

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(238, 241, 241, 0.78);
  backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.36);
}
.nav {
  height: 64px;
  max-width: 1320px;
  margin: auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #075985;
}
.brand { display: flex; gap: 11px; align-items: center; min-width: 0; font-size: 16px; font-weight: 900; letter-spacing: .01em; }
.brand-logo {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  object-fit: contain;
  border-radius: 50%;
  filter: drop-shadow(0 4px 10px rgba(7, 48, 71, .16));
}
.brand-name { min-width: 0; }
.nav-links { display: flex; gap: 24px; align-items: center; font-size: 15px; font-weight: 700; }
.nav-links a { opacity: .96; transition: opacity .2s, color .2s; }
.nav-links a:hover { opacity: 1; color: var(--link-blue); }
.nav-cta { background: white; color: #064663; padding: 12px 22px; border-radius: 0; opacity: 1 !important; box-shadow: rgba(0,0,0,.08) 0 8px 24px; }
.menu-toggle { display: none; background: none; color: #075985; border: 0; font-size: 28px; }

.section-dark { background: linear-gradient(135deg, #073047 0%, #0f4c5c 55%, #d28b00 100%); color: var(--white); }
.section-light { background: var(--white); color: var(--near-black); }
.section-muted { background: var(--light); color: var(--near-black); }
.section { padding: clamp(68px, 8vw, 96px) clamp(16px, 4vw, 22px); }
.section-heading { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.eyebrow { margin: 0 0 12px; color: var(--bright-blue); font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.eyebrow.blue { color: #0057a8; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(44px, 7vw, 84px); line-height: 1.02; letter-spacing: -2.2px; margin-bottom: 20px; }
h2 { font-size: clamp(34px, 4vw, 56px); line-height: 1.07; letter-spacing: -1.2px; margin-bottom: 16px; }
h3 { font-size: 22px; line-height: 1.15; letter-spacing: -0.35px; }
p { font-size: 17px; line-height: 1.6; color: inherit; opacity: .92; }

.hero {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 132px 7vw 130px;
  isolation: isolate;
  background: #082f49;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
  z-index: -3;
}
.hero-video-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 42%, rgba(0, 96, 145, .12), transparent 34%),
    linear-gradient(180deg, rgba(0,0,0,.18) 0%, rgba(0,0,0,.28) 38%, rgba(0,0,0,.82) 100%),
    linear-gradient(90deg, rgba(0,0,0,.62) 0%, rgba(0,0,0,.14) 52%, rgba(0,0,0,.58) 100%);
  z-index: -2;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 36%;
  background: linear-gradient(180deg, transparent, rgba(7, 48, 71, .90));
  pointer-events: none;
  z-index: -1;
}
.hero-content, .welcome-strip, .video-control { position: relative; z-index: 1; }
.hero-content { max-width: 900px; }
.hero-centered { text-align: center; margin: auto; display: grid; justify-items: center; }
.hero-logo {
  width: clamp(118px, 15vw, 220px);
  height: clamp(118px, 15vw, 220px);
  object-fit: contain;
  margin: 0 auto 18px;
  border-radius: 50%;
  filter: drop-shadow(0 18px 38px rgba(0,0,0,.45));
}
.hero-kicker { color: white; text-transform: none; letter-spacing: 0; font-size: clamp(18px, 2vw, 24px); font-weight: 800; text-shadow: 0 2px 20px rgba(0,0,0,.45); }
.hero h1 {
  font-size: clamp(70px, 9.8vw, 138px);
  line-height: .88;
  letter-spacing: -5px;
  margin-bottom: 22px;
  text-shadow: 0 4px 38px rgba(0,0,0,.42);
}
.hero-tagline, .page-tagline {
  color: var(--gold) !important;
  font-weight: 900;
  letter-spacing: .01em;
  text-shadow: 0 2px 18px rgba(0,0,0,.48);
}
.hero-tagline { max-width: 820px; font-size: clamp(22px, 2.5vw, 34px); line-height: 1.2; margin-bottom: 16px; }
.hero-subtitle { max-width: 720px; font-size: clamp(19px, 1.8vw, 25px); line-height: 1.38; opacity: .94; text-shadow: 0 2px 18px rgba(0,0,0,.45); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-actions-centered { justify-content: center; }
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 980px;
  font-size: 17px;
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
  -webkit-tap-highlight-color: transparent;
  transition: transform .2s, background .2s, border-color .2s;
}
.button:hover { transform: translateY(-2px); }
.button-primary { background: #075985; color: white; font-weight: 900; box-shadow: rgba(0, 74, 111, .36) 0 14px 34px; }
.button-gold { background: linear-gradient(135deg, var(--gold), #f1b44c); color: var(--near-black); font-weight: 800; }
.button-outline { border-color: rgba(255,255,255,.9); color: white; background: rgba(255,255,255,.08); backdrop-filter: blur(8px); }
.button-dark { background: var(--near-black); color: white; }
.service-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.payment-button { margin-top: 18px; width: fit-content; }
.text-link { color: var(--link-blue); font-weight: 600; }
.text-link.light { color: var(--bright-blue); }

.hero-card {
  background: linear-gradient(180deg, #126782, #073047);
  border-radius: 24px;
  padding: 30px;
  box-shadow: rgba(0,0,0,.55) 0 28px 80px;
  min-height: 330px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.welcome-strip {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  width: min(1040px, calc(100% - 36px));
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  border-radius: 6px;
  background: rgba(255,255,255,.92);
  box-shadow: rgba(0,0,0,.28) 0 20px 60px;
}
.welcome-strip a {
  color: #0d3447;
  padding: 22px 24px;
  display: grid;
  gap: 7px;
  border-right: 1px solid rgba(7, 81, 120, .12);
}
.welcome-strip a:last-child { border-right: 0; }
.welcome-strip strong { font-size: 19px; }
.welcome-strip span { font-size: 14px; line-height: 1.4; opacity: .88; }
.video-control {
  position: absolute;
  right: 24px;
  bottom: 24px;
  z-index: 2;
  border: 1px solid rgba(255,255,255,.45);
  color: white;
  background: rgba(0,0,0,.35);
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 800;
  cursor: pointer;
  backdrop-filter: blur(8px);
}
.live-badge { display: inline-flex; align-items: center; gap: 10px; color: var(--bright-blue); font-weight: 700; margin-bottom: 28px; }
.live-badge span { width: 10px; height: 10px; background: #29d47f; border-radius: 50%; box-shadow: 0 0 18px #29d47f; }
.service-time { font-size: 28px; font-weight: 700; opacity: 1; }
.join-qr-card {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 12px;
  align-items: center;
  margin: 16px 0;
  padding: 10px;
  border-radius: 14px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
}
.join-qr-card img,
.service-qr-card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  background: white;
  padding: 5px;
}
.join-qr-card strong,
.service-qr-card strong {
  display: block;
  font-size: 15px;
  line-height: 1.2;
}
.join-qr-card span {
  display: block;
  margin-top: 4px;
  color: rgba(255,255,255,.78);
  font-size: 12px;
  line-height: 1.35;
}

.quick-links {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: #d7ecf8;
}
.quick-links a { background: var(--light); padding: 24px; text-align: center; font-weight: 700; }
.quick-links a:hover { color: var(--green); }

.service-details-section { background: linear-gradient(180deg, #ffffff 0%, #e8f7ff 100%); }
.service-details-grid {
  max-width: 1180px;
  margin: auto;
  display: grid;
  grid-template-columns: .9fr .9fr 1.1fr;
  gap: 24px;
  align-items: stretch;
}
.service-details-card,
.service-flyer-card {
  background: #fffdf6;
  border: 1px solid rgba(7, 89, 133, .12);
  border-radius: 26px;
  padding: 28px;
  box-shadow: rgba(7, 48, 71, 0.10) 0 18px 42px;
}
.service-details-card { display: grid; align-content: center; gap: 12px; }
.service-details-card span {
  color: var(--link-blue);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 14px;
}
.service-details-card h3 { color: var(--near-black); font-size: clamp(25px, 2.5vw, 34px); margin: 0; }
.service-details-card strong { color: #b77900; font-size: 22px; }
.service-flyer-card { display: grid; justify-items: center; gap: 18px; }
.service-flyer-card img {
  width: min(100%, 350px);
  border-radius: 14px;
  box-shadow: rgba(7, 48, 71, .22) 0 18px 38px;
}
.service-flyer-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; width: 100%; }

.live-grid, .split-section, .contact-grid { max-width: 1180px; margin: auto; display: grid; grid-template-columns: 1.4fr .6fr; gap: 28px; align-items: stretch; }
.video-frame { background: var(--black); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 16/9; }
.video-frame iframe { width: 100%; height: 100%; border: 0; }
.service-panel { background: var(--light); border-radius: 18px; padding: 28px; }
.check-list { padding: 0; margin: 24px 0; list-style: none; }
.check-list li { padding: 11px 0; border-bottom: 1px solid rgba(0,0,0,.08); }
.check-list li::before { content: "✓"; color: var(--blue); font-weight: 800; margin-right: 10px; }
.service-qr-card {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 12px;
  align-items: center;
  margin-top: 16px;
  padding: 10px;
  border-radius: 14px;
  background: white;
  border: 1px solid rgba(11,111,164,.18);
  box-shadow: rgba(7, 48, 71, 0.08) 0 10px 20px;
}
.service-qr-card p { margin: 0; font-size: 13px; line-height: 1.35; opacity: .86; }

.cards-grid, .sermon-grid, .giving-cards {
  max-width: 1180px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.program-card, .sermon-card, .give-card {
  border-radius: 22px;
  padding: 28px;
}
.program-card { background: var(--dark-card); min-height: 220px; }
.program-card span { color: var(--bright-blue); font-weight: 800; }
.sermon-card, .give-card { background: var(--light); box-shadow: rgba(0,0,0,.06) 0 16px 40px; }
.sermon-thumb {
  height: 180px;
  border-radius: 16px;
  background: radial-gradient(circle at 30% 20%, #9edcff, #0b6fa4 42%, #073047);
  color: white;
  display: grid;
  place-items: center;
  font-size: 42px;
  margin-bottom: 22px;
}
.sermon-thumb.alt { background: radial-gradient(circle at 30% 20%, #ffc2d4, #0f4c5c 44%, #073047); }
.sermon-thumb.third { background: radial-gradient(circle at 30% 20%, #fff0a8, #d28b00 44%, #073047); }

.ministry-list { max-width: 980px; margin: auto; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.ministry-card { background: white; border-radius: 18px; box-shadow: rgba(7, 48, 71, 0.08) 0 10px 28px; overflow: hidden; }
.ministry-card summary { padding: 24px 58px 24px 24px; display: grid; gap: 7px; cursor: pointer; list-style: none; position: relative; }
.ministry-card summary::-webkit-details-marker { display: none; }
.ministry-card summary::after { content: "+"; position: absolute; right: 24px; top: 24px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--near-black); font-weight: 900; }
.ministry-card[open] summary::after { content: "−"; background: var(--green); color: white; }
.ministry-card span { color: var(--muted-black); line-height: 1.5; }
.ministry-card ul { margin: 0; padding: 0 24px 24px 44px; color: var(--near-black); line-height: 1.7; }
.ministry-card li { padding: 5px 0; }
.ministry-card li::marker { color: var(--green); }

.events-list { max-width: 980px; margin: auto; display: grid; gap: 12px; }
.event { display: grid; grid-template-columns: 90px 1fr auto; gap: 22px; align-items: center; background: var(--light); padding: 18px; border-radius: 18px; }
.event time { background: var(--near-black); color: white; border-radius: 14px; padding: 14px; text-align: center; font-size: 24px; font-weight: 800; line-height: 1; }
.event time span { font-size: 13px; font-weight: 500; }
.event a { color: var(--link-blue); font-weight: 700; }

.split-section { padding-left: 22px; padding-right: 22px; }
.stats { display: grid; gap: 14px; }
.stats div { background: var(--dark-card); border-radius: 18px; padding: 28px; }
.stats strong { font-size: 44px; display: block; }
.stats span { opacity: .86; }

.church-form { max-width: 720px; margin: auto; display: grid; gap: 16px; background: var(--light); padding: 26px; border-radius: 22px; }
.church-form label { font-weight: 700; display: grid; gap: 8px; }
input, select, textarea {
  width: 100%;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 13px;
  padding: 14px 15px;
  font: inherit;
  background: white;
}
input:focus, select:focus, textarea:focus, button:focus, a:focus { outline: 2px solid var(--blue); outline-offset: 3px; }
.form-status { margin: 0; color: var(--link-blue); font-weight: 700; }
.payment-number { font-size: 28px; font-weight: 800; opacity: 1; }

.section-gallery {
  color: white;
  background:
    linear-gradient(180deg, rgba(7, 48, 71, .82), rgba(15, 76, 92, .76)),
    url('assets/gallery/church-sanctuary.jpg') center/cover fixed;
}
.gallery-grid {
  max-width: 1180px;
  margin: auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 16px;
}
.gallery-grid figure {
  position: relative;
  min-height: 230px;
  margin: 0;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: rgba(0,0,0,.35) 0 22px 52px;
  background: var(--dark-card);
}
.gallery-grid .gallery-feature { grid-row: span 2; min-height: 476px; }
.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05) contrast(1.03);
  transition: transform .45s ease, filter .45s ease;
}
.gallery-grid figure:hover img { transform: scale(1.05); filter: saturate(1.15) contrast(1.08); }
.gallery-grid figcaption {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  padding: 10px 13px;
  border-radius: 999px;
  color: white;
  font-weight: 800;
  background: rgba(7, 48, 71, .76);
  backdrop-filter: blur(10px);
}
.music-panel {
  max-width: 980px;
  margin: 34px auto 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px;
  align-items: center;
  padding: 24px;
  border-radius: 26px;
  background: rgba(255,255,255,.92);
  color: var(--near-black);
  box-shadow: rgba(0,0,0,.28) 0 18px 44px;
}
.music-panel h3 { margin-bottom: 8px; }
.music-panel p:last-child { margin-bottom: 0; }
.music-button { min-width: 190px; box-shadow: rgba(19, 138, 91, .28) 0 14px 30px; }
.music-button.is-playing { background: linear-gradient(135deg, var(--gold), #f1b44c); color: var(--near-black); font-weight: 900; }
.photo-testimony-section {
  background:
    linear-gradient(135deg, rgba(7, 48, 71, .82), rgba(15, 76, 92, .70)),
    url('assets/gallery/cross-light.jpg') center/cover no-repeat;
}

.contact-grid { grid-template-columns: repeat(4, 1fr); }
.contact-grid div { background: var(--dark-card); border-radius: 18px; padding: 24px; display: grid; gap: 9px; align-content: start; }
.contact-grid span { opacity: .9; }
.footer { display: flex; justify-content: space-between; gap: 20px; padding: 28px 7vw; background: #111; color: white; }
.footer p { margin: 0; font-size: 14px; }
.footer a { color: var(--bright-blue); }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: .1s; }
.delay-2 { transition-delay: .2s; }

@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 24px 26px;
    background: rgba(238, 241, 241, .98);
    color: #075985;
    font-size: 16px;
    box-shadow: rgba(0,0,0,.12) 0 18px 34px;
  }
  .nav-links a { width: 100%; padding: 8px 0; }
  .nav-links.open { display: flex; }
  .hero, .live-grid, .split-section, .service-details-grid { grid-template-columns: 1fr; }
  .welcome-strip { grid-template-columns: 1fr; bottom: 18px; width: min(520px, calc(100% - 28px)); }
  .welcome-strip a { padding: 14px 18px; border-right: 0; border-bottom: 1px solid rgba(7,81,120,.1); }
  .welcome-strip a:last-child { border-bottom: 0; }
  .video-control { display: none; }
  .quick-links, .cards-grid, .sermon-grid, .giving-cards, .contact-grid, .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid .gallery-feature { grid-row: auto; min-height: 260px; }
  .music-panel { grid-template-columns: 1fr; }
  .join-qr-card { max-width: 520px; }
}

@media (max-width: 640px) {
  .nav { height: 60px; padding: 0 max(14px, env(safe-area-inset-left)); }
  .nav-links { top: 60px; max-height: calc(100dvh - 60px); overflow-y: auto; }
  .brand-logo { width: 40px; height: 40px; flex-basis: 40px; }
  .section { padding: 68px 16px; }
  .hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 22px;
    padding: 92px 16px 32px;
    min-height: auto;
  }
  .welcome-strip {
    position: relative;
    left: auto;
    bottom: auto;
    transform: none;
    width: 100%;
    margin-top: 8px;
    border-radius: 18px;
  }
  .hero h1 { letter-spacing: -3px; font-size: clamp(58px, 17vw, 88px); }
  .hero-logo { width: 124px; height: 124px; margin-bottom: 12px; }
  .hero-tagline { font-size: clamp(20px, 6vw, 28px); }
  .hero-subtitle { font-size: 18px; }
  h1 { letter-spacing: -1.3px; }
  .quick-links, .cards-grid, .sermon-grid, .giving-cards, .ministry-list, .contact-grid, .gallery-grid { grid-template-columns: 1fr; }
  .quick-links a { padding: 18px 16px; }
  .service-details-card, .service-flyer-card { padding: 22px; }
  .service-flyer-actions .button { width: 100%; }
  .gallery-grid figure, .gallery-grid .gallery-feature { min-height: 235px; }
  .gallery-grid figcaption { border-radius: 14px; }
  .music-panel, .church-form, .service-panel, .program-card, .sermon-card, .give-card, .leader-card { padding: 22px; }
  .hero-actions { width: 100%; }
  .hero-actions .button, .service-actions .button, .payment-button, .music-button { width: 100%; }
  .join-qr-card,
  .service-qr-card { grid-template-columns: 72px 1fr; text-align: left; }
  .join-qr-card img,
  .service-qr-card img { max-width: 72px; margin: auto; }
  .event { grid-template-columns: 1fr; }
  .footer { flex-direction: column; }
  .chatbot-widget { top: 72px; right: 12px; bottom: auto; left: 12px; display: grid; justify-items: end; pointer-events: none; }
  .chatbot-toggle, .chatbot-panel { pointer-events: auto; }
  .chatbot-toggle { width: 52px; height: 52px; padding: 0; display: grid; place-items: center; font-size: 0; }
  .chatbot-toggle::before { content: "💬"; font-size: 22px; }
  .chatbot-panel { width: 100%; max-height: calc(100dvh - 90px); }
  .chatbot-messages { max-height: 34dvh; }
}


.chatbot-widget {
  position: fixed;
  top: 82px;
  right: 18px;
  bottom: auto;
  z-index: 1200;
  font-family: inherit;
}
.chatbot-toggle {
  border: 0;
  border-radius: 999px;
  padding: 14px 18px;
  background: linear-gradient(135deg, var(--green), var(--blue));
  color: white;
  font-weight: 800;
  box-shadow: var(--shadow);
  cursor: pointer;
}
.chatbot-panel {
  width: min(360px, calc(100vw - 28px));
  background: white;
  color: var(--near-black);
  border-radius: 22px;
  box-shadow: rgba(0,0,0,.28) 0 22px 70px;
  overflow: hidden;
  margin-bottom: 12px;
  border: 1px solid rgba(11,111,164,.22);
}
.chatbot-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  background: linear-gradient(135deg, #0f4c5c, #1f8a5b);
  color: white;
}
.chatbot-close {
  border: 0;
  background: transparent;
  color: white;
  font-size: 24px;
  cursor: pointer;
}
.chatbot-messages {
  min-height: 170px;
  max-height: 260px;
  overflow-y: auto;
  padding: 14px;
  display: grid;
  gap: 9px;
  background: #f6fbff;
}
.bot-message, .user-message {
  padding: 10px 12px;
  border-radius: 15px;
  line-height: 1.35;
  font-size: 14px;
}
.bot-message { background: #e8f7ff; justify-self: start; }
.user-message { background: #1f8a5b; color: white; justify-self: end; }
.chatbot-options {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 10px 14px;
  background: white;
}
.chatbot-options button {
  border: 1px solid rgba(19,138,91,.28);
  background: #f2fff8;
  border-radius: 999px;
  padding: 8px 10px;
  color: var(--green);
  font-weight: 700;
  cursor: pointer;
}
.chatbot-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 12px;
  background: white;
}
.chatbot-form input { min-width: 0; }
.chatbot-form button {
  border: 0;
  border-radius: 12px;
  padding: 0 14px;
  background: var(--blue);
  color: white;
  font-weight: 800;
  cursor: pointer;
}

.tagline {
  display: inline-flex;
  margin: 6px 0 0;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(246,196,83,.14);
  color: var(--bright-blue);
  opacity: 1;
  font-weight: 800;
}
.foundation-grid .program-card { min-height: 280px; }
.impact-section { position: relative; overflow: hidden; }
.impact-dashboard {
  max-width: 1180px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr) 1.2fr;
  gap: 16px;
  align-items: stretch;
}
.impact-card, .impact-ring {
  min-height: 190px;
  border-radius: 24px;
  padding: 24px;
  background: white;
  box-shadow: rgba(7, 48, 71, 0.09) 0 18px 42px;
  border: 1px solid rgba(11,111,164,.12);
}
.impact-card.primary { background: linear-gradient(135deg, var(--green), var(--blue)); color: white; }
.impact-card strong {
  display: block;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1;
  color: inherit;
  letter-spacing: -1.3px;
}
.impact-card span { display: block; margin-top: 14px; font-weight: 800; }
.impact-card small { display: block; margin-top: 10px; opacity: .84; line-height: 1.4; }
.time-card strong {
  font-size: clamp(54px, 9vw, 86px);
  line-height: .92;
  letter-spacing: -3px;
}
.time-card label {
  display: block;
  margin-top: 18px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.time-card select {
  width: 100%;
  margin-top: 10px;
  border: 1px solid rgba(11, 111, 164, .28);
  border-radius: 14px;
  background: #fffdf8;
  color: var(--near-black);
  font: inherit;
  font-weight: 800;
  padding: 12px 42px 12px 14px;
  cursor: pointer;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 22px) 50%, calc(100% - 15px) 50%;
  background-size: 7px 7px, 7px 7px;
  background-repeat: no-repeat;
}
.time-card select:focus {
  outline: 3px solid rgba(30, 132, 207, .22);
  border-color: var(--blue);
}
.time-card span.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;
}
.impact-ring {
  display: grid;
  place-items: center;
  color: white;
  background:
    radial-gradient(circle at center, #0f4c5c 0 36%, transparent 37%),
    conic-gradient(from 0deg, var(--green), var(--gold), var(--blue), var(--green));
  text-align: center;
}
.impact-ring div {
  width: 145px;
  height: 145px;
  border-radius: 50%;
  background: rgba(7, 48, 71, .90);
  display: grid;
  place-items: center;
  padding: 18px;
}
.impact-ring b { display: block; font-size: 26px; color: var(--bright-blue); }
.impact-ring em { font-size: 12px; font-style: normal; opacity: .9; }
.leadership-grid {
  max-width: 1180px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.leader-card {
  background: var(--light);
  border-radius: 24px;
  padding: 28px;
  box-shadow: rgba(7, 48, 71, 0.08) 0 18px 42px;
}
.leader-avatar {
  width: 78px;
  height: 78px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  color: white;
  font-weight: 900;
  font-size: 22px;
  background: linear-gradient(135deg, var(--green), var(--blue));
  margin-bottom: 22px;
}
.leader-role { color: var(--link-blue); opacity: 1; font-weight: 800; }
.team-strip {
  max-width: 1180px;
  margin: 22px auto 0;
  padding: 24px;
  border-radius: 22px;
  background: #fffdf6;
  box-shadow: rgba(7, 48, 71, 0.08) 0 14px 34px;
  line-height: 1.8;
}
.partner-band {
  max-width: 980px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.partner-band span {
  min-height: 120px;
  border-radius: 22px;
  padding: 22px;
  display: grid;
  place-items: center;
  text-align: center;
  font-weight: 900;
  color: white;
  background: linear-gradient(135deg, #0f4c5c, #075985);
}
.contact-grid a { color: var(--bright-blue); font-weight: 800; }
@media (max-width: 1050px) {
  .impact-dashboard { grid-template-columns: repeat(2, 1fr); }
  .impact-ring { grid-column: span 2; }
  .leadership-grid { grid-template-columns: 1fr; }
  .partner-band { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .impact-dashboard, .partner-band { grid-template-columns: 1fr; }
  .impact-ring { grid-column: auto; }
  .impact-card, .impact-ring { min-height: auto; }
  .time-card strong { font-size: clamp(42px, 14vw, 64px); letter-spacing: -2px; }
  .brand-name { max-width: min(62vw, 250px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .section-gallery { background-attachment: scroll; }
  .chatbot-widget { top: 72px; right: 12px; bottom: auto; left: 12px; display: grid; justify-items: end; pointer-events: none; }
  .chatbot-toggle, .chatbot-panel { pointer-events: auto; }
  .chatbot-toggle { width: 52px; height: 52px; padding: 0; display: grid; place-items: center; font-size: 0; }
  .chatbot-toggle::before { content: "💬"; font-size: 22px; }
  .chatbot-panel { width: 100%; max-height: calc(100dvh - 90px); }
  .chatbot-messages { max-height: 34dvh; }
}

@media (max-width: 380px) {
  .brand-name { max-width: 58vw; }
  .hero h1 { font-size: clamp(50px, 16vw, 68px); letter-spacing: -2px; }
  .hero-subtitle, p { font-size: 16px; }
  .welcome-strip strong { font-size: 17px; }
  .welcome-strip span { font-size: 13px; }
  .button { font-size: 16px; padding-inline: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
  .hero-video { display: none; }
  .reveal { opacity: 1; transform: none; }
}

.page-hero {
  min-height: 72vh;
  display: grid;
  place-items: center;
  padding: 132px 18px 82px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(7, 48, 71, .78), rgba(11, 111, 164, .58)), var(--page-bg, none) center/cover no-repeat;
  z-index: 0;
}
.about-page-hero { --page-bg: url('assets/gallery/cross-light.jpg'); }
.contact-page-hero { --page-bg: url('assets/gallery/church-community.jpg'); }
.page-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 980px;
  text-align: center;
  display: grid;
  justify-items: center;
}
.page-logo {
  width: clamp(122px, 16vw, 180px);
  height: clamp(122px, 16vw, 180px);
  object-fit: contain;
  margin-bottom: 18px;
  border-radius: 50%;
  filter: drop-shadow(0 16px 36px rgba(0,0,0,.42));
}
.page-hero h1 { font-size: clamp(52px, 8vw, 104px); }
.page-hero p { max-width: 820px; font-size: clamp(18px, 2vw, 23px); opacity: .94; }
.page-tagline { font-size: clamp(22px, 2.8vw, 34px) !important; line-height: 1.18; opacity: 1 !important; margin-bottom: 16px; }
.about-copy {
  max-width: 980px;
  margin: auto;
  display: grid;
  gap: 16px;
  padding: clamp(24px, 4vw, 42px);
  border-radius: 28px;
  background: var(--light);
  box-shadow: rgba(7, 48, 71, 0.08) 0 20px 46px;
}
.about-copy p { margin: 0; opacity: .95; }
.purpose-grid,
.contact-method-grid,
.teaching-grid {
  max-width: 1180px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.purpose-card,
.contact-method-card,
.teaching-grid div {
  border-radius: 24px;
  padding: 28px;
  background: white;
  box-shadow: rgba(7, 48, 71, 0.08) 0 18px 42px;
  border: 1px solid rgba(11,111,164,.12);
}
.purpose-card span,
.contact-method-card span { color: var(--link-blue); font-weight: 900; }
.purpose-card ul { margin: 18px 0 0; padding-left: 22px; line-height: 1.75; }
.contact-method-grid { grid-template-columns: repeat(3, 1fr); }
.contact-method-card {
  display: grid;
  gap: 10px;
  color: var(--near-black);
  transition: transform .2s, box-shadow .2s;
}
.contact-method-card:hover { transform: translateY(-4px); box-shadow: rgba(7, 48, 71, 0.14) 0 24px 52px; }
.contact-icon {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  display: inline-grid;
  place-items: center;
  color: white !important;
  font-size: 25px !important;
  font-weight: 900;
  line-height: 1;
  opacity: 1 !important;
  border: 2px solid rgba(255, 255, 255, .86);
  outline: 2px solid rgba(255, 209, 102, .24);
  text-shadow: 0 2px 6px rgba(7, 48, 71, .26);
  box-shadow: rgba(7, 48, 71, 0.18) 0 10px 22px, inset 0 1px 0 rgba(255,255,255,.34);
}
.icon-address { background: linear-gradient(135deg, #e8f7ff 0%, #0b6fa4 48%, #1f8a5b 100%); }
.icon-phone { background: linear-gradient(135deg, #dcfce7 0%, #1f8a5b 48%, #0f4c5c 100%); }
.icon-email { background: linear-gradient(135deg, #fff4cf 0%, #0b6fa4 45%, #075985 100%); font-family: Arial, sans-serif; font-size: 22px !important; letter-spacing: -2px; }
.icon-youtube { background: linear-gradient(135deg, #fff1f2 0%, #ff0000 48%, #991b1b 100%); }
.icon-instagram { background: linear-gradient(135deg, #fef3c7 0%, #833ab4 30%, #fd1d1d 66%, #fcb045 100%); }
.icon-facebook { background: linear-gradient(135deg, #dbeafe 0%, #1877f2 48%, #0b5ed7 100%); font-family: Arial, sans-serif; font-size: 28px !important; }
.contact-method-card strong { font-size: 22px; }
.contact-method-card p { margin: 0; }
.contact-method-card em { color: var(--link-blue); font-style: normal; font-weight: 900; }
.teaching-section,
.contact-action-section { text-align: center; }
.teaching-grid div { background: rgba(255,255,255,.1); color: white; border-color: rgba(255,255,255,.16); }
.teaching-grid strong { display: block; color: var(--bright-blue); margin-bottom: 10px; font-size: 20px; }
.teaching-grid span { line-height: 1.6; opacity: .94; }
.center-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

@media (max-width: 900px) {
  .purpose-grid, .contact-method-grid, .teaching-grid { grid-template-columns: 1fr; }
  .page-hero { min-height: auto; padding: 112px 16px 70px; }
}

@media (max-width: 640px) {
  .page-hero { padding: 96px 16px 58px; }
  .page-hero h1 { font-size: clamp(44px, 14vw, 68px); }
  .page-hero p { font-size: 17px; }
  .about-copy, .purpose-card, .contact-method-card, .teaching-grid div { padding: 22px; }
  .center-actions .button { width: 100%; }
}



/* Premium local-business polish: stronger first-screen CTA, older-customer readability, mobile-safe contact bar */
body {
  font-size: 17px;
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 209, 102, .18), transparent 30%),
    linear-gradient(180deg, #fffaf0 0%, #ffffff 34%, #eef8ff 100%);
}
.site-header {
  background: rgba(255, 253, 246, .94);
  border-bottom: 1px solid rgba(7, 89, 133, .14);
  box-shadow: 0 10px 30px rgba(7, 48, 71, .08);
}
.nav { color: #073047; }
.nav-links { gap: 16px; }
.nav-links a { font-size: 15px; }
.nav-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #073047 !important;
  background: #fff4cf;
  border: 1px solid rgba(183, 121, 0, .28);
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 950;
  box-shadow: rgba(183, 121, 0, .16) 0 10px 20px;
}
.nav-phone::before { content: "☎"; }
.nav-cta {
  border-radius: 999px;
  background: #075985;
  color: #fff !important;
  box-shadow: rgba(7, 89, 133, .28) 0 12px 26px;
}
.hero {
  min-height: 92vh;
  min-height: 92dvh;
  padding-top: 112px;
  padding-bottom: 150px;
}
.hero-video-overlay {
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 209, 102, .20), transparent 24%),
    linear-gradient(180deg, rgba(0,0,0,.30) 0%, rgba(7,48,71,.52) 44%, rgba(5,28,42,.92) 100%),
    linear-gradient(90deg, rgba(0,0,0,.70) 0%, rgba(0,0,0,.12) 52%, rgba(0,0,0,.62) 100%);
}
.hero-content {
  padding: clamp(18px, 3vw, 34px);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: clamp(26px, 3vw, 42px);
  background: linear-gradient(180deg, rgba(7,48,71,.24), rgba(7,48,71,.08));
  backdrop-filter: blur(2px);
}
.hero h1 { text-wrap: balance; }
.hero-subtitle {
  max-width: 800px;
  opacity: 1;
  font-weight: 520;
}
.hero-contact-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 20px auto 0;
  max-width: 900px;
}
.hero-contact-line span,
.hero-contact-line a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 15px;
  border-radius: 999px;
  background: rgba(255,255,255,.94);
  color: #073047;
  font-size: 16px;
  font-weight: 900;
  box-shadow: rgba(0,0,0,.16) 0 10px 24px;
}
.hero-contact-line a {
  background: linear-gradient(135deg, #ffd166, #f4b840);
  color: #102a43;
}
.button {
  min-height: 50px;
  padding: 13px 24px;
  font-weight: 900;
  letter-spacing: .005em;
}
.button-primary { background: linear-gradient(135deg, #075985, #0b6fa4); }
.button-gold { box-shadow: rgba(183, 121, 0, .28) 0 14px 30px; }
.quick-links {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8), rgba(7,48,71,.10) 0 20px 50px;
}
.quick-links a {
  color: #073047;
  border-bottom: 3px solid transparent;
}
.quick-links a:hover {
  color: #075985;
  border-bottom-color: #ffd166;
}
.section-heading p,
.service-details-card p,
.program-card p,
.sermon-card p,
.give-card span,
.contact-method-card p { opacity: 1; color: rgba(16, 42, 67, .86); }
.service-details-grid,
.giving-cards,
.contact-method-grid,
.gallery-grid { gap: 28px; }
.service-details-card,
.service-flyer-card,
.program-card,
.sermon-card,
.give-card,
.leader-card,
.contact-method-card {
  border-radius: 28px;
  box-shadow: rgba(7, 48, 71, .12) 0 18px 44px;
}
.mobile-sticky-cta { display: none; }
@media (max-width: 1120px) {
  .nav-phone { display: none; }
}
@media (max-width: 640px) {
  body { padding-bottom: calc(74px + env(safe-area-inset-bottom)); }
  .brand-name { max-width: 205px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mobile-sticky-cta {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    z-index: 1300;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 9px;
    border-radius: 22px;
    background: rgba(255,255,255,.96);
    box-shadow: rgba(7, 48, 71, .24) 0 12px 36px;
    border: 1px solid rgba(7, 89, 133, .16);
  }
  .mobile-sticky-cta a {
    min-height: 48px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: #075985;
    color: #fff;
    font-weight: 950;
    font-size: 15px;
  }
  .mobile-sticky-cta a:first-child { background: linear-gradient(135deg, #ffd166, #f4b840); color: #102a43; }
  .hero {
    min-height: calc(100dvh - 70px);
    padding: 80px 14px 24px;
    justify-content: start;
  }
  .hero-content {
    width: 100%;
    padding: 18px 14px;
    border-radius: 24px;
  }
  .hero-logo { width: 98px; height: 98px; margin-bottom: 8px; }
  .hero-kicker { font-size: 16px; margin-bottom: 8px; }
  .hero h1 { font-size: clamp(48px, 15vw, 64px); letter-spacing: -2.2px; margin-bottom: 12px; }
  .hero-tagline { font-size: clamp(19px, 5.7vw, 24px); margin-bottom: 10px; }
  .hero-subtitle { font-size: 16.5px; line-height: 1.42; }
  .hero-contact-line { gap: 8px; margin-top: 14px; }
  .hero-contact-line span,
  .hero-contact-line a {
    width: 100%;
    justify-content: center;
    font-size: 15px;
    min-height: 42px;
    padding: 9px 12px;
  }
  .hero-contact-line a { display: none; }
  .hero-actions { display: none; }
  .welcome-strip { margin-top: 12px; }
  .welcome-strip a { padding: 13px 16px; }
  .chatbot-widget { top: 72px; bottom: auto; }
}

/* Fix Foundation section visibility: bright, high-contrast text on dark worship background */
#foundation.programs-section {
  background:
    radial-gradient(circle at 92% 0%, rgba(255, 209, 102, .34), transparent 34%),
    linear-gradient(135deg, #062f46 0%, #0b5564 58%, #9a7105 100%);
}
#foundation .section-heading .eyebrow,
#foundation .eyebrow {
  color: #ffd166 !important;
  text-shadow: 0 2px 14px rgba(0,0,0,.48);
}
#foundation .section-heading h2 {
  color: #ffffff !important;
  text-shadow: 0 3px 24px rgba(0,0,0,.55);
}
#foundation .section-heading p {
  color: #ffffff !important;
  opacity: 1 !important;
  font-weight: 650;
  text-shadow: 0 2px 16px rgba(0,0,0,.58);
}
#foundation .program-card {
  background: linear-gradient(180deg, rgba(255,255,255,.97), rgba(255,250,235,.95));
  color: #102a43;
  border: 1px solid rgba(255, 209, 102, .45);
  box-shadow: rgba(0,0,0,.22) 0 22px 54px;
}
#foundation .program-card span {
  color: #8a5b00 !important;
  font-weight: 950;
}
#foundation .program-card h3 {
  color: #073047 !important;
  font-weight: 950;
}
#foundation .program-card p {
  color: #102a43 !important;
  opacity: 1 !important;
  font-weight: 560;
}

/* Business-readiness polish: explicit name, services, credibility, and contact clarity */
.hero-business-name {
  margin: 2px 0 8px;
  color: #ffffff;
  font-size: clamp(22px, 3.2vw, 42px);
  line-height: 1.05;
  font-weight: 1000;
  letter-spacing: .015em;
  text-transform: uppercase;
  text-shadow: 0 4px 24px rgba(0,0,0,.62);
}
.hero-kicker {
  color: #ffd166 !important;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.stats em {
  display: block;
  margin-top: 8px;
  color: #ffd166;
  font-style: normal;
  font-weight: 850;
  opacity: 1;
}
.contact-grid div {
  min-height: 188px;
}
.contact-grid strong {
  font-size: 18px;
}
.contact-grid span:last-child,
.contact-grid a {
  font-size: 16px;
  line-height: 1.45;
  opacity: 1;
  font-weight: 720;
}
@media (max-width: 640px) {
  .hero-business-name {
    font-size: clamp(18px, 6vw, 25px);
    line-height: 1.12;
    margin-bottom: 5px;
  }
  .hero-kicker {
    font-size: 13px;
    letter-spacing: .07em;
  }
  .contact-grid div { min-height: 0; }
}

/* Direct request form, WhatsApp action, and website inbox */
.form-helper {
  margin: 0;
  padding: 14px 16px;
  border-radius: 16px;
  background: #e8f7ff;
  color: #073047;
  font-weight: 750;
  line-height: 1.45;
}
.request-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.button-whatsapp {
  background: linear-gradient(135deg, #16a34a, #128c7e);
  color: #fff;
  box-shadow: rgba(18, 140, 126, .28) 0 14px 30px;
}
button[disabled] { opacity: .68; cursor: wait; }
.admin-inbox-section { padding-top: 118px; }
.admin-panel {
  max-width: 760px;
  margin: 0 auto 26px;
  display: grid;
  gap: 14px;
  padding: 24px;
  border-radius: 24px;
  background: #fffdf6;
  border: 1px solid rgba(7,89,133,.14);
  box-shadow: rgba(7,48,71,.10) 0 18px 42px;
}
.admin-panel label { display: grid; gap: 8px; font-weight: 800; }
.admin-table-wrap {
  max-width: 1180px;
  margin: auto;
  overflow-x: auto;
  border-radius: 24px;
  background: white;
  box-shadow: rgba(7,48,71,.10) 0 18px 42px;
}
.admin-table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
  color: #102a43;
}
.admin-table th, .admin-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(7,89,133,.12);
  text-align: left;
  vertical-align: top;
}
.admin-table th { background: #e8f7ff; color: #073047; font-weight: 950; }
.admin-help {
  max-width: 900px;
  margin: 28px auto 0;
  padding: 22px;
  border-radius: 22px;
  background: #fff4cf;
  color: #102a43;
}
@media (max-width: 640px) {
  .request-actions { grid-template-columns: 1fr; }
  .admin-inbox-section { padding-top: 92px; }
}
