/* PROMISA — design system
   Brand values measured on the original caritas-promisa.ch (Moove theme):
   red #DB001B, ink #1D2125, paper #F2F3F7, footer #282829, Poppins.
   Accent palette sampled from the PROMISA illustrations. No inline styles anywhere (strict CSP). */

/* ---------- Fonts (self-hosted, SIL OFL 1.1 — see fonts/poppins/OFL.txt) ---------- */
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/poppins/poppins-latin-300-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/poppins/poppins-latin-ext-300-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/poppins/poppins-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/poppins/poppins-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/poppins/poppins-latin-400-italic.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/poppins/poppins-latin-ext-400-italic.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/poppins/poppins-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/poppins/poppins-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/poppins/poppins-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/poppins/poppins-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- Tokens ---------- */
:root {
  --red: #DB001B;          /* PROMISA / Caritas red — 5.2:1 on white */
  --red-deep: #A50014;     /* hover / pressed */
  --red-tint: #FCE8EA;
  --ink: #1D2125;          /* body text — 14.6:1 on paper */
  --ink-soft: #4A5058;     /* secondary text — 7.4:1 on paper */
  --paper: #F2F3F7;        /* page background */
  --white: #FFFFFF;
  --night: #282829;        /* footer */
  --line: #D9DCE3;
  /* Illustration palette */
  --sand: #E7C585;
  --ochre: #D7AD68;
  --teal: #305660;
  --sage: #64817C;
  --rose: #D0B8A6;
  --dusk: #2D2C37;

  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(29, 33, 37, .06), 0 8px 24px rgba(29, 33, 37, .08);
  --shadow-lift: 0 2px 4px rgba(29, 33, 37, .08), 0 18px 40px rgba(29, 33, 37, .14);
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; font-family: var(--font); font-size: 1rem; line-height: 1.7; color: var(--ink);
  background: var(--paper); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--red); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--red-deep); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .6em; font-weight: 500; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5.2vw, 4.4rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.35rem); }
p { margin: 0 0 1.1em; }
ul { padding-left: 1.2em; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--red); 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;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--red); color: var(--white);
  padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 500; text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 12px; color: var(--white); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(56px, 9vw, 112px); }
.section--white { background: var(--white); }
.section--night { background: var(--dusk); color: var(--white); }
.section--teal { background: var(--teal); color: var(--white); }

/* Section heading as on the original site: bold red uppercase */
.eyebrow {
  display: inline-block; font-size: .82rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--red); margin-bottom: .9rem;
}
.section--night .eyebrow, .section--teal .eyebrow { color: var(--sand); }
.kicker { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--ink-soft); max-width: 62ch; }
.section--night .kicker, .section--teal .kicker { color: rgba(255, 255, 255, .86); }
.title-red { color: var(--red); font-weight: 700; text-transform: uppercase; letter-spacing: .02em; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.2rem); }
.prose { max-width: 72ch; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.center { text-align: center; margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em; padding: .8em 1.35em; border-radius: 999px;
  font: inherit; font-weight: 500; line-height: 1.2; text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: transform .2s var(--ease), background-color .2s, color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--red); color: var(--white); box-shadow: 0 6px 18px rgba(219, 0, 27, .28); }
.btn--primary:hover { background: var(--red-deep); color: var(--white); }
.btn--light { background: var(--white); color: var(--red); }
.btn--light:hover { color: var(--red-deep); box-shadow: var(--shadow); }
.btn--ghost { border-color: currentColor; color: var(--ink); background: transparent; }
.btn--ghost-light { border-color: rgba(255, 255, 255, .85); color: var(--white); background: transparent; }
.btn--ghost-light:hover { background: rgba(255, 255, 255, .12); color: var(--white); }
.btn--small { padding: .55em 1em; font-size: .92rem; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.icon { width: 1.1em; height: 1.1em; flex: none; }

/* ---------- Header / navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px rgba(29, 33, 37, .06); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }
.brand { display: flex; align-items: center; flex: none; }
.brand img { width: 168px; height: auto; }
.nav-toggle {
  display: none; align-items: center; gap: 8px; background: none; border: 0; padding: 8px; color: var(--ink);
  font: inherit; font-weight: 500; cursor: pointer; border-radius: var(--radius-sm);
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s var(--ease), opacity .2s;
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -7px; }
.nav-toggle__bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.site-nav a {
  display: block; padding: .5em .9em; border-radius: 999px; color: var(--ink); text-decoration: none;
  font-weight: 400; white-space: nowrap; transition: background-color .2s, color .2s;
}
.site-nav a:hover { background: var(--red-tint); color: var(--red-deep); }
.site-nav a[aria-current="page"] { background: var(--red); color: var(--white); }

@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; background: var(--white); border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 40px rgba(29, 33, 37, .12); padding: 12px var(--gutter) 24px;
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: transform .25s var(--ease), opacity .2s, visibility .2s;
  }
  .site-nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .site-nav ul { flex-direction: column; gap: 2px; }
  .site-nav a { padding: .8em 1em; border-radius: var(--radius-sm); font-size: 1.05rem; }
}
@media (max-width: 420px) { .brand img { width: 136px; } }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; color: var(--white); min-height: min(88vh, 820px); display: flex; align-items: center; overflow: hidden; background: var(--dusk); }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); animation: hero-drift 24s ease-in-out infinite alternate; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(29, 28, 38, .86) 0%, rgba(29, 28, 38, .62) 46%, rgba(29, 28, 38, .1) 100%); }
.hero__content { padding-block: 96px; max-width: 780px; }
.hero__eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .85rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--sand); margin-bottom: 1.2rem; }
.hero__eyebrow::before { content: ""; width: 36px; height: 2px; background: var(--red); }
.hero h1 { font-weight: 500; margin-bottom: .35em; font-size: clamp(2.1rem, 4.4vw, 3.7rem); }
.hero h1 .accent { color: var(--white); background: linear-gradient(transparent 62%, rgba(219, 0, 27, .85) 62%); padding-inline: .06em; }
.hero__lead { font-size: clamp(1.08rem, 1.8vw, 1.35rem); color: rgba(255, 255, 255, .92); max-width: 60ch; margin-bottom: 2rem; }
.hero--page { min-height: 0; }
.hero--page .hero__content { padding-block: clamp(72px, 10vw, 128px); }
.hero--page h1 { font-size: clamp(2rem, 4.6vw, 3.6rem); }
@keyframes hero-drift { from { transform: scale(1.04) translate3d(0, 0, 0); } to { transform: scale(1.1) translate3d(-1.5%, -1%, 0); } }

/* ---------- Key figures ---------- */
.figures { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: -64px; position: relative; z-index: 2; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lift); overflow: hidden; }
.figure { padding: 28px 26px; border-left: 1px solid var(--line); }
.figure:first-child { border-left: 0; }
.figure__value { display: block; font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 500; color: var(--red); line-height: 1; margin-bottom: .35rem; font-variant-numeric: tabular-nums; }
.figure__label { display: block; color: var(--ink-soft); font-size: .95rem; line-height: 1.45; }
@media (max-width: 860px) { .figures { grid-template-columns: repeat(2, 1fr); } .figure:nth-child(3) { border-left: 0; } .figure:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 340px) { .figures { grid-template-columns: 1fr; } .figure { border-left: 0; border-top: 1px solid var(--line); } .figure:first-child { border-top: 0; } }
@media (max-width: 520px) { .figure { padding: 20px 18px; } .figure__label { font-size: .86rem; } }

/* ---------- Pillars (the three original slides) ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
@media (max-width: 960px) { .pillars { grid-template-columns: 1fr; } }
.pillar {
  position: relative; display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); color: var(--ink); text-decoration: none;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.pillar:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); color: var(--ink); }
.pillar__media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--sand); }
.pillar__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.pillar:hover .pillar__media img { transform: scale(1.06); }
.pillar__body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.pillar__num { font-size: .8rem; font-weight: 700; letter-spacing: .14em; color: var(--red); margin-bottom: .5rem; }
.pillar h3 { font-size: 1.35rem; margin-bottom: .4em; }
.pillar p { color: var(--ink-soft); }
.pillar__cta { margin-top: auto; display: inline-flex; align-items: center; gap: .45em; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: .88rem; color: var(--red); }
.pillar__cta .icon { transition: transform .25s var(--ease); }
.pillar:hover .pillar__cta .icon { transform: translateX(4px); }

/* ---------- Split / feature blocks ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split--reverse .split__media { order: 2; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split--reverse .split__media { order: 0; } }
.split__media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lift); background: var(--sand); }
.split__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; counter-reset: step; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding: 28px 26px; border-radius: var(--radius); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .16); }
.section--white .step, .section:not(.section--night):not(.section--teal) .step { background: var(--white); border-color: var(--line); box-shadow: var(--shadow); }
.step::before { counter-increment: step; content: "0" counter(step); display: block; font-size: 2.4rem; font-weight: 500; line-height: 1; color: var(--sand); margin-bottom: 14px; }
.section--white .step::before, .section:not(.section--night):not(.section--teal) .step::before { color: var(--red); }
.step h3 { margin-bottom: .35em; }
.step p { margin: 0; opacity: .9; }

/* Steps inside a two-column block: vertical list, number beside the text */
.split .steps { grid-template-columns: 1fr; gap: 12px; margin-block: 28px; }
.split .step { display: grid; grid-template-columns: auto 1fr; column-gap: 18px; align-items: baseline; padding: 16px 20px; }
.split .step::before { grid-row: span 2; margin: 0; font-size: 1.9rem; }
.split .step h3 { margin: 0 0 .15em; font-size: 1.1rem; }

/* ---------- Cards (resources, manuals) ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; margin-top: 36px; }
.card { display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; border-top: 5px solid var(--red); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.card--sand { border-top-color: var(--ochre); }
.card--teal { border-top-color: var(--teal); }
.card__body { padding: 24px 26px; flex: 1; display: flex; flex-direction: column; }
.card__tag { align-self: flex-start; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--red); background: var(--red-tint); padding: .3em .75em; border-radius: 999px; margin-bottom: 14px; }
.card--sand .card__tag { color: #6B4B12; background: #F7EBD3; }
.card--teal .card__tag { color: var(--teal); background: #DCE8EA; }
.card h3 { margin-bottom: .45em; }
.card p { color: var(--ink-soft); font-size: .96rem; }
.card__meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .85rem; color: var(--ink-soft); margin: 4px 0 18px; }
.card__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }

/* ---------- Partners band (as on the original site) ---------- */
.partners { background: var(--white); padding-block: clamp(48px, 7vw, 88px); }
.partners__group + .partners__group { margin-top: 48px; }
.partners h2 { text-align: center; font-size: clamp(1.1rem, 2vw, 1.4rem); margin-bottom: 28px; }
.logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 28px 56px; list-style: none; margin: 0; padding: 0; }
.logos a { display: block; border-radius: var(--radius-sm); transition: transform .25s var(--ease), filter .25s; }
.logos a:hover { transform: translateY(-3px); }
.logos img { height: 72px; width: auto; object-fit: contain; }
.logos .logo--wide img { height: 54px; }
.logos .logo--square img { height: 96px; }
.eu-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 24px 40px; margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line); }
.eu-band img { height: 120px; width: auto; }
.eu-band p { max-width: 56ch; margin: 0; font-size: .92rem; color: var(--ink-soft); }
.eu-band strong { color: var(--ink); font-weight: 500; }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: rgba(255, 255, 255, .86); padding-block: 48px 32px; font-size: .95rem; }
.site-footer a { color: var(--white); }
.site-footer a:hover { color: var(--sand); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h2 { font-size: .85rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--white); margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer-brand img { width: 150px; margin-bottom: 14px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: .85rem; color: rgba(255, 255, 255, .7); }
.footer-bottom a { color: rgba(255, 255, 255, .85); }
.wordmark-light { font-weight: 300; font-size: 2rem; letter-spacing: .02em; color: var(--white); line-height: 1; margin-bottom: 12px; }
.wordmark-light span { color: var(--red); font-weight: 500; }

/* ---------- Notices ---------- */
.notice { display: flex; gap: 14px; align-items: flex-start; padding: 16px 20px; border-radius: var(--radius-sm); background: #FFF6E0; border: 1px solid #F1D79A; color: #5C4310; font-size: .95rem; }
.notice .icon { margin-top: .2em; width: 1.3em; height: 1.3em; }
.notice p { margin: 0; }
.notice--info { background: #E8F0F1; border-color: #BCD3D6; color: #1F3F46; }

/* ---------- Footnotes ---------- */
.footnotes { margin-top: 2.4em; padding-top: 1.2em; border-top: 1px solid var(--line); font-size: .9rem; color: var(--ink-soft); }
.footnotes ol { padding-left: 1.4em; }
sup a { text-decoration: none; font-weight: 500; }

/* ---------- Consortium list ---------- */
.consortium { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; list-style: none; padding: 0; margin: 28px 0 0; }
.consortium li { background: var(--white); border-radius: var(--radius-sm); padding: 18px 20px; box-shadow: var(--shadow); border-left: 4px solid var(--red); }
.consortium strong { display: block; font-weight: 500; }
.consortium span { font-size: .9rem; color: var(--ink-soft); }

/* ---------- Referral directory ---------- */
.directory { display: grid; grid-template-columns: 300px 1fr; gap: 32px; align-items: start; margin-top: 32px; }
@media (max-width: 960px) { .directory { grid-template-columns: 1fr; } }
.filters { position: sticky; top: calc(var(--header-h) + 16px); background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
@media (max-width: 960px) { .filters { position: static; } }
.filter-group + .filter-group { margin-top: 22px; }
.filter-group__label { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 10px; }
.search { position: relative; }
.search input {
  width: 100%; font: inherit; padding: .75em 1em .75em 2.6em; border-radius: 999px; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink);
  transition: border-color .2s, background-color .2s;
}
.search input:focus { outline: none; border-color: var(--red); background: var(--white); box-shadow: 0 0 0 4px rgba(219, 0, 27, .12); }
.search .icon { position: absolute; left: 1em; top: 50%; transform: translateY(-50%); color: var(--ink-soft); pointer-events: none; }
.segmented { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; background: var(--paper); padding: 4px; border-radius: 14px; }
.segmented button { font: inherit; font-size: .9rem; padding: .55em .4em; border: 0; border-radius: 10px; background: transparent; color: var(--ink); cursor: pointer; transition: background-color .2s, color .2s; }
.segmented button[aria-pressed="true"] { background: var(--red); color: var(--white); box-shadow: 0 4px 12px rgba(219, 0, 27, .25); }
.domain-tabs { display: grid; gap: 6px; }
.domain-tabs button {
  display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; text-align: left; font: inherit; padding: .7em .95em;
  border-radius: var(--radius-sm); border: 1.5px solid var(--line); background: var(--white); color: var(--ink); cursor: pointer; transition: border-color .2s, background-color .2s;
}
.domain-tabs button:hover { border-color: var(--rose); }
.domain-tabs button[aria-pressed="true"] { border-color: var(--red); background: var(--red-tint); color: var(--red-deep); font-weight: 500; }
.count-badge { font-size: .78rem; font-weight: 500; background: var(--paper); color: var(--ink-soft); border-radius: 999px; padding: .1em .6em; }
.domain-tabs button[aria-pressed="true"] .count-badge { background: var(--white); color: var(--red-deep); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: inherit; font-size: .85rem; line-height: 1.3; text-align: left; padding: .45em .85em; border-radius: 12px; border: 1.5px solid var(--line); background: var(--white); color: var(--ink); cursor: pointer; transition: all .2s; }
.chip:hover { border-color: var(--teal); }
.chip[aria-pressed="true"] { background: var(--teal); border-color: var(--teal); color: var(--white); }
.filters__reset { margin-top: 20px; width: 100%; justify-content: center; }

.results-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.results-head p { margin: 0; color: var(--ink-soft); }
.results-head strong { color: var(--ink); font-weight: 500; }
.results { display: grid; gap: 16px; }
.org { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 24px; border-left: 4px solid var(--teal); animation: org-in .35s var(--ease) both; }
.org__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 16px; }
.org h3 { font-size: 1.12rem; margin: 0; }
.org__full { margin: .25em 0 0; font-size: .9rem; color: var(--ink-soft); }
.org__country { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); }
.org__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px; margin-top: 14px; }
@media (max-width: 640px) { .org__grid { grid-template-columns: 1fr; } }
.org__grid dt { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 4px; }
.org__grid dd { margin: 0; font-size: .95rem; white-space: pre-line; overflow-wrap: anywhere; }
.org__grid .org__services { grid-column: 1 / -1; }
.org__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; padding: 0; list-style: none; }
.org__tags li { font-size: .78rem; padding: .25em .7em; border-radius: 999px; background: #E8F0F1; color: var(--teal); }
.org__missing { color: var(--ink-soft); font-style: italic; }
.empty { text-align: center; padding: 48px 24px; background: var(--white); border-radius: var(--radius); color: var(--ink-soft); }
@keyframes org-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(22px, 4vw, 36px); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form__row { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 500; margin-bottom: 6px; }
.field .hint { display: block; font-size: .85rem; color: var(--ink-soft); margin-top: 4px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: .7em .9em;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--red); background: var(--white); box-shadow: 0 0 0 4px rgba(219, 0, 27, .12); }

/* ---------- Reveal on scroll ----------
   site.js adds .reveal-pending only to elements that start below the first screen,
   so nothing above the fold ever flashes, and nothing is hidden without JavaScript. */
.reveal-pending { opacity: 0; transform: translateY(22px); }
.reveal-pending.is-visible { opacity: 1; transform: none; transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal--delay-1.is-visible { transition-delay: .1s; }
.reveal--delay-2.is-visible { transition-delay: .2s; }

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

/* ---------- Print (e.g. a printable referral list for field teams) ---------- */
@media print {
  .site-header, .site-footer, .partners, .filters, .hero__media, .skip-link, .no-print { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .hero { min-height: 0; color: #000; background: none; }
  .hero::after { display: none; }
  .hero__content { padding: 0 0 12pt; }
  .hero__eyebrow, .hero__lead { color: #000; }
  .directory { display: block; }
  .org { box-shadow: none; border: 1px solid #999; break-inside: avoid; animation: none; }
  a { color: #000; }
}

/* Directory notices spacing */
#directory .notice, .section > .wrap > .notice { margin-bottom: 20px; }
