/* ===========================================================
   Goodness Gospel Outreach — public site styles
   Palette: deep dusk navy, warm gold, rust, cream, sage
   Type: Fraunces (display serif) + Work Sans (body sans)
   =========================================================== */

:root {
  --navy: #1C2A44;
  --navy-deep: #131D30;
  --gold: #C68A3D;
  --gold-light: #E4B36C;
  --cream: #F6F1E7;
  --paper: #FBF8F2;
  --charcoal: #231F1A;
  --rust: #9A4B2E;
  --sage: #5F7A5A;
  --line: #E1D8C4;

  --serif: "Fraunces", Georgia, serif;
  --sans: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.6;
  font-size: 17px;
}

img { max-width: 100%; display: block; }

a { color: var(--rust); text-decoration: none; }
a:hover { color: var(--navy); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 600;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; max-width: 62ch; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.75em 1.6em;
  border-radius: 3px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-primary { background: var(--gold); color: var(--navy-deep); }
.btn-primary:hover { background: var(--gold-light); color: var(--navy-deep); }
.btn-outline { border-color: var(--paper); color: var(--paper); background: transparent; }
.btn-outline:hover { background: var(--paper); color: var(--navy); }
.btn-dark { background: var(--navy); color: var(--paper); }
.btn-dark:hover { background: var(--navy-deep); color: var(--gold-light); }

/* ---------- Header / Nav ---------- */
header.site-header {
  background: var(--navy);
  border-bottom: 3px solid var(--gold);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  max-width: var(--max);
  margin: 0 auto;
}
.logo {
  font-family: var(--serif);
  color: var(--paper);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.2px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-img { height: 48px; width: auto; display: block; }
.logo-text span { color: var(--gold-light); }
@media (max-width: 480px) {
  .logo-text { display: none; }
  .logo-img { height: 42px; }
}

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 26px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
nav.main-nav a {
  color: var(--paper);
  font-size: 0.95rem;
  font-weight: 500;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
}
nav.main-nav a:hover,
nav.main-nav a.active {
  color: var(--gold-light);
  border-bottom-color: var(--gold-light);
}

#nav-give { color: var(--gold-light); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--paper);
  font-size: 1.6rem;
  cursor: pointer;
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  nav.main-nav {
    display: none;
    width: 100%;
    order: 3;
  }
  nav.main-nav.open { display: block; }
  nav.main-nav ul { flex-direction: column; gap: 0; }
  nav.main-nav a { display: block; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .nav-wrap { flex-wrap: wrap; }
}

/* ---------- Hero ---------- */
.hero {
  background: var(--navy);
  color: var(--paper);
  padding: 84px 0 96px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 340px;
  height: 340px;
  border: 1px solid rgba(230,180,110,0.25);
  border-radius: 50%;
}
.hero-inner { max-width: 640px; }
.hero-eyebrow {
  color: var(--gold-light);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  margin-bottom: 18px;
  padding-left: 18px;
  border-left: 3px solid var(--gold);
}
.hero h1 { color: var(--paper); }
.hero p.lead { color: #D9DEE8; font-size: 1.1rem; max-width: 52ch; }
.hero-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-alt { background: var(--paper); }
.section-navy { background: var(--navy); color: var(--paper); }
.section-navy h2 { color: var(--paper); }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head .kicker {
  font-family: var(--serif);
  font-style: italic;
  color: var(--rust);
  font-size: 1rem;
  margin-bottom: 6px;
  display: block;
}

/* ---------- Grids / Cards ---------- */
.grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.card-body { padding: 20px 22px; flex: 1; display: flex; flex-direction: column; }
.card-body .meta { font-size: 0.85rem; color: var(--rust); font-weight: 600; margin-bottom: 6px; }
.card-body h3 { margin-bottom: 8px; }
.card-body p { font-size: 0.95rem; margin-bottom: 14px; }
.card-body .btn { margin-top: auto; align-self: flex-start; }

/* Testimony cards get a quieter, quote-like treatment */
.testimony-card {
  background: var(--paper);
  border-left: 3px solid var(--sage);
  padding: 24px 26px;
}
.testimony-card p { font-style: italic; font-family: var(--serif); font-size: 1.05rem; color: var(--navy); }
.testimony-card .who { font-family: var(--sans); font-style: normal; font-weight: 600; font-size: 0.9rem; color: var(--rust); }

/* ---------- Forms ---------- */
form.stack { max-width: 560px; }
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--navy);
}
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 0.7em 0.8em;
  border: 1.5px solid var(--line);
  border-radius: 3px;
  font-family: var(--sans);
  font-size: 1rem;
  background: var(--paper);
  color: var(--charcoal);
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
  border-color: var(--gold);
}
.field textarea { min-height: 130px; resize: vertical; }
.radio-row { display: flex; gap: 20px; }
.radio-row label { display: flex; align-items: center; gap: 6px; font-weight: 500; }
.radio-row input { width: auto; }

/* Honeypot field: invisible to real visitors, bots often fill every field */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
}

.alert {
  padding: 14px 18px;
  border-radius: 3px;
  margin-bottom: 20px;
  font-size: 0.95rem;
}
.alert-success { background: #E7EFE4; border: 1px solid var(--sage); color: #3C5239; }
.alert-error { background: #F6E4DC; border: 1px solid var(--rust); color: var(--rust); }

/* ---------- Donate ---------- */
.donate-box {
  background: var(--navy);
  color: var(--paper);
  border-radius: 6px;
  padding: 32px;
  border: 1px solid var(--gold);
}
.donate-box h3 { color: var(--gold-light); }
.donate-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  font-size: 0.95rem;
}
.donate-row strong { color: var(--gold-light); }

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--navy-deep);
  color: #C7CCD8;
  padding: 52px 0 28px;
  font-size: 0.9rem;
}
footer.site-footer .grid { grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
footer.site-footer h4 { color: var(--gold-light); font-size: 1rem; margin-bottom: 14px; }
footer.site-footer ul { list-style: none; padding: 0; margin: 0; }
footer.site-footer li { margin-bottom: 8px; }
footer.site-footer a { color: #C7CCD8; }
footer.site-footer a:hover { color: var(--gold-light); }
.footer-bottom {
  max-width: var(--max);
  margin: 36px auto 0;
  padding: 20px 24px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.82rem;
  color: #8B93A6;
}
@media (max-width: 700px) {
  footer.site-footer .grid { grid-template-columns: 1fr; }
}

/* ---------- Page header (non-home pages) ---------- */
.page-head {
  background: var(--navy);
  color: var(--paper);
  padding: 56px 0;
  border-bottom: 3px solid var(--gold);
}
.page-head h1 { color: var(--paper); margin-bottom: 6px; }
.page-head p { color: #D9DEE8; }

/* ---------- Books store ---------- */
.book-card .price { font-family: var(--serif); font-size: 1.3rem; color: var(--rust); font-weight: 600; margin-bottom: 10px; }

/* ---------- Utility ---------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.small { font-size: 0.85rem; color: #6B6459; }
