/* ============================================
   WELL THANKS FOUNDATION — Design System
   Warm, human, photography-led. Grounded in the
   regional Australian landscapes (Tasmania coast,
   Loddon Mallee) the Foundation funds programs in —
   expressed as a soft topographic contour motif and
   a hand-drawn "conversation line" divider.
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,300;9..144,400;9..144,500;9..144,600&family=Karla:wght@400;500;600;700&display=swap');

:root {
  /* Color tokens */
  --ink: #2B2A24;
  --ink-soft: #55524A;
  --paper: #F7EFE6;
  --paper-alt: #EFE3D3;
  --sage: #5B7A63;
  --sage-dark: #3F5A48;
  --sage-pale: #DCE6DD;
  --coral: #E28374;
  --coral-dark: #C96856;
  --plum: #6E4650;
  --plum-dark: #4A2E36;
  --honey: #D9A441;
  --paper-rgb: 247, 239, 230;

  /* Type */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Karla', -apple-system, sans-serif;

  /* Layout */
  --max-width: 1160px;
  --radius-lg: 32px;
  --radius-md: 20px;
  --radius-sm: 12px;
}

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

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
  color: var(--sage-dark);
}

h1 { font-weight: 400; font-variation-settings: 'opsz' 144, 'SOFT' 60; }

p { margin: 0 0 1em; color: var(--ink-soft); }

a { color: inherit; }

img { max-width: 100%; display: block; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--coral-dark);
  display: inline-block;
  margin-bottom: 14px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 14px 30px;
  border-radius: 100px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--coral);
  color: #fff;
  box-shadow: 0 6px 20px rgba(226, 131, 116, 0.35);
}
.btn-primary:hover { background: var(--coral-dark); transform: translateY(-2px); }

.btn-ghost {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

.btn-ghost-light {
  background: transparent;
  border-color: rgba(255,255,255,0.6);
  color: #fff;
}
.btn-ghost-light:hover { background: #fff; color: var(--sage-dark); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(var(--paper-rgb), 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(43,42,36,0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-logo {
  height: 34px;
  width: auto;
  display: block;
}

.brand-mark {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  position: relative;
  padding-bottom: 4px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0;
  height: 2px;
  background: var(--coral);
  transition: width 0.25s ease;
}
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { width: 100%; }

.nav-cta {
  background: var(--sage);
  color: #fff !important;
  padding: 10px 22px;
  border-radius: 100px;
  font-weight: 700;
}
.nav-cta::after { display: none; }
.nav-links a.nav-cta {
  padding-top: 10px;
  padding-bottom: 10px;
}
.nav-cta:hover { background: var(--sage-dark); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--paper);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 10px 28px 26px;
    border-bottom: 1px solid rgba(43,42,36,0.08);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 10px 0; width: 100%; }
  .nav-cta { margin-top: 8px; text-align: center; }
}

/* ---------- Topographic motif ---------- */
.topo-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.topo-bg svg { width: 100%; height: 100%; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--sage-pale) 0%, var(--paper) 78%);
  padding: 84px 0 100px;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.6rem, 5vw, 4.1rem);
  color: var(--ink);
  margin-bottom: 22px;
}

.hero h1 em {
  font-style: italic;
  color: var(--coral-dark);
}

.hero-lede {
  font-size: 1.15rem;
  max-width: 46ch;
  margin-bottom: 30px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-art {
  position: relative;
  aspect-ratio: 4 / 4.6;
}

.blob-photo {
  position: absolute;
  inset: 0;
  border-radius: 46% 54% 62% 38% / 48% 42% 58% 52%;
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(74, 46, 54, 0.35);
  background: var(--sage);
}
.blob-photo img { width: 100%; height: 100%; object-fit: cover; }

.blob-accent {
  position: absolute;
  width: 130px; height: 130px;
  border-radius: 44% 56% 60% 40% / 50% 46% 54% 50%;
  background: var(--honey);
  z-index: -1;
  opacity: 0.85;
}
.blob-accent.top { top: -24px; right: -24px; }
.blob-accent.bottom { bottom: -18px; left: -30px; width: 90px; height: 90px; background: var(--coral); }

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 380px; margin: 0 auto; }
}

/* ---------- Conversation-line divider ---------- */
.conv-divider {
  width: 100%;
  height: 42px;
  margin: 0 auto;
  display: block;
}
.conv-divider path {
  fill: none;
  stroke: var(--coral);
  stroke-width: 2.5;
  stroke-linecap: round;
}

/* ---------- Sections ---------- */
.section { padding: 88px 0; position: relative; }
.section-tight { padding: 60px 0; }
.section-alt { background: var(--paper-alt); }
.section-sage { background: var(--sage-dark); color: #fff; }
.section-sage h2, .section-sage h3 { color: #fff; }
.section-sage p { color: rgba(255,255,255,0.82); }

.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }

/* ---------- Body copy blocks ---------- */
.prose { max-width: 72ch; }
.prose p { font-size: 1.03rem; }

/* ---------- Pillars / feature grid ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
@media (max-width: 860px) { .pillars { grid-template-columns: 1fr; } }

.pillar-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 32px 28px;
  border: 1px solid rgba(43,42,36,0.06);
  box-shadow: 0 14px 34px -22px rgba(43,42,36,0.35);
}
.pillar-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.pillar-card p { font-size: 0.96rem; margin-bottom: 0; }
.pillar-icon {
  width: 46px; height: 46px;
  border-radius: 40% 60% 55% 45% / 50%;
  background: var(--sage-pale);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  color: var(--sage-dark);
}
.pillar-icon svg { width: 24px; height: 24px; }

/* ---------- Fit callout ---------- */
.fit-block {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 50px;
  align-items: center;
}
@media (max-width: 880px) { .fit-block { grid-template-columns: 1fr; } }

.fit-shape {
  position: relative;
  aspect-ratio: 1/1;
  border-radius: 42% 58% 55% 45% / 48% 40% 60% 52%;
  background: linear-gradient(150deg, var(--sage) 0%, var(--sage-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.fit-shape svg { width: 60%; height: 60%; }

/* ---------- Supporters strip ---------- */
.supporters-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 48px;
}
.supporters-strip img {
  max-height: 56px;
  width: auto;
  opacity: 0.8;
  transition: opacity 0.25s ease, filter 0.25s ease;
}
.supporters-strip img:hover { opacity: 1; }
.supporters-strip img.logo-invert {
  filter: invert(1);
  opacity: 0.6;
}
.supporters-strip img.logo-invert:hover {
  opacity: 0.85;
}
.supporters-strip img.logo-dark {
  opacity: 0.6;
}
.supporters-strip img.logo-dark:hover {
  opacity: 0.85;
}

/* ---------- Impact story cards ---------- */
.impact-story {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 44px;
  align-items: center;
  padding: 44px 0;
  border-bottom: 1px solid rgba(43,42,36,0.1);
}
.impact-story:last-child { border-bottom: none; }
.impact-story:nth-child(even) { direction: rtl; }
.impact-story:nth-child(even) > * { direction: ltr; }

@media (max-width: 880px) {
  .impact-story, .impact-story:nth-child(even) {
    grid-template-columns: 1fr;
    direction: ltr;
  }
}

.impact-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3.2;
  box-shadow: 0 20px 44px -22px rgba(43,42,36,0.4);
}
.impact-photo img { width: 100%; height: 100%; object-fit: cover; }

.impact-figure {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--coral-dark);
  margin: 10px 0 6px;
}
.impact-figure span { font-family: var(--font-body); font-size: 0.95rem; font-weight: 600; color: var(--ink-soft); }

.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tag {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 100px;
  background: var(--sage-pale);
  color: var(--sage-dark);
}

/* ---------- Team grid ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
@media (max-width: 860px) { .team-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; } }

.team-card { text-align: left; }
.team-photo {
  aspect-ratio: 1/1;
  border-radius: 46% 54% 58% 42% / 50%;
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: 0 16px 34px -20px rgba(43,42,36,0.4);
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-card h3 { margin-bottom: 4px; font-size: 1.2rem; }
.team-role { color: var(--coral-dark); font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 12px; }
.team-card p { font-size: 0.95rem; }

/* ---------- Get involved cards ---------- */
.gi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
@media (max-width: 940px) { .gi-grid { grid-template-columns: 1fr; } }

.gi-card {
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(43,42,36,0.06);
  box-shadow: 0 14px 34px -22px rgba(43,42,36,0.35);
  display: flex;
  flex-direction: column;
}
.gi-photo { aspect-ratio: 16/11; overflow: hidden; }
.gi-photo img { width: 100%; height: 100%; object-fit: cover; }
.gi-body { padding: 26px; display: flex; flex-direction: column; flex-grow: 1; }
.gi-date { color: var(--coral-dark); font-weight: 700; font-size: 0.82rem; margin-bottom: 8px; }
.gi-body h3 { font-size: 1.25rem; margin-bottom: 10px; }
.gi-body p { font-size: 0.95rem; flex-grow: 1; }
.gi-body .btn { margin-top: 14px; align-self: flex-start; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--coral) 0%, var(--plum) 100%);
  color: #fff;
  padding: 64px 56px;
  text-align: center;
  overflow: hidden;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.9); max-width: 56ch; margin-left: auto; margin-right: auto; }
.cta-band .btn-primary { background: #fff; color: var(--plum-dark); box-shadow: none; }
.cta-band .btn-primary:hover { background: var(--paper); }

/* ---------- Stats row ---------- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: center;
}
@media (max-width: 700px) { .stats-row { grid-template-columns: 1fr; } }
.stat h3 { font-size: 2.6rem; color: var(--honey); margin-bottom: 4px; }
.stat p { color: rgba(255,255,255,0.78); font-weight: 600; margin: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--plum-dark);
  color: rgba(255,255,255,0.85);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.14);
}
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-brand {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 14px;
}
.footer-logo {
  height: 30px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
}
.footer-col h4 {
  color: #fff; font-family: var(--font-body); font-size: 0.8rem;
  text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 16px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { text-decoration: none; color: rgba(255,255,255,0.75); font-size: 0.94rem; }
.footer-col a:hover { color: var(--honey); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px; padding-top: 26px;
  font-size: 0.85rem; color: rgba(255,255,255,0.55);
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  background: var(--sage-pale);
  padding: 70px 0 64px;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(2.1rem, 4vw, 3rem); max-width: 18ch; }
.page-hero .prose { font-size: 1.05rem; }

/* Utility */
.mt-0 { margin-top: 0; }
.center { text-align: center; }
.w-prose { max-width: 62ch; margin-left: auto; margin-right: auto; }
