/* =============================================
   PASSAGE — Design System
   "The Quiet Stewardship"
   Based on Stitch design: warm cream · slate green · walnut brown
   Noto Serif (headings) · Manrope (body)
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Noto+Serif:ital,wght@0,400;0,600;0,700;1,400&family=Manrope:wght@400;500;600;700&display=swap');

:root {
  /* ── Surfaces (tonal layering — no harsh borders) ── */
  --bg:           #fcf9f5;   /* warm off-white canvas */
  --surface-0:    #ffffff;
  --surface-1:    #f6f3ee;   /* cards, elevated modules */
  --surface-2:    #f0eee8;   /* secondary containers */
  --surface-3:    #eae8e1;   /* hover states */
  --surface-4:    #e4e3db;   /* highest contrast surface */
  --surface-dim:  #dbdad1;

  /* ── Primary — slate green ── */
  --primary:          #596060;
  --primary-dim:      #4d5454;
  --primary-on:       #f2f9f9;
  --primary-container:#dde4e3;

  /* ── Secondary — warm walnut brown ── */
  --secondary:         #725b3f;
  --secondary-dim:     #654f34;
  --secondary-on:      #fff7f3;
  --secondary-container: #fdddb9;
  --secondary-fixed:   #fdddb9;
  --secondary-fixed-dim: #eecfac;

  /* ── Tertiary — muted slate blue ── */
  --tertiary:          #516170;
  --tertiary-container:#dcedff;

  /* ── Text ── */
  --on-surface:   #32332d;
  --on-surface-v: #5f5f59;
  --outline:      #7b7b74;
  --outline-v:    #b3b2ab;
  --inverse-surface: #0e0e0c;
  --inverse-on:   #9e9d99;

  /* ── State ── */
  --error:         #9f403d;
  --error-container:#fe8983;
  --green:         #2d6a4f;

  /* ── Typography ── */
  --font-serif: 'Noto Serif', Georgia, 'Times New Roman', serif;
  --font-sans:  'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;

  /* ── Geometry ── */
  --radius:    6px;
  --radius-lg: 12px;
  --radius-xl: 20px;

  /* ── Motion — slow, breath-like ── */
  --transition: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* ── Shadow — ambient only ── */
  --shadow:    0 2px 24px rgba(50,51,45,0.06);
  --shadow-md: 0 4px 32px rgba(50,51,45,0.10);

  /* ── Layout ── */
  --max-width: 1140px;
}

/* ── Legacy variable aliases (backward compat for inner pages) ── */
:root {
  --charcoal:   #32332d;      /* → on-surface */
  --deep:       #0e0e0c;      /* → inverse-surface */
  --white:      #ffffff;      /* → surface-0 */
  --light:      #f6f3ee;      /* → surface-1 */
  --mid:        #5f5f59;      /* → on-surface-v */
  --muted:      #7b7b74;      /* → outline */
  --border:     #e4e3db;      /* → surface-4 */
  --gold:       #725b3f;      /* → secondary */
  --gold-light: #eecfac;      /* → secondary-fixed-dim */
  --gold-pale:  #fdddb9;      /* → secondary-fixed */
  --accent-red: #9f403d;      /* → error */
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--on-surface);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  line-height: 1.25;
  color: var(--on-surface);
}
h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 600; }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.55rem); font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }
p  { font-size: 1rem; color: var(--on-surface-v); line-height: 1.75; }

/* ── Layout ── */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 28px; }
.section { padding: 88px 0; }
.section--primary  { background: var(--primary); color: var(--primary-on); }
.section--primary p { color: rgba(242,249,249,0.75); }
.section--warm   { background: var(--secondary-fixed-dim); }
.section--surface1 { background: var(--surface-1); }
.section--surface2 { background: var(--surface-2); }

.section-label {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 12px;
}
.section-title { margin-bottom: 16px; }
.section-subtitle {
  font-size: 1.05rem;
  color: var(--on-surface-v);
  max-width: 640px;
  line-height: 1.75;
}
.text-center { text-align: center; }
.text-center .section-subtitle { margin: 0 auto; }

/* Divider */
.divider {
  width: 40px; height: 2px;
  background: var(--secondary);
  margin: 18px 0 26px;
  border-radius: 2px;
}
.divider--center { margin: 18px auto 26px; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: var(--transition);
  white-space: nowrap;
}

/* Primary — slate green with gradient soul */
.btn--primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dim) 100%);
  color: var(--primary-on);
  box-shadow: 0 2px 12px rgba(89,96,96,0.25);
}
.btn--primary:hover {
  background: linear-gradient(135deg, var(--primary-dim) 0%, #424948 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(89,96,96,0.3);
}

/* Secondary — warm sand */
.btn--secondary {
  background: var(--secondary-container);
  color: var(--secondary-dim);
}
.btn--secondary:hover { background: var(--secondary-fixed-dim); }

/* Outline */
.btn--outline {
  border: 1.5px solid var(--primary);
  color: var(--primary);
  background: transparent;
}
.btn--outline:hover { background: var(--primary-container); }

/* Ghost — for dark backgrounds */
.btn--ghost {
  border: 1.5px solid rgba(242,249,249,0.45);
  color: var(--primary-on);
  background: transparent;
}
.btn--ghost:hover { border-color: var(--primary-on); background: rgba(242,249,249,0.1); }

/* Tertiary text-only */
.btn--text {
  color: var(--primary);
  font-weight: 600;
  padding: 0;
}
.btn--text:hover { color: var(--primary-dim); }

/* =============================================
   NAV — Glassmorphism
   ============================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(252,249,245,0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(50,51,45,0.06);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--max-width); margin: 0 auto;
  padding: 0 28px; height: 64px;
}
.nav__logo {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--on-surface);
  letter-spacing: 0.06em;
}
.nav__logo span { color: var(--secondary); }
.nav__links { display: flex; gap: 28px; }
.nav__links a {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--on-surface-v);
  letter-spacing: 0.03em;
  transition: var(--transition);
  position: relative;
}
.nav__links a::after {
  content: ''; position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 1.5px; background: var(--secondary);
  transform: scaleX(0); transition: var(--transition);
  border-radius: 2px;
}
.nav__links a:hover,
.nav__links a.active { color: var(--on-surface); }
.nav__links a:hover::after,
.nav__links a.active::after { transform: scaleX(1); }
.nav__cta { font-size: 0.85rem; padding: 10px 20px; }
.nav__hamburger {
  display: none; flex-direction: column;
  gap: 5px; padding: 4px;
}
.nav__hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--on-surface); border-radius: 2px;
  transition: var(--transition);
}

/* Mobile nav drawer */
.nav__mobile {
  background: rgba(252,249,245,0.97);
  backdrop-filter: blur(20px);
  max-height: 0; overflow: hidden;
  transition: max-height 0.3s ease;
  border-top: 1px solid rgba(50,51,45,0.06);
}
.nav__mobile.open { max-height: 440px; }
.nav__mobile ul { padding: 16px 28px; display: flex; flex-direction: column; gap: 2px; }
.nav__mobile a {
  display: block; padding: 12px 0;
  font-size: 0.9rem; color: var(--on-surface-v);
  border-bottom: 1px solid var(--surface-2);
  transition: var(--transition);
}
.nav__mobile a:hover { color: var(--on-surface); }
.nav__mobile .btn { margin: 12px 28px 16px; display: block; text-align: center; }

/* =============================================
   HOTLINE STRIP
   ============================================= */
.hotline-strip {
  background: var(--primary);
  color: var(--primary-on);
  text-align: center;
  padding: 10px 28px;
  font-family: var(--font-sans);
  font-size: 0.825rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.hotline-strip a { color: var(--secondary-container); text-decoration: none; }
.hotline-strip a:hover { text-decoration: underline; }

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--inverse-surface);
  color: rgba(255,255,255,0.6);
  padding: 64px 0 36px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer__brand {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: #ffffff;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}
.footer__brand span { color: var(--secondary-fixed-dim); }
.footer__tagline {
  font-size: 0.875rem;
  font-style: italic;
  color: rgba(255,255,255,0.5);
  margin-bottom: 14px;
  line-height: 1.6;
}
.footer__col h5 {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--secondary-fixed-dim);
  margin-bottom: 18px;
}
.footer__col a {
  display: block;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 10px;
  transition: var(--transition);
}
.footer__col a:hover { color: #ffffff; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
.footer__bottom p { font-size: 0.8rem; }
.footer__badge { display: flex; gap: 10px; flex-wrap: wrap; }
.footer__badge span {
  font-size: 0.72rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.09);
  padding: 4px 10px; border-radius: 20px;
  color: rgba(255,255,255,0.55);
}

/* =============================================
   BADGES
   ============================================= */
.badge {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
}
.badge--warm    { background: var(--secondary-fixed-dim); color: var(--secondary-dim); }
.badge--primary { background: var(--primary-container); color: var(--primary-dim); }
.badge--green   { background: #e8f5e9; color: var(--green); }
.badge--dark    { background: var(--surface-4); color: var(--on-surface); }

/* =============================================
   GRIDS
   ============================================= */
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }

/* =============================================
   CARDS — tonal layering, no harsh borders
   ============================================= */
.card {
  background: var(--surface-1);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
}
.card:hover {
  background: var(--surface-3);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* =============================================
   STAT BLOCKS
   ============================================= */
.stat { text-align: center; }
.stat__num {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--secondary-fixed-dim);
  line-height: 1;
  margin-bottom: 8px;
}
.stat__label { font-size: 0.85rem; color: rgba(242,249,249,0.65); }

/* =============================================
   ANIMATION
   ============================================= */
.animate {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.animate.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .section { padding: 60px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .nav__links, .nav__cta { display: none; }
  .nav__hamburger { display: flex; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; text-align: center; }
  .container { padding: 0 20px; }
}
