/* ============================================================
   Ebenezer Baptist Church — stylesheet
   Palette:  paper #F7F4EC · ink #202B3A · gold #B8863E · sage #5F7354
   Type:     Fraunces (display) / Work Sans (body)
   ============================================================ */

:root {
  --paper: #F7F4EC;
  --paper-tint: #EFEADC;
  --ink: #202B3A;
  --ink-soft: #4B5568;
  --gold: #B8863E;
  --gold-deep: #96692B;
  --sage: #5F7354;
  --mist: #E1DACB;
  --white: #FFFFFF;
  --error: #A6432F;

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

  --max-width: 1120px;
  --radius: 14px;
  --shadow-soft: 0 20px 60px -30px rgba(32, 43, 58, 0.35);
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 600;
}
h1 { font-size: clamp(2.5rem, 5vw + 1rem, 4.25rem); font-weight: 500; }
h2 { font-size: clamp(1.75rem, 2vw + 1.2rem, 2.5rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; color: var(--ink-soft); }
a { color: var(--gold-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--white);
  padding: 0.75em 1.25em;
  z-index: 100;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

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

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

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

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 244, 236, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--mist);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.wordmark {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
}
.wordmark:hover { text-decoration: none; color: var(--gold-deep); }

.primary-nav { display: flex; align-items: center; gap: 28px; }
.primary-nav a { color: var(--ink-soft); font-size: 0.95rem; font-weight: 500; }
.primary-nav a:hover { color: var(--ink); text-decoration: none; }
.nav-cta {
  background: var(--ink);
  color: var(--white) !important;
  padding: 10px 20px;
  border-radius: 999px;
  transition: background 0.2s ease;
}
.nav-cta:hover { background: var(--gold-deep); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); }

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--paper);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-bottom: 1px solid var(--mist);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .primary-nav.open { max-height: 400px; }
  .primary-nav a { padding: 16px 24px; border-top: 1px solid var(--mist); }
  .nav-cta { border-radius: 0; text-align: center; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 110px 0 90px; }
.hero-rays {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: repeating-conic-gradient(
    from 0deg at 50% -30%,
    rgba(184, 134, 62, 0.10) 0deg 6deg,
    transparent 6deg 18deg
  );
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 0%, transparent 75%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; text-align: center; max-width: 760px; margin: 0 auto; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold-deep);
  margin-bottom: 18px;
}
.hero h1 { margin-bottom: 24px; }
.accent-gold { color: var(--gold-deep); }
.accent-sage { color: var(--sage); }
.hero-lede { font-size: 1.2rem; max-width: 560px; margin: 0 auto 36px; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--ink); color: var(--white); }
.btn-primary:hover { background: var(--gold-deep); box-shadow: var(--shadow-soft); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn-ghost:hover { border-color: var(--gold-deep); color: var(--gold-deep); }

/* ---------- Sections ---------- */
.section { padding: 90px 0; }
.section-tint { background: var(--paper-tint); }
.section-narrow { max-width: 700px; margin-left: auto; margin-right: auto; }
.section-eyebrow {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold-deep);
  margin-bottom: 14px;
}
.gospel-colors-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
}
.gospel-colors-list li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--mist);
}
.gospel-colors-list li:first-child {
  border-top: 1px solid var(--mist);
}
.gospel-colors-list li::before {
  content: "";
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  align-self: center;
  border-radius: 50%;
  background: var(--swatch);
  border: 1px solid rgba(32, 43, 58, 0.15); /* keeps the white dot visible */
}
.gospel-colors-list strong {
  color: var(--ink);
}
.gospel-colors-list .gospel-item {
  flex: 1;
}
.gospel-colors-list blockquote {
  margin: 8px 0 0;
  padding-left: 14px;
  border-left: 2px solid var(--swatch);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.gospel-colors-list blockquote cite {
  display: block;
  margin-top: 4px;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.8rem;
  color: var(--gold-deep);
  letter-spacing: 0.02em;
}
.fade-in { opacity: 0; transform: translateY(16px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-in.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Pastor's note ---------- */
.pastor-note {
  background: var(--white);
  border-radius: var(--radius);
  padding: 48px 52px;
  box-shadow: var(--shadow-soft);
  position: relative;
}
.pastor-note::before {
  content: "";
  position: absolute;
  top: 0; left: 32px;
  width: 64px; height: 4px;
  background: var(--gold);
  border-radius: 0 0 4px 4px;
}
.pastor-note p { font-family: var(--font-display); font-size: 1.1rem; color: var(--ink); line-height: 1.7; }
.pastor-salutation {
  font-style: italic;
  color: var(--ink-soft) !important;
  font-family: var(--font-body) !important;
  font-size: 1rem !important;
}
.pastor-sign { margin-top: 28px; display: flex; flex-direction: column; }
.pastor-name { font-family: var(--font-display); font-size: 1.2rem; color: var(--ink); }
.pastor-role {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
@media (max-width: 640px) { .pastor-note { padding: 32px 24px; } }

/* ---------- Values ---------- */
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.value { text-align: center; }
.value svg { width: 40px; height: 40px; color: var(--gold-deep); margin-bottom: 16px; }
.value h3 { margin-bottom: 8px; }
.value p { font-size: 0.95rem; margin-bottom: 0; }
@media (max-width: 760px) { .values-grid { grid-template-columns: 1fr; gap: 44px; } }

/* ---------- Service times ---------- */
.service-times { margin: 0; border-top: 1px solid var(--mist); }
.service-times > div { display: flex; justify-content: space-between; padding: 18px 0; border-bottom: 1px solid var(--mist); }
.service-times dt { font-weight: 600; color: var(--ink); }
.service-times dd { margin: 0; color: var(--ink-soft); font-variant-numeric: tabular-nums; }

/* ---------- Location ---------- */
.location-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; align-items: start; }
.location-details address { font-style: normal; color: var(--ink-soft); margin-bottom: 16px; line-height: 1.7; }
.map-embed { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft); line-height: 0; }
.map-embed iframe { width: 100%; height: 380px; border: 0; display: block; }
@media (max-width: 800px) { .location-grid { grid-template-columns: 1fr; } }

/* ---------- Contact form ---------- */
form#contact-form { max-width: 560px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; color: var(--ink); }
.field input, .field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--mist);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--white);
  color: var(--ink);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold-deep); }
.field textarea { resize: vertical; min-height: 120px; }
.field-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 14px; font-size: 0.9rem; min-height: 1.2em; }
.form-status[data-state="ok"] { color: var(--sage); }
.form-status[data-state="error"] { color: var(--error); }
button[type="submit"] { border: none; cursor: pointer; font-family: var(--font-body); }
button[type="submit"]:disabled { opacity: 0.6; cursor: not-allowed; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.75); padding: 48px 0; }
.footer-inner { text-align: center; }
.footer-inner .wordmark { color: var(--white); font-size: 1.1rem; margin-bottom: 10px; display: block; }
.footer-inner p { color: rgba(255,255,255,0.65); margin-bottom: 6px; font-size: 0.9rem; }
.copyright { margin-top: 14px; font-size: 0.8rem; color: rgba(255,255,255,0.45); }
