/* God's Way Christian Baptist Church — shared styles */

:root {
  color-scheme: light dark;

  --bg: #EEF0FA;
  --bg-alt: #E0E4F5;
  --surface: #FFFFFF;
  --ink: #222B4C;
  --ink-soft: #5B6485;
  --ink-faint: #8891AC;
  --accent: #B98A4A;
  --accent-strong: #8E6630;
  --wine: #3B4C9C;
  --wine-strong: #2D3B7A;
  --border: #CDD3EC;
  --focus: #3B4C9C;

  --font-display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --font-body: 'Karla', 'Segoe UI', system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #171B2E;
    --bg-alt: #1F2440;
    --surface: #1C2038;
    --ink: #E4E7F7;
    --ink-soft: #AAB0D4;
    --ink-faint: #7B82A8;
    --accent: #E0B274;
    --accent-strong: #EFC98F;
    --wine: #8491DB;
    --wine-strong: #A3AEE6;
    --border: #343B5E;
    --focus: #8491DB;
  }
}

:root[data-theme="dark"] {
  --bg: #171B2E;
  --bg-alt: #1F2440;
  --surface: #1C2038;
  --ink: #E4E7F7;
  --ink-soft: #AAB0D4;
  --ink-faint: #7B82A8;
  --accent: #E0B274;
  --accent-strong: #EFC98F;
  --wine: #8491DB;
  --wine-strong: #A3AEE6;
  --border: #343B5E;
  --focus: #8491DB;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  padding-inline: 20px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  text-wrap: balance;
  margin: 0 0 0.5em;
  color: var(--ink);
}

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.05rem); }
h3 { font-size: 1.25rem; }

p { max-width: 62ch; }
p.wide { max-width: 72ch; }

a { color: inherit; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin-bottom: 0.9em;
}

.wrap {
  max-width: 1120px;
  margin-inline: auto;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding-block: 14px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}

.brand-logo-chip {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-logo {
  height: 44px;
  width: auto;
  display: block;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand-logo-chip {
    background: #FFFFFF;
    padding: 6px 12px;
    border-radius: 10px;
  }
}
:root[data-theme="dark"] .brand-logo-chip {
  background: #FFFFFF;
  padding: 6px 12px;
  border-radius: 10px;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; }
.brand-sub { font-size: 0.7rem; color: var(--ink-soft); letter-spacing: 0.03em; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  font-size: 0.92rem;
  font-weight: 500;
}

.site-nav a { text-decoration: none; color: var(--ink-soft); }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--ink); }

.nav-give {
  background: var(--wine);
  color: #FBF4ED !important;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 700;
}
.nav-give:hover { background: var(--wine-strong); }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

/* ---------- Hero ---------- */

.hero {
  padding-block: 64px 48px;
  position: relative;
  overflow: hidden;
}

.hero-arch {
  position: absolute;
  top: -40px;
  right: -60px;
  width: 260px;
  height: 340px;
  border-radius: 130px 130px 0 0;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  z-index: -1;
}

.hero-content { max-width: 680px; }

.hero h1 { margin-bottom: 0.4em; }

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.btn {
  display: inline-block;
  padding: 13px 24px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn-primary { background: var(--wine); color: #FBF4ED; }
.btn-primary:hover { background: var(--wine-strong); }

.btn-ghost { border-color: var(--border); color: var(--ink); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-strong); }

@media (prefers-reduced-motion: no-preference) {
  .btn:hover { transform: translateY(-1px); }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ---------- Info strip ---------- */

.info-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  margin-block: 8px 56px;
}

.info-item {
  flex: 1 1 220px;
  padding: 22px 26px;
  border-right: 1px solid var(--border);
}
.info-item:last-child { border-right: none; }

.info-label {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 700;
  margin-bottom: 6px;
}
.info-value { font-family: var(--font-display); font-size: 1.15rem; }

/* ---------- Sections ---------- */

section.block { padding-block: 56px; }
section.block.alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head { max-width: 680px; margin-bottom: 36px; }

/* ---------- Cards / grid ---------- */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 820px) { .grid-3 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card h3 { margin-bottom: 0; }
.card p { margin: 0; color: var(--ink-soft); }
.card .more { margin-top: auto; font-weight: 700; color: var(--accent-strong); text-decoration: none; font-size: 0.9rem; }

/* ---------- Pull quote ---------- */

.pull-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  max-width: 760px;
  line-height: 1.45;
  color: var(--ink);
  border-left: 3px solid var(--accent);
  padding-left: 24px;
  margin: 0;
}

/* ---------- Needs-content callouts ---------- */

.needs-content {
  border: 1.5px dashed var(--accent);
  background: color-mix(in srgb, var(--accent) 9%, var(--surface));
  border-radius: 14px;
  padding: 20px 22px;
}
.needs-content .tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-strong);
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.needs-content p { color: var(--ink-soft); margin: 0; }

.photo-placeholder {
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  border: 1.5px dashed var(--border);
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-faint);
  font-size: 0.85rem;
  text-align: center;
  padding: 16px;
}

/* ---------- Lists ---------- */

.plain-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.plain-list li {
  display: flex;
  gap: 14px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.plain-list li:last-child { border-bottom: none; }
.plain-list .bullet { color: var(--accent); font-weight: 700; flex-shrink: 0; }

/* ---------- Forms ---------- */

.form-grid { display: flex; flex-direction: column; gap: 18px; max-width: 520px; }
label { font-weight: 700; font-size: 0.88rem; display: block; margin-bottom: 6px; }
input, textarea {
  width: 100%;
  font: inherit;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
}
textarea { min-height: 130px; resize: vertical; }
input:focus-visible, textarea:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }

/* ---------- Map ---------- */

.map-frame {
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  width: 100%;
}
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  margin-top: 40px;
  padding-block: 44px 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-col p { font-size: 0.92rem; color: var(--ink-soft); margin: 0 0 8px; max-width: none; }
.footer-col a { text-decoration: none; }
.footer-col a:hover { color: var(--accent-strong); }
.footer-heading {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink-faint);
  margin-bottom: 10px;
}
.footer-col .brand-name { font-family: var(--font-display); font-size: 1.05rem; color: var(--ink); }

.footer-bottom {
  border-top: 1px solid var(--border);
  margin-top: 32px;
  padding-top: 18px;
  font-size: 0.8rem;
  color: var(--ink-faint);
}

/* ---------- Page header (non-home) ---------- */

.page-head { padding-block: 48px 40px; }
.page-head p { color: var(--ink-soft); }

/* ---------- Anchors offset for sticky header ---------- */
[id] { scroll-margin-top: 90px; }

hr.rule { border: none; border-top: 1px solid var(--border); margin: 40px 0; }
