:root {
  --navy: #1e3a8a;
  --navy-deep: #1b3480;
  --ink: #1e3a8a;
  --muted: #5a6fa8;
  --soft: #8a9ac4;
  --green: #16823f;
  --green-dark: #116a33;
  --bg: #f7f9fc;
  --tint: #eef5ff;
  --card: #ffffff;
  --line: #e3e9f5;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(30, 58, 138, 0.07);
  --container: 1320px;
  --script: "Lobster", cursive;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
section[id], footer[id] { scroll-margin-top: 94px; }
body {
  margin: 0;
  font-family: "Poppins", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }

.container { width: min(var(--container), 100% - 120px); margin-inline: auto; }
.script { font-family: var(--script); font-weight: 400; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  border-radius: 999px; padding: 6px 16px; font: inherit; font-size: 15px;
  border: 1px solid transparent; cursor: pointer; transition: background .15s, transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-dark); }
.btn-white { background: #fff; color: var(--navy); }
.btn-outline { background: #fff; color: var(--navy); border-color: var(--line); font-size: 14px; padding: 4px 10px; }
.btn-outline:hover { border-color: var(--navy); }
.btn svg { width: 20px; height: 20px; }

/* ---------- header ---------- */
.site-header { background: #fff; position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 94px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 70px; height: 70px; }
.brand span { font-family: var(--script); font-size: 24px; color: var(--navy); }
.nav { display: flex; align-items: center; gap: 44px; font-size: 15px; }
.nav a:not(.btn):hover { color: var(--green); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; color: var(--navy); cursor: pointer; }
.nav-toggle svg { width: 26px; height: 26px; }

/* ---------- hero ---------- */
.hero {
  position: relative; color: #fff; min-height: 655px; display: flex; align-items: center;
  background: var(--navy) center/cover no-repeat;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10, 20, 50, .55) 0%, rgba(10, 20, 50, .25) 60%, rgba(10, 20, 50, .15) 100%);
}
.hero .container { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.hero h1 { font-size: 64px; font-weight: 700; line-height: 1.15; }
.hero h1 .script { display: block; font-size: 62px; margin-top: 20px; }
.hero-lead { font-size: 18px; line-height: 1.6; max-width: 660px; margin-top: 36px; opacity: .95; }
.hero-actions { display: flex; gap: 20px; margin-top: 36px; flex-wrap: wrap; }
.hero-actions .btn { font-size: 19px; padding: 6px 22px; }
.scripture { justify-self: center; margin-top: 80px; }
.scripture .ref { font-family: var(--script); font-size: 19px; padding-bottom: 14px; border-bottom: 2px solid rgba(255,255,255,.85); display: inline-block; min-width: 290px; }
.scripture .text { font-family: var(--script); font-size: 19px; margin-top: 12px; }

/* ---------- sections ---------- */
.section { padding: 96px 0; }
.section.tint { background: var(--tint); }
.section-head h2 { font-size: 40px; font-weight: 700; color: var(--navy); }
.section-head p { color: var(--muted); font-size: 17px; margin-top: 18px; }
.section-head { margin-bottom: 56px; }
.section + .section:not(.tint) { padding-top: 40px; }

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

.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px; }

/* events */
.event { --pad: 32px; }
.event-top { display: flex; justify-content: space-between; align-items: center; }
.event time { font-size: 14px; font-weight: 600; color: var(--soft); }
.event .cal { width: 22px; height: 22px; color: var(--soft); }
.event-flier { display: block; aspect-ratio: 16 / 9; margin: calc(var(--pad) * -1) calc(var(--pad) * -1) 24px; border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; background: var(--tint); }
.event-flier img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.event-flier:hover img { transform: scale(1.03); }
.event h3 { font-size: 22px; font-weight: 600; margin-top: 30px; }
.event p { color: var(--muted); font-size: 16px; margin-top: 18px; }

/* icon tiles */
.icon-badge { width: 64px; height: 64px; border-radius: 50%; background: var(--tint); display: grid; place-items: center; color: var(--navy); }
.icon-badge svg { width: 28px; height: 28px; }
.feature h3 { font-size: 24px; font-weight: 600; margin-top: 26px; }
.feature p { color: var(--muted); font-size: 16px; line-height: 1.5; margin-top: 18px; }
.feature .btn { margin-top: 24px; }
.tint .card { box-shadow: 0 4px 16px rgba(30, 58, 138, .05); }

/* news */
.news { padding: 22px 24px; border: 1px solid var(--line); border-radius: 10px; box-shadow: none; }
.news-top { display: flex; justify-content: space-between; align-items: center; }
.badge { font-size: 11px; font-weight: 600; text-transform: uppercase; color: #fff; padding: 4px 10px; border-radius: 999px; }
.badge.green { background: var(--green); }
.badge.navy { background: var(--navy); }
.news-top time { font-size: 12px; color: var(--soft); }
.news h3 { font-size: 18px; font-weight: 600; margin-top: 18px; }
.news p { color: var(--muted); font-size: 14px; margin-top: 10px; }

/* service times */
.services-grid { align-items: start; }
.service-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.service-head h3 { font-size: 20px; font-weight: 600; }
.service-cal { width: 22px; height: 22px; color: var(--green); }
.service-day ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.service-day li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font-size: 15px; }
.service-time { font-weight: 600; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.service-name { color: var(--muted); text-align: right; }

/* sermons */
.yt-banner {
  background: var(--navy); color: #fff; border-radius: 12px; padding: 30px 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.yt-banner .left { display: flex; align-items: center; gap: 24px; }
.yt-banner .icon-badge { background: rgba(255,255,255,.1); color: #fff; width: 64px; height: 64px; }
.yt-banner h3 { font-size: 24px; font-weight: 600; }
.yt-banner p { font-size: 15px; opacity: .85; margin-top: 6px; }
.yt-banner .btn { padding: 12px 56px; font-size: 16px; }
.yt-banner + .sub-head { margin-top: 64px; }
.sub-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 28px; }
.sub-head h3 { font-size: 24px; font-weight: 600; }
.sub-head span { color: var(--green); font-size: 14px; }
.video-card { padding: 0; overflow: hidden; }
.thumb { aspect-ratio: 16 / 9.5; background: #e8eefb; display: grid; place-items: center; text-align: center; color: var(--muted); font-size: 14px; position: relative; }
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.play { width: 62px; height: 62px; border-radius: 50%; background: #fff; display: grid; place-items: center; margin: 0 auto 14px; box-shadow: var(--shadow); position: relative; }
.play svg { width: 22px; height: 22px; color: var(--navy); margin-left: 4px; }
.video-card .body { padding: 28px 32px 32px; }
.video-card h4, .audio-card h4 { font-size: 22px; font-weight: 600; margin: 0; }
.meta { color: var(--muted); font-size: 13px; margin-top: 8px; }
.video-card .btn, .audio-card .btn { margin-top: 24px; }
.audio-card .row { display: flex; gap: 20px; align-items: flex-start; }
.audio-card .icon-badge { width: 44px; height: 44px; flex: none; }
.audio-card .icon-badge svg { width: 20px; height: 20px; }
.empty { color: var(--muted); font-size: 15px; padding: 28px; text-align: center; border: 1px dashed var(--line); border-radius: var(--radius); background: #fff; }
.mt-64 { margin-top: 64px; }

/* giving */
.give { padding-top: 40px; }
.give-card {
  background: var(--navy); color: #fff; border-radius: var(--radius); padding: 44px 48px;
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center;
}
.give-copy h2 { font-size: 40px; font-weight: 700; }
.give-copy p { margin-top: 14px; font-size: 17px; line-height: 1.6; opacity: .88; max-width: 460px; }
.give-details { margin: 0; background: #fff; color: var(--navy); border-radius: 12px; padding: 26px 28px; display: grid; gap: 18px; }
.give-details dt { font-size: 13px; color: var(--muted); }
.give-details dd { margin: 4px 0 0; font-size: 19px; font-weight: 600; }
.give-details .acct dd { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.acct-no { font-size: 32px; font-weight: 700; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.copy-btn { font: inherit; font-size: 14px; font-weight: 600; color: #fff; background: var(--green); border: 0; border-radius: 999px; padding: 7px 16px; cursor: pointer; }
.copy-btn:hover { background: var(--green-dark); }
.copy-btn:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }

.projects.after-tithe { margin-top: 72px; }
.project h3 { font-size: 22px; font-weight: 600; }
.project-desc { color: var(--muted); font-size: 15px; line-height: 1.5; margin-top: 10px; }
.project dl { margin: 22px 0 0; display: grid; gap: 14px; }
.project dt { font-size: 13px; color: var(--muted); }
.project dd { margin: 3px 0 0; font-size: 16px; font-weight: 600; }
.project .acct-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.project .acct-no { font-size: 24px; color: var(--navy); }

/* groups */
.group h3 { font-size: 24px; font-weight: 600; margin-top: 28px; }
.group p { color: var(--muted); font-size: 15px; line-height: 1.5; margin-top: 14px; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy); color: #fff; padding: 140px 0 36px; }
.footer-grid { display: grid; grid-template-columns: 1fr auto auto; gap: 120px; }
.site-footer .script { font-size: 32px; }
.site-footer .addr { font-size: 14px; margin-top: 18px; }
.site-footer .about { font-size: 16px; line-height: 1.5; max-width: 420px; margin-top: 36px; opacity: .9; }
.socials { display: flex; gap: 18px; margin-top: 34px; }
.socials svg { width: 24px; height: 24px; }
.site-footer h4 { font-size: 18px; font-weight: 600; margin: 8px 0 22px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; font-size: 15px; opacity: .9; }
.site-footer a:hover { text-decoration: underline; }
.footer-bottom { display: flex; justify-content: space-between; margin-top: 140px; font-size: 13px; opacity: .9; }

/* ---------- flash messages ---------- */
.flash { background: #e9f7ee; color: var(--green-dark); border-bottom: 1px solid #c8ebd4; text-align: center; padding: 14px 16px; font-size: 15px; }

/* ---------- join page ---------- */
.join-page { min-height: 100vh; display: grid; place-items: center; padding: 40px 16px; }
.join-shell { width: min(702px, 100%); background: var(--bg); border-radius: 40px; padding: 64px 100px 60px; border: 1px solid var(--line); }
.join-shell .back { display: inline-flex; gap: 6px; align-items: center; color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.join-shell .back svg { width: 16px; height: 16px; }
.join-title { text-align: center; }
.join-title h1 { font-size: 34px; font-weight: 700; }
.join-title .script { font-size: 50px; display: block; margin-top: 8px; }
.join-rule { display: flex; justify-content: space-between; margin: 28px 0 48px; }
.join-rule span { width: 200px; height: 1.5px; background: var(--navy); }
.join-card { background: #fff; border-radius: 12px; padding: 32px; box-shadow: 0 10px 30px rgba(30, 58, 138, .08); }
.join-card .fields { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 16px; }
.join-card .full { grid-column: 1 / -1; }
.join-card label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 10px; white-space: nowrap; }
.join-card label .opt { color: #22b573; font-weight: 400; font-size: 12px; margin-left: 2px; }
.join-card input, .join-card select {
  width: 100%; height: 40px; border: 0; border-radius: 8px; padding: 0 14px;
  background: var(--bg); font: inherit; font-size: 15px; color: var(--ink);
  box-shadow: 0 2px 4px rgba(30, 58, 138, .25);
}
.join-card input:focus, .join-card select:focus { outline: 2px solid var(--navy); }
.join-card .errorlist { list-style: none; padding: 0; margin: 6px 0 0; color: #c0392b; font-size: 13px; }
.join-submit {
  width: 100%; margin-top: 26px; height: 54px; border-radius: 999px; border: 0;
  background: var(--green); color: #fff; font: inherit; font-size: 17px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: 12px; cursor: pointer;
}
.join-submit:hover { background: var(--green-dark); }
.join-submit svg { width: 22px; height: 22px; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .container { width: min(var(--container), 100% - 64px); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 52px; }
  .hero h1 .script { font-size: 50px; }
  .footer-grid { gap: 60px; }
}

@media (max-width: 860px) {
  .container { width: calc(100% - 32px); }
  .site-header .container { height: 70px; }
  section[id], footer[id] { scroll-margin-top: 70px; }
  .brand img { width: 46px; height: 46px; }
  .brand span { font-size: 18px; }
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 70px; left: 0; right: 0; background: #fff;
    flex-direction: column; align-items: flex-start; gap: 0; padding: 8px 16px 20px;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; width: 100%; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 16px; }

  .hero { min-height: 0; padding: 34px 0 30px; }
  .hero .container { grid-template-columns: 1fr; gap: 0; }
  .hero h1 { font-size: 34px; line-height: 1.1; }
  .hero h1 .script { font-size: 34px; margin-top: 4px; }
  .hero-lead { font-size: 16px; margin-top: 18px; }
  .hero-actions { gap: 14px; margin-top: 20px; }
  .hero-actions .btn { font-size: 16px; padding: 6px 16px; }
  .scripture {
    justify-self: stretch; margin-top: 22px; padding: 14px 16px 18px;
    border: 1px solid rgba(255,255,255,.35); border-radius: 12px; background: rgba(255,255,255,.1); backdrop-filter: blur(4px);
  }
  .scripture .ref { min-width: 0; display: block; font-size: 16px; padding-bottom: 10px; }
  .scripture .text { font-size: 17px; line-height: 1.6; }

  .section { padding: 48px 0; }
  .section + .section:not(.tint) { padding-top: 24px; }
  .section-head { margin-bottom: 30px; }
  .section-head h2 { font-size: 30px; line-height: 1.35; }
  .section-head p { font-size: 15px; margin-top: 10px; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; gap: 24px; }
  .card { padding: 22px; }
  .event { --pad: 22px; }
  .event h3 { font-size: 21px; margin-top: 24px; }
  .event p { font-size: 15px; margin-top: 14px; }
  .feature h3, .group h3 { font-size: 21px; margin-top: 18px; }
  .feature p, .group p { font-size: 15px; }
  .news h3 { font-size: 19px; }
  .news p { font-size: 15px; }

  .yt-banner { flex-direction: column; align-items: stretch; padding: 22px; }
  .yt-banner + .sub-head { margin-top: 40px; }
  .yt-banner .left { flex-direction: column; align-items: flex-start; gap: 18px; }
  .yt-banner .btn { justify-content: center; padding: 12px; }
  .sub-head h3 { font-size: 20px; }
  .mt-64 { margin-top: 40px; }

  .give-card { grid-template-columns: 1fr; gap: 24px; padding: 28px 22px; }
  .projects.after-tithe { margin-top: 48px; }
  .give-copy h2 { font-size: 30px; }
  .give-copy p { font-size: 15px; }
  .give-details { padding: 20px; }
  .acct-no { font-size: 27px; }
  .site-footer { padding: 48px 0 30px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .site-footer .script { font-size: 28px; }
  .site-footer .about { margin-top: 18px; }
  .socials { margin-top: 20px; }
  .site-footer h4 { margin: 0 0 14px; }
  .site-footer ul { gap: 14px; }
  .footer-bottom { flex-direction: column; gap: 14px; margin-top: 40px; }

  .join-shell { padding: 40px 24px 28px; border-radius: 32px; }
  .join-title h1 { font-size: 24px; }
  .join-title .script { font-size: 34px; line-height: 1.5; }
  .join-rule { justify-content: center; margin: 14px 0 32px; }
  .join-rule span:last-child { display: none; }
  .join-rule span { width: 120px; }
  .join-card { padding: 24px; }
  .join-card .fields { grid-template-columns: 1fr; }
}

/* Privacy, terms and error pages: running text in the join-page card */
.prose { font-size: 15px; line-height: 1.7; }
.prose h2 { font-size: 18px; font-weight: 600; margin: 28px 0 8px; }
.prose p, .prose ul { margin: 0 0 12px; }
.prose ul { padding-left: 20px; }
.prose a:not(.btn) { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.prose .updated { color: var(--muted); font-size: 13px; }
.prose .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }

/* Join form tick boxes (consent, parent or guardian consent) */
.join-card label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; white-space: normal; line-height: 1.5; margin: 0; }
.join-card label.check input { width: 18px; height: 18px; flex: none; margin-top: 2px; box-shadow: none; accent-color: var(--green); }
.join-card label.check a { color: var(--navy); text-decoration: underline; }
.join-card .guardian-note { margin: 4px 0 -8px; font-size: 14px; color: var(--muted); }
