/* Beauty Behind Gospel — v2 */
:root {
  --paper: #f6f2ec;
  --paper-2: #efe9e1;
  --white: #fffdfa;
  --ink: #121018;
  --ink-2: #1d1a26;
  --navy: #1c2150;
  --muted: #5f5a68;
  --muted-light: rgba(255, 253, 250, .7);
  --line: #e2dbd1;
  --line-dark: rgba(255, 253, 250, .14);
  --royal: #5b2c8f;        /* royal purple accent */
  --royal-light: #b28ee0;  /* the same purple, lightened for dark backgrounds */
  --ok: #1f7a4d;
  --err: #b42318;
  --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --sans: 'Geist', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1200px;
  --r: 18px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.65; color: var(--ink); background: var(--paper); }
img, video { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.02; letter-spacing: -.01em; margin: 0 0 .45em; }
h1 { font-size: clamp(3rem, 8vw, 6.6rem); }
h2 { font-size: clamp(2.4rem, 5.2vw, 4.4rem); }
h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
h4 { font-family: var(--sans); font-size: 1rem; font-weight: 600; margin: 0 0 .3em; }
em { font-style: italic; }
h1 em, h2 em, h3 em { font-style: italic; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.label { display: inline-flex; align-items: center; gap: 10px; font-size: .74rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 18px; }
.label::before { content: ''; width: 28px; height: 2px; background: var(--royal); }
.lead { font-size: 1.2rem; line-height: 1.55; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.hp { position: absolute; left: -9999px; }
.accent-text { color: var(--royal); }
.dark .accent-text { color: var(--royal-light); }
.dark .label::before, .hero .label::before, .sunday-card .label::before { background: var(--royal-light); }
section { padding: 110px 0; position: relative; }
@media (max-width: 700px) { section { padding: 72px 0; } }
.dark { background: var(--ink); color: var(--white); }
.dark .muted, .dark .lead { color: var(--muted-light); }
.tint { background: var(--paper-2); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6em; padding: .9em 1.6em; border-radius: 999px; border: 1.5px solid var(--ink); background: var(--ink); color: var(--white); font: 500 .98rem/1.2 var(--sans); text-decoration: none; cursor: pointer; transition: background .2s, color .2s, transform .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--white); }
.dark .btn { background: var(--white); color: var(--ink); border-color: var(--white); }
.dark .btn-line { background: transparent; color: var(--white); border-color: rgba(255,253,250,.5); }
.dark .btn-line:hover { background: var(--white); color: var(--ink); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.link-arrow { font-weight: 500; text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 2px; }
.link-arrow::after { content: ' →'; }
:focus-visible { outline: 3px solid var(--royal-light); outline-offset: 3px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(246, 242, 236, .9); backdrop-filter: saturate(1.4) blur(12px); }
.site-header::before { content: ''; display: block; height: 3px; background: var(--royal); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; max-width: 1320px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 42px; height: 42px; object-fit: contain; }
.brand span { font-family: var(--serif); font-size: 1.45rem; line-height: 1; }
.nav { display: flex; align-items: center; gap: 24px; }
.nav a { text-decoration: none; font-size: .94rem; color: var(--ink); }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1.5px; }
.nav .btn { padding: .65em 1.2em; color: var(--white); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }
@media (max-width: 1080px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; top: 79px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 24px 24px; display: none; }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.1rem; }
  .nav .btn { margin-top: 16px; }
}

/* Home hero */
.hero { position: relative; min-height: min(92vh, 860px); display: flex; align-items: flex-end; color: var(--white); overflow: hidden; background: var(--ink); }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .62; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18,16,24,.1) 0%, rgba(18,16,24,.35) 45%, rgba(18,16,24,.92) 100%); }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 340px; gap: 48px; align-items: end; padding-bottom: 72px; padding-top: 160px; }
.hero h1 { max-width: 12ch; }
.hero .lead { color: rgba(255,253,250,.82); max-width: 44ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.sunday-card { background: rgba(255,253,250,.1); border: 1px solid rgba(255,253,250,.2); backdrop-filter: blur(14px); border-radius: var(--r); padding: 26px; }
.sunday-card .label { color: var(--white); }
.sunday-card dl { margin: 0; display: grid; gap: 14px; }
.sunday-card dt { font-size: .82rem; color: rgba(255,253,250,.7); }
.sunday-card dd { margin: 0; font-family: var(--serif); font-size: 1.9rem; line-height: 1.1; }
.sunday-card p { margin: 16px 0 0; font-size: .9rem; color: rgba(255,253,250,.75); }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } }

/* Page hero */
.page-hero { padding: 120px 0 72px; }
.page-hero h1 { max-width: 14ch; }
.page-hero .lead { max-width: 56ch; }
.page-hero.dark { position: relative; overflow: hidden; }
.page-hero-img { width: 100%; height: clamp(280px, 48vw, 560px); object-fit: cover; }

/* Grids */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split.wide-left { grid-template-columns: 1.2fr 1fr; }
.split.reverse > :first-child { order: 2; }
@media (max-width: 900px) { .split, .split.wide-left { grid-template-columns: 1fr; gap: 40px; } .split.reverse > :first-child { order: 0; } }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.photo { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--r); }
.photo-wide { aspect-ratio: 3/2; }
.head-row { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 56px; }
.head-row > div { max-width: 680px; }

/* Big mission statement */
.statement { font-family: var(--serif); font-size: clamp(2.2rem, 5.5vw, 4.8rem); line-height: 1.05; letter-spacing: -.01em; }
.verse { margin-top: 28px; font-size: 1.1rem; color: var(--muted); }
.verse cite { display: block; font-style: normal; font-weight: 600; margin-top: 6px; color: var(--ink); }

/* Weekly rhythm */
.week { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-dark); }
@media (max-width: 900px) { .week { grid-template-columns: 1fr; } }
.week > div { padding: 32px 28px 32px 0; border-bottom: 1px solid var(--line-dark); }
.week .day { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,253,250,.6); }
.week h3 { margin: 10px 0 6px; }
.week .time { font-weight: 500; }
.week p { color: var(--muted-light); font-size: .95rem; margin: 10px 0 0; }

/* Service cards (services page) */
.svc { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: center; padding: 56px 0; border-top: 1px solid var(--line); }
.svc:nth-child(even) > :first-child { order: 2; }
.svc img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--r); }
.svc .when { display: inline-block; font-weight: 500; padding: .35em .9em; border-radius: 999px; background: var(--white); border: 1px solid var(--line); margin-bottom: 18px; }
@media (max-width: 800px) { .svc { grid-template-columns: 1fr; gap: 24px; } .svc:nth-child(even) > :first-child { order: 0; } }

/* Declaration */
.declaration { display: grid; gap: 0; max-width: 820px; }
.declaration .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--line-dark); }
.declaration .call { font-family: var(--serif); font-size: 1.7rem; line-height: 1.15; }
.declaration .resp { font-family: var(--serif); font-size: 1.7rem; line-height: 1.15; font-style: italic; }
.declaration .resp.long { font-family: var(--sans); font-style: normal; font-size: .95rem; line-height: 1.6; color: var(--muted-light); }
.declaration small { display: block; font-family: var(--sans); font-style: normal; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,253,250,.5); margin-bottom: 6px; }
@media (max-width: 640px) { .declaration .pair { grid-template-columns: 1fr; gap: 8px; } }

/* People */
.leaders { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px 24px; }
@media (max-width: 900px) { .leaders { grid-template-columns: repeat(2, 1fr); } }
.leaders img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--r); margin-bottom: 14px; filter: saturate(.9); }
.leaders h4 { font-family: var(--serif); font-weight: 400; font-size: 1.45rem; line-height: 1.1; margin-bottom: 6px; }
.leaders p { font-size: .9rem; color: var(--muted); margin: 0; }
.ministries { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
@media (max-width: 900px) { .ministries { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .ministries { grid-template-columns: 1fr; } }
.ministry { padding: 28px 28px 32px 0; border-bottom: 1px solid var(--line); }
.ministry h3 { font-size: 1.6rem; margin-bottom: 10px; }
.ministry p { font-size: .95rem; color: var(--muted); margin-bottom: 14px; }
.ministry .leads { font-size: .85rem; }
.ministry .leads b { font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-size: .7rem; color: var(--muted); display: block; margin-bottom: 2px; }

/* Beliefs */
.beliefs { list-style: none; counter-reset: b; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; }
@media (max-width: 800px) { .beliefs { grid-template-columns: 1fr; } }
.beliefs li { counter-increment: b; display: grid; grid-template-columns: 56px 1fr; gap: 12px; padding: 22px 0; border-top: 1px solid var(--line); }
.beliefs li::before { content: counter(b, decimal-leading-zero); font-family: var(--serif); font-size: 1.8rem; line-height: 1; }

/* Mission projects */
.project { background: var(--white); border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); }
.project img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.project .body { padding: 22px; }
.project .where { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.project h3 { font-size: 1.6rem; margin: 6px 0 8px; }
.project p { font-size: .95rem; color: var(--muted); margin: 0; }

/* Video */
.video { position: relative; aspect-ratio: 16/9; background: #000; border-radius: var(--r); overflow: hidden; }
.video iframe, .video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }

/* Social row */
.socials { display: flex; gap: 12px; flex-wrap: wrap; }
.social { display: inline-flex; align-items: center; gap: 10px; padding: .75em 1.2em; border-radius: 999px; border: 1.5px solid var(--line-dark); text-decoration: none; font-weight: 500; }
.social:hover { background: rgba(255,253,250,.08); }
.social svg { width: 20px; height: 20px; }
.light .social { border-color: var(--line); }

/* Giving */
.bank { display: grid; grid-template-columns: auto 1fr; gap: 14px 32px; padding: 32px; border-radius: var(--r); background: var(--white); border: 1px solid var(--line); }
.bank dt { color: var(--muted); }
.bank dd { margin: 0; font-family: var(--serif); font-size: 1.8rem; line-height: 1; letter-spacing: .02em; }

/* Forms */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-size: .9rem; font-weight: 500; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .row { grid-template-columns: 1fr; } }
input:not([type]), input[type=text], input[type=email], input[type=tel], select, textarea { width: 100%; font: inherit; padding: .8em 1em; border: 1.5px solid var(--line); border-radius: 12px; background: var(--white); color: var(--ink); }
input:focus, textarea:focus { outline: none; border-color: var(--ink); }
textarea { min-height: 150px; resize: vertical; }
.alert { padding: 14px 16px; border-radius: 12px; }
.alert-ok { background: #e2f3ea; color: var(--ok); }
.alert-err { background: #fde8e6; color: var(--err); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 36px; }
@media (max-width: 560px) { .card { padding: 24px; } }

/* Footer */
.site-footer { background: var(--ink); color: var(--muted-light); padding: 88px 0 28px; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-verse { font-family: var(--serif); font-size: clamp(1.8rem, 3.6vw, 2.8rem); line-height: 1.15; color: var(--white); max-width: 22ch; margin-bottom: 64px; }
.footer-verse cite { display: block; font-family: var(--sans); font-style: normal; font-size: .9rem; color: var(--muted-light); margin-top: 16px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-top: 40px; border-top: 1px solid var(--line-dark); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { color: var(--white); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-brand img { width: 44px; }
.footer-brand span { font-family: var(--serif); font-size: 1.5rem; color: var(--white); }
.footer-base { margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line-dark); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; }
.footer-base::before { content: ''; display: none; }
