/* =====================================================================
   HAKSHIVA — design system
   Palette: deep navy trust + warm coral/amber hope, on soft cream.
   Type: Fraunces (display serif, warmth) + Inter (clean body).
   Motif: concentric "listening waves".
   ===================================================================== */

:root {
  /* brand */
  --ink:        #0B2545;   /* deep navy — primary text & dark sections */
  --ink-700:    #15324f;
  --blue:       #0E5AA7;
  --blue-500:   #1D70BE;
  --blue-400:   #2A86D6;
  --blue-100:   #EAF2FB;
  --orange:     #F7842B;   /* bright accent — DECORATION only (icons, dots, waves) */
  --orange-cta: #BE4D0E;   /* button bg — white text passes AA (4.8:1) */
  --orange-600: #A8480B;   /* accessible deep orange for TEXT + button hover (4.9:1 on cream) */
  --amber:      #FBB04C;   /* warm accent on dark surfaces only */
  --coral:      #F66B4E;

  /* surfaces */
  --cream:      #FBF7F0;   /* page background — warm off-white */
  --cream-200:  #F4ECE0;
  --paper:      #FFFFFF;
  --slate:      #41566B;   /* secondary text */
  --line:       #E7DECF;

  /* type */
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* shape */
  --r-sm: 12px;
  --r:    18px;
  --r-lg: 28px;
  --shadow:    0 18px 50px -28px rgba(11, 37, 69, .45);
  --shadow-sm: 0 8px 24px -16px rgba(11, 37, 69, .40);
  --maxw: 1140px;

  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
a { color: var(--blue); text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.08; letter-spacing: -.01em; margin: 0; color: var(--ink); }
p { margin: 0; }
.sprite { position: absolute; }
.nowrap { white-space: nowrap; }

.wrap { width: min(var(--maxw), 100% - 2.5rem); margin-inline: auto; }

/* ---------- a11y ---------- */
.skip-link {
  position: absolute; left: 1rem; top: -3rem;
  background: var(--ink); color: #fff; padding: .6rem 1rem;
  border-radius: 0 0 var(--r-sm) var(--r-sm); z-index: 100; transition: top .2s var(--ease);
}
.skip-link:focus { top: 0; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--sans); font-weight: 600; font-size: .98rem;
  padding: .8rem 1.35rem; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s, color .2s;
  white-space: nowrap;
}
.btn .ic { width: 1.05em; height: 1.05em; transition: transform .25s var(--ease); }
.btn:hover .ic { transform: translateX(3px); }
.btn-lg { padding: 1rem 1.7rem; font-size: 1.05rem; }
.btn-solid {
  background: var(--orange-cta); color: #fff;
  box-shadow: 0 12px 26px -14px rgba(190,77,14,.9);
}
.btn-solid:hover { background: var(--orange-600); transform: translateY(-2px); box-shadow: 0 18px 32px -14px rgba(168,72,11,.95); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; transform: translateY(-2px); }
.btn.full { width: 100%; justify-content: center; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--cream) 82%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .7rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--ink); }
.brand-mark { width: 42px; height: 42px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--serif); font-weight: 600; font-size: 1.4rem; letter-spacing: -.02em; }
.brand-tag { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--slate); }
.nav { display: flex; gap: 1.9rem; }
.nav a { color: var(--ink-700); font-weight: 500; font-size: .98rem; position: relative; padding: .25rem 0; }
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--orange); border-radius: 2px; transition: width .28s var(--ease);
}
.nav a:hover::after { width: 100%; }
.header-cta { display: flex; align-items: center; gap: .75rem; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 44px; height: 44px; align-items: center; justify-content: center; background: none; border: 0; cursor: pointer; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav { display: none; flex-direction: column; gap: .35rem; padding: .5rem 0 1.2rem; }
.mobile-nav a { padding: .85rem .25rem; color: var(--ink); font-weight: 500; border-bottom: 1px solid var(--line); }
.mobile-nav a.btn { margin-top: .8rem; border-bottom: 0; }

/* ---------- shared section bits ---------- */
.eyebrow {
  font-family: var(--sans); font-weight: 600; font-size: .8rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--orange-600); margin-bottom: 1rem;
}
.eyebrow.light { color: var(--amber); }
.section-head { max-width: 44rem; margin-bottom: 3rem; }
.section-head h2 { font-size: clamp(2rem, 4vw, 2.9rem); margin-bottom: 1rem; }
.section-sub { color: var(--slate); font-size: 1.12rem; }
.lede { font-size: 1.2rem; color: var(--ink-700); }

section { padding-block: clamp(4rem, 8vw, 7rem); }

/* ---------- hero ---------- */
.hero { position: relative; padding-block: clamp(4.5rem, 11vw, 9rem); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-bg::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 88% 8%, rgba(251,176,76,.30), transparent 55%),
    radial-gradient(90% 80% at 6% 100%, rgba(42,134,214,.20), transparent 60%);
}
.hero-waves { position: absolute; right: -6%; top: -10%; width: min(70%, 760px); height: auto; opacity: .9; }
.hero-inner { position: relative; z-index: 1; max-width: 47rem; }
.hero-title { font-size: clamp(2.6rem, 6.4vw, 4.6rem); letter-spacing: -.025em; margin-bottom: 1.4rem; }
.hero-lede { font-size: clamp(1.12rem, 2vw, 1.35rem); color: var(--ink-700); max-width: 38rem; margin-bottom: 2.1rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 1.8rem; }
.hero-note { font-size: .98rem; color: var(--slate); max-width: 34rem; }
.hero-note em { font-family: var(--serif); font-style: italic; color: var(--blue); }

/* ---------- who we serve ---------- */
.serve { padding-block: 2.5rem; background: var(--ink); color: #fff; }
.serve-intro { text-align: center; font-family: var(--serif); font-size: 1.25rem; color: #cfe0f2; margin-bottom: 1.4rem; }
.serve-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem 1rem; }
.serve-list li span {
  display: inline-block; padding: .5rem 1.2rem; border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px; font-weight: 500; font-size: 1.02rem;
  background: rgba(255,255,255,.04); transition: background .25s var(--ease), border-color .25s;
}
.serve-list li span:hover { background: var(--orange); border-color: var(--orange); }

/* ---------- mission ---------- */
.mission-inner { display: grid; grid-template-columns: 360px 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.mission-art svg { width: 100%; height: auto; filter: drop-shadow(var(--shadow)); }
.mission-copy h2 { font-size: clamp(2rem, 4vw, 2.9rem); margin-bottom: 1.2rem; }
.mission-copy p + p { margin-top: 1.1rem; color: var(--slate); }

/* ---------- programs ---------- */
.programs { background: linear-gradient(180deg, var(--cream) 0%, var(--cream-200) 100%); }
.grid { display: grid; gap: 1.4rem; }
.programs-grid { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 1.7rem 1.6rem; box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
  position: relative;
}
.program:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--orange) 40%, var(--line)); }
.card-ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 16px; margin-bottom: 1.1rem;
}
.card-ic svg { width: 26px; height: 26px; }
.ic-blue   { background: var(--blue-100); color: var(--blue); }
.ic-orange { background: #FDEBD8; color: var(--orange-600); }
.card h3 { font-size: 1.3rem; margin-bottom: .5rem; }
.card p { color: var(--slate); font-size: .98rem; }
.badge {
  position: absolute; top: 1.15rem; right: 1.15rem;
  font-family: var(--sans); font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: #fff; background: var(--orange-cta); padding: .25rem .6rem; border-radius: 999px;
}

/* ---------- approach / principles ---------- */
.principles { list-style: none; margin: 0; padding: 0; counter-reset: pr; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem 2.2rem; }
.principles li { position: relative; padding-left: .25rem; counter-increment: pr; }
.pr-ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 14px; margin-bottom: .9rem;
  background: var(--blue-100); color: var(--blue);
}
.pr-ic svg { width: 24px; height: 24px; }
.principles li:nth-child(even) .pr-ic { background: #FDEBD8; color: var(--orange-600); }
.principles h3 { font-size: 1.2rem; margin-bottom: .4rem; display: flex; align-items: baseline; gap: .5rem; }
.principles h3::before { content: counter(pr, decimal-leading-zero); font-family: var(--sans); font-size: .82rem; font-weight: 700; color: var(--orange-600); letter-spacing: .05em; }
.principles p { color: var(--slate); font-size: .98rem; }

/* ---------- impact ---------- */
.impact {
  background: radial-gradient(120% 140% at 100% 0%, #15324f 0%, var(--ink) 55%);
  color: #fff;
}
.impact-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.impact-copy h2 { color: #fff; font-size: clamp(2rem, 4vw, 2.9rem); margin-bottom: 1rem; }
.impact-copy p { color: #c9d8e8; font-size: 1.1rem; }
.stats { display: grid; gap: 1rem; margin: 0; }
.stat {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r); padding: 1.3rem 1.5rem; display: flex; align-items: baseline; gap: 1.1rem;
}
.stat dt { font-family: var(--serif); font-size: 2.8rem; font-weight: 600; color: var(--amber); line-height: 1; }
.stat dd { margin: 0; color: #d7e3f0; font-size: 1rem; }

/* ---------- team ---------- */
.team-block { margin-bottom: 2.6rem; }
.team-label {
  font-family: var(--sans); font-weight: 700; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--orange-600); margin-bottom: 1.2rem; padding-bottom: .6rem; border-bottom: 1px solid var(--line);
}
.people { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem 1.5rem; }
.people li { display: flex; align-items: center; gap: .9rem; }
.avatar {
  flex: none; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; font-size: .92rem; color: #fff;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-400) 60%, var(--orange) 140%);
  letter-spacing: .02em;
}
.people strong { display: block; font-weight: 600; color: var(--ink); }
.people span { font-size: .9rem; color: var(--slate); }
.board { font-size: 1.05rem; color: var(--ink-700); }
.board strong { color: var(--ink); }
.board.muted { color: var(--slate); font-size: .98rem; margin-top: .4rem; }

/* ---------- donate ---------- */
.donate { background: linear-gradient(165deg, #0E5AA7 0%, #0B2545 100%); color: #fff; }
.donate-inner { display: grid; gap: 2.5rem; }
.donate-lead { max-width: 42rem; }
.donate-lead h2 { color: #fff; font-size: clamp(2.1rem, 4.5vw, 3.1rem); margin-bottom: 1rem; }
.donate-lead p { color: #d3e1f1; font-size: 1.12rem; margin-bottom: 1.8rem; }
.donate-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.card.give { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); color: #fff; }
.card.give h3 { color: #fff; font-size: 1.35rem; display: flex; align-items: center; gap: .6rem; margin-bottom: .5rem; }
.card.give .flag { font-size: 1.5rem; }
.give-sub { color: #bcd0e6; font-size: .96rem; margin-bottom: 1rem; }
.card.give address { font-style: normal; color: #eaf2fb; line-height: 1.8; }
.give-bank { display: block; margin-top: .6rem; padding-top: .6rem; border-top: 1px solid rgba(255,255,255,.14); font-size: .94rem; color: #cfe0f2; }
.donate-foot { color: #bcd0e6; }
.donate-foot a { color: var(--amber); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- contact ---------- */
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 4.5rem); align-items: start; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.contact-list li { display: flex; gap: 1.1rem; align-items: flex-start; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 1.2rem 1.4rem; box-shadow: var(--shadow-sm); }
.ct-ic { flex: none; width: 46px; height: 46px; border-radius: 13px; background: var(--blue-100); color: var(--blue); display: grid; place-items: center; }
.ct-ic svg { width: 23px; height: 23px; }
.contact-list strong { display: block; font-family: var(--serif); font-size: 1.1rem; margin-bottom: .15rem; }
.contact-list a { color: var(--blue); }
.contact-list a:hover { text-decoration: underline; text-underline-offset: 3px; }
.contact-list span { color: var(--slate); }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #cdd9e6; padding-top: 3.5rem; }
.footer-inner { display: grid; grid-template-columns: 1.3fr 2fr; gap: 2.5rem; padding-bottom: 2.5rem; }
.footer-brand .brand { color: #fff; }
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-tag { color: var(--amber); }
.footer-blurb { margin-top: 1rem; max-width: 24rem; color: #aebfd0; font-size: .98rem; }
.footer-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.footer-nav h4 { font-family: var(--sans); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 1rem; font-weight: 700; }
.footer-nav a { display: block; color: #aebfd0; padding: .3rem 0; font-size: .96rem; }
.footer-nav a:hover { color: var(--amber); }
.footer-base {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .6rem;
  border-top: 1px solid rgba(255,255,255,.1); padding-block: 1.4rem 1.8rem; margin-top: .5rem;
  font-size: .88rem; color: #8ea2b8;
}
.footer-meaning { font-family: var(--serif); font-style: italic; color: #aebfd0; }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ===================== responsive ===================== */
@media (max-width: 960px) {
  .nav, .header-cta .btn-solid { display: none; }
  .nav-toggle { display: flex; }
  .mobile-nav.open { display: flex; }
  .mission-inner { grid-template-columns: 1fr; }
  .mission-art { max-width: 280px; margin-inline: auto; }
  .programs-grid { grid-template-columns: repeat(2, 1fr); }
  .principles { grid-template-columns: repeat(2, 1fr); }
  .impact-inner, .contact-inner, .donate-cards { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 1rem; }
  .programs-grid, .principles { grid-template-columns: 1fr; }
  .footer-nav { grid-template-columns: 1fr 1fr; }
  .hero-waves { opacity: .5; right: -25%; }
  .btn-lg { padding: .9rem 1.4rem; font-size: 1rem; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
}

/* ---------- motion / contrast prefs ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
