/* Parvati Foundation — static site styles. Mobile-first. */

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/manrope-latin.woff2") format("woff2");
}

:root {
  --forest: #12372a;
  --forest-2: #1b4d3a;
  --charcoal: #1d2321;
  --ink-soft: #46504c;
  --offwhite: #f7f4ec;
  --paper: #fffdf8;
  --line: #e2ddd0;
  --blue: #2d5f7c;
  --teal: #3a9a94;
  --teal-soft: #dcefec;
  --saffron: #e08a2e;
  --saffron-soft: #fbead3;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(18, 55, 42, .06), 0 12px 32px -12px rgba(18, 55, 42, .18);
  --maxw: 1160px;
  --gutter: clamp(16px, 5vw, 32px);
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--charcoal);
  background: var(--offwhite);
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--forest); }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; color: var(--forest); }
h1 { font-size: clamp(2.25rem, 7.2vw, 4.25rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 4.6vw, 2.75rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }

:focus-visible { outline: 3px solid var(--saffron); outline-offset: 3px; border-radius: 6px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--forest); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(64px, 11vw, 120px) 0; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 14px;
}
.lead { font-size: clamp(1.1rem, 2.4vw, 1.3rem); color: var(--ink-soft); max-width: 60ch; }
.section-head { max-width: 720px; margin-bottom: clamp(32px, 6vw, 56px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: transform .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--saffron); color: #1d1608; }
.btn-primary:hover { background: #ec9a40; color: #1d1608; box-shadow: 0 10px 24px -10px rgba(224, 138, 46, .8); }
.btn-ghost { border-color: rgba(247, 244, 236, .55); color: var(--offwhite); }
.btn-ghost:hover { background: rgba(247, 244, 236, .12); color: #fff; border-color: #fff; }
.btn-dark { background: var(--forest); color: var(--offwhite); }
.btn-dark:hover { background: var(--forest-2); color: #fff; box-shadow: 0 10px 24px -12px rgba(18, 55, 42, .7); }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 244, 236, .92);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 6px 20px -16px rgba(18, 55, 42, .5); }
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--forest); font-weight: 800; font-size: 1.1rem; letter-spacing: -.01em; }
.brand img { width: 36px; height: 36px; }
.nav-links { display: none; list-style: none; margin: 0; padding: 0; gap: 4px; align-items: center; }
.nav-links a:not(.btn) { display: block; padding: 8px 12px; border-radius: 10px; color: var(--charcoal); text-decoration: none; font-weight: 600; font-size: .98rem; }
.nav-links a:not(.btn):hover { background: rgba(18, 55, 42, .07); color: var(--forest); }
.nav-links .btn { min-height: 42px; padding: 8px 20px; margin-left: 8px; background: var(--forest); color: var(--offwhite); font-size: .95rem; }
.nav-links .btn:hover { background: var(--forest-2); color: #fff; }
.menu-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--forest); cursor: pointer;
}
.menu-btn svg { width: 24px; height: 24px; }
.menu-btn .x { display: none; }
.menu-btn[aria-expanded="true"] .bars { display: none; }
.menu-btn[aria-expanded="true"] .x { display: block; }
.nav-links.open {
  display: flex; flex-direction: column; align-items: stretch; position: absolute; left: 0; right: 0; top: 100%;
  background: var(--offwhite); padding: 8px var(--gutter) 20px; border-bottom: 1px solid var(--line);
  box-shadow: 0 24px 40px -24px rgba(18, 55, 42, .4);
}
.nav-links.open a:not(.btn) { padding: 14px 12px; font-size: 1.05rem; }
.nav-links.open .btn { margin: 10px 0 0; min-height: 50px; }

@media (min-width: 900px) {
  .menu-btn { display: none; }
  .nav-links { display: flex; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; background: var(--forest); color: var(--offwhite); overflow: hidden;
  padding: clamp(48px, 9vw, 96px) 0 0;
  isolation: isolate;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(70% 60% at 85% 10%, rgba(58, 154, 148, .28), transparent 70%),
    radial-gradient(50% 50% at 0% 100%, rgba(45, 95, 124, .35), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: center; }
.hero h1 { color: #fff; }
.hero h1 .accent { color: #f3b268; }
.hero .lead { color: rgba(247, 244, 236, .86); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-note { margin-top: 26px; font-size: .95rem; color: rgba(247, 244, 236, .72); display: flex; align-items: center; gap: 10px; }
.hero-note .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(58, 154, 148, .25); flex: none; }
.hero-art { min-width: 0; width: 100%; max-width: 560px; margin: 0 auto; }
.hero-art svg { width: 100%; height: auto; overflow: visible; }
.hero-ridge { margin-top: clamp(24px, 5vw, 48px); line-height: 0; }
.hero-ridge svg { width: 100%; height: clamp(60px, 10vw, 130px); }

@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 56px; }
}

/* Hero art animation (subtle, decorative) */
.node { transform-box: fill-box; transform-origin: center; animation: pulse 4.5s ease-in-out infinite; }
.node:nth-of-type(2n) { animation-delay: -1.2s; }
.node:nth-of-type(3n) { animation-delay: -2.4s; }
.link-line { stroke-dasharray: 5 7; animation: flow 18s linear infinite; }
.sun { animation: float 9s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: .95; } 50% { transform: scale(1.18); opacity: 1; } }
@keyframes flow { to { stroke-dashoffset: -240; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---------- Intro / mission ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; } }
.pull {
  border-left: 4px solid var(--saffron); padding: 4px 0 4px 20px; font-size: 1.15rem; font-weight: 600; color: var(--forest);
}

/* ---------- Cards ---------- */
.cards { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .cards.four { grid-template-columns: repeat(4, 1fr); } }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: #cfc8b6; }
.card p { color: var(--ink-soft); margin: 0; font-size: 1rem; }
.icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px;
  background: var(--teal-soft); color: var(--forest);
}
.icon svg { width: 26px; height: 26px; }
.card:nth-child(2) .icon { background: var(--saffron-soft); }
.card:nth-child(3) .icon { background: #dde8ef; }
.card:nth-child(4) .icon { background: #e4ecdc; }

/* ---------- Projects ---------- */
.projects { background: var(--paper); border-block: 1px solid var(--line); }
.project-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
@media (min-width: 860px) { .project-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
.project {
  display: flex; flex-direction: column; background: var(--offwhite); border: 1px solid var(--line); border-radius: 26px; overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease;
}
.project:hover { transform: translateY(-6px); box-shadow: 0 2px 4px rgba(18, 55, 42, .05), 0 28px 48px -24px rgba(18, 55, 42, .35); }
.project-art { aspect-ratio: 16 / 7; overflow: hidden; background: var(--forest); position: relative; }
.project-art svg { width: 100%; height: 100%; transition: transform .8s ease; }
.project:hover .project-art svg { transform: scale(1.04); }
.project-body { padding: clamp(22px, 4vw, 34px); display: flex; flex-direction: column; flex: 1; }
.project-body h3 { font-size: 1.6rem; margin-bottom: .35em; }
.project-body .tag { font-size: .85rem; font-weight: 700; color: var(--blue); letter-spacing: .04em; margin-bottom: 8px; }
.project-body p { color: var(--ink-soft); }
.badge {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  background: var(--teal-soft); color: #0e4a45; font-weight: 800; font-size: .88rem;
  padding: 7px 14px 7px 10px; border-radius: 999px; margin-bottom: 18px;
}
.badge svg { width: 18px; height: 18px; }
.project .btn { margin-top: auto; align-self: flex-start; }
.fine { font-size: .92rem; color: var(--ink-soft); margin-top: 22px; }

/* ---------- Free access ---------- */
.free { background: linear-gradient(160deg, var(--forest) 0%, #0d2a20 100%); color: var(--offwhite); position: relative; overflow: hidden; }
.free::after {
  content: ""; position: absolute; right: -120px; top: -120px; width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle, rgba(224, 138, 46, .28), transparent 65%);
}
.free h2 { color: #fff; }
.free .eyebrow { color: #f3b268; }
.free .lead { color: rgba(247, 244, 236, .85); }
.ticks { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; position: relative; z-index: 1; }
@media (min-width: 640px) { .ticks { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .ticks { grid-template-columns: repeat(4, 1fr); } }
.ticks li {
  display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: 16px;
  background: rgba(247, 244, 236, .08); border: 1px solid rgba(247, 244, 236, .16); font-weight: 700; line-height: 1.35;
}
.tick {
  flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--saffron); color: #1d1608;
}
.tick svg { width: 18px; height: 18px; }

/* ---------- Approach timeline ---------- */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.steps::before {
  content: ""; position: absolute; left: 25px; top: 10px; bottom: 10px; width: 2px;
  background: repeating-linear-gradient(to bottom, var(--teal) 0 6px, transparent 6px 12px);
}
.step { position: relative; padding-left: 78px; }
.step .num {
  position: absolute; left: 0; top: 0; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: var(--forest); color: var(--offwhite); font-weight: 800; font-size: 1.05rem; box-shadow: 0 0 0 6px var(--offwhite);
}
.step h3 { margin-bottom: .25em; }
.step p { margin: 0; color: var(--ink-soft); font-size: 1rem; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 24px; }
  .steps::before { left: 26px; right: 26px; top: 25px; bottom: auto; width: auto; height: 2px;
    background: repeating-linear-gradient(to right, var(--teal) 0 6px, transparent 6px 12px); }
  .step { padding: 72px 0 0; }
}

/* ---------- Impact + free matters ---------- */
.impact { background: var(--paper); border-block: 1px solid var(--line); }
.big-quote { font-size: clamp(1.5rem, 3.6vw, 2.2rem); font-weight: 800; letter-spacing: -.02em; color: var(--forest); line-height: 1.25; max-width: 22ch; }
.flow { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; }
.flow li {
  display: flex; align-items: center; gap: 14px; padding: 18px 20px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px;
  font-weight: 800; font-size: 1.15rem; color: var(--forest);
}
.flow li span.i { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--saffron-soft); color: #8a4a05; font-size: .9rem; }
.flow li small { display: block; font-weight: 500; font-size: .92rem; color: var(--ink-soft); }
.flow .join { text-align: center; color: var(--teal); font-size: 1.4rem; line-height: 1; padding: 0; background: none; border: 0; justify-content: center; }

/* ---------- Stats (kept for later; only render with real, verified data) ---------- */
.stats { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.stat { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.stat strong { display: block; font-size: 2rem; color: var(--forest); letter-spacing: -.02em; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; margin-bottom: 12px; transition: border-color .2s ease, box-shadow .2s ease; }
.faq details[open] { border-color: #cfc8b6; box-shadow: var(--shadow); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; font-weight: 700; font-size: 1.05rem; color: var(--forest);
  position: relative; border-radius: 16px; min-height: 48px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; margin-top: -8px;
  border-right: 2.5px solid var(--teal); border-bottom: 2.5px solid var(--teal); transform: rotate(45deg); transition: transform .25s ease, margin .25s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq .answer { padding: 0 22px 20px; color: var(--ink-soft); }
.faq .answer p:last-child, .faq .answer ul:last-child { margin-bottom: 0; }
.faq .answer ul { padding-left: 1.2em; margin: 0 0 1em; }

/* ---------- Contact ---------- */
.contact-box {
  background: var(--forest); color: var(--offwhite); border-radius: 28px; padding: clamp(28px, 6vw, 64px);
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; position: relative; overflow: hidden;
}
.contact-box h2 { color: #fff; }
.contact-box .eyebrow { color: #f3b268; }
.contact-box p { color: rgba(247, 244, 236, .86); }
.contact-links { display: grid; gap: 14px; }
@media (min-width: 860px) { .contact-box { grid-template-columns: 1fr 1fr; align-items: center; gap: 56px; } }
.contact-link {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; border-radius: 16px;
  background: rgba(247, 244, 236, .08); border: 1px solid rgba(247, 244, 236, .18); color: #fff; text-decoration: none; font-weight: 700;
  transition: background-color .2s ease, transform .2s ease;
}
.contact-link:hover { background: rgba(247, 244, 236, .16); color: #fff; transform: translateX(4px); }
.contact-link small { display: block; font-weight: 500; font-size: .9rem; color: rgba(247, 244, 236, .72); }

/* ---------- Footer ---------- */
.site-footer { background: #0d2a20; color: rgba(247, 244, 236, .78); padding: 64px 0 28px; margin-top: clamp(64px, 10vw, 110px); font-size: .98rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.site-footer .brand { color: #fff; margin-bottom: 12px; }
.site-footer h4 { color: #fff; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer a { color: rgba(247, 244, 236, .78); text-decoration: none; display: inline-block; padding: 4px 0; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(247, 244, 236, .14); font-size: .9rem; }

/* ---------- Legal pages ---------- */
.legal { padding: clamp(48px, 8vw, 88px) 0 0; }
.legal .wrap { max-width: 800px; }
.legal h1 { font-size: clamp(2rem, 5vw, 3rem); }
.legal h2 { font-size: 1.35rem; margin-top: 2em; }
.legal p, .legal li { color: #34403b; }
.legal .meta { color: var(--ink-soft); font-size: .95rem; }
.legal ul { padding-left: 1.2em; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: .08s; }
.js .reveal.d2 { transition-delay: .16s; }
.js .reveal.d3 { transition-delay: .24s; }
.hero-in { animation: rise .9s ease both; }
.hero-in.d1 { animation-delay: .1s; }
.hero-in.d2 { animation-delay: .2s; }
.hero-in.d3 { animation-delay: .3s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
