/* Mafuthi Foundation: site styles. Mobile first; no framework. All CSS lives here (CSP: style-src 'self'). */

@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/poppins-400.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/poppins-500.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/poppins-700.woff2") format("woff2"); }

:root {
  --brown: #59321C;
  --brown-dark: #43240f;
  --cream: #FFFAF2;
  --tint: #F5E8D6;
  --ink: #3A3330;
  --muted: #6a5f59;
  --gold: #C98F2B;
  --gold-light: #F2C14E;
  --gold-text: #8a5c0f;          /* gold dark enough for AA text on cream */
  --white: #ffffff;
  --line: #e7d8c3;
  --wa: #25D366;
  --wa-text: #0b5d2b;
  --error: #a3261b;
  --rainbow: linear-gradient(90deg, #8F7FFF, #2EE6F5, #FADF20, #F9A23A, #F87164);
  --radius: 16px;
  --radius-sm: 12px;
  --radius-lg: 20px;
  --shadow: 0 2px 6px rgba(89, 50, 28, .06), 0 10px 30px rgba(89, 50, 28, .08);
  --shadow-sm: 0 1px 3px rgba(89, 50, 28, .08);
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --container: 1180px;
  --gutter: 20px;
  --header-h: 72px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { color: var(--brown); line-height: 1.2; margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: clamp(1.9rem, 6vw, 3.1rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.45rem, 4vw, 2.05rem); }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }
a { color: var(--brown); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brown-dark); text-decoration-thickness: 2px; }
ul, ol { padding-left: 1.25em; }
strong { font-weight: 600; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
main:focus { outline: none; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--brown); color: var(--white); padding: 12px 18px; border-radius: var(--radius-sm);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--white); }

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

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 780px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 12px 22px;
  border: 2px solid transparent; border-radius: 999px;
  font: inherit; font-weight: 600; font-size: 1rem; line-height: 1.2;
  text-decoration: none; text-align: center; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: none; }
.btn-primary { background: var(--brown); color: var(--white); }
.btn-primary:hover { background: var(--brown-dark); color: var(--white); }
.btn-outline { background: transparent; color: var(--brown); border-color: var(--brown); }
.btn-outline:hover { background: var(--brown); color: var(--white); }
.btn-gold { background: var(--gold-light); color: var(--brown-dark); }
.btn-gold:hover { background: #f6cf6f; color: var(--brown-dark); }
.btn-whatsapp { background: var(--white); color: var(--wa-text); border-color: var(--wa); }
.btn-whatsapp:hover { background: #e9fbef; color: var(--wa-text); }
.btn-whatsapp .icon-wa { width: 22px; height: 22px; color: #1aa851; }
.btn-small { min-height: 44px; padding: 8px 18px; font-size: .95rem; }
.btn-large { min-height: 56px; padding: 14px 30px; font-size: 1.05rem; }
.btn[disabled], .btn.is-busy { opacity: .65; cursor: progress; transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.5rem 0 0; }
.text-link { font-weight: 600; display: inline-flex; align-items: center; min-height: 44px; }
.text-link::after { content: "→"; margin-left: .4em; transition: transform .15s; }
.text-link:hover::after { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 250, 242, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.4) blur(8px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; min-height: 44px; }
.brand img { width: auto; height: 54px; }

.nav-toggle {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; min-width: 44px; padding: 8px 14px;
  background: var(--white); color: var(--brown); border: 1px solid var(--line); border-radius: 999px;
  font: inherit; font-weight: 600; font-size: .95rem; cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative;
  transition: transform .2s, background-color .2s;
}
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

.site-nav {
  display: none;
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--cream); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  padding: 8px var(--gutter) 20px;
  max-height: calc(100vh - var(--header-h)); overflow-y: auto;
}
.site-nav.is-open { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav li a {
  display: flex; align-items: center; min-height: 48px; padding: 0 4px;
  color: var(--ink); font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--line);
}
.site-nav li a:hover { color: var(--brown); }
.site-nav li a[aria-current="page"] { color: var(--brown); font-weight: 700; }
.nav-cta { margin-top: 16px; width: 100%; }

/* Without JavaScript the menu cannot open, so show it inline instead. */
.no-js .nav-toggle { display: none; }
.no-js .site-nav { display: block; position: static; box-shadow: none; border: 0; padding: 0 0 12px; }
.no-js .header-inner { flex-wrap: wrap; }

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.section-tight { padding: 32px 0; }
.section-top-0 { padding-top: 0; }
.section-tint { background: var(--tint); }
.section-label, .eyebrow {
  display: inline-block; margin: 0 0 .6rem;
  font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-text);
}
.eyebrow a { color: inherit; }
.section-intro, .lead { font-size: 1.12rem; color: var(--ink); max-width: 62ch; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 24px; margin-bottom: 8px; }
.empty { padding: 20px; background: var(--white); border: 1px dashed var(--line); border-radius: var(--radius-sm); color: var(--muted); }
.notice { padding: 12px 16px; border-left: 4px solid var(--gold); background: var(--white); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: .97rem; }
.breadcrumb { font-size: .95rem; margin-bottom: .5rem; }

.page-hero { padding: 48px 0 32px; position: relative; }
.page-hero .container::after { content: ""; display: block; width: 72px; height: 4px; margin-top: 8px; border-radius: 4px; background: var(--rainbow); }

/* ---------- Home hero ---------- */
.hero { padding: 36px 0 48px; }
.hero-grid { display: grid; gap: 32px; align-items: center; }
.hero h1 { margin-bottom: .45em; }
.hero-media { margin: 0; position: relative; }
.hero-media img {
  width: 100%; aspect-ratio: 4 / 5; max-height: 560px; object-fit: cover; object-position: center 30%;
  border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.hero-media::before {
  content: ""; position: absolute; inset: auto 24px -8px 24px; height: 8px; border-radius: 0 0 8px 8px; background: var(--rainbow);
}

.chips { list-style: none; padding: 0; margin: 1.25rem 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  padding: 6px 14px; border-radius: 999px; background: var(--white); border: 1px solid var(--line);
  font-size: .9rem; font-weight: 500; color: var(--brown);
}
.chips-hero li::before { content: "✓"; color: var(--gold); font-weight: 700; margin-right: 6px; }

/* ---------- Grids and cards ---------- */
.grid { display: grid; gap: 20px; margin-top: 24px; list-style: none; padding: 0; }
.card {
  position: relative; background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); border: 1px solid var(--line); overflow: hidden;
  display: flex; flex-direction: column;
}
.card-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.card-body > :last-child { margin-bottom: 0; }
.card-title { margin-bottom: .4em; }
.card-title a { text-decoration: none; color: var(--brown); }
.card-title a:hover { text-decoration: underline; }
.card-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--tint); }
/* Whole card clickable while the link text stays the accessible name. */
.stretched::after { content: ""; position: absolute; inset: 0; }
.card:has(.stretched:hover) { box-shadow: var(--shadow); }
.label { font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-text); margin-bottom: .4em; }
.meta { color: var(--muted); font-size: .92rem; margin-top: auto; }

.value-card { border-top: 4px solid var(--gold-light); }
.value-card .text-link { margin-top: auto; }

.panel { background: var(--tint); border-radius: var(--radius); padding: 22px; }
.section-tint .panel { background: var(--white); }
.panel > :last-child { margin-bottom: 0; }

/* Vision, mission, values */
.vmv { display: grid; gap: 20px; margin-top: 24px; }
.vmv .chips { margin-top: .25rem; }

/* How it works */
.flow { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 34px; counter-reset: none; }
.flow-step {
  position: relative; background: var(--white); border-radius: var(--radius); padding: 22px 22px 20px;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm); text-align: center;
}
.flow-step h3 { margin: .3em 0 .2em; }
.flow-step p { margin: 0; color: var(--muted); font-size: .95rem; }
.flow-step-mafuthi { background: var(--brown); border-color: var(--brown); }
.flow-step-mafuthi h3 { color: var(--white); }
.flow-step-mafuthi p { color: #f3e6d8; }
.flow-num {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--gold-light); color: var(--brown-dark); font-weight: 700;
}
/* Arrow between steps: down on phones, right on wide screens. */
.flow-step:not(:last-child)::after {
  content: "↓"; position: absolute; left: 50%; bottom: -32px; transform: translateX(-50%);
  font-size: 1.4rem; font-weight: 700; color: var(--gold);
}

/* Model table (Mafuthi does / Partner NPOs do) */
.model-table { display: grid; gap: 20px; margin-top: 24px; }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { position: relative; padding: 8px 0 8px 32px; border-bottom: 1px solid var(--line); }
.ticks li:last-child { border-bottom: 0; }
.ticks li::before {
  content: "✓"; position: absolute; left: 0; top: 9px; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; background: var(--gold-light); color: var(--brown-dark); font-size: .8rem; font-weight: 700;
}

/* Pillars */
.pillars { list-style: none; }
.pillar-num {
  display: inline-grid; place-items: center; width: 44px; height: 44px; margin-bottom: 12px; border-radius: 12px;
  background: var(--tint); color: var(--brown); font-weight: 700; font-size: 1.1rem;
}
.checklist-cards li { display: flex; align-items: center; gap: 12px; }
.checklist-cards li::before {
  content: "✓"; flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--brown); color: var(--white); font-weight: 700; font-size: .85rem;
}
.reasons li { position: relative; padding-left: 52px; }
.reasons li::before {
  content: ""; position: absolute; left: 22px; top: 26px; width: 14px; height: 14px; border-radius: 50%; background: var(--gold);
}

/* Donors strip and CTA band */
.donor-strip {
  display: grid; gap: 16px; align-items: center; padding: 28px; border-radius: var(--radius-lg);
  background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
}
.donor-strip::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--rainbow); }
.donor-strip h2 { font-size: 1.4rem; margin-bottom: .3em; }
.donor-strip p { margin: 0; }
.cta-band { background: var(--brown); color: #f8ece0; padding: 56px 0; text-align: center; }
.cta-band h2 { color: var(--white); }
.cta-band p { font-size: 1.1rem; }
.cta-inner { display: flex; flex-direction: column; align-items: center; }

/* Leadership */
.founders { display: grid; gap: 20px; margin-top: 24px; }
.founder-card { flex-direction: column; }
.founder-photo { width: 100%; aspect-ratio: 600 / 370; object-fit: cover; object-position: center top; }
.founder-initials {
  aspect-ratio: 600 / 370; display: grid; place-items: center; background: var(--tint); position: relative;
}
.founder-initials span {
  width: 112px; height: 112px; border-radius: 50%; display: grid; place-items: center;
  background: var(--brown); color: var(--white); font-size: 2.4rem; font-weight: 700; letter-spacing: .02em;
}
.role { display: block; color: var(--gold-text); font-weight: 500; font-size: .95rem; margin: 0; }
.group-cards { margin-top: 20px; }
.member-list { list-style: none; margin: 0; padding: 0; }
.member-list li { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.member-list li:last-child { border-bottom: 0; }
.member-list strong { display: block; color: var(--ink); }
.member-initials {
  flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--tint); color: var(--brown); font-weight: 700; font-size: .9rem;
}

.prose-grid { display: grid; gap: 32px; }
.prose > * { max-width: 70ch; }
.prose h2 { margin-top: 1.6em; font-size: 1.35rem; }
.prose h2:first-child { margin-top: 0; }

/* Filters (projects, resources) */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; }
.filter {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border-radius: 999px;
  background: var(--white); border: 1px solid var(--line); color: var(--ink); font-weight: 500; font-size: .95rem; text-decoration: none;
}
.filter:hover { border-color: var(--brown); color: var(--brown); text-decoration: none; }
.filter.is-active { background: var(--brown); border-color: var(--brown); color: var(--white); }

/* Resources */
.search { margin-bottom: 20px; max-width: 640px; }
.search label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--brown); }
.search-row { display: flex; gap: 8px; }
.search-row input { flex: 1; min-width: 0; }
.search-summary { margin-top: 12px; }
.resource-group { margin-top: 36px; }
.resource-group h2 { font-size: 1.35rem; margin-bottom: 0; }
.resource-group .empty { margin-top: 14px; }
.resource-card .btn { align-self: flex-start; margin-top: auto; }
.resource-card p:not(.badges) { margin-bottom: 1.1em; }
.badges { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: .6em; }
.badges .label { margin: 0; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 600; background: var(--tint); color: var(--brown); }
.badge-download { background: #e6efff; color: #223e7a; }
.badge-guide { background: #e7f6ee; color: #1d5a37; }

/* Project detail */
.facts { display: flex; flex-wrap: wrap; gap: 12px 28px; margin: 1rem 0 0; }
.facts dt { font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-text); }
.facts dd { margin: 0; font-weight: 500; }
.gallery { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 16px; }
.gallery img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.gallery-link { display: block; border-radius: var(--radius); }
.caption { font-size: .92rem; color: var(--muted); margin: 8px 0 0; }
.placeholder-figure { margin: 24px 0 0; max-width: 560px; }
.placeholder-figure img { border-radius: var(--radius); }
.placeholder-figure figcaption { color: var(--muted); font-size: .92rem; margin-top: 8px; }

.lightbox { border: 0; padding: 0; background: transparent; max-width: min(92vw, 900px); max-height: 92vh; overflow: visible; }
.lightbox::backdrop { background: rgba(20, 12, 8, .85); }
.lightbox img { max-width: 100%; max-height: 82vh; width: auto; margin: 0 auto; border-radius: var(--radius-sm); }
.lightbox-caption { color: var(--white); text-align: center; margin: 10px 0 0; }
.lightbox-close {
  position: absolute; top: -52px; right: 0; width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: var(--white); color: var(--brown); font-size: 1.6rem; line-height: 1; cursor: pointer;
}

/* ---------- Forms ---------- */
.form { margin-top: 20px; }
.form-section { border: 0; margin: 0 0 20px; padding: 22px; background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); }
.form-section > legend {
  float: left; width: 100%; padding: 0; margin: 0 0 16px;
  font-size: 1.2rem; font-weight: 700; color: var(--brown); display: flex; align-items: center; gap: 10px;
}
.form-section > legend + * { clear: both; }
.step {
  display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--gold-light); color: var(--brown-dark); font-size: .95rem;
}
.field { margin: 0 0 18px; border: 0; padding: 0; min-width: 0; }
.field > label, .checks > legend { display: block; font-weight: 600; margin-bottom: 6px; color: var(--ink); padding: 0; }
.field-row { display: grid; gap: 0 16px; }
.field-short input { max-width: 180px; }
.req { color: var(--error); font-weight: 700; }
.hint { color: var(--muted); font-weight: 400; font-size: .92rem; }
p.hint { margin: -2px 0 8px; }
.form-note { color: var(--muted); font-size: .92rem; }

input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="number"],
input[type="search"], input[type="password"], select, textarea {
  width: 100%; min-height: 48px; padding: 10px 14px;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--white); border: 1.5px solid #cdbba4; border-radius: var(--radius-sm);
  transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
select {
  appearance: none; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2359321C' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brown); box-shadow: 0 0 0 3px rgba(201, 143, 43, .35); }
[aria-invalid="true"] input, input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--error); }
.field-error { color: var(--error); font-weight: 500; font-size: .93rem; margin: 6px 0 0; }
.field-error::before { content: "! "; font-weight: 700; }

.check-grid { display: grid; gap: 4px 16px; }
.check { display: flex; align-items: flex-start; gap: 12px; }
.check input[type="checkbox"] {
  flex: none; width: 24px; height: 24px; margin: 10px 0; accent-color: var(--brown); cursor: pointer;
}
.check label { flex: 1; min-width: 0; padding: 8px 0; min-height: 44px; cursor: pointer; font-weight: 400; }
.field.check { flex-wrap: wrap; margin-bottom: 8px; }
.field.check .field-error { flex-basis: 100%; margin-top: 0; }
.counter { font-size: .88rem; color: var(--muted); margin: 6px 0 0; text-align: right; }
.counter.is-over { color: var(--error); font-weight: 600; }

/* Honeypot: off-screen, not display:none (some bots skip hidden fields). */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.alert { padding: 16px 20px; border-radius: var(--radius-sm); margin: 0 0 20px; }
.alert ul { margin: 0; padding-left: 1.2em; }
.alert p:last-child { margin-bottom: 0; }
.alert-error { background: #fdecea; border: 1px solid #f2b8b1; color: #6e1a12; }
.alert-error a { color: #6e1a12; }
.alert-success { background: #e9f7ee; border: 1px solid #b6e2c5; color: #164a2b; }
.alert-info { background: var(--white); border: 1px solid var(--line); }

/* Contact */
.contact-grid { display: grid; gap: 40px; }
.contact-list { margin: 0 0 24px; display: grid; gap: 16px; }
.contact-list dt { font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-text); }
.contact-list dd { margin: 0; font-size: 1.08rem; font-weight: 500; }

/* Thank-you pages */
.thanks { text-align: left; }
.reference {
  margin: 24px 0; padding: 20px 24px; border-radius: var(--radius); background: var(--white);
  border: 2px dashed var(--gold); display: inline-block;
}
.reference p { margin: 0; color: var(--muted); font-size: .92rem; }
.reference .reference-number { color: var(--brown); font-size: 1.8rem; font-weight: 700; letter-spacing: .04em; }
.steps { padding-left: 1.3em; }
.steps li { margin-bottom: .5em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--brown); color: #f3e6d8; margin-top: 0; }
.rainbow-strip { height: 6px; background: var(--rainbow); }
.footer-grid { display: grid; gap: 32px; padding-top: 44px; padding-bottom: 28px; }
.footer-brand img { width: 140px; height: auto; background: var(--cream); border-radius: var(--radius-sm); padding: 10px; margin-bottom: 14px; }
.footer-slogan { font-style: italic; color: var(--gold-light); }
.footer-heading { color: var(--white); font-size: 1rem; margin-bottom: .8em; }
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { margin: 0; }
.footer-list a { color: #f3e6d8; display: inline-flex; align-items: center; min-height: 40px; }
.footer-list a:hover { color: var(--white); }
.footer-list li:not(:has(a)) { padding: 8px 0; }
.footer-base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  border-top: 1px solid rgba(255, 255, 255, .15); padding-top: 18px; padding-bottom: 96px; font-size: .92rem;
}
.footer-base p { margin: 0; }
.footer-base a { color: #f3e6d8; }
.site-footer :focus-visible { outline-color: var(--gold-light); }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  background: var(--wa); color: var(--white); box-shadow: 0 6px 20px rgba(0, 0, 0, .22);
  transition: transform .15s, opacity .2s, visibility .2s;
}
.wa-float:hover { transform: scale(1.06); color: var(--white); }
.wa-float .icon-wa { width: 32px; height: 32px; }
.wa-float:focus-visible { outline: 3px solid var(--brown); outline-offset: 3px; border-radius: 50%; }
/* Hidden while the on-screen keyboard is likely open (see site.js). */
.wa-float.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }

/* ---------- Error / minimal pages ---------- */
.minimal-page { max-width: 640px; margin: 0 auto; padding: 48px var(--gutter); }
.minimal-page .brand { margin-bottom: 24px; }
.dev-detail { padding: 12px; background: #fdecea; border-radius: var(--radius-sm); font-size: .9rem; word-break: break-word; }

/* ---------- Larger screens ---------- */
@media (min-width: 600px) {
  .field-row { grid-template-columns: 1fr 1fr; }
  .field-row-3 { grid-template-columns: 1fr 1fr 1fr; }
  .check-grid { grid-template-columns: 1fr 1fr; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .donor-strip { grid-template-columns: 1fr auto; padding: 32px 36px; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

@media (min-width: 768px) {
  .section { padding: 80px 0; }
  .section-tight { padding: 40px 0; }
  .page-hero { padding: 64px 0 40px; }
  .vmv { grid-template-columns: 1fr 1fr; }
  .vmv .panel-values { grid-column: 1 / -1; }
  .model-table { grid-template-columns: 1fr 1fr; }
  .prose-grid { grid-template-columns: 1fr 1fr; gap: 48px; }
  .contact-grid { grid-template-columns: 1fr 1.3fr; gap: 56px; }
  .founders { grid-template-columns: 1.2fr 1fr; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .form-section { padding: 28px 32px; }
}

@media (min-width: 1000px) {
  :root { --gutter: 32px; --header-h: 84px; }
  .brand img { height: 62px; }
  .nav-toggle { display: none; }
  .site-nav {
    display: flex; align-items: center; gap: 4px; position: static;
    background: none; border: 0; box-shadow: none; padding: 0; max-height: none; overflow: visible;
  }
  .site-nav ul { display: flex; align-items: center; gap: 2px; }
  .site-nav li a { border: 0; min-height: 44px; padding: 0 10px; font-size: .93rem; border-radius: 8px; }
  .site-nav li a[aria-current="page"] { background: var(--tint); }
  .nav-cta { margin: 0 0 0 10px; width: auto; min-height: 44px; padding: 10px 18px; font-size: .93rem; }
  .no-js .site-nav { padding: 0; }
  .hero { padding: 56px 0 80px; }
  .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 56px; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .flow { grid-template-columns: repeat(4, 1fr); gap: 40px; align-items: stretch; }
  .flow-step:not(:last-child)::after { content: "→"; left: auto; right: -32px; top: 50%; bottom: auto; transform: translateY(-50%); }
  .footer-base { padding-bottom: 28px; }
}

@media (min-width: 1200px) {
  .site-nav li a { padding: 0 12px; font-size: .97rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

@media print {
  .site-header, .wa-float, .site-footer, .cta-band, .btn-row { display: none !important; }
  body { background: #fff; }
}

/* Analytics consent banner and footer link-button */
.consent-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 720px; margin: 0 auto;
  background: var(--white); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 16px 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px;
}
.consent-banner p { margin: 0; flex: 1 1 280px; font-size: .95rem; }
.consent-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.link-button {
  background: none; border: 0; padding: 0; font: inherit; color: #f3e6d8; text-decoration: underline; cursor: pointer;
}
.link-button:hover { color: var(--white); }
