/* ============================================================
   Churches.ai — Shared Stylesheet
   Aesthetic: Editorial authority. Ministry meets precision.
   Fonts: Playfair Display (headings) + DM Sans (body)
   Colors: Deep navy, warm gold, off-white, charcoal
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=DM+Sans:wght@300;400;500;600&family=DM+Mono:wght@400;500&display=swap');

:root {
  --navy:    #0F1F38;
  --navy-l:  #162b4d;
  --gold:    #C9943A;
  --gold-l:  #E8B55A;
  --gold-dim: rgba(201,148,58,0.15);
  --white:   #F8F5EF;
  --off:     #E4DDD0;
  --dim:     #8A8070;
  --body:    #3D3530;
  --border:  rgba(201,148,58,0.2);
  --shadow:  0 4px 24px rgba(15,31,56,0.12);
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; font-size:16px; }

body {
  background: var(--white);
  color: var(--body);
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ── TYPOGRAPHY ─────────────────────────────────────── */
h1,h2,h3,h4 {
  font-family: 'Playfair Display', serif;
  color: var(--navy);
  line-height: 1.2;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.6rem); font-weight: 600; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }
p  { font-size: 1.05rem; color: var(--body); }

em { font-style: italic; color: var(--gold); }
strong { font-weight: 600; color: var(--navy); }

a { color: var(--gold); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold-l); }

/* ── LAYOUT ─────────────────────────────────────────── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }
section { padding: 80px 0; }
section.tight { padding: 48px 0; }

/* ── NAV ─────────────────────────────────────────────── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--navy);
  border-bottom: 1px solid rgba(201,148,58,0.25);
}
.nav-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem; font-weight: 700;
  color: var(--white); text-decoration: none;
  letter-spacing: -0.01em;
}
.nav-logo span { color: var(--gold); }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a {
  font-size: 0.875rem; font-weight: 500;
  color: rgba(248,245,239,0.7);
  text-decoration: none; transition: color .2s;
  letter-spacing: 0.03em; text-transform: uppercase;
}
.nav-links a:hover { color: var(--white); }
.nav-cta {
  background: var(--gold) !important;
  color: var(--navy) !important;
  padding: 8px 20px; border-radius: 4px;
  font-weight: 600 !important;
}
.nav-cta:hover { background: var(--gold-l) !important; }
.nav-mobile-btn {
  display: none; background: none; border: none;
  cursor: pointer; padding: 8px;
}
.nav-mobile-btn span {
  display: block; width: 22px; height: 2px;
  background: var(--white); margin: 4px 0; border-radius: 2px;
}

/* ── HERO ─────────────────────────────────────────────── */
.hero {
  background: var(--navy);
  padding: 100px 0 80px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(201,148,58,0.08) 0%, transparent 60%);
  pointer-events: none;
}
.hero-rule {
  width: 48px; height: 3px;
  background: var(--gold); margin-bottom: 24px;
}
.hero-eyebrow {
  font-size: 0.8rem; font-weight: 600;
  color: var(--gold); letter-spacing: 0.12em;
  text-transform: uppercase; margin-bottom: 20px;
}
.hero h1 { color: var(--white); margin-bottom: 24px; }
.hero h1 em { color: var(--gold); font-style: italic; }
.hero-sub {
  font-size: 1.15rem; color: rgba(248,245,239,0.72);
  max-width: 580px; margin-bottom: 40px; line-height: 1.75;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ── BUTTONS ─────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 4px;
  font-size: 0.95rem; font-weight: 600;
  text-decoration: none; transition: all .2s;
  cursor: pointer; border: none; font-family: 'DM Sans', sans-serif;
}
.btn-primary {
  background: var(--gold); color: var(--navy);
}
.btn-primary:hover { background: var(--gold-l); color: var(--navy); }
.btn-outline {
  background: transparent;
  border: 1.5px solid rgba(248,245,239,0.35);
  color: var(--white);
}
.btn-outline:hover {
  border-color: var(--gold); color: var(--gold);
}
.btn-navy {
  background: var(--navy); color: var(--white);
}
.btn-navy:hover { background: var(--navy-l); color: var(--white); }

/* ── CARDS ─────────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 32px;
  transition: box-shadow .2s, transform .2s;
}
.card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.card-tag {
  font-size: 0.75rem; font-weight: 600;
  color: var(--gold); letter-spacing: 0.1em;
  text-transform: uppercase; margin-bottom: 12px;
}
.card-title { margin-bottom: 12px; }
.card-body { font-size: 0.975rem; color: var(--dim); line-height: 1.7; }

/* ── STAT BLOCK ──────────────────────────────────────── */
.stat-block { text-align: center; padding: 32px 24px; }
.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 700; color: var(--navy);
  line-height: 1; margin-bottom: 8px;
}
.stat-number span { color: var(--gold); }
.stat-label {
  font-size: 0.9rem; color: var(--dim);
  font-weight: 500; letter-spacing: 0.02em;
}

/* ── DIVIDER ─────────────────────────────────────────── */
.divider {
  border: none; border-top: 1px solid var(--border);
  margin: 0;
}
.section-eyebrow {
  font-size: 0.78rem; font-weight: 600;
  color: var(--gold); letter-spacing: 0.12em;
  text-transform: uppercase; margin-bottom: 16px;
  display: flex; align-items: center; gap: 10px;
}
.section-eyebrow::before {
  content: ''; display: block;
  width: 24px; height: 2px; background: var(--gold);
}

/* ── QUOTE BLOCK ─────────────────────────────────────── */
.quote-block {
  border-left: 3px solid var(--gold);
  padding: 20px 28px;
  background: var(--gold-dim);
  border-radius: 0 6px 6px 0;
  margin: 32px 0;
}
.quote-block p {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem; font-style: italic;
  color: var(--navy); line-height: 1.65;
}
.quote-attr {
  font-size: 0.85rem; color: var(--dim);
  margin-top: 12px; font-weight: 500;
}

/* ── GUIDE CARD ──────────────────────────────────────── */
.guide-card {
  border: 1px solid var(--border);
  border-radius: 8px; overflow: hidden;
  transition: box-shadow .2s, transform .2s;
  background: var(--white);
}
.guide-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.guide-card-header {
  background: var(--navy);
  padding: 24px 28px;
}
.guide-card-tag {
  font-size: 0.72rem; font-weight: 600;
  color: var(--gold); letter-spacing: 0.1em;
  text-transform: uppercase; margin-bottom: 10px;
}
.guide-card-title {
  color: var(--white); font-size: 1.25rem;
  font-family: 'Playfair Display', serif;
  font-weight: 600; line-height: 1.3;
}
.guide-card-body { padding: 24px 28px; }
.guide-card-desc {
  font-size: 0.95rem; color: var(--dim);
  line-height: 1.7; margin-bottom: 20px;
}
.guide-card-meta {
  font-size: 0.8rem; color: var(--dim);
  display: flex; gap: 16px; flex-wrap: wrap;
}
.guide-card-meta span { display: flex; align-items: center; gap: 4px; }

/* ── GRID LAYOUTS ────────────────────────────────────── */
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }

/* ── FORM ────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
label {
  display: block; font-size: 0.875rem; font-weight: 500;
  color: var(--navy); margin-bottom: 6px;
}
input, textarea, select {
  width: 100%; padding: 12px 16px;
  border: 1.5px solid rgba(15,31,56,0.2);
  border-radius: 4px; font-family: 'DM Sans', sans-serif;
  font-size: 1rem; color: var(--body);
  background: var(--white);
  transition: border-color .2s;
}
input:focus, textarea:focus, select:focus {
  outline: none; border-color: var(--gold);
}
textarea { resize: vertical; min-height: 120px; }

/* ── CALLOUT ─────────────────────────────────────────── */
.callout {
  background: var(--navy);
  border-radius: 10px;
  padding: 48px;
  text-align: center;
  position: relative; overflow: hidden;
}
.callout::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(201,148,58,0.1) 0%, transparent 65%);
}
.callout h2 { color: var(--white); position: relative; margin-bottom: 16px; }
.callout p { color: rgba(248,245,239,0.7); position: relative; margin-bottom: 28px; }

/* ── FOOTER ──────────────────────────────────────────── */
footer {
  background: var(--navy);
  border-top: 1px solid rgba(201,148,58,0.2);
  padding: 48px 0 32px;
}
.footer-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 24px;
}
.footer-top {
  display: flex; justify-content: space-between;
  align-items: flex-start; gap: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(201,148,58,0.15);
  flex-wrap: wrap;
}
.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem; font-weight: 700;
  color: var(--white); margin-bottom: 8px;
}
.footer-logo span { color: var(--gold); }
.footer-tagline { font-size: 0.875rem; color: rgba(248,245,239,0.5); }
.footer-links { display: flex; gap: 40px; flex-wrap: wrap; }
.footer-col h5 {
  font-size: 0.75rem; font-weight: 600;
  color: var(--gold); letter-spacing: 0.1em;
  text-transform: uppercase; margin-bottom: 12px;
  font-family: 'DM Sans', sans-serif;
}
.footer-col a {
  display: block; font-size: 0.875rem;
  color: rgba(248,245,239,0.6);
  margin-bottom: 8px; transition: color .2s;
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  padding-top: 24px;
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 12px;
}
.footer-copy { font-size: 0.8rem; color: rgba(248,245,239,0.35); }
.footer-mission { font-size: 0.8rem; color: rgba(201,148,58,0.6); font-style: italic; }

/* ── DATA TABLE ──────────────────────────────────────── */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  background: var(--navy); color: var(--white);
  padding: 14px 20px; text-align: left;
  font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  font-family: 'DM Sans', sans-serif;
}
.data-table td {
  padding: 14px 20px; border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--gold-dim); }
.data-highlight { font-weight: 600; color: var(--gold); }

/* ── BREADCRUMB ──────────────────────────────────────── */
.breadcrumb {
  font-size: 0.8rem; color: var(--dim);
  margin-bottom: 32px; display: flex; gap: 8px; align-items: center;
}
.breadcrumb a { color: var(--gold); }
.breadcrumb span { color: var(--dim); }

/* ── PAGE HEADER ─────────────────────────────────────── */
.page-header {
  background: var(--navy);
  padding: 64px 0 48px;
}
.page-header .section-eyebrow { justify-content: flex-start; }
.page-header h1 { color: var(--white); margin-bottom: 16px; }
.page-header p { color: rgba(248,245,239,0.68); max-width: 580px; font-size: 1.1rem; }

/* ── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2,1fr); }
  .grid-4 { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 640px) {
  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-mobile-btn { display: block; }
  .hero { padding: 64px 0 48px; }
  section { padding: 56px 0; }
  .callout { padding: 32px 24px; }
  .footer-top { flex-direction: column; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { text-align: center; justify-content: center; }
}
