/* ============================================================
   The Life Quality Project — stylesheet
   Palette: paper #FAF7F2 · forest #2F5D50 · clay #C97B5A
            sky #6C93C4 · ink #29302E
   Type: Newsreader (display) · Inter (body)
   ============================================================ */

:root {
  /* palette */
  --paper: #FAF7F2;
  --forest: #2F5D50;
  --forest-deep: #24483E;
  --clay: #C97B5A;
  --clay-ink: #A2542F;      /* clay darkened for small text on paper */
  --sky: #6C93C4;
  --sky-ink: #3F6899;       /* sky darkened for small text on paper */
  --ink: #29302E;
  --ink-soft: #4A524F;

  /* washes (palette colours settled onto paper) */
  --wash-warm: #F3EBE2;     /* clay-tinted cream */
  --wash-green: #E9EDE6;    /* forest-tinted cream */
  --wash-blue: #EAEEF3;     /* sky-tinted cream */

  /* type */
  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-hero: clamp(2.7rem, 6.2vw, 4.4rem);
  --fs-h2: clamp(1.85rem, 3.6vw, 2.6rem);
  --fs-h3: 1.4rem;
  --fs-lede: clamp(1.1rem, 1.8vw, 1.25rem);

  /* rhythm */
  --container: 1120px;
  --prose: 66ch;
  --space: clamp(4rem, 9vw, 7rem);
  --radius: 22px;
  --shadow: 0 1px 2px rgba(41, 48, 46, 0.05), 0 10px 30px -18px rgba(41, 48, 46, 0.25);
}

/* ---------- reset & base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.012em;
  color: var(--ink);
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 { font-size: var(--fs-hero); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.3; }

h1 em, h2 em {
  font-style: italic;
  font-weight: 500;
  color: var(--forest);
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--forest);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(47, 93, 80, 0.4);
  transition: text-decoration-color 0.2s ease, color 0.2s ease;
}

a:hover { text-decoration-color: var(--clay); }

::selection { background: var(--clay); color: var(--paper); }

:focus-visible {
  outline: 2px solid var(--clay-ink);
  outline-offset: 3px;
  border-radius: 3px;
}

img, svg { max-width: 100%; height: auto; }

ul { padding-left: 1.2em; }
li { margin-bottom: 0.45em; }

hr {
  border: none;
  border-top: 1px solid var(--wash-green);
  margin: 2.5rem 0;
}

/* ---------- utilities ---------- */

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.prose { max-width: var(--prose); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clay-ink);
  margin: 0 0 1.1rem;
}

.eyebrow::before {
  content: "";
  width: 1.6em;
  height: 2px;
  border-radius: 2px;
  background: var(--clay);
}

.lede {
  font-size: var(--fs-lede);
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 34em;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--forest);
  color: var(--paper);
  padding: 0.6rem 1.1rem;
  border-radius: 0 0 12px 0;
  z-index: 100;
}

.skip-link:focus {
  left: 0;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1;
  padding: 0.95em 1.7em;
  border-radius: 999px;
  border: 1.5px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease,
              background-color 0.18s ease, color 0.18s ease;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--forest);
  color: var(--paper);
}

.btn-primary:hover {
  background: var(--forest-deep);
  box-shadow: 0 8px 20px -10px rgba(47, 93, 80, 0.55);
}

.btn-quiet {
  background: transparent;
  color: var(--forest);
  border-color: rgba(47, 93, 80, 0.45);
}

.btn-quiet:hover {
  border-color: var(--forest);
  background: rgba(47, 93, 80, 0.06);
}

.btn-paper {
  background: var(--paper);
  color: var(--forest);
}

.btn-paper:hover {
  background: #fff;
  box-shadow: 0 8px 20px -10px rgba(0, 0, 0, 0.4);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.9rem;
}

/* ---------- header ---------- */

.site-header {
  background: var(--paper);
  border-bottom: 1px solid rgba(41, 48, 46, 0.07);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  padding-block: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
}

.brand svg { flex: none; }

.brand-name {
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.brand-name span { color: var(--forest); }

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.2rem 1.4rem;
}

.site-nav a {
  font-size: 0.95rem;
  font-weight: 550;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 0.35em 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover { color: var(--forest); }

.site-nav a[aria-current="page"] {
  color: var(--forest);
  border-bottom-color: var(--clay);
}

/* ---------- hero (home) ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: var(--space);
}

.hero::before {
  /* soft organic warmth behind the illustration */
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(38rem 26rem at 82% 18%, rgba(201, 123, 90, 0.14), transparent 65%),
    radial-gradient(30rem 24rem at 96% 78%, rgba(108, 147, 196, 0.13), transparent 65%),
    radial-gradient(26rem 22rem at 8% 92%, rgba(47, 93, 80, 0.08), transparent 60%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.hero-art { text-align: center; }

.hero-art svg {
  width: min(100%, 470px);
  filter: drop-shadow(0 18px 30px rgba(41, 48, 46, 0.08));
}

/* ---------- page hero (interior pages) ---------- */

.page-hero {
  position: relative;
  overflow: hidden;
  background: var(--wash-warm);
  padding-block: clamp(3rem, 7vw, 5rem);
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(30rem 20rem at 90% 10%, rgba(108, 147, 196, 0.14), transparent 60%);
  pointer-events: none;
}

.page-hero .container { position: relative; z-index: 1; }

.page-hero .ripple-mark {
  position: absolute;
  right: clamp(-4rem, -2vw, 0rem);
  bottom: -3.5rem;
  width: clamp(12rem, 24vw, 19rem);
  opacity: 0.5;
  pointer-events: none;
}

/* ---------- sections ---------- */

.section { padding-block: var(--space); }
.section-tight { padding-block: clamp(3rem, 6vw, 4.5rem); }

.section-head { max-width: 46em; margin-bottom: clamp(2rem, 4vw, 3.2rem); }

.wash-warm { background: var(--wash-warm); }
.wash-green { background: var(--wash-green); }

.wave { display: block; width: 100%; height: clamp(2.2rem, 5vw, 4rem); }
.wave-flip { transform: scaleY(-1); }

/* ---------- pillar cards (signature) ---------- */

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.2rem, 2.5vw, 2rem);
}

.pillar {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding: clamp(1.6rem, 3vw, 2.2rem);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(41, 48, 46, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pillar:hover {
  transform: translateY(-4px);
  box-shadow: 0 2px 4px rgba(41, 48, 46, 0.05), 0 22px 40px -20px rgba(41, 48, 46, 0.3);
}

.pillar-green { background: var(--wash-green); }
.pillar-warm  { background: #F6ECE4; }
.pillar-blue  { background: var(--wash-blue); }

.pillar-symbol {
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  background: var(--paper);
  border-radius: 50% 46% 52% 48% / 48% 52% 46% 52%; /* softly organic */
  box-shadow: inset 0 0 0 1px rgba(41, 48, 46, 0.06);
}

.pillar h3 { margin-bottom: 0.2em; }

.pillar-kicker {
  font-size: 0.74rem;
  font-weight: 650;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0;
}

.pillar p { color: var(--ink-soft); font-size: 0.99rem; }

.pillar .more {
  margin-top: auto;
  font-weight: 600;
  font-size: 0.95rem;
}

/* ---------- why section ---------- */

.why-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.pull {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  line-height: 1.35;
  color: var(--forest);
  border-left: 3px solid var(--clay);
  padding-left: 1.2em;
  margin: 0;
}

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--forest);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(34rem 22rem at 88% 115%, rgba(201, 123, 90, 0.28), transparent 62%);
  pointer-events: none;
}

.cta-band .container {
  position: relative;
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
  text-align: center;
}

.cta-band h2 { color: var(--paper); }
.cta-band h2 em { color: #EFC5AF; }

.cta-band p {
  color: rgba(250, 247, 242, 0.85);
  max-width: 38em;
  margin-inline: auto;
}

.cta-band .btn-row { justify-content: center; }

/* ---------- program rows ---------- */

.prog {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: clamp(1.4rem, 3.5vw, 2.8rem);
  align-items: start;
  padding-block: clamp(2rem, 4vw, 2.8rem);
}

.prog + .prog { border-top: 1px solid rgba(41, 48, 46, 0.09); }

.prog-symbol {
  width: 118px;
  height: 118px;
  display: grid;
  place-items: center;
  border-radius: 46% 54% 50% 50% / 52% 48% 54% 46%;
  box-shadow: inset 0 0 0 1px rgba(41, 48, 46, 0.05);
}

.prog h3 {
  font-size: clamp(1.45rem, 2.4vw, 1.8rem);
  margin-bottom: 0.35em;
}

.prog p { color: var(--ink-soft); max-width: 62ch; }

/* ---------- note box ---------- */

.note {
  background: var(--wash-blue);
  border-left: 4px solid var(--sky);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.5rem 1.8rem;
  max-width: 62ch;
}

.note strong { color: var(--sky-ink); }

/* ---------- help cards (get involved) ---------- */

.help-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.2rem, 2.5vw, 2rem);
}

.help {
  padding: clamp(1.5rem, 3vw, 2rem);
  background: var(--paper);
  border: 1px solid rgba(41, 48, 46, 0.1);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.help h3 { margin: 0; }

.help p { color: var(--ink-soft); font-size: 0.99rem; margin: 0; }

.help .help-symbol { width: 64px; height: 64px; }

/* ---------- values list (about) ---------- */

.values { display: grid; gap: 1.6rem; padding: 0; margin: 0; list-style: none; }

.values li {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  gap: 1.1rem;
  margin: 0;
}

.values li::before {
  content: "";
  width: 14px;
  height: 14px;
  margin-top: 0.5rem;
  border-radius: 50% 45% 55% 50%;
  background: var(--clay);
}

.values li:nth-child(2n)::before { background: var(--sky); }
.values li:nth-child(3n)::before { background: var(--forest); }

.values h3 { font-size: 1.25rem; margin-bottom: 0.15em; }
.values p { color: var(--ink-soft); margin: 0; }

/* ---------- forms ---------- */

.form-card {
  background: var(--paper);
  border: 1px solid rgba(41, 48, 46, 0.1);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(1.8rem, 4vw, 2.8rem);
  max-width: 640px;
}

.field { margin-bottom: 1.3rem; }

.field label {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.field .hint {
  font-weight: 400;
  color: var(--ink-soft);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid rgba(41, 48, 46, 0.22);
  border-radius: 12px;
  padding: 0.75em 0.95em;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(47, 93, 80, 0.14);
}

.field textarea { resize: vertical; min-height: 7.5em; }

.fine-print {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-top: 1.1rem;
}

/* honeypot — humans never see or fill this */
.hp {
  display: none !important;
}

/* ---------- contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.email-card {
  background: var(--wash-green);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 3vw, 2.2rem);
}

.email-card .big-mail {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 500;
  overflow-wrap: anywhere;
}

/* ---------- legal pages ---------- */

.legal { max-width: 72ch; }

.legal h2 {
  font-size: 1.5rem;
  margin-top: 2.2em;
}

.legal h2:first-of-type { margin-top: 1.2em; }

.legal .updated {
  font-size: 0.9rem;
  color: var(--ink-soft);
  font-style: italic;
}

/* ---------- centered pages (thanks / 404) ---------- */

.center-page {
  min-height: 55vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: var(--space);
}

.center-page .inner { max-width: 34em; }

.center-page svg { margin-bottom: 1.6rem; }

/* ---------- footer ---------- */

.site-footer {
  background: var(--forest-deep);
  color: rgba(250, 247, 242, 0.82);
  font-size: 0.95rem;
}

.site-footer a { color: var(--paper); text-decoration-color: rgba(250, 247, 242, 0.35); }
.site-footer a:hover { text-decoration-color: var(--clay); }

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.7fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-block: clamp(2.8rem, 6vw, 4rem) 2rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--paper);
  margin-bottom: 0.9rem;
}

.footer-title {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(250, 247, 242, 0.6);
  margin: 0 0 1rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.45rem;
}

.footer-links a { text-decoration: none; color: rgba(250, 247, 242, 0.85); }
.footer-links a:hover { color: var(--paper); text-decoration: underline; }

.newsletter-row {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 0.4rem;
}

.newsletter-row input[type="email"] {
  flex: 1 1 200px;
  font: inherit;
  font-size: 0.98rem;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid transparent;
  border-radius: 999px;
  padding: 0.72em 1.1em;
}

.newsletter-row input[type="email"]:focus {
  outline: none;
  border-color: var(--clay);
  box-shadow: 0 0 0 3px rgba(201, 123, 90, 0.3);
}

.newsletter-row .btn { flex: none; }

.newsletter-note {
  font-size: 0.8rem;
  line-height: 1.6;
  color: rgba(250, 247, 242, 0.6);
  margin-top: 0.8rem;
}

.newsletter-note a { color: rgba(250, 247, 242, 0.8); }

.footer-bottom {
  border-top: 1px solid rgba(250, 247, 242, 0.14);
  padding-block: 1.3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.8rem;
  justify-content: space-between;
  font-size: 0.85rem;
  color: rgba(250, 247, 242, 0.6);
}

.footer-bottom p { margin: 0; }
.footer-bottom nav { display: flex; gap: 1.4rem; }
.footer-bottom a { color: rgba(250, 247, 242, 0.75); }

/* ---------- reveal on scroll (one soft entrance) ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js .reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .pillar { transition: none; }
  .btn:hover, .pillar:hover { transform: none; }
}

/* ---------- responsive ---------- */

@media (max-width: 960px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .hero-art svg { width: min(100%, 380px); }
  .pillars, .help-grid { grid-template-columns: 1fr; }
  .why-grid, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .prog { grid-template-columns: 1fr; }
  .prog-symbol { width: 96px; height: 96px; }
  .site-header .container { justify-content: center; text-align: center; }
  .site-nav { justify-content: center; }
}
