@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@400;700;900&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --navy: #0B1E35;
  --navy-deep: #081527;
  --navy-panel: #12253F;
  --navy-light: #1C3454;
  --gold: #C9A227;
  --gold-bright: #E4BE45;
  --gold-dark: #A9861E;
  --cream: #F5F1E8;
  --ink: #E8E4DC;
  --muted: #9AA6B5;
  --border: rgba(255,255,255,0.10);
  --radius: 10px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--navy);
  color: var(--ink);
  font-family: 'Inter', -apple-system, sans-serif;
  line-height: 1.6;
}
h1, h2, h3, h4, .serif {
  font-family: 'Merriweather', Georgia, serif;
  color: #fff;
  line-height: 1.3;
}
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-bright); }
img { max-width: 100%; display: block; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* Navbar */
.navbar {
  background: var(--navy-deep);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 500;
  border-bottom: 1px solid var(--border);
  transition: padding 0.25s ease, box-shadow 0.25s ease;
}
.navbar.scrolled {
  padding: 8px 0;
  box-shadow: 0 6px 24px rgba(0,0,0,0.35);
}
.navbar.scrolled .brand-icon { height: 30px; }
.navbar.scrolled .brand { font-size: 16px; }
.navbar.scrolled .cta { padding: 7px 16px; }
.navbar .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-family: 'Merriweather', serif; font-weight: 700; font-size: 18px; line-height: 1.2; }
.brand .dot { width: 28px; height: 28px; border-radius: 50%; background: radial-gradient(circle, var(--gold-bright), var(--gold-dark)); flex-shrink: 0; }
.brand-icon { height: 40px; width: auto; display: block; flex-shrink: 0; transition: height 0.25s ease; }
.navbar nav { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.navbar nav a { color: var(--ink); font-weight: 500; font-size: 14px; white-space: nowrap; }
.navbar nav a:hover { color: var(--gold); }
.navbar .cta {
  background: var(--gold);
  color: var(--navy-deep) !important;
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 700;
  margin-left: auto;
}
.navbar .signin { border: 1px solid var(--border); padding: 8px 16px; border-radius: 999px; }
.mobile-toggle { display: none; background: none; border: none; color: #fff; font-size: 24px; cursor: pointer; }

/* Hero */
.hero {
  background: var(--navy);
  color: #fff;
  padding: 90px 0 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 70% 20%, rgba(201,162,39,0.18), transparent 55%);
}
.hero .container { position: relative; }
.hero .eyebrow {
  display: inline-block;
  color: var(--gold);
  padding: 6px 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero h1 {
  color: #fff;
  font-size: 46px;
  max-width: 820px;
  margin: 0 auto 22px;
}
.hero h1 .gold { color: var(--gold); }
.hero p.lead {
  font-size: 19px;
  color: #D9DEE6;
  max-width: 620px;
  margin: 0 auto 14px;
}
.hero p.tagline {
  font-style: italic;
  color: var(--muted);
  font-size: 16px;
  margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: none;
  transition: transform 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--gold); color: var(--navy-deep); }
.btn-outline { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.4); }
.btn-outline-gold { background: transparent; color: var(--gold); border: 1.5px solid rgba(201,162,39,0.5); }

/* Stats strip */
.stats {
  background: var(--navy-panel);
  border-bottom: 1px solid var(--border);
  padding: 40px 0;
}
.stats .grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stats .num { font-family: 'Merriweather', serif; font-size: 34px; color: var(--gold); font-weight: 900; }
.stats .label { color: var(--muted); font-size: 14px; margin-top: 4px; }

/* Sections */
section { padding: 80px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 50px; }
.section-head .tag { color: var(--gold); font-weight: 700; font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; }
.section-head h2 { font-size: 32px; margin: 10px 0 14px; }
.section-head p { color: var(--muted); font-size: 16px; }

/* Cards */
.card {
  background: var(--navy-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.3); transform: translateY(-3px); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

.pill {
  display: inline-block;
  background: rgba(201,162,39,0.15);
  color: var(--gold);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.pill.urgent { background: rgba(214,84,68,0.18); color: #E8836F; }
.pill.featured { background: rgba(201,162,39,0.2); color: var(--gold-bright); }
.pill.near { background: rgba(88,153,113,0.20); color: #7FCB9B; }

.devotional-card h3 { margin: 12px 0 8px; font-size: 20px; }
.devotional-card .scripture { font-style: italic; color: var(--ink); border-left: 3px solid var(--gold); padding-left: 14px; margin: 14px 0; }
.devotional-card .ref { font-size: 13px; color: var(--muted); font-weight: 600; }

/* Progress bar (projects) */
.progress-wrap { background: rgba(255,255,255,0.08); border-radius: 999px; height: 8px; overflow: hidden; margin: 10px 0; }
.progress-bar { background: var(--gold); height: 100%; border-radius: 999px; }
.project-meta { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-top: 6px; }
.project-meta strong { color: #fff; }

/* Origin story */
.story { background: var(--navy-deep); }
.story .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.story-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.badge {
  background: var(--navy-panel);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}

/* Resource directory */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 36px; justify-content: center; }
.filter-btn {
  background: var(--navy-panel);
  border: 1px solid var(--border);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}
.filter-btn.active, .filter-btn:hover { background: var(--gold); color: var(--navy-deep); border-color: var(--gold); }
.resource-card .meta { font-size: 14px; color: var(--muted); margin-top: 10px; }
.resource-card .meta div { margin-bottom: 4px; }

/* CTA band */
.cta-band {
  background: var(--navy-deep);
  color: #fff;
  text-align: center;
  padding: 70px 0;
  border-top: 1px solid var(--border);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: var(--muted); max-width: 560px; margin: 12px auto 30px; }

/* Newsletter */
.newsletter-form { display: flex; gap: 10px; max-width: 460px; margin: 0 auto; }
.newsletter-form input {
  flex: 1;
  padding: 13px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.06);
  color: #fff;
  font-size: 15px;
}
.newsletter-form input::placeholder { color: var(--muted); }

/* Footer */
footer { background: var(--navy-deep); color: var(--muted); padding: 60px 0 30px; border-top: 1px solid var(--border); }
footer .grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
footer h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
footer a { color: var(--muted); display: block; margin-bottom: 8px; font-size: 14px; }
footer a:hover { color: var(--gold); }
footer .bottom { border-top: 1px solid var(--border); padding-top: 24px; text-align: center; font-size: 13px; color: #6B7688; }

/* Forms */
.form-page { max-width: 640px; margin: 0 auto; }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 14px; color: #fff; }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 15px;
  background: var(--navy-panel);
  color: #fff;
}
.field textarea { min-height: 140px; resize: vertical; }
.alert { padding: 14px 20px; border-radius: 8px; margin-bottom: 24px; font-size: 14px; }
.alert-success { background: rgba(46,143,90,0.15); color: #6FCB9A; border: 1px solid rgba(46,143,90,0.3); }
.alert-error { background: rgba(214,84,68,0.15); color: #E8836F; border: 1px solid rgba(214,84,68,0.3); }

/* Mobile */
@media (max-width: 860px) {
  .navbar nav { position: fixed; top: 64px; left: 0; right: 0; background: var(--navy-deep); flex-direction: column; padding: 20px; gap: 16px; display: none; align-items: flex-start; }
  .navbar nav.open { display: flex; }
  .mobile-toggle { display: block; }
  .hero h1 { font-size: 32px; }
  .stats .grid { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .grid-2, .story .wrap { grid-template-columns: 1fr; }
  footer .grid { grid-template-columns: 1fr 1fr; }
  .newsletter-form { flex-direction: column; }
  .hero-photo { min-height: 420px; }
  .section-photo { min-height: 340px; }
  .navbar .cta { margin-left: 0; }
}

/* ============================================================
   Photo imagery — visual identity upgrade
   ============================================================ */
.hero-photo { position: relative; background-size: cover; background-position: center 30%; min-height: 560px; display: flex; align-items: center; }
.hero-photo::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,30,53,0.55) 0%, rgba(8,21,39,0.93) 100%);
}
.hero-photo .container { position: relative; z-index: 1; width: 100%; }

.section-photo { position: relative; background-size: cover; background-position: center 30%; min-height: 460px; display: flex; align-items: center; }
.section-photo::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,21,39,0.90) 0%, rgba(8,21,39,0.94) 100%);
}
.section-photo .container { position: relative; z-index: 1; width: 100%; }

.cat-icon-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-bottom: 40px; }
.cat-icon-card { text-align: center; padding: 14px 6px; border-radius: var(--radius); text-decoration: none; transition: background 0.15s ease; }
.cat-icon-card:hover, .cat-icon-card.active { background: var(--navy-panel); }
.cat-icon-card img { width: 56px; height: 56px; margin: 0 auto 10px; border-radius: 50%; display: block; }
.cat-icon-card span { display: block; font-size: 13px; font-weight: 600; color: var(--ink); }
@media (max-width: 860px) { .cat-icon-grid { grid-template-columns: repeat(3, 1fr); } }

.browse-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.inline-search { max-width: 260px; width: 100%; }
.inline-search input {
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--navy-panel);
  color: #fff;
  font-size: 14px;
}
.inline-search input::placeholder { color: var(--muted); }
@media (max-width: 640px) { .browse-head { flex-direction: column; align-items: flex-start; } .inline-search { max-width: 100%; } }
