/* =========================================================
   SSD Hope — Design System
   A calm, muted palette for a somatic symptom disorder nonprofit
   ========================================================= */

:root {
  /* Color — muted, warm, calming */
  --bg:           #f6f4ef;  /* warm off-white */
  --bg-alt:       #efece3;  /* slightly deeper section bg */
  --surface:      #ffffff;
  --ink:          #2b3633;  /* near-black green-gray */
  --ink-soft:     #57635e;
  --muted:        #7c877f;
  --primary:      #4a6b62;  /* muted teal-green */
  --primary-dark: #36504a;
  --primary-soft: #dde7e2;
  --accent:       #b98a6e;  /* muted terracotta */
  --accent-dark:  #a0735a;
  --accent-soft:  #ecdccf;
  --sage:         #8aa399;
  --line:         #e3ded2;
  --line-soft:    #eee9de;
  --shadow:       0 1px 2px rgba(43,54,51,.04), 0 8px 24px rgba(43,54,51,.06);
  --shadow-lg:    0 4px 12px rgba(43,54,51,.08), 0 24px 48px rgba(43,54,51,.10);

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

  /* Layout */
  --maxw: 1140px;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 26px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--primary-dark); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--accent-dark); }
ul { padding: 0; list-style: none; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2.4rem, 5vw, 3.7rem); font-weight: 480; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.08rem; font-family: var(--sans); font-weight: 650; letter-spacing: 0; }
p  { color: var(--ink-soft); }

.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .76rem;
  font-weight: 650;
  color: var(--accent-dark);
  margin-bottom: 1rem;
  display: inline-block;
}
.lead { font-size: 1.2rem; color: var(--ink-soft); }
.text-center { text-align: center; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
section { padding: 84px 0; }
.section-tight { padding: 56px 0; }
.bg-alt { background: var(--bg-alt); }
.bg-primary { background: var(--primary-dark); color: #eef3f0; }
.bg-primary h1, .bg-primary h2, .bg-primary h3 { color: #fff; }
.bg-primary p { color: #cfdcd6; }

.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.section-head { max-width: 680px; margin: 0 auto 52px; text-align: center; }
.section-head p { margin-top: 14px; font-size: 1.12rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--sans);
  font-weight: 600;
  font-size: .98rem;
  padding: 13px 26px;
  border-radius: 100px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 16px rgba(74,107,98,.25); }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 6px 16px rgba(185,138,110,.28); }
.btn-accent:hover { background: var(--accent-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--primary-dark); border-color: var(--line); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary-dark); background: var(--surface); }
.btn-ghost-light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.35); }
.btn-ghost-light:hover { background: rgba(255,255,255,.2); color: #fff; }
.btn-lg { padding: 16px 32px; font-size: 1.05rem; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246,244,239,.82);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 74px;
}
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--serif); }
.brand:hover { color: var(--ink); }
.brand .logo { width: 38px; height: 38px; flex: 0 0 auto; }
.brand-name { font-size: 1.32rem; font-weight: 600; color: var(--ink); line-height: 1; }
.brand-name span { color: var(--primary); }
.brand-sub { display: block; font-family: var(--sans); font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-size: .96rem; font-weight: 500; color: var(--ink-soft);
  padding: 8px 14px; border-radius: 8px;
}
.nav-links a:hover { color: var(--primary-dark); background: rgba(74,107,98,.07); }
.nav-links a.active { color: var(--primary-dark); }
.nav-cta { margin-left: 10px; }
.nav-cta.btn-primary,
.nav-cta.btn-primary:link,
.nav-cta.btn-primary:visited,
.nav-cta.btn-primary:hover { color: #fff; }

.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 44px; height: 44px; padding: 10px; color: var(--ink);
}
.nav-toggle svg { width: 100%; height: 100%; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 96px 0 88px; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 55% at 82% 18%, rgba(138,163,153,.25), transparent 60%),
    radial-gradient(50% 50% at 12% 92%, rgba(185,138,110,.16), transparent 60%);
  z-index: 0;
}
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 22px; }
.hero p.lead { margin-bottom: 32px; max-width: 33ch; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-media { position: relative; }
.hero-media .photo { border-radius: var(--radius-lg); aspect-ratio: 4/4.4; box-shadow: var(--shadow-lg); }
.hero-media .frame { position: relative; border-radius: var(--radius-lg); overflow: hidden; }
.hero-media .frame::after {
  content: ""; position: absolute; inset: 0; border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(54,80,74,.16), rgba(185,138,110,.18)); mix-blend-mode: multiply;
}
.hero-badge {
  position: absolute; left: -22px; bottom: 34px;
  background: var(--surface); border-radius: var(--radius);
  padding: 16px 20px; box-shadow: var(--shadow-lg); display: flex; gap: 13px; align-items: center;
  max-width: 250px;
}
.hero-badge .dot { width: 42px; height: 42px; border-radius: 50%; background: var(--primary-soft); display: grid; place-items: center; flex: 0 0 auto; color: var(--primary-dark); }
.hero-badge strong { display: block; font-family: var(--serif); font-size: 1.4rem; color: var(--ink); line-height: 1; }
.hero-badge small { color: var(--muted); font-size: .82rem; }

/* ---------- Photo / image treatment ---------- */
.photo {
  display: block; width: 100%; height: 100%; object-fit: cover;
  background: var(--primary-soft);
  filter: saturate(.82) contrast(.97) brightness(1.01);
}
.photo-frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); position: relative; }
/* muted duotone-ish overlay so stock images stay on-palette */
.photo-frame::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(54,80,74,.10), rgba(185,138,110,.12));
  mix-blend-mode: multiply; pointer-events: none;
}

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
  height: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card .icon {
  width: 52px; height: 52px; border-radius: 13px;
  display: grid; place-items: center; margin-bottom: 18px;
  background: var(--primary-soft); color: var(--primary-dark);
}
.card .icon.accent { background: var(--accent-soft); color: var(--accent-dark); }
.card h3 { margin-bottom: 10px; }
.card p { font-size: .98rem; }
.card-link { font-weight: 600; font-size: .92rem; margin-top: 16px; display: inline-flex; align-items: center; gap: 6px; }
.card-link svg { transition: transform .2s ease; }
.card:hover .card-link svg { transform: translateX(3px); }

/* image card */
.img-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.img-card .img-card-photo { aspect-ratio: 16/10; }
.img-card .img-card-body { padding: 24px 26px 28px; }
.tag {
  display: inline-block; font-size: .72rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent-dark); background: var(--accent-soft); padding: 4px 11px; border-radius: 100px; margin-bottom: 12px;
}

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: center; padding: 18px; }
.stat .num { font-family: var(--serif); font-size: clamp(2.3rem, 4vw, 3rem); color: var(--primary); line-height: 1; }
.stat .label { margin-top: 10px; font-size: .95rem; color: var(--ink-soft); }
.bg-primary .stat .num { color: var(--accent-soft); }
.bg-primary .stat .label { color: #cfdcd6; }

/* ---------- Split feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media { position: relative; }
.split-media .frame { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.split-media .frame::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(54,80,74,.14), rgba(185,138,110,.16)); mix-blend-mode: multiply;
}
.split-media .photo { aspect-ratio: 5/4; }
.split h2 { margin-bottom: 18px; }
.feature-list { margin-top: 22px; display: grid; gap: 14px; }
.feature-list li { display: flex; gap: 13px; align-items: flex-start; color: var(--ink-soft); }
.feature-list .check {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%;
  background: var(--primary-soft); color: var(--primary-dark); display: grid; place-items: center; margin-top: 2px;
}

/* ---------- Testimonial ---------- */
.quote-card {
  background: var(--surface); border-radius: var(--radius-lg);
  padding: 48px 52px; box-shadow: var(--shadow); border: 1px solid var(--line-soft);
  position: relative;
}
.quote-card .mark { font-family: var(--serif); font-size: 5rem; color: var(--accent-soft); line-height: .6; position: absolute; top: 28px; left: 34px; }
blockquote { font-family: var(--serif); font-size: 1.5rem; line-height: 1.5; color: var(--ink); font-weight: 400; position: relative; z-index: 1; }
.quote-author { margin-top: 26px; display: flex; align-items: center; gap: 14px; }
.quote-author .avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.quote-author strong { display: block; color: var(--ink); }
.quote-author span { color: var(--muted); font-size: .9rem; }

/* ---------- Page header (interior) ---------- */
.page-header { padding: 72px 0 60px; background: var(--bg-alt); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.page-header::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(50% 80% at 88% 0%, rgba(138,163,153,.22), transparent 60%);
}
.page-header .container { position: relative; }
.page-header h1 { margin-bottom: 14px; }
.page-header p { max-width: 60ch; font-size: 1.12rem; }
.breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--primary-dark); }

/* ---------- Prose ---------- */
.prose p { margin-bottom: 1.25rem; }
.prose h2 { margin: 2.4rem 0 1rem; }
.prose h3 { margin: 2rem 0 .75rem; }
.prose ul.bullets { margin: 0 0 1.4rem; display: grid; gap: .6rem; }
.prose ul.bullets li { position: relative; padding-left: 1.6rem; color: var(--ink-soft); }
.prose ul.bullets li::before { content: ""; position: absolute; left: 2px; top: .65em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.callout {
  background: var(--primary-soft); border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 22px 26px; margin: 1.8rem 0;
}
.callout p { color: var(--primary-dark); margin: 0; }

/* ---------- Team ---------- */
.member { text-align: center; }
.member .photo-frame { border-radius: 50%; width: 168px; height: 168px; margin: 0 auto 18px; }
.member h3 { font-size: 1.2rem; }
.member .role { color: var(--accent-dark); font-size: .9rem; font-weight: 600; }
.member p { font-size: .94rem; margin-top: 8px; }

/* ---------- Accordion (FAQ) ---------- */
.accordion { max-width: 800px; margin: 0 auto; }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-trigger {
  width: 100%; background: none; border: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 24px 4px; text-align: left; font-family: var(--serif); font-size: 1.22rem; color: var(--ink);
}
.acc-trigger .plus { flex: 0 0 auto; width: 26px; height: 26px; position: relative; transition: transform .25s ease; }
.acc-trigger .plus::before, .acc-trigger .plus::after { content: ""; position: absolute; background: var(--primary); border-radius: 2px; }
.acc-trigger .plus::before { left: 50%; top: 4px; width: 2px; height: 18px; transform: translateX(-50%); transition: opacity .2s ease; }
.acc-trigger .plus::after  { top: 50%; left: 4px; height: 2px; width: 18px; transform: translateY(-50%); }
.acc-item.open .plus::before { opacity: 0; }
.acc-panel { overflow: hidden; max-height: 0; transition: max-height .3s ease; }
.acc-panel-inner { padding: 0 4px 24px; color: var(--ink-soft); }

/* ---------- Forms ---------- */
.form-card { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 7px; color: var(--ink); }
.field input, .field textarea, .field select {
  width: 100%; font-family: var(--sans); font-size: 1rem; color: var(--ink);
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--bg); transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(74,107,98,.12); background: #fff;
}
.field textarea { resize: vertical; min-height: 130px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

/* ---------- Donation amounts ---------- */
.amount-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-bottom: 16px; }
.amount {
  background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: 16px 8px; text-align: center; font-weight: 650; font-family: var(--serif); font-size: 1.3rem;
  color: var(--ink); cursor: pointer; transition: all .15s ease;
}
.amount:hover { border-color: var(--primary); }
.amount.selected { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; }
.cta-band .container { position: relative; z-index: 1; text-align: center; }
.cta-band .btn-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }

/* ---------- Newsletter ---------- */
.newsletter-form { display: flex; gap: 10px; max-width: 460px; margin: 24px auto 0; flex-wrap: wrap; }
.newsletter-form input { flex: 1 1 220px; padding: 14px 18px; border-radius: 100px; border: 1.5px solid var(--line); font-size: 1rem; background: var(--surface); }
.newsletter-form input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(74,107,98,.12); }

/* ---------- Footer ---------- */
.site-footer { background: #283733; color: #c3d0ca; padding: 72px 0 32px; }
.site-footer h4 { color: #fff; font-family: var(--sans); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 18px; font-weight: 650; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-name span { color: var(--sage); }
.footer-brand p { color: #9fb0a9; font-size: .95rem; margin-top: 16px; max-width: 34ch; }
.footer-links a { display: block; color: #c3d0ca; padding: 6px 0; font-size: .96rem; }
.footer-links a:hover { color: #fff; }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.08); display: grid; place-items: center; color: #c3d0ca; }
.socials a:hover { background: var(--primary); color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 48px; padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .86rem; color: #8fa099; }
.footer-bottom a { color: #8fa099; }
.footer-bottom a:hover { color: #fff; }

/* ---------- Misc ---------- */
.disclaimer { font-size: .82rem; color: var(--muted); }
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.pill { background: var(--surface); border: 1px solid var(--line); border-radius: 100px; padding: 8px 16px; font-size: .9rem; color: var(--ink-soft); }

/* reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-media { max-width: 460px; }
  .split, .split.reverse { grid-template-columns: 1fr; gap: 36px; }
  .split.reverse .split-media { order: 0; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  section { padding: 60px 0; }
  .nav-links {
    position: fixed; inset: 74px 0 auto 0; flex-direction: column; align-items: stretch;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 14px 24px 22px; gap: 2px;
    transform: translateY(-120%); transition: transform .28s ease; box-shadow: var(--shadow-lg);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 12px 10px; font-size: 1.05rem; }
  .nav-cta { margin: 8px 0 0; }
  .nav-toggle { display: block; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .amount-grid { grid-template-columns: repeat(2,1fr); }
  .quote-card { padding: 36px 28px; }
  blockquote { font-size: 1.25rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-badge { left: 0; }
}
