:root {
  --ink: #101820;
  --ink-soft: #2d3943;
  --green: #0f5132;
  --green-deep: #0a3a25;
  --gold: #d6a928;
  --gold-light: #f4e4ae;
  --paper: #fffdf8;
  --mist: #f3f5f2;
  --line: #dfe4df;
  --white: #ffffff;
  --danger: #9f2f2f;
  --success: #247044;
  --shadow: 0 18px 45px rgba(16, 24, 32, .10);
  --shadow-sm: 0 10px 24px rgba(16, 24, 32, .08);
  --radius: 16px;
  --radius-sm: 10px;
  --container: 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;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

.skip-link {
  position: fixed; left: 12px; top: -80px; z-index: 9999;
  background: var(--gold); color: var(--ink); padding: 10px 14px; font-weight: 800;
}
.skip-link:focus { top: 12px; }
.container { width: min(calc(100% - 32px), var(--container)); margin-inline: auto; }
.narrow { width: min(calc(100% - 32px), 820px); margin-inline: auto; }
.section { padding: 88px 0; }
.section-sm { padding: 58px 0; }
.section-muted { background: var(--mist); }
.section-dark { background: var(--ink); color: var(--white); }
.eyebrow {
  margin: 0 0 14px; color: var(--green); font-size: .78rem; font-weight: 900;
  letter-spacing: .16em; text-transform: uppercase;
}
.section-dark .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: #f3cf68; }
.section-title { margin: 0; font-size: clamp(2rem, 4vw, 3.65rem); line-height: 1.08; letter-spacing: -.035em; }
.section-intro { max-width: 700px; margin: 18px 0 0; color: #65717a; font-size: 1.06rem; }
.section-dark .section-intro { color: #c8d0d5; }
.text-center { text-align: center; }
.text-center .section-intro { margin-inline: auto; }
.muted { color: #68747d; }
.gold { color: var(--gold); }

.site-header {
  position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,.96);
  border-bottom: 1px solid rgba(223,228,223,.9); backdrop-filter: blur(14px);
  transition: box-shadow .2s ease;
}
.site-header.is-scrolled { box-shadow: 0 8px 24px rgba(16,24,32,.09); }
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand img { width: 54px; height: 54px; object-fit: contain; }
.brand-copy { line-height: 1.05; }
.brand-copy strong { display: block; font-size: 1rem; letter-spacing: -.02em; }
.brand-copy span { display: block; margin-top: 6px; color: #68747d; font-size: .72rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.desktop-nav { display: flex; align-items: center; gap: 4px; }
.nav-link { padding: 11px 12px; color: #3b4750; font-size: .91rem; font-weight: 800; border-bottom: 2px solid transparent; }
.nav-link:hover, .nav-link.active { color: var(--green); border-color: var(--gold); }
.header-give { margin-left: 6px; }
.menu-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--white); align-items: center; justify-content: center;
}
.menu-toggle span, .menu-toggle::before, .menu-toggle::after {
  content: ""; width: 20px; height: 2px; background: var(--ink); display: block; transition: .2s ease;
}
.menu-toggle span { margin: 4px 0; }
.menu-toggle.is-open span { opacity: 0; }
.menu-toggle.is-open::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle.is-open::after { transform: translateY(-6px) rotate(-45deg); }
.mobile-nav { display: none; border-top: 1px solid var(--line); padding: 12px 16px 20px; background: var(--white); }
.mobile-nav.is-open { display: grid; }
.mobile-nav a { padding: 12px 4px; border-bottom: 1px solid var(--line); font-weight: 800; }
.mobile-nav .btn { margin-top: 12px; border-bottom: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px;
  padding: 12px 20px; border: 1px solid transparent; border-radius: 10px; font-weight: 900;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--gold); color: var(--ink); }
.btn-primary:hover { background: #e2bb48; }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: var(--green-deep); }
.btn-outline { border-color: rgba(255,255,255,.55); color: var(--white); background: rgba(255,255,255,.06); }
.btn-outline-dark { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-block { width: 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; color: var(--green); font-weight: 900; }
.link-arrow::after { content: "→"; transition: transform .18s ease; }
.link-arrow:hover::after { transform: translateX(4px); }

.hero {
  position: relative; min-height: 680px; display: grid; align-items: center; color: var(--white); overflow: hidden;
  background: var(--ink);
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 42%; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,17,22,.94) 0%, rgba(8,17,22,.80) 44%, rgba(8,17,22,.28) 76%, rgba(8,17,22,.40) 100%); }
.hero-content { position: relative; z-index: 1; max-width: 720px; padding: 92px 0 104px; }
.hero h1 { margin: 0; font-size: clamp(2.8rem, 6vw, 5.7rem); line-height: .99; letter-spacing: -.055em; }
.hero h1 span { color: #f3cf68; }
.hero p { max-width: 640px; margin: 24px 0 0; color: #e3e9ec; font-size: clamp(1.05rem, 1.8vw, 1.28rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-note { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 42px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.24); }
.hero-note div { min-width: 150px; }
.hero-note strong { display: block; color: #f3cf68; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; }
.hero-note span { display: block; margin-top: 5px; font-weight: 800; }

.page-hero { position: relative; overflow: hidden; padding: 96px 0 84px; background: var(--ink); color: var(--white); }
.page-hero::after { content: ""; position: absolute; right: -110px; bottom: -120px; width: 360px; height: 360px; border: 56px solid rgba(214,169,40,.14); transform: rotate(16deg); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { max-width: 850px; margin: 0; font-size: clamp(2.5rem, 5vw, 4.8rem); line-height: 1.02; letter-spacing: -.045em; }
.page-hero p { max-width: 740px; margin: 20px 0 0; color: #d0d8dd; font-size: 1.1rem; }

.service-bar { position: relative; z-index: 2; margin-top: -38px; }
.service-grid { display: grid; grid-template-columns: repeat(3,1fr); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); }
.service-item { padding: 24px 28px; border-right: 1px solid var(--line); }
.service-item:last-child { border-right: 0; }
.service-item span { display: block; color: var(--green); font-size: .72rem; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.service-item strong { display: block; margin-top: 7px; font-size: 1.04rem; }

.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.split.reverse { grid-template-columns: .95fr 1.05fr; }
.media-frame { position: relative; }
.media-frame img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.media-frame::before { content: ""; position: absolute; left: -18px; top: 18px; width: 80%; height: 96%; border: 2px solid var(--gold); border-radius: var(--radius); z-index: -1; }
.copy h2 { margin: 0; font-size: clamp(2rem,4vw,3.5rem); line-height: 1.08; letter-spacing: -.035em; }
.copy p { color: #5f6b74; font-size: 1.04rem; }
.copy .btn { margin-top: 14px; }
.quote { margin: 26px 0 0; padding: 22px 24px; border-left: 4px solid var(--gold); background: var(--mist); font-weight: 750; }

.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.card.flat { box-shadow: none; }
.card h3 { margin: 0; font-size: 1.35rem; line-height: 1.2; }
.card p { margin: 12px 0 0; color: #65717a; }
.card .link-arrow { margin-top: 20px; }
.icon-box { width: 50px; height: 50px; display: grid; place-items: center; margin-bottom: 20px; border: 1px solid #e3c66a; background: #fff8df; color: var(--green); border-radius: 10px; font-size: 1.3rem; font-weight: 900; }
.image-card { overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.image-card img { width: 100%; height: 230px; object-fit: cover; }
.image-card-body { padding: 24px; }
.image-card h3 { margin: 0; font-size: 1.35rem; }
.image-card p { color: #65717a; }

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.step { counter-increment: step; background: var(--white); padding: 30px; }
.step::before { content: "0" counter(step); display: block; color: var(--gold); font-size: .8rem; font-weight: 900; letter-spacing: .14em; }
.step h3 { margin: 12px 0 0; }
.step p { color: #65717a; }

.cta-band { background: var(--green-deep); color: var(--white); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 46px 0; }
.cta-inner h2 { margin: 0; font-size: clamp(1.8rem,3.5vw,3rem); line-height: 1.1; }
.cta-inner p { margin: 10px 0 0; color: #d8e4dd; }
.cta-actions { display: flex; gap: 10px; flex-shrink: 0; }

.list-check { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.list-check li { position: relative; padding-left: 28px; }
.list-check li::before { content: "✓"; position: absolute; left: 0; color: var(--gold); font-weight: 900; }

.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 850; font-size: .9rem; }
.field input, .field textarea, .field select {
  width: 100%; border: 1px solid #cbd3ce; border-radius: 10px; background: #fff; padding: 13px 14px; color: var(--ink); outline: none;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--green); box-shadow: 0 0 0 4px rgba(15,81,50,.11); }
.field-note { color: #718079; font-size: .82rem; }
.hp-field { position: absolute !important; left: -9999px !important; }
.alert { padding: 14px 16px; border-radius: 10px; margin-bottom: 18px; font-weight: 700; }
.alert-success { background: #eaf7ef; color: var(--success); border: 1px solid #b9dfc7; }
.alert-error { background: #fff0f0; color: var(--danger); border: 1px solid #efc6c6; }

.contact-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: start; }
.info-panel { background: var(--ink); color: var(--white); border-radius: var(--radius); padding: 32px; }
.info-panel h2 { margin-top: 0; }
.info-list { display: grid; gap: 22px; margin-top: 26px; }
.info-list div { padding-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,.13); }
.info-list div:last-child { border-bottom: 0; padding-bottom: 0; }
.info-list span { display: block; color: #f3cf68; font-size: .72rem; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.info-list strong, .info-list a { display: block; margin-top: 7px; }

.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.filter-group { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-btn { border: 1px solid var(--line); background: var(--white); color: var(--ink); border-radius: 9px; padding: 10px 14px; font-weight: 850; }
.filter-btn.active { background: var(--ink); color: var(--white); border-color: var(--ink); }
.search-box { min-width: min(100%, 300px); }
.search-box input { width: 100%; border: 1px solid var(--line); border-radius: 9px; padding: 11px 13px; }
.event-meta { display: grid; gap: 7px; margin-top: 16px; color: #66727a; font-size: .92rem; }
.badge { display: inline-flex; padding: 5px 9px; border-radius: 999px; font-size: .7rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.badge-upcoming { background: #e8f5ed; color: #23653e; }
.badge-past { background: #f4eeee; color: #8d3b3b; }

.modal { position: fixed; inset: 0; z-index: 2000; display: none; align-items: center; justify-content: center; padding: 24px; }
.modal.is-open { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(5,12,16,.78); }
.modal-card { position: relative; width: min(100%, 720px); max-height: 88vh; overflow: auto; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); }
.modal-card img { width: 100%; max-height: 340px; object-fit: cover; }
.modal-body { padding: 28px; }
.modal-close { position: absolute; right: 14px; top: 14px; width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgba(255,255,255,.95); font-size: 1.5rem; }

.sermon-card { display: grid; grid-template-columns: .9fr 1.1fr; overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.sermon-media { min-height: 280px; background: #0c151b; }
.sermon-media iframe { width: 100%; height: 100%; min-height: 280px; border: 0; }
.sermon-placeholder { height: 100%; min-height: 280px; display: grid; place-items: center; color: #f3cf68; font-size: 3rem; }
.sermon-body { padding: 30px; }
.sermon-body h2 { margin: 0; }
.meta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; color: #6b767e; font-size: .9rem; }
.audio-player { width: 100%; margin-top: 20px; }

.featured-post { display: grid; grid-template-columns: 1.05fr .95fr; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.featured-post img { width: 100%; height: 100%; min-height: 420px; object-fit: cover; }
.featured-copy { padding: 42px; display: flex; flex-direction: column; justify-content: center; }
.featured-copy h2 { margin: 0; font-size: clamp(2rem,3.4vw,3.1rem); line-height: 1.07; }
.post-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.post-card img { width: 100%; height: 220px; object-fit: cover; }
.post-card-body { padding: 24px; }
.post-card h3 { margin: 0; }
.article-shell { width: min(calc(100% - 32px), 920px); margin: 0 auto; }
.article-card { margin-top: -48px; position: relative; z-index: 2; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(26px,5vw,58px); box-shadow: var(--shadow); }
.article-card h1 { margin-top: 0; font-size: clamp(2.4rem,5vw,4.6rem); line-height: 1.02; letter-spacing: -.045em; }
.article-image { width: 100%; max-height: 520px; object-fit: cover; border-radius: 12px; margin: 28px 0; }
.prose { color: #344149; font-size: 1.05rem; }
.prose p { margin: 1.15em 0; }
.comments { margin-top: 36px; }
.comment { padding: 18px 0; border-bottom: 1px solid var(--line); }
.comment-head { display: flex; justify-content: space-between; gap: 14px; font-size: .86rem; }
.comment p { margin-bottom: 0; }

.give-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; }
.give-card { border: 1px solid var(--line); border-top: 5px solid var(--gold); border-radius: var(--radius); padding: 32px; background: var(--white); box-shadow: var(--shadow-sm); }
.give-card h2 { margin-top: 0; }
.pay-detail { display: grid; grid-template-columns: 120px 1fr; border-top: 1px solid var(--line); padding: 14px 0; }
.pay-detail span { color: #6c787f; }
.copy-btn { border: 1px solid var(--line); background: var(--mist); border-radius: 8px; padding: 7px 10px; font-weight: 800; }

.empty-state { padding: 44px; text-align: center; background: var(--white); border: 1px dashed #c9d0cc; border-radius: var(--radius); }
.empty-state h2, .empty-state h3 { margin-top: 0; }
.toast { position: fixed; right: 22px; bottom: 22px; z-index: 3000; max-width: 360px; padding: 14px 18px; border-radius: 10px; background: var(--ink); color: var(--white); box-shadow: var(--shadow); opacity: 0; transform: translateY(20px); pointer-events: none; transition: .22s ease; }
.toast.show { opacity: 1; transform: translateY(0); }
.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }

.site-footer { background: #0a1218; color: #d8e0e4; }
.footer-main { padding: 66px 0 42px; display: grid; grid-template-columns: 1.35fr .8fr .9fr 1fr; gap: 34px; }
.footer-brand img { width: 72px; height: 72px; object-fit: contain; background: white; border-radius: 10px; padding: 4px; }
.footer-brand p { max-width: 330px; color: #aeb9bf; }
.footer-title { margin: 0 0 18px; color: #f3cf68; font-size: .8rem; letter-spacing: .13em; text-transform: uppercase; }
.footer-links { display: grid; gap: 10px; }
.footer-links a:hover { color: #f3cf68; }
.footer-bottom { padding: 20px 0; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; gap: 20px; color: #93a0a7; font-size: .86rem; }

@media (max-width: 980px) {
  .desktop-nav { display: none; }
  .menu-toggle { display: block; }
  .hero { min-height: 620px; }
  .hero-media::after { background: rgba(8,17,22,.74); }
  .split, .split.reverse, .contact-layout, .featured-post, .sermon-card { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .footer-main { grid-template-columns: repeat(2,1fr); }
  .featured-post img { min-height: 320px; max-height: 420px; }
}

@media (max-width: 720px) {
  .container, .narrow, .article-shell { width: min(calc(100% - 24px), var(--container)); }
  .section { padding: 68px 0; }
  .header-inner { min-height: 70px; }
  .brand img { width: 48px; height: 48px; }
  .brand-copy strong { font-size: .92rem; }
  .brand-copy span { font-size: .63rem; }
  .hero { min-height: 610px; }
  .hero-content { padding: 72px 0 82px; }
  .hero h1 { font-size: clamp(2.65rem,13vw,4.6rem); }
  .hero-actions .btn { width: 100%; }
  .hero-note { gap: 16px; }
  .page-hero { padding: 72px 0 66px; }
  .service-bar { margin-top: 0; }
  .service-grid { grid-template-columns: 1fr; }
  .service-item { border-right: 0; border-bottom: 1px solid var(--line); }
  .service-item:last-child { border-bottom: 0; }
  .split { gap: 36px; }
  .grid-2, .grid-3, .grid-4, .steps, .give-grid, .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .cta-inner, .footer-bottom { align-items: flex-start; flex-direction: column; }
  .cta-actions { width: 100%; flex-direction: column; }
  .cta-actions .btn { width: 100%; }
  .footer-main { grid-template-columns: 1fr; }
  .toolbar { align-items: stretch; }
  .search-box { width: 100%; }
  .featured-copy { padding: 28px; }
  .form-card, .give-card, .card { padding: 24px; }
  .pay-detail { grid-template-columns: 1fr; gap: 4px; }
}
