/* ===================================================================
   Family First Singapore — stylesheet
   Design language aligned with the parent movement (familyfirstglobal.org):
   deep navy + warm gold accent, clean sans-serif, generous whitespace,
   three-pillar cards, full-width CTA bands, multi-column footer.
   =================================================================== */

:root {
  --navy: #1f3864;
  --navy-dark: #142544;
  --gold: #b08d57;
  --gold-light: #d9b878;
  --green: #4c7c59;
  --off-white: #faf8f4;
  --ink: #262626;
  --muted: #595959;
  --border: #e6e1d8;
  --max-width: 1440px;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(31, 56, 100, 0.08);
  font-size: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--off-white);
  line-height: 1.65;
}

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

a { color: inherit; }

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

h1, h2, h3, h4 {
  font-family: inherit;
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 16px;
}

h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }

p { margin: 0 0 16px; color: var(--muted); }

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: var(--gold);
  color: #fff;
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.65);
  color: #fff;
}
.btn-outline:hover { background: rgba(255,255,255,0.12); }

.btn-navy {
  background: var(--navy);
  color: #fff;
}
.btn-navy:hover { background: var(--navy-dark); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 244, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  color: var(--navy);
  font-size: 1.15rem;
}
.brand-logo {
  height: 56px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  text-decoration: none;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.94rem;
}
.nav-links a:hover { color: var(--gold); }

.nav-cta { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--navy);
  margin: 5px 0;
  transition: 0.2s;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 60%, #0f1c33 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 300px at 85% 15%, rgba(176,141,87,0.28), transparent 60%),
    radial-gradient(500px 260px at 10% 90%, rgba(76,124,89,0.30), transparent 60%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  padding: 96px 24px 88px;
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}
.hero h1 { color: #fff; }
.hero .lede { color: rgba(255,255,255,0.86); font-size: 1.12rem; max-width: 46ch; }
.hero-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.82rem;
  margin-bottom: 22px;
  color: rgba(255,255,255,0.9);
}
.hero-badge svg { width: 16px; height: 16px; flex-shrink: 0; }

.hero-panel {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--radius);
  padding: 28px;
  backdrop-filter: blur(6px);
}
.hero-panel .stat { display: flex; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.14); }
.hero-panel .stat:last-child { border-bottom: none; }
.hero-panel .stat strong { display: block; font-size: 1.5rem; color: var(--gold-light); text-align: right; max-width: 60%; margin-left: auto; }
.hero-panel .stat span { font-size: 0.85rem; color: rgba(255,255,255,0.75); }

/* ---------- Section scaffolding ---------- */
section { padding: 84px 0; }
.section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section-head p { margin: 0 auto; }
.alt { background: #fff; }

/* ---------- Pillars (Nehemiah / Ezra / Phoebe) ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.pillar-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.pillar-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 5px;
  background: var(--accent, var(--gold));
}
.pillar-card.nehemiah { --accent: var(--navy); }
.pillar-card.ezra { --accent: var(--gold); }
.pillar-card.phoebe { --accent: var(--green); }

.pillar-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--accent) 12%, white);
  margin-bottom: 18px;
}
.pillar-icon svg { width: 26px; height: 26px; color: var(--accent); }
.pillar-tag { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; color: var(--accent); margin-bottom: 6px; display: block; }

/* ---------- Outreach / stats band ---------- */
.stats-band {
  background: var(--navy);
  color: #fff;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stats-grid .num { font-size: 2.2rem; font-weight: 800; color: var(--gold-light); }
.stats-grid .label { font-size: 0.9rem; color: rgba(255,255,255,0.82); }

/* ---------- Community fit / two-column ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split img, .split .art { border-radius: var(--radius); }
.art-panel {
  background: linear-gradient(135deg, var(--green), var(--navy));
  border-radius: var(--radius);
  min-height: 320px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  padding: 32px;
}
.check-list { list-style: none; margin: 24px 0 0; padding: 0; }
.check-list li { display: flex; gap: 12px; margin-bottom: 14px; color: var(--ink); }
.check-list svg { flex-shrink: 0; width: 22px; height: 22px; color: var(--green); margin-top: 2px; }

/* ---------- Testimony cards ---------- */
.testimonies {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.testimony-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.testimony-card .quote-mark { font-size: 2.4rem; color: var(--gold); line-height: 1; margin-bottom: 8px; }

/* ---------- Get involved / CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--green) 0%, #35624a 100%);
  color: #fff;
  text-align: center;
  border-radius: var(--radius);
}
.cta-band-inner { padding: 64px 24px; max-width: 720px; margin: 0 auto; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.88); }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }

.partner-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.partner-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}
.partner-card .initial {
  width: 48px; height: 48px; margin: 0 auto 12px;
  border-radius: 50%;
  background: var(--off-white);
  border: 2px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; color: var(--navy);
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.contact-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.contact-row { display: flex; gap: 14px; margin-bottom: 18px; }
.contact-row svg { width: 22px; height: 22px; color: var(--gold); flex-shrink: 0; margin-top: 2px; }
.contact-row strong { display: block; color: var(--navy); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.78);
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-grid h4 { color: #fff; font-size: 0.95rem; margin-bottom: 16px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { text-decoration: none; color: rgba(255,255,255,0.78); font-size: 0.92rem; }
.footer-grid a:hover { color: var(--gold-light); }
.footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; margin-bottom: 18px; }
.footer-logo {
  height: 84px;
  width: auto;
  display: block;
  background: #fff;
  border-radius: 10px;
  padding: 8px 14px;
}
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; font-size: 0.82rem; flex-wrap: wrap; gap: 10px;
}
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
}
.footer-social svg { width: 16px; height: 16px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .split { grid-template-columns: 1fr; }
  .testimonies { grid-template-columns: 1fr; }
  .partner-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-links, .nav-cta .btn-navy-desktop { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    gap: 18px;
  }
  section { padding: 56px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (prefers-color-scheme: dark) {
  /* Site keeps a fixed light identity to match parent brand consistency;
     no dark-mode override is applied intentionally. */
}
