/* =========================================================
   Maternal Care Hub — design tokens
   Layout idea: an editorial magazine for motherhood. Arches (the womb / heart
   curve from the logo) frame portraits; the logo's four stages
   (Pregnancy, Birth, Postpartum, Motherhood) run through the site as a journey.
   Change a colour or font here and it updates everywhere.
   ========================================================= */
:root {
  /* Brand colours from the development prompt */
  --plum: #4B245F;          /* headings, brand */
  --plum-deep: #34173F;     /* footer, dark bands */
  --magenta: #C83F83;       /* calls to action, highlights */
  --magenta-dark: #A82F6B;  /* hover state */
  --orange: #E99A4A;        /* secondary accent */
  --white: #FFFFFF;
  --ivory: #FAF7F4;         /* main background */
  --beige: #F1E9E3;         /* soft sections */
  --lavender: #F3EDF6;      /* soft sections */
  --charcoal: #29242C;      /* body text */
  --grey: #6B656E;          /* secondary text (slightly darker than #77717A for contrast) */
  --line: #E4DAD3;          /* hairlines */

  /* Type */
  --font-display: "Cormorant Garamond", "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "DM Sans", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: clamp(1.9rem, 1.4rem + 1.8vw, 2.6rem);
  --step-4: clamp(2.4rem, 1.6rem + 3vw, 3.6rem);
  --step-5: clamp(2.8rem, 1.6rem + 4.6vw, 4.9rem);

  --radius: 6px;
  --max: 1180px;
  --gutter-l: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--magenta-dark); text-underline-offset: 3px; }
a:hover { color: var(--plum); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--plum); font-weight: 600; line-height: 1.12; margin: 0; text-wrap: balance; }
h1 { font-size: var(--step-5); letter-spacing: -0.01em; }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); font-family: var(--font-body); font-weight: 600; line-height: 1.3; }
p { margin: 0; }
.prose p + p, .prose ul + p, .prose p + ul, .prose p + h2, .prose ul + h2, .prose p + h3, .prose ul + h3, .prose ol + p, .prose p + ol, .prose ol + h2 { margin-top: 1em; }
.prose h2 { font-size: var(--step-3); margin-top: 1.6em; margin-bottom: 0.4em; }
.prose h3 { margin-top: 1.4em; margin-bottom: 0.3em; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0.6em 0 0; }
.prose li + li { margin-top: 0.35em; }
.prose { max-width: 68ch; }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--plum); color: var(--white); padding: 10px 16px; z-index: 100; border-radius: var(--radius); }
.skip-link:focus { left: 12px; color: var(--white); }

.wrap { max-width: var(--max); margin-inline: auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.narrow { max-width: 820px; }
.section { padding-block: clamp(56px, 8vw, 104px); }
.section--beige { background: var(--beige); }
.section--lavender { background: var(--lavender); }
.section--white { background: var(--white); }
.section--plum { background: var(--plum); color: #EFE6F2; }
.section--plum h2, .section--plum h3 { color: var(--white); }

.eyebrow {
  font-family: var(--font-body); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--magenta-dark);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--orange); border-radius: 2px; }
.section--plum .eyebrow { color: #F5B9D6; }
.lede { font-size: var(--step-1); color: var(--grey); line-height: 1.6; max-width: 60ch; }
.section-head { display: grid; gap: 14px; margin-bottom: clamp(32px, 5vw, 56px); max-width: 760px; }
.section-head--split { max-width: none; grid-template-columns: 1fr; align-items: end; }
@media (min-width: 860px) { .section-head--split { grid-template-columns: 1.1fr 1fr; gap: 48px; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px; border-radius: 999px;
  font: 600 0.98rem/1.2 var(--font-body); text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn--primary { background: var(--magenta); color: var(--white); }
.btn--primary:hover { background: var(--magenta-dark); color: var(--white); transform: translateY(-1px); }
.btn--ghost { border-color: var(--plum); color: var(--plum); background: transparent; }
.btn--ghost:hover { background: var(--plum); color: var(--white); }
.btn--light { background: var(--white); color: var(--plum); }
.btn--light:hover { background: var(--orange); color: var(--plum-deep); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.text-link { font-weight: 600; text-decoration: none; color: var(--magenta-dark); display: inline-flex; gap: 6px; align-items: center; }
.text-link::after { content: "→"; transition: transform .2s; }
.text-link:hover::after { transform: translateX(4px); }

/* ---------- Header ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--white); }
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: rgba(255,255,255,0.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.brand { display: block; flex-shrink: 0; }
.brand img { height: 58px; width: auto; }
.nav { display: none; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.nav a { display: block; padding: 10px 11px; text-decoration: none; color: var(--charcoal); font-size: 0.94rem; font-weight: 500; border-radius: var(--radius); }
.nav a:hover { color: var(--magenta-dark); }
.nav a[aria-current="page"] { color: var(--plum); box-shadow: inset 0 -2px 0 var(--orange); border-radius: 0; }
.nav .nav-cta { background: var(--magenta); color: var(--white); border-radius: 999px; padding: 10px 18px; margin-left: 8px; }
.nav .nav-cta:hover, .nav .nav-cta[aria-current="page"] { background: var(--plum); color: var(--white); box-shadow: none; border-radius: 999px; }
.menu-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--plum); font: 600 0.95rem var(--font-body); cursor: pointer; }
.menu-toggle .bars { width: 18px; height: 12px; position: relative; }
.menu-toggle .bars::before, .menu-toggle .bars::after, .menu-toggle .bars span { content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s, opacity .2s; }
.menu-toggle .bars::before { top: 0; } .menu-toggle .bars span { top: 5px; } .menu-toggle .bars::after { top: 10px; }
.menu-open .menu-toggle .bars::before { transform: translateY(5px) rotate(45deg); }
.menu-open .menu-toggle .bars::after { transform: translateY(-5px) rotate(-45deg); }
.menu-open .menu-toggle .bars span { opacity: 0; }

.mobile-nav { border-top: 1px solid var(--line); background: var(--white); max-height: calc(100vh - 76px); overflow-y: auto; }
.mobile-nav ul { list-style: none; margin: 0; padding: 8px 0 20px; }
.mobile-nav a { display: flex; justify-content: space-between; align-items: center; padding: 15px 4px; font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; color: var(--plum); text-decoration: none; border-bottom: 1px solid var(--line); }
.mobile-nav a[aria-current="page"] { color: var(--magenta-dark); }
.mobile-nav a::after { content: "→"; font-family: var(--font-body); font-size: 1rem; color: var(--orange); }
.mobile-nav .btn { margin-top: 18px; width: 100%; font-size: 1rem; font-family: var(--font-body); }
.mobile-nav .btn::after { content: none; }
@media (min-width: 1120px) {
  .nav { display: block; }
  .menu-toggle, .mobile-nav { display: none !important; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--ivory); }
.hero .wrap { display: grid; gap: 40px; padding-block: clamp(40px, 6vw, 80px) clamp(56px, 7vw, 96px); align-items: center; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 1.15fr 0.85fr; gap: 64px; } }
.hero h1 { color: var(--plum); }
.hero h1 em { font-style: italic; color: var(--magenta); font-weight: 500; }
.hero .lede { margin-top: 22px; color: #5a5360; }
.hero .btn-row { margin-top: 32px; }
.hero-stages { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--plum); font-weight: 600; }
.hero-stages span { display: inline-flex; align-items: center; gap: 18px; }
.hero-stages span + span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--magenta); }

/* Arch portrait — echoes the womb/heart curve */
.arch { position: relative; max-width: 440px; width: 100%; margin-inline: auto; }
.arch__frame { aspect-ratio: 3 / 4; border-radius: 999px 999px 10px 10px; overflow: hidden; background: var(--beige); position: relative; z-index: 1; }
.arch__frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.arch::before { content: ""; position: absolute; inset: -14px -14px 24px 24px; border: 2px solid var(--orange); border-radius: 999px 999px 10px 10px; z-index: 0; }
.arch::after { content: ""; position: absolute; width: 120px; height: 120px; border-radius: 50%; background: var(--lavender); left: -40px; bottom: 60px; z-index: 0; }
.arch__caption { position: relative; z-index: 2; margin: -48px 18px 0 auto; max-width: 270px; background: var(--white); padding: 16px 20px; border-radius: var(--radius); box-shadow: 0 18px 40px -18px rgba(75,36,95,.35); }
.arch__caption strong { display: block; font-family: var(--font-display); font-size: 1.3rem; color: var(--plum); line-height: 1.2; }
.arch__caption span { font-size: 0.86rem; color: var(--grey); }

/* ---------- Journey strip (Pregnancy → Birth → Postpartum → Motherhood) ---------- */
.journey { background: var(--plum); color: #EADFEE; }
.journey ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.journey li { padding: 28px 24px 30px; border-top: 1px solid rgba(255,255,255,.12); display: grid; gap: 6px; }
@media (min-width: 900px) { .journey li { border-top: 0; border-left: 1px solid rgba(255,255,255,.12); } .journey li:first-child { border-left: 0; padding-left: 0; } }
.journey .stage-n { font-family: var(--font-display); font-style: italic; color: var(--orange); font-size: 1.1rem; }
.journey h3 { color: var(--white); font-size: 1.7rem; }
.journey p { font-size: 0.95rem; color: #D9CCDF; }
.journey a { color: #F5B9D6; font-size: 0.9rem; font-weight: 600; text-decoration: none; }
.journey a:hover { color: var(--white); }

/* ---------- Split layouts ---------- */
.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 72px; } .split--wide-left { grid-template-columns: 1.2fr 0.8fr; } .split--wide-right { grid-template-columns: 0.8fr 1.2fr; } }
.split > * { min-width: 0; }
.stack { display: grid; gap: 18px; align-content: start; }

.pull-quote { font-family: var(--font-display); font-size: var(--step-3); line-height: 1.25; color: var(--plum); font-style: italic; border-left: 3px solid var(--orange); padding-left: 24px; }
.pull-quote cite { display: block; margin-top: 14px; font: 600 0.9rem var(--font-body); color: var(--grey); font-style: normal; }

/* Mission / vision pair */
.mv { display: grid; gap: 2px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 760px) { .mv { grid-template-columns: 1fr 1fr; } }
.mv > div { background: var(--white); padding: clamp(28px, 4vw, 48px); display: grid; gap: 12px; align-content: start; }
.mv .label { font-size: 0.78rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; color: var(--magenta-dark); }
.mv p.big { font-family: var(--font-display); font-size: var(--step-2); line-height: 1.3; color: var(--plum); }

/* ---------- Focus areas (index list, not cards) ---------- */
.focus-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.focus-list li { border-bottom: 1px solid var(--line); }
.focus-list a { display: grid; grid-template-columns: 44px 1fr; gap: 6px 20px; padding: 24px 4px; text-decoration: none; color: inherit; align-items: start; transition: background .2s, padding .2s; }
@media (min-width: 860px) { .focus-list a { grid-template-columns: 56px 1.1fr 1.4fr 120px; align-items: center; gap: 24px; } }
.focus-list a:hover { background: var(--white); padding-left: 16px; }
.focus-list .icon { width: 44px; height: 44px; color: var(--magenta); }
.focus-list h3 { font-size: 1.6rem; }
.focus-list p { color: var(--grey); font-size: 0.98rem; grid-column: 2; }
@media (min-width: 860px) { .focus-list p { grid-column: auto; } }
.focus-list .go { grid-column: 2; font-weight: 600; font-size: 0.9rem; color: var(--magenta-dark); }
@media (min-width: 860px) { .focus-list .go { grid-column: auto; text-align: right; } }

.badge { display: inline-flex; align-items: center; gap: 6px; font: 600 0.72rem/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; background: var(--lavender); color: var(--plum); white-space: nowrap; }
.badge--planned { background: #FCEBD9; color: #8A4A0E; }
.badge--draft { background: #FBE3EF; color: #8E2457; }

/* ---------- Article cards ---------- */
.cards { display: grid; gap: 28px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.card { display: grid; grid-template-rows: auto 1fr; background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); text-decoration: none; color: inherit; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -24px rgba(75,36,95,.4); color: inherit; }
.card__art { aspect-ratio: 16 / 10; position: relative; overflow: hidden; }
.card__body { padding: 22px 22px 24px; display: grid; gap: 10px; align-content: start; }
.card__meta { font-size: 0.82rem; color: var(--grey); display: flex; flex-wrap: wrap; gap: 6px 14px; }
.card__cat { font-size: 0.75rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--magenta-dark); }
.card h3 { font-size: 1.55rem; }
.card p { color: var(--grey); font-size: 0.97rem; }

/* Generated cover art (no stock photos): soft arcs in brand colours */
.cover { position: absolute; inset: 0; }
.cover--plum { background: radial-gradient(circle at 80% 120%, var(--magenta) 0 32%, transparent 33%), radial-gradient(circle at 15% -10%, var(--orange) 0 26%, transparent 27%), var(--plum); }
.cover--magenta { background: radial-gradient(circle at 20% 115%, var(--plum) 0 36%, transparent 37%), radial-gradient(circle at 92% 8%, #F6C08A 0 18%, transparent 19%), var(--magenta); }
.cover--orange { background: radial-gradient(circle at 85% 110%, var(--magenta) 0 30%, transparent 31%), radial-gradient(circle at 0% 0%, #FFF3E6 0 22%, transparent 23%), var(--orange); }
.cover--lavender { background: radial-gradient(circle at 50% 130%, var(--plum) 0 40%, transparent 41%), radial-gradient(circle at 90% 10%, var(--orange) 0 14%, transparent 15%), #E3D5EA; }
.cover .cover-word { position: absolute; left: 22px; bottom: 16px; font-family: var(--font-display); font-style: italic; font-size: 1.6rem; color: rgba(255,255,255,.92); line-height: 1.1; max-width: 80%; }

/* Featured article (large horizontal) */
.feature { display: grid; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; }
@media (min-width: 860px) { .feature { grid-template-columns: 1.1fr 1fr; } }
.feature .card__art { aspect-ratio: auto; min-height: 260px; }
.feature .card__body { padding: clamp(24px, 4vw, 48px); gap: 14px; align-content: center; }
.feature h3 { font-size: var(--step-3); }

/* ---------- Podcast ---------- */
.podcast-feature { display: grid; gap: 32px; align-items: center; }
@media (min-width: 860px) { .podcast-feature { grid-template-columns: 300px 1fr; gap: 56px; } }
.podcast-art { aspect-ratio: 1; border-radius: var(--radius); background: var(--plum); position: relative; overflow: hidden; display: grid; place-items: center; max-width: 300px; width: 100%; }
.podcast-art::before { content: ""; position: absolute; width: 140%; aspect-ratio: 1; border-radius: 50%; border: 2px solid rgba(233,154,74,.6); top: 55%; left: -20%; }
.podcast-art::after { content: ""; position: absolute; width: 100%; aspect-ratio: 1; border-radius: 50%; border: 2px solid rgba(200,63,131,.7); top: 62%; left: 0; }
.podcast-art .pa-text { position: relative; z-index: 1; text-align: center; color: var(--white); padding: 24px; }
.podcast-art .pa-text small { display: block; font-size: 0.72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--orange); font-weight: 600; }
.podcast-art .pa-text strong { display: block; font-family: var(--font-display); font-size: 2rem; line-height: 1.05; margin-top: 8px; font-weight: 600; }
.wave { display: flex; align-items: center; gap: 3px; height: 34px; margin-top: 4px; }
.wave i { display: block; width: 3px; border-radius: 3px; background: var(--magenta); opacity: .55; }
.section--plum .wave i { background: var(--orange); }
.platforms { display: flex; flex-wrap: wrap; gap: 10px; }
.platforms span { border: 1px solid currentColor; border-radius: 999px; padding: 7px 14px; font-size: 0.85rem; opacity: .85; }

/* ---------- Programmes (community) ---------- */
.programmes { display: grid; gap: 0; border-top: 1px solid var(--line); }
.programme { display: grid; gap: 12px; padding: 32px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 860px) { .programme { grid-template-columns: 0.9fr 1.4fr 0.7fr; gap: 40px; align-items: start; } }
.programme h3 { font-size: 1.8rem; }
.programme dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: 0.9rem; }
.programme dt { color: var(--grey); }
.programme dd { margin: 0; font-weight: 500; }

.tiles { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.tile { background: var(--white); border-radius: var(--radius); padding: 28px 24px; display: grid; gap: 10px; align-content: start; border: 1px solid var(--line); }
.tile .icon { width: 36px; height: 36px; color: var(--magenta); }
.tile h3 { font-size: 1.45rem; }
.tile p { font-size: 0.96rem; color: var(--grey); }

.note { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: var(--radius); background: var(--lavender); color: var(--plum); font-size: 0.95rem; }
.note svg { flex-shrink: 0; width: 22px; height: 22px; margin-top: 2px; color: var(--magenta); }
.note--warn { background: #FFF1E3; color: #6A3A0C; }
.note--warn svg { color: #C46A12; }

/* Emergency notice */
.urgent { background: #FFF1E3; border-top: 1px solid #F3D3B1; border-bottom: 1px solid #F3D3B1; color: #5E330B; font-size: 0.92rem; }
.urgent .wrap { padding-block: 12px; display: flex; gap: 10px; align-items: flex-start; }
.urgent strong { color: #8A4A0E; }

/* Gallery empty state */
.gallery-empty { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); }
.gallery-empty div { aspect-ratio: 4/3; border-radius: var(--radius); border: 1.5px dashed #D3C2CF; display: grid; place-items: center; color: var(--grey); font-size: 0.85rem; text-align: center; padding: 10px; background: rgba(255,255,255,.5); }

/* ---------- Get involved band ---------- */
.involve { display: grid; gap: 1px; background: rgba(255,255,255,.14); border-radius: var(--radius); overflow: hidden; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.involve a { background: var(--plum); padding: 28px 24px; display: grid; gap: 8px; text-decoration: none; color: #E9DDEE; transition: background .2s; align-content: start; }
.involve a:hover { background: var(--plum-deep); color: var(--white); }
.involve strong { font-family: var(--font-display); font-size: 1.55rem; color: var(--white); font-weight: 600; line-height: 1.15; }
.involve span { font-size: 0.93rem; }
.involve em { font-style: normal; color: var(--orange); font-weight: 600; font-size: 0.88rem; margin-top: 6px; }

/* ---------- Newsletter ---------- */
.newsletter { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .newsletter { grid-template-columns: 1fr 1fr; gap: 64px; } }
.newsletter form { display: grid; gap: 12px; }
.inline-field { display: flex; flex-wrap: wrap; gap: 10px; }
.inline-field input { flex: 1 1 220px; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; }
.form-grid { display: grid; gap: 18px; }
@media (min-width: 680px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-weight: 600; font-size: 0.92rem; color: var(--plum); }
.field .opt { font-weight: 400; color: var(--grey); }
.field .hint { font-size: 0.82rem; color: var(--grey); }
input[type="text"], input[type="email"], input[type="tel"], input[type="url"], select, textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border: 1.5px solid #D9CCD3; border-radius: var(--radius);
  background: var(--white); color: var(--charcoal); font: inherit; font-size: 1rem; transition: border-color .2s, box-shadow .2s;
}
textarea { min-height: 130px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--magenta); box-shadow: 0 0 0 3px rgba(200,63,131,.18); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #B3261E; }
.error-msg { color: #B3261E; font-size: 0.84rem; min-height: 0; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.92rem; color: var(--charcoal); }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--magenta); flex-shrink: 0; }
.check.invalid { color: #B3261E; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { padding: 14px 16px; border-radius: var(--radius); font-size: 0.95rem; }
.form-status.ok { background: #E7F4EC; color: #1E5A35; }
.form-status.err { background: #FBE7E6; color: #8C1D18; }
.form-status.info { background: var(--lavender); color: var(--plum); }
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 4vw, 40px); }

/* Tabs (Get Involved) */
.tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 24px; scrollbar-width: thin; }
.tabs button { flex-shrink: 0; min-height: 44px; padding: 10px 18px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--white); color: var(--plum); font: 600 0.92rem var(--font-body); cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--plum); color: var(--white); border-color: var(--plum); }

/* ---------- Resources filters ---------- */
.toolbar { display: grid; gap: 16px; margin-bottom: 32px; }
.search { position: relative; max-width: 520px; }
.search input { padding-left: 46px; border-radius: 999px; }
.search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--grey); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { min-height: 40px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); font: 500 0.88rem var(--font-body); color: var(--charcoal); cursor: pointer; }
.chips button[aria-pressed="true"] { background: var(--magenta); color: var(--white); border-color: var(--magenta); }
.chips button:hover { border-color: var(--magenta); }
.empty-state { text-align: center; padding: 48px 20px; border: 1.5px dashed #D3C2CF; border-radius: var(--radius); color: var(--grey); display: grid; gap: 10px; justify-items: center; }
.empty-state h3 { font-size: 1.6rem; }
.pager { display: flex; gap: 8px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
.pager button { min-width: 44px; min-height: 44px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); cursor: pointer; font: 600 0.92rem var(--font-body); color: var(--plum); }
.pager button[aria-current="true"] { background: var(--plum); color: var(--white); }

/* ---------- Page header ---------- */
.page-head { background: var(--beige); position: relative; overflow: hidden; }
.page-head .wrap { padding-block: clamp(48px, 7vw, 88px); display: grid; gap: 16px; position: relative; z-index: 1; }
.page-head::after { content: ""; position: absolute; right: -120px; top: -160px; width: 460px; height: 460px; border-radius: 50%; border: 2px solid rgba(233,154,74,.55); }
.page-head::before { content: ""; position: absolute; right: 60px; bottom: -220px; width: 360px; height: 360px; border-radius: 50%; background: rgba(200,63,131,.07); }
.crumbs { font-size: 0.85rem; color: var(--grey); }
.crumbs a { color: var(--grey); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: #B9AEB5; }

/* Service sections */
.service { display: grid; gap: 28px; padding-block: clamp(40px, 6vw, 72px); border-bottom: 1px solid var(--line); scroll-margin-top: 100px; }
@media (min-width: 900px) { .service { grid-template-columns: 0.85fr 1.15fr; gap: 64px; align-items: start; } .service:nth-child(even) .service__art { order: 2; } }
.service__art { aspect-ratio: 4 / 3; border-radius: 999px 999px var(--radius) var(--radius); position: relative; overflow: hidden; max-width: 460px; width: 100%; }
.service__art .icon-big { position: absolute; inset: 0; display: grid; place-items: center; }
.service__art .icon-big svg { width: 34%; height: auto; color: rgba(255,255,255,.95); }
.service h2 { font-size: var(--step-3); }
.service .stack ul { margin: 0; padding-left: 1.2em; color: var(--charcoal); }
.service .stack li + li { margin-top: 6px; }

/* Values */
.values { display: grid; gap: 0; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.values > div { padding: 28px 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; gap: 8px; align-content: start; background: var(--white); }
.values h3 { font-size: 1.5rem; }
.values p { font-size: 0.95rem; color: var(--grey); }

/* Approach steps (real sequence) */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 24px; counter-reset: s; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.steps li { counter-increment: s; display: grid; gap: 8px; align-content: start; }
.steps li::before { content: counter(s, decimal-leading-zero); font-family: var(--font-display); font-style: italic; font-size: 2.2rem; color: var(--orange); line-height: 1; }
.steps h3 { font-size: 1.45rem; }
.steps p { font-size: 0.96rem; color: var(--grey); }

/* Article */
.article-head { display: grid; gap: 18px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 0.9rem; color: var(--grey); }
.article-meta strong { color: var(--charcoal); font-weight: 600; }
.article-layout { display: grid; gap: 48px; }
@media (min-width: 1000px) { .article-layout { grid-template-columns: 240px minmax(0, 1fr); gap: 64px; } }
.toc { font-size: 0.92rem; }
@media (min-width: 1000px) { .toc { position: sticky; top: 110px; align-self: start; } }
.toc h2 { font-family: var(--font-body); font-size: 0.78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--magenta-dark); margin-bottom: 10px; }
.toc ol { margin: 0; padding-left: 1.1em; display: grid; gap: 8px; }
.toc a { color: var(--charcoal); text-decoration: none; }
.toc a:hover { color: var(--magenta-dark); }
.share { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 32px; font-size: 0.9rem; }
.share a, .share button { border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; text-decoration: none; color: var(--plum); background: var(--white); font: 500 0.88rem var(--font-body); cursor: pointer; min-height: 40px; display: inline-flex; align-items: center; }
.disclaimer-box { margin-top: 40px; padding: 22px 24px; border-radius: var(--radius); background: var(--lavender); font-size: 0.93rem; color: var(--plum); display: grid; gap: 8px; }
.disclaimer-box strong { font-family: var(--font-display); font-size: 1.25rem; }

/* Contact */
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; }
.contact-list li { display: grid; gap: 4px; }
.contact-list .k { font-size: 0.78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--magenta-dark); font-weight: 600; }
.contact-list .v { font-family: var(--font-display); font-size: 1.5rem; color: var(--plum); word-break: break-word; }
.socials { display: flex; flex-wrap: wrap; gap: 8px; }
.socials a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid currentColor; color: inherit; }
.socials svg { width: 18px; height: 18px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--plum-deep); color: #CDBFD3; font-size: 0.95rem; }
.site-footer .wrap { padding-block: 64px 32px; }
.footer-top { display: grid; gap: 40px; }
@media (min-width: 900px) { .footer-top { grid-template-columns: 1.3fr repeat(3, 1fr); } }
.footer-brand { display: grid; gap: 16px; align-content: start; }
.footer-brand .logo-chip { background: var(--white); border-radius: var(--radius); padding: 10px 14px; width: fit-content; }
.footer-brand .logo-chip img { height: 64px; width: auto; }
.footer-brand .motto { font-family: var(--font-display); font-style: italic; font-size: 1.5rem; color: var(--white); line-height: 1.25; }
.site-footer h2 { font-family: var(--font-body); font-size: 0.78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--orange); margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: #E6DCEA; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); display: grid; gap: 10px; font-size: 0.85rem; color: #A999B1; }
@media (min-width: 900px) { .footer-bottom { grid-template-columns: 1fr auto; } }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.mt-s { margin-top: 12px; } .mt-m { margin-top: 24px; } .mt-l { margin-top: 48px; }
.center { text-align: center; }

/* Cookie consent bar */
.consent { position: fixed; z-index: 70; left: 0; right: 0; bottom: 0; background: var(--white); border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -20px rgba(75,36,95,.5); padding: 16px max(20px, env(safe-area-inset-right, 0px)) calc(16px + env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px)); display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: center; font-size: 0.93rem; }
.consent p { max-width: 640px; }
.arch__frame--mark { background: var(--white); display: grid; place-items: center; }
.arch__frame--mark img { width: 92%; height: auto; object-fit: contain; }

/* =========================================================
   MOTION
   Everything below only runs when JavaScript is on (the "js" class)
   and is switched off for visitors who ask for reduced motion.
   ========================================================= */

/* Hero: soft drifting orbs behind the content */
.hero__orbs { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero__orbs span { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .45; }
.hero__orbs span:nth-child(1) { width: 420px; height: 420px; background: #F3C7DD; top: -120px; right: 8%; animation: drift1 18s ease-in-out infinite alternate; }
.hero__orbs span:nth-child(2) { width: 320px; height: 320px; background: #F8D9B8; bottom: -100px; right: 30%; animation: drift2 22s ease-in-out infinite alternate; }
.hero__orbs span:nth-child(3) { width: 260px; height: 260px; background: #E3D5EA; top: 30%; left: -80px; animation: drift1 26s ease-in-out infinite alternate-reverse; }
.hero .wrap { position: relative; z-index: 1; }
@keyframes drift1 { to { transform: translate(-60px, 50px) scale(1.15); } }
@keyframes drift2 { to { transform: translate(70px, -40px) scale(.9); } }

/* Hero: headline words rise in one after another */
.js .hero h1 .w { display: inline-block; opacity: 0; transform: translateY(0.45em); animation: rise .8s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: calc(var(--i) * 70ms + 100ms); }
.js .hero .lede, .js .hero .btn-row, .js .hero .hero-stages, .js .hero .arch { opacity: 0; animation: rise .9s cubic-bezier(.2,.7,.2,1) forwards; }
.js .hero .lede { animation-delay: .7s; } .js .hero .btn-row { animation-delay: .85s; } .js .hero .hero-stages { animation-delay: 1s; } .js .hero .arch { animation-delay: .35s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* Hero arch: gentle float + the orange outline draws itself */
.js .hero .arch__frame { animation: float 7s ease-in-out 1.6s infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }

/* Scroll reveal: sections fade up as they enter the screen */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--d, 0) * 90ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* Count-up stats band */
.stats { background: var(--white); border-bottom: 1px solid var(--line); }
.stats dl { margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .stats dl { grid-template-columns: repeat(4, 1fr); } }
.stats dl > div { padding: 28px 16px; display: flex; flex-direction: column-reverse; gap: 4px; border-left: 1px solid var(--line); }
.stats dl > div:nth-child(odd) { border-left: 0; }
@media (min-width: 900px) { .stats dl > div:nth-child(odd) { border-left: 1px solid var(--line); } .stats dl > div:first-child { border-left: 0; } }
.stats dt { font-size: 0.88rem; color: var(--grey); }
.stats dd { margin: 0; font-family: var(--font-display); font-size: clamp(2.6rem, 2rem + 2.5vw, 4rem); line-height: 1; color: var(--magenta); font-weight: 600; font-variant-numeric: tabular-nums; }

/* Endless scrolling strip of Resource Centre topics */
.marquee { overflow: hidden; background: var(--beige); border-bottom: 1px solid var(--line); padding-block: 18px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; width: max-content; gap: 0; animation: marquee 50s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee span { font-family: var(--font-display); font-style: italic; font-size: 1.5rem; color: var(--plum); white-space: nowrap; display: inline-flex; align-items: center; gap: 28px; padding-right: 28px; }
.marquee span::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Podcast: sound-wave bars pulse like an equaliser */
.wave i { animation: eq 1.2s ease-in-out infinite alternate; transform-origin: center; animation-delay: calc(var(--k) * -97ms); }
@keyframes eq { from { transform: scaleY(.35); } to { transform: scaleY(1); } }

/* Buttons: a soft shine sweeps across on hover */
.btn--primary { position: relative; overflow: hidden; }
.btn--primary::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s; }
.btn--primary:hover::after { transform: translateX(120%); }

/* Focus list rows: icon nudges on hover */
.focus-list a .icon { transition: transform .3s; }
.focus-list a:hover .icon { transform: scale(1.12) rotate(-4deg); }

@media (prefers-reduced-motion: reduce) {
  .hero__orbs span, .marquee__track, .wave i, .js .hero .arch__frame { animation: none !important; }
  .js .hero h1 .w, .js .hero .lede, .js .hero .btn-row, .js .hero .hero-stages, .js .hero .arch { opacity: 1 !important; transform: none !important; animation: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .marquee__track { flex-wrap: wrap; width: auto; justify-content: center; }
}

/* =========================================================
   WHATSAPP
   ========================================================= */
.btn--wa { background: #1F9E55; color: #fff; }
.btn--wa:hover { background: #17834A; color: #fff; transform: translateY(-1px); }
.btn--wa svg { width: 20px; height: 20px; }
.btn--lg { min-height: 56px; padding: 14px 28px; font-size: 1.05rem; }
.book-band { display: grid; gap: 24px; align-items: center; }
@media (min-width: 860px) { .book-band { grid-template-columns: 1.4fr auto; gap: 48px; } }
.wa-float {
  position: fixed; z-index: 55;
  right: calc(18px + env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 20px 0 16px;
  background: #1F9E55; color: #fff; border-radius: 999px; text-decoration: none; font-weight: 600;
  box-shadow: 0 12px 30px -10px rgba(20, 90, 50, .6);
  transition: transform .2s, background .2s;
}
.wa-float:hover { background: #17834A; color: #fff; transform: translateY(-2px); }
.wa-float svg { width: 26px; height: 26px; }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid #1F9E55; animation: wa-ping 2.4s ease-out infinite; }
@keyframes wa-ping { from { transform: scale(1); opacity: .7; } to { transform: scale(1.35); opacity: 0; } }
@media (max-width: 640px) { .wa-float span { display: none; } .wa-float { padding: 0; width: 58px; justify-content: center; } }
@media (prefers-reduced-motion: reduce) { .wa-float::before { animation: none; display: none; } }
.consent { padding-right: calc(90px + env(safe-area-inset-right, 0px)); }
.arch__frame--mark img { mix-blend-mode: multiply; }
