/* ═══════════════════════════════════════════════════════════════════════════
   Weave Family Solutions — public design language "Fala"

   The palette is the practice's original purple and white: #7B4F8E as the
   action colour, a deep plum for the hero and footer, and a lilac-tinted white
   for the page. Typography stays with Newsreader (a text serif with real
   character at display size) paired with Instrument Sans.

   The signature device is the woven edge: a 45-degree plait borrowed from the
   fala (woven pandanus mat) and the ʻie toga. It appears exactly three times
   per page — under the masthead, above the values band, above the footer — so
   it reads as structure, not decoration.

   Loaded on public pages only. The admin workspace keeps style.css + admin-ui.css.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── 1. Tokens ───────────────────────────────────────────────────────────── */
:root {
    /* Ink — a deep plum, dark enough for white text at 11:1. */
    --ink: #3D2A4D;
    --ink-2: #4B3560;
    --ink-3: #5E4574;

    /* Purple — the action colour. 6:1 on white, 5.3:1 on salt. */
    --jade: #7B4F8E;
    --jade-dark: #69407A;
    --jade-bright: #8C5EA1;
    --jade-soft: #EADFF1;

    /* Lilac and salt — the quiet half of the palette. */
    --sage: #C9B6D6;
    --sage-2: #DED2E7;
    --salt: #FAF7FC;
    --salt-2: #F2ECF7;
    --paper: #FFFFFF;
    --bone: #FAF7FC;

    /* Clay is reserved for safety messaging. Never used as an accent. */
    --clay: #B04A3F;
    --clay-soft: #F7E8E5;

    --gold: #C6A15B;

    --text: #342B3B;
    --muted: #6C6273;
    --line: #E9E1F0;
    --line-strong: #D8C9E2;

    --font-display: 'Newsreader', Georgia, 'Times New Roman', serif;
    --font-body: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --step: clamp(64px, 9vw, 116px);
    --radius: 6px;
    --radius-lg: 16px;

    --shadow-sm: 0 1px 2px rgba(61, 42, 77, .06);
    --shadow-md: 0 18px 40px -24px rgba(61, 42, 77, .35);

    /* Legacy aliases: style.css still refers to the old purple tokens
       throughout. Mapping them here recolours every remaining rule at once
       instead of leaving artefacts behind. */
    --color-purple: var(--jade);
    --color-purple-dark: var(--jade-dark);
    --color-purple-deeper: var(--ink-2);
    --color-purple-light: var(--jade-soft);
    --color-purple-wash: var(--salt-2);
    --color-charcoal: var(--ink);
    --color-charcoal-light: var(--ink-3);
    --color-white: #FFFFFF;
    --color-off-white: var(--salt);
    --color-light-gray: var(--salt-2);
    --color-border: var(--line);
    --color-text: var(--text);
    --color-text-light: var(--muted);
    --color-danger: var(--clay);
}

/* ── 2. Base ─────────────────────────────────────────────────────────────── */
body.site {
    background: var(--salt);
    color: var(--text);
    font-size: 1.0625rem;
    line-height: 1.7;
    font-family: var(--font-body);
    padding-bottom: 0;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 400;
    color: var(--ink);
    line-height: 1.08;
    letter-spacing: -.021em;
}

h1 { font-size: clamp(2.5rem, 5.5vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); line-height: 1.12; }
h3 { font-size: clamp(1.2rem, 1.8vw, 1.45rem); line-height: 1.25; letter-spacing: -.012em; }
h4 { font-size: 1.1rem; line-height: 1.3; letter-spacing: -.01em; }

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

a { color: var(--jade-dark); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }

strong, b { font-weight: 600; color: var(--ink); }

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

::selection { background: var(--jade-soft); color: var(--ink); }

/* Skip link: off-screen until it receives keyboard focus. */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 200;
    background: var(--ink);
    color: var(--bone);
    padding: 12px 20px;
    border-radius: 0 0 var(--radius) 0;
    text-decoration: none;
    font-weight: 600;
}
.skip-link:focus { left: 0; color: var(--bone); }

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

img { border-radius: 0; }

.container { max-width: 1200px; padding-inline: clamp(20px, 5vw, 40px); }

/* Bootstrap utilities re-tuned to the palette. */
.bg-light { background: var(--salt-2) !important; }
.text-muted { color: var(--muted) !important; }
.text-purple, .text-teal { color: var(--jade) !important; }

/* ── 3. Type helpers ─────────────────────────────────────────────────────── */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    margin: 0 0 1rem;
    font-family: var(--font-body);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--jade);
}

.eyebrow::before {
    content: "";
    width: 30px;
    height: 7px;
    flex: none;
    background:
        repeating-linear-gradient(45deg, var(--jade) 0 3px, transparent 3px 6px),
        repeating-linear-gradient(-45deg, var(--sage) 0 3px, transparent 3px 6px);
    opacity: .85;
}

.eyebrow--light { color: var(--sage); }
.eyebrow--light::before {
    background:
        repeating-linear-gradient(45deg, var(--sage) 0 3px, transparent 3px 6px),
        repeating-linear-gradient(-45deg, rgba(255,255,255,.35) 0 3px, transparent 3px 6px);
}

.lede {
    font-size: clamp(1.05rem, 1.5vw, 1.2rem);
    line-height: 1.65;
    color: var(--muted);
    max-width: 62ch;
}

.measure { max-width: 68ch; }

/* ── 4. Woven rules ──────────────────────────────────────────────────────── */
.weave-rule {
    height: 9px;
    background:
        repeating-linear-gradient(45deg, var(--jade) 0 5px, transparent 5px 10px),
        repeating-linear-gradient(-45deg, var(--ink) 0 5px, transparent 5px 10px),
        var(--sage);
    background-blend-mode: normal;
    opacity: .9;
}

.weave-rule--soft {
    background:
        repeating-linear-gradient(45deg, var(--sage) 0 5px, transparent 5px 10px),
        repeating-linear-gradient(-45deg, var(--salt-2) 0 5px, transparent 5px 10px),
        var(--line);
}

.weave-rule--footer {
    background:
        repeating-linear-gradient(45deg, var(--jade) 0 5px, transparent 5px 10px),
        repeating-linear-gradient(-45deg, var(--ink-3) 0 5px, transparent 5px 10px),
        var(--ink-2);
}

/* ── 5. Sections ─────────────────────────────────────────────────────────── */
.section { padding-block: var(--step); }
.section--salt { background: var(--salt); }
.section--paper { background: var(--paper); }
.section--tint { background: var(--salt-2); }
.section--ink { background: var(--ink); color: rgba(247, 246, 241, .8); }
.section--ink h2, .section--ink h3 { color: var(--bone); }
.section--ink .lede { color: rgba(247, 246, 241, .72); }
.section--flush-top { padding-top: 0; }

.section-head {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    gap: clamp(20px, 4vw, 64px);
    align-items: end;
    margin-bottom: clamp(32px, 5vw, 56px);
}

.section-head__title .eyebrow { margin-bottom: .6rem; }
.section-head h2 { margin-bottom: 0; max-width: 18ch; }
.section-head__aside { padding-bottom: .35rem; }
.section-head__aside p { margin-bottom: 1.1rem; }
.section-head--center {
    display: block;
    text-align: center;
    max-width: 700px;
    margin-inline: auto;
}
.section-head--center h2 { margin-inline: auto; max-width: 22ch; }
.section-head--center .lede { margin-inline: auto; }

@media (max-width: 860px) {
    .section-head { grid-template-columns: 1fr; align-items: start; }
    .section-head h2 { max-width: none; }
}

/* ── 6. Buttons ──────────────────────────────────────────────────────────── */
.btn {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: .95rem;
    letter-spacing: .005em;
    line-height: 1.2;
    padding: .88rem 1.55rem;
    border-radius: var(--radius);
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    text-decoration: none;
    transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}

.btn--primary, .btn-primary {
    background: var(--jade);
    border-color: var(--jade);
    color: #fff;
    box-shadow: none;
}
.btn--primary:hover, .btn-primary:hover {
    background: var(--jade-dark);
    border-color: var(--jade-dark);
    color: #fff;
    transform: translateY(-1px);
}

.btn--ghost, .btn-outline {
    background: transparent;
    border-color: var(--line-strong);
    color: var(--ink);
}
.btn--ghost:hover, .btn-outline:hover {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--bone);
}

.btn--light, .btn-light {
    background: var(--bone);
    border-color: var(--bone);
    color: var(--ink);
}
.btn--light:hover, .btn-light:hover { background: #fff; border-color: #fff; color: var(--ink); }

.btn--quiet {
    padding: .5rem 0;
    border: 0;
    border-bottom: 1px solid currentColor;
    border-radius: 0;
    background: none;
    color: var(--jade-dark);
}
.btn--quiet:hover { color: var(--ink); background: none; }

.btn-lg { padding: 1rem 1.9rem; font-size: 1rem; }
.btn-sm { padding: .5rem .9rem; font-size: .85rem; }

.btn .icon { flex: none; }

/* Text link with a travelling arrow. */
.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-weight: 600;
    font-size: .95rem;
    color: var(--jade-dark);
    text-decoration: none;
}
.link-arrow .icon { transition: transform .18s ease; }
.link-arrow:hover .icon { transform: translate(3px, -3px); }

/* ── 7. Masthead ─────────────────────────────────────────────────────────── */
.masthead {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(247, 246, 241, .95);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}

.safety-ribbon {
    background: var(--ink);
    color: rgba(247, 246, 241, .8);
    font-size: .8rem;
    letter-spacing: .005em;
}
.safety-ribbon__inner {
    display: flex;
    align-items: center;
    gap: .6rem;
    min-height: 38px;
    padding-block: .35rem;
}
.safety-ribbon p { margin: 0; }
.safety-ribbon a { color: var(--bone); font-weight: 600; text-decoration-color: rgba(247,246,241,.4); }
.safety-ribbon a:hover { color: var(--sage); }
.safety-ribbon__dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--clay);
    box-shadow: 0 0 0 3px rgba(168, 80, 58, .25);
    flex: none;
}
.safety-ribbon__aside { color: rgba(247, 246, 241, .55); }
@media (max-width: 640px) { .safety-ribbon__aside { display: none; } }

.masthead__inner {
    display: flex;
    align-items: center;
    gap: clamp(14px, 3vw, 40px);
    min-height: 82px;
}

.brand { display: flex; align-items: center; text-decoration: none; flex: none; }
.brand img { height: 54px; width: auto; }

.nav {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: auto;
    font-family: var(--font-body);
}
.nav > a, .nav__more > summary {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: 9px 13px;
    font-size: .94rem;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    border-radius: var(--radius);
    cursor: pointer;
    list-style: none;
    white-space: nowrap;
}
.nav__more > summary::-webkit-details-marker { display: none; }
.nav > a:hover, .nav__more > summary:hover { background: var(--jade-soft); color: var(--jade-dark); }
.nav > a[aria-current="page"], .nav__more > summary[aria-current="page"] { color: var(--jade-dark); }
.nav > a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--jade); border-radius: 0; }

.nav__more { position: relative; }
.nav__more[open] > summary { background: var(--jade-soft); color: var(--jade-dark); }
.nav__more[open] > summary .icon { transform: rotate(180deg); }
.nav__more > summary .icon { transition: transform .18s ease; }

.nav__sub {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    z-index: 70;
    min-width: 290px;
    margin: 0;
    padding: .5rem;
    list-style: none;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: var(--shadow-md);
}
.nav__sub a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .62rem .8rem;
    border-radius: 6px;
    font-size: .93rem;
    color: var(--text);
    text-decoration: none;
}
.nav__sub a:hover { background: var(--salt); color: var(--jade-dark); }
.nav__sub--separate { margin-top: .35rem; border-top: 1px solid var(--line); padding-top: .35rem; }
.nav__badge {
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--jade-dark);
    background: var(--jade-soft);
    padding: 2px 7px;
    border-radius: 999px;
}

.nav__actions { display: flex; align-items: center; gap: 10px; margin-left: clamp(8px, 2vw, 22px); }
.nav__phone {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .9rem;
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
    padding: 8px 4px;
}
.nav__phone:hover { color: var(--jade-dark); }
.nav__actions .btn { padding: .72rem 1.15rem; font-size: .9rem; }

/* Mobile disclosure button */
.nav-toggle {
    display: none;
    align-items: center;
    gap: .55rem;
    margin-left: auto;
    padding: .55rem .25rem;
    background: none;
    border: 0;
    color: var(--ink);
    font-family: var(--font-body);
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    cursor: pointer;
}
.nav-toggle__bars { display: block; width: 22px; }
.nav-toggle__bars span {
    display: block;
    height: 2px;
    background: var(--ink);
    margin: 5px 0;
    transition: transform .2s ease, opacity .2s ease;
}
.masthead[data-nav-open] .nav-toggle__bars span:first-child { transform: translateY(3.5px) rotate(45deg); }
.masthead[data-nav-open] .nav-toggle__bars span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

@media (max-width: 1040px) {
    .nav__phone { display: none; }
}

@media (max-width: 940px) {
    .nav-toggle { display: inline-flex; }
    .masthead__inner { min-height: 70px; flex-wrap: wrap; }
    .brand img { height: 46px; }

    .nav {
        display: none;
        order: 3;
        flex-basis: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        margin: 0 0 16px;
        padding: .5rem 0 0;
        border-top: 1px solid var(--line);
    }
    .masthead[data-nav-open] .nav { display: flex; }

    .nav > a, .nav__more > summary {
        padding: .85rem .6rem;
        font-size: 1rem;
        border-radius: 6px;
    }
    .nav > a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--jade); border-radius: 0; }

    .nav__more { position: static; }
    .nav__sub {
        position: static;
        min-width: 0;
        margin: .1rem 0 .4rem .6rem;
        padding: 0 0 0 .8rem;
        border: 0;
        border-left: 2px solid var(--jade-soft);
        border-radius: 0;
        box-shadow: none;
        background: transparent;
    }
    .nav__sub a { padding: .55rem .4rem; font-size: .95rem; }

    .nav__actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
        margin: .75rem 0 0;
    }
    .nav__actions .btn { width: 100%; padding: .95rem 1rem; }
}

/* ── 8. Home hero ────────────────────────────────────────────────────────── */
.hero {
    position: relative;
    background: var(--ink);
    color: var(--bone);
    overflow: hidden;
}

.hero__grid {
    display: grid;
    grid-template-columns: 1.02fr .98fr;
    min-height: min(84vh, 740px);
}

.hero__panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(48px, 6.5vw, 92px) clamp(20px, 5vw, 72px);
    position: relative;
    z-index: 2;
}

.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    margin: 0 0 1.4rem;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--sage);
}
.hero__eyebrow::before {
    content: "";
    width: 34px; height: 7px; flex: none;
    background:
        repeating-linear-gradient(45deg, var(--sage) 0 3px, transparent 3px 6px),
        repeating-linear-gradient(-45deg, rgba(255,255,255,.3) 0 3px, transparent 3px 6px);
}

.hero h1 {
    color: var(--bone);
    font-size: clamp(2.5rem, 5vw, 4.05rem);
    font-weight: 400;
    line-height: 1.02;
    letter-spacing: -.028em;
    margin: 0 0 1.1rem;
    max-width: 16ch;
}
.hero h1 em { font-style: italic; color: var(--sage); }

.hero__lead {
    font-size: clamp(1rem, 1.35vw, 1.14rem);
    line-height: 1.65;
    color: rgba(247, 246, 241, .76);
    max-width: 46ch;
    margin: 0;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: clamp(24px, 3vw, 34px);
}
.hero__actions .btn--ghost {
    border-color: rgba(247, 246, 241, .38);
    color: var(--bone);
}
.hero__actions .btn--ghost:hover {
    background: var(--bone);
    border-color: var(--bone);
    color: var(--ink);
}

.hero__trust {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 26px;
    margin: clamp(28px, 3.5vw, 40px) 0 0;
    padding: 22px 0 0;
    border-top: 1px solid rgba(247, 246, 241, .16);
    list-style: none;
    font-size: .82rem;
    letter-spacing: .02em;
    color: rgba(247, 246, 241, .62);
}
.hero__trust li { display: flex; align-items: center; gap: .5rem; }
.hero__trust .icon { color: var(--sage); flex: none; }

.hero__media {
    position: relative;
    min-height: 340px;
    background: var(--ink-2);
}
.hero__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 58% 28%;
}
/* Ink wash from the left so the photograph meets the panel without a seam. */
.hero__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(8,39,43,.85) 0%, rgba(8,39,43,.1) 38%, rgba(8,39,43,0) 70%);
    pointer-events: none;
}

.hero__caption {
    position: absolute;
    left: clamp(20px, 3vw, 40px);
    bottom: clamp(20px, 3vw, 34px);
    z-index: 2;
    max-width: 260px;
    padding: 14px 16px;
    background: rgba(61, 42, 77, .72);
    backdrop-filter: blur(8px);
    border-left: 2px solid var(--sage);
    font-size: .78rem;
    line-height: 1.5;
    color: rgba(247, 246, 241, .82);
    display: none;
}
@media (min-width: 1150px) { .hero__caption { display: block; } }

@media (max-width: 940px) {
    .hero__grid { grid-template-columns: 1fr; min-height: 0; }
    /* A fixed aspect ratio, not a vh height: on a tall viewport (tablet,
       phone in landscape) 52vh becomes most of the screen and pushes the
       headline below the fold. */
    .hero__media { order: -1; aspect-ratio: 4 / 3; min-height: 0; max-height: none; }
    .hero__media::after {
        background: linear-gradient(180deg, rgba(8,39,43,0) 55%, rgba(8,39,43,.55) 100%);
    }
    .hero h1 { max-width: 20ch; }
}

/* ── 9. Proof strip ──────────────────────────────────────────────────────── */
.proof-strip {
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding-block: clamp(22px, 3vw, 32px);
}
.proof-strip__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(16px, 3vw, 40px);
}
.proof { display: flex; gap: .8rem; align-items: flex-start; }
.proof__mark { color: var(--jade); flex: none; margin-top: .18rem; }
.proof strong { display: block; font-size: .98rem; font-weight: 600; color: var(--ink); line-height: 1.3; }
.proof span.proof__text { display: block; font-size: .87rem; color: var(--muted); line-height: 1.5; margin-top: .15rem; }
@media (max-width: 860px) {
    .proof-strip__grid { grid-template-columns: 1fr; gap: 16px; }
}

/* ── 10. Services (home + services page) ─────────────────────────────────── */
.svc-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
}
.svc {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: .9rem;
    padding: clamp(24px, 3vw, 36px);
    background: var(--paper);
    color: inherit;
    text-decoration: none;
    transition: background-color .2s ease;
}
.svc:hover { background: var(--salt); color: inherit; }
.svc__top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.svc__index {
    font-family: var(--font-display);
    font-size: .95rem;
    color: var(--muted);
    letter-spacing: .06em;
}
.svc__icon { color: var(--jade); display: inline-flex; }
.svc__icon svg { width: 26px; height: 26px; }
.svc h3 { margin: 0; font-size: clamp(1.25rem, 1.9vw, 1.55rem); }
.svc p { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.65; }
.svc__more {
    margin-top: auto;
    padding-top: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-size: .88rem;
    font-weight: 600;
    color: var(--jade-dark);
}
.svc:hover .svc__more .icon { transform: translate(3px, -3px); }
.svc__more .icon { transition: transform .18s ease; }
@media (max-width: 900px) { .svc-grid { grid-template-columns: 1fr; } }

/* Service detail cards used on /services/ */
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
@media (max-width: 900px) { .service-grid { grid-template-columns: 1fr; } }

.service-detail-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: clamp(22px, 3vw, 32px);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.service-detail-card:hover {
    border-color: var(--sage);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.service-icon-lg { color: var(--jade); margin-bottom: 1rem; display: inline-flex; }
.service-icon-lg svg { width: 30px; height: 30px; }
.service-detail-card__title { font-size: clamp(1.2rem, 1.8vw, 1.45rem); margin-bottom: .6rem; }
.service-detail-card p { color: var(--muted); font-size: .95rem; }
.service-features { list-style: none; padding: 0; margin: 1rem 0 1.4rem; display: grid; gap: .5rem; }
.service-features li { display: flex; gap: .55rem; font-size: .9rem; color: var(--text); align-items: flex-start; }
.service-features li::before {
    content: "";
    width: 6px; height: 6px;
    margin-top: .55em;
    flex: none;
    background: var(--jade);
    transform: rotate(45deg);
}
.service-detail-card > .btn { margin-top: auto; align-self: flex-start; }

/* ── 11. Process ─────────────────────────────────────────────────────────── */
.process-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(18px, 3vw, 36px);
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: step;
    position: relative;
}
.process-list--five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.process-step { position: relative; padding-top: 2.6rem; }
.process-step::before {
    content: "";
    position: absolute;
    top: 17px;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--line-strong);
}
.process-step:last-child::before { right: calc(100% - 34px); }
.process-step__number {
    position: absolute;
    top: 0;
    left: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px; height: 34px;
    font-family: var(--font-body);
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .04em;
    color: var(--jade-dark);
    background: var(--salt);
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    z-index: 1;
}
.process-step h3 { font-size: 1.12rem; margin: 0 0 .35rem; }
.process-step p { font-size: .92rem; color: var(--muted); line-height: 1.65; margin: 0; }
@media (max-width: 900px) {
    .process-list, .process-list--five { grid-template-columns: 1fr; gap: 0; }
    .process-step { padding: 0 0 1.6rem 2.8rem; }
    .process-step::before {
        top: 0; bottom: 0; left: 17px; right: auto;
        width: 1px; height: 100%;
    }
    .process-step:last-child::before { height: 34px; bottom: auto; }
}

/* ── 12. Split feature ───────────────────────────────────────────────────── */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(28px, 5vw, 72px);
    align-items: center;
}
.split--reverse .split__media { order: 2; }
.split__body h2 { margin-bottom: .7rem; }
.split__media { position: relative; }
.split__media img {
    width: 100%;
    border-radius: var(--radius-lg);
    object-fit: cover;
}
.split__media--portrait img { aspect-ratio: 4 / 5; }
.split__media--frame::before {
    content: "";
    position: absolute;
    inset: -14px -14px auto auto;
    width: 46%;
    height: 46%;
    border-top: 1px solid var(--sage);
    border-right: 1px solid var(--sage);
    border-radius: 0 var(--radius-lg) 0 0;
    z-index: -1;
}
@media (max-width: 900px) {
    .split, .split--reverse { grid-template-columns: 1fr; }
    .split--reverse .split__media { order: 0; }
}

.feature-list { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: .7rem; }
.feature-list li {
    display: flex;
    gap: .7rem;
    align-items: flex-start;
    padding-bottom: .7rem;
    border-bottom: 1px solid var(--line);
    font-size: .96rem;
}
.feature-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.feature-list-icon { color: var(--jade); flex: none; margin-top: .18rem; }

.section-image { width: 100%; border-radius: var(--radius-lg); box-shadow: none; }
.section-image--portrait { aspect-ratio: 4 / 5; object-fit: cover; }

/* ── 13. Values band ─────────────────────────────────────────────────────── */
.values-band {
    background: var(--ink);
    color: rgba(247, 246, 241, .78);
    padding-block: var(--step);
}
.values-band .section-title { color: var(--bone); }
.values-band .section-lead { color: rgba(247, 246, 241, .68); }
.values-band__head { max-width: 640px; margin: 0 auto clamp(32px, 4vw, 52px); text-align: center; }
.values-band__head .eyebrow { justify-content: center; color: var(--sage); }
.values-band__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    background: rgba(247, 246, 241, .14);
    border-top: 1px solid rgba(247, 246, 241, .14);
    border-bottom: 1px solid rgba(247, 246, 241, .14);
}
.value-card { padding: clamp(22px, 3vw, 34px) clamp(16px, 2vw, 24px); background: var(--ink); }
.value-icon { color: var(--sage); display: inline-flex; margin-bottom: .8rem; }
.value-icon svg { width: 22px; height: 22px; }
.value-card-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    color: var(--bone);
    margin: 0 0 .3rem;
    letter-spacing: -.01em;
}
.value-card p { font-size: .88rem; color: rgba(247, 246, 241, .6); margin: 0; line-height: 1.6; }
@media (max-width: 900px) { .values-band__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .values-band__grid { grid-template-columns: 1fr; } }

/* ── 14. Quote ───────────────────────────────────────────────────────────── */
.quote-section { background: var(--salt-2); }
.quote-block { margin: 0; }
.quote-block--wide { max-width: 900px; margin: 0 auto; text-align: center; }
.quote-block blockquote {
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 2.6vw, 2rem);
    line-height: 1.35;
    letter-spacing: -.015em;
    color: var(--ink);
    margin: 0 0 1.2rem;
    padding: 0;
    border: 0;
    font-style: italic;
}
.quote-block figcaption {
    font-size: .88rem;
    color: var(--muted);
    padding-left: 0;
    letter-spacing: .02em;
}
.quote-block--wide .section-label, .quote-block--wide .eyebrow {
    display: inline-flex;
    justify-content: center;
    margin-bottom: 1.6rem;
}

/* ── 15. Resource callout (supervision template) ─────────────────────────── */
.resource-callout {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--paper);
}
.resource-callout__body { padding: clamp(28px, 4vw, 48px); }
.resource-callout__body h2 { font-size: clamp(1.5rem, 2.6vw, 2.15rem); margin-bottom: .6rem; }
.resource-callout__meta {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1.4rem;
    margin: 1.3rem 0 1.6rem;
    padding: 0;
    list-style: none;
    font-size: .84rem;
    color: var(--muted);
}
.resource-callout__meta li { display: flex; align-items: center; gap: .45rem; }
.resource-callout__meta .icon { color: var(--jade); }
.resource-callout__aside {
    background: var(--ink);
    color: rgba(247, 246, 241, .8);
    padding: clamp(28px, 4vw, 44px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
}
.resource-callout__aside h3 { color: var(--bone); font-size: 1.15rem; margin: 0; }
.resource-callout__aside p { font-size: .9rem; margin: 0; color: rgba(247, 246, 241, .72); }
.resource-callout__aside ul { margin: 0; padding-left: 1.1rem; font-size: .88rem; }
.resource-callout__aside li { margin-bottom: .35rem; }
@media (max-width: 860px) { .resource-callout { grid-template-columns: 1fr; } }

/* ── 16. FAQ ─────────────────────────────────────────────────────────────── */
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.15rem 2.2rem 1.15rem 0;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--ink);
    cursor: pointer;
    list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "+";
    position: absolute;
    right: .2rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--jade);
    line-height: 1;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item summary:focus-visible { outline: 2px solid var(--jade); outline-offset: 3px; border-radius: 4px; }
.faq-answer { padding: 0 2.2rem 1.3rem 0; color: var(--muted); line-height: 1.75; max-width: 72ch; }
.faq-answer p:last-child { margin-bottom: 0; }
.faq-question { min-width: 0; }
.faq-tag {
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--jade-dark);
    background: var(--jade-soft);
    padding: 3px 8px;
    border-radius: 999px;
    white-space: nowrap;
}
.faq-list--page .faq-item summary { font-size: 1.05rem; }
.faq-cta { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 34px); }
.faq-cta .section-title { font-size: 1.5rem; }
.faq-cta p { color: var(--muted); margin-bottom: 1.3rem; }

/* ── 17. Blog cards ──────────────────────────────────────────────────────── */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
@media (max-width: 900px) { .post-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .post-grid { grid-template-columns: 1fr; } }

.post-card {
    display: flex;
    flex-direction: column;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 100%;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.post-card:hover { border-color: var(--sage); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.post-card__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--salt-2); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; }
.post-card__media--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sage);
}
.post-card__body { padding: 1.25rem 1.35rem 1.4rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.post-card__kicker {
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--jade);
    margin: 0;
}
.post-card h3 { font-size: 1.16rem; margin: 0; line-height: 1.22; }
.post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card h3 a:hover { color: var(--jade-dark); }
.post-card p { font-size: .9rem; color: var(--muted); margin: 0; line-height: 1.6; }
.post-card__meta {
    margin-top: auto;
    padding-top: .8rem;
    font-size: .78rem;
    color: var(--muted);
    letter-spacing: .02em;
    display: flex;
    gap: .5rem;
    align-items: center;
}

/* Legacy .blog-card used on older home markup + related lists. */
.blog-card {
    display: flex;
    flex-direction: column;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 100%;
    box-shadow: none;
}
.blog-card:hover { box-shadow: var(--shadow-md); }
.blog-card .card-img-top { height: 190px; object-fit: cover; }
.blog-card .card-body { padding: 1.25rem 1.35rem 1.4rem; }
.blog-card .card-title { font-family: var(--font-display); font-size: 1.18rem; line-height: 1.22; margin-bottom: .5rem; }
.blog-card .card-title a { color: var(--ink); text-decoration: none; }
.blog-card .card-title a:hover { color: var(--jade-dark); }
.blog-card__kicker {
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--jade);
    margin: 0 0 .5rem;
}
.card-img-placeholder { background: var(--salt-2) !important; }

/* ── 18. Interior page hero ──────────────────────────────────────────────── */
.page-hero {
    position: relative;
    background: var(--ink);
    color: var(--bone);
    padding: clamp(48px, 7vw, 92px) 0 clamp(40px, 6vw, 72px);
    overflow: hidden;
}
.page-hero::after {
    content: "";
    position: absolute;
    right: -10%;
    top: -40%;
    width: 60%;
    height: 180%;
    background: radial-gradient(closest-side, rgba(123, 79, 142, .55), rgba(61, 42, 77, 0));
    pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero .section-label,
.page-hero .eyebrow { color: var(--sage); }
.page-hero .eyebrow::before {
    background:
        repeating-linear-gradient(45deg, var(--sage) 0 3px, transparent 3px 6px),
        repeating-linear-gradient(-45deg, rgba(255,255,255,.3) 0 3px, transparent 3px 6px);
}
.page-title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4.6vw, 3.5rem);
    font-weight: 400;
    color: var(--bone);
    letter-spacing: -.025em;
    line-height: 1.04;
    max-width: 20ch;
    margin: 0 0 .5rem;
}
.page-lead {
    font-size: clamp(1rem, 1.4vw, 1.14rem);
    color: rgba(247, 246, 241, .72);
    max-width: 58ch;
    margin: .6rem 0 0;
}

/* Breadcrumbs */
.crumbs { padding-block: 1rem; font-size: .8rem; color: var(--muted); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .45rem; list-style: none; margin: 0; padding: 0; }
.crumbs li { display: flex; align-items: center; gap: .45rem; }
.crumbs li + li::before { content: "/"; color: var(--line-strong); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--jade-dark); text-decoration: underline; }
.crumbs [aria-current="page"] { color: var(--text); }

/* ── 19. Content blocks ──────────────────────────────────────────────────── */
.prose, .article-content { font-size: 1.05rem; line-height: 1.8; color: var(--text); }
.prose > p:first-child { font-size: 1.14rem; color: var(--text); }
.prose h2, .article-content h2 {
    font-size: clamp(1.4rem, 2.2vw, 1.75rem);
    margin: 2.4rem 0 .7rem;
    letter-spacing: -.02em;
}
.prose h3, .article-content h3 { font-size: 1.18rem; margin: 1.8rem 0 .5rem; }
.prose p, .article-content p { margin-bottom: 1.1rem; }
.prose ul, .prose ol, .article-content ul, .article-content ol { margin: 0 0 1.3rem 1.1rem; padding: 0; }
.prose li, .article-content li { margin-bottom: .45rem; }
.prose a, .article-content a { color: var(--jade-dark); text-decoration: underline; }
.prose blockquote, .article-content blockquote {
    margin: 2rem 0;
    padding: 1.1rem 0 1.1rem 1.4rem;
    border-left: 2px solid var(--jade);
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-style: italic;
    color: var(--ink);
}

.panel {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: clamp(22px, 3vw, 32px);
}
.panel--tint { background: var(--salt-2); border-color: transparent; }
.panel--ink { background: var(--ink); border-color: transparent; color: rgba(247, 246, 241, .78); }
.panel--ink h2, .panel--ink h3, .panel--ink h4 { color: var(--bone); }
.panel h3:first-child, .panel h4:first-child { margin-top: 0; }

.sidebar-cta-card {
    background: var(--ink);
    color: rgba(247, 246, 241, .78);
    border: 0;
    border-radius: var(--radius-lg);
    padding: clamp(22px, 3vw, 30px);
}
.sidebar-cta-card h4, .sidebar-cta-card h5 { color: var(--bone); font-family: var(--font-display); font-size: 1.22rem; }
.sidebar-cta-card p { font-size: .92rem; }
.sidebar-cta-card a:not(.btn) { color: var(--sage); }
.sidebar-cta-card .btn-primary, .sidebar-cta-card .btn--primary { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.sidebar-cta-card .btn-primary:hover, .sidebar-cta-card .btn--primary:hover { background: #fff; }

.pricing-card {
    background: var(--salt-2);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: clamp(20px, 3vw, 28px);
}
.pricing-card h4 { margin-top: 0; }

.info-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: clamp(20px, 2.5vw, 26px);
    height: 100%;
}
.info-card--plain { background: var(--salt-2); border-color: transparent; }
.info-card__icon { color: var(--jade); display: inline-flex; margin-bottom: .6rem; }
.info-card h4 { font-size: 1.05rem; margin-bottom: .3rem; }
.info-card p { font-size: .9rem; color: var(--muted); margin: 0; line-height: 1.65; }

.programme-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-left: 2px solid var(--jade);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: clamp(18px, 2.5vw, 24px);
}
.programme-card h4 { font-size: 1.08rem; margin-bottom: .4rem; }
.programme-list { margin: .5rem 0 0 1.1rem; padding: 0; }
.programme-list li { margin-bottom: .3rem; color: var(--muted); font-size: .93rem; }

.promise-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
@media (max-width: 860px) { .promise-grid { grid-template-columns: 1fr; } }
.promise-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: clamp(22px, 3vw, 30px);
    text-align: left;
}
.promise-card:last-child:nth-child(3n + 2) { grid-column: auto; }
.promise-icon { color: var(--jade); display: inline-flex; margin-bottom: .7rem; }
.promise-icon svg { width: 24px; height: 24px; }
.promise-card-title { font-family: var(--font-display); font-size: 1.1rem; margin-bottom: .3rem; }
.promise-card p { font-size: .92rem; color: var(--muted); margin: 0; }

.quals-panel {
    background: var(--salt-2);
    border-radius: var(--radius-lg);
    padding: clamp(20px, 3vw, 28px);
}
.quals-panel h3 { font-size: 1.05rem; margin-bottom: .7rem; }
.quals-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.quals-list li { display: flex; gap: .6rem; align-items: flex-start; font-size: .92rem; color: var(--text); }
.quals-list__icon { color: var(--jade); flex: none; margin-top: .18rem; }

.founder-image { width: 100%; border-radius: var(--radius-lg); box-shadow: none; }
.founder-quote {
    margin: 1.5rem 0 0;
    padding: 1.4rem 0 1.4rem 1.4rem;
    border-left: 2px solid var(--jade);
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-style: italic;
    line-height: 1.5;
    color: var(--ink);
}
.founder-quote footer { font-family: var(--font-body); font-size: .84rem; font-style: normal; color: var(--muted); margin-top: .8rem; }

.section-title { font-family: var(--font-display); font-size: clamp(1.8rem, 3.2vw, 2.6rem); color: var(--ink); margin-bottom: .6rem; letter-spacing: -.022em; }
.section-title--sm { font-size: clamp(1.45rem, 2.4vw, 1.85rem); }
.section-label {
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--jade);
    margin-bottom: .6rem;
}
.section-lead { font-size: 1.05rem; color: var(--muted); max-width: 62ch; }
.section-header { margin-bottom: clamp(28px, 4vw, 40px); }
.section-header--left { text-align: left; }
.section-header--split { display: flex; align-items: end; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.bg-purple .section-title, .cta-band .section-title { color: var(--bone); }

/* ── 20. Closing CTA band ────────────────────────────────────────────────── */
.cta-band {
    position: relative;
    background: var(--ink);
    color: rgba(247, 246, 241, .8);
    overflow: hidden;
    text-align: left;
}
.cta-band::before {
    content: "";
    position: absolute;
    inset: auto -5% -60% auto;
    width: 55%;
    height: 160%;
    background: radial-gradient(closest-side, rgba(123, 79, 142, .5), rgba(61, 42, 77, 0));
}
.cta-band .container { position: relative; z-index: 1; }
.cta-band__inner {
    display: grid;
    grid-template-columns: 1.25fr .75fr;
    gap: clamp(24px, 4vw, 56px);
    align-items: center;
}
.cta-band h2 { color: var(--bone); margin-bottom: .5rem; }
.cta-band p { color: rgba(247, 246, 241, .72); max-width: 46ch; margin: 0; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.cta-band .btn--ghost { border-color: rgba(247, 246, 241, .35); color: var(--bone); }
.cta-band .btn--ghost:hover { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.cta-band .btn--light { background: var(--bone); color: var(--ink); }
@media (max-width: 860px) {
    .cta-band__inner { grid-template-columns: 1fr; }
    .cta-band__actions { justify-content: flex-start; }
}

.bg-purple { background: var(--ink); color: rgba(247, 246, 241, .8); }
.bg-charcoal { background: var(--ink-2); color: rgba(247, 246, 241, .8); }
.bg-purple .section-lead, .bg-charcoal .section-lead { color: rgba(247, 246, 241, .72); }

/* ── 21. Blog listing ────────────────────────────────────────────────────── */
.filter-bar {
    display: grid;
    grid-template-columns: 1.6fr 1fr auto;
    gap: .75rem;
    align-items: center;
    padding: 1rem;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    margin-bottom: clamp(28px, 4vw, 44px);
}
@media (max-width: 760px) { .filter-bar { grid-template-columns: 1fr; } }
.filter-bar .form-control, .filter-bar .form-select {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: .75rem .9rem;
    font-size: .95rem;
    background: var(--salt);
    color: var(--text);
}
.filter-bar .form-control:focus, .filter-bar .form-select:focus {
    border-color: var(--jade);
    box-shadow: 0 0 0 3px rgba(123, 79, 142, .14);
    background: #fff;
}

.featured-post {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 0;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: clamp(32px, 5vw, 52px);
}
.featured-post__media { position: relative; min-height: 300px; background: var(--salt-2); }
.featured-post__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.featured-post--text { grid-template-columns: 1fr; max-width: 840px; }
.featured-post--text .featured-post__body { max-width: none; }
.featured-post__body { padding: clamp(26px, 4vw, 44px); display: flex; flex-direction: column; justify-content: center; gap: .7rem; }
.featured-post__body h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin: 0; }
.featured-post__body h2 a { color: var(--ink); text-decoration: none; }
.featured-post__body h2 a:hover { color: var(--jade-dark); }
@media (max-width: 860px) {
    .featured-post { grid-template-columns: 1fr; }
    .featured-post__media { min-height: 220px; }
}

.badge {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: .66rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    border-radius: 999px;
    padding: .32em .8em;
}
.bg-teal, .bg-sage { background: var(--jade-soft) !important; color: var(--jade-dark) !important; }
.bg-research { background: #F2E8D8 !important; color: #7A5A22 !important; }

.pagination { --bs-pagination-active-bg: var(--ink); --bs-pagination-active-border-color: var(--ink); }
.page-link { color: var(--jade-dark); border-color: var(--line); }
.page-link:hover { color: var(--ink); background: var(--salt-2); border-color: var(--line); }

/* ── 22. Article ─────────────────────────────────────────────────────────── */
.article-header { padding: clamp(28px, 4vw, 48px) 0 1rem; }
.article-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.1rem);
    line-height: 1.06;
    letter-spacing: -.026em;
    color: var(--ink);
    margin: .4rem 0 .8rem;
}
.article-meta { font-size: .85rem; color: var(--muted); letter-spacing: .01em; }
.article-meta a { color: var(--muted); }
.article-toc {
    background: var(--salt-2);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 1rem 1.3rem;
    margin-bottom: 2rem;
    font-size: .92rem;
}
.article-toc summary { font-weight: 600; cursor: pointer; color: var(--ink); }
.article-toc ul, .article-toc ol { margin: .8rem 0 0 1rem; padding: 0; }
.article-toc a { color: var(--jade-dark); text-decoration: none; }
.article-toc a:hover { text-decoration: underline; }
.article-share { display: flex; flex-wrap: wrap; gap: .5rem; }
.article-share .btn-outline, .article-share .btn--ghost {
    border-color: var(--line);
    color: var(--muted);
    padding: .55rem .95rem;
    font-size: .84rem;
}
.article-share .btn-outline:hover, .article-share .btn--ghost:hover {
    background: var(--jade);
    border-color: var(--jade);
    color: #fff;
}
.article-topics .topic-chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .78rem;
    font-weight: 500;
    padding: .35rem .8rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    text-decoration: none;
    margin: 0 .35rem .35rem 0;
}
.article-topics .topic-chip:hover { background: var(--jade); border-color: var(--jade); color: #fff; }
.article-topics .topic-chip--ghost { background: transparent; border-color: var(--line); color: var(--muted); }
.article-topics .topic-chip--ghost:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

.article-pager {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
}
.article-pager a {
    display: block;
    padding: 1rem 1.1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: var(--ink);
}
.article-pager a:hover { border-color: var(--sage); background: var(--paper); }
.article-pager .label {
    display: block;
    font-size: .68rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: .35rem;
}
.article-pager .title { font-family: var(--font-display); font-size: 1.05rem; line-height: 1.25; }
.article-pager .next { text-align: right; }
@media (max-width: 640px) { .article-pager { grid-template-columns: 1fr; } }

.article-author {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.3rem;
    background: var(--salt-2);
    border-radius: var(--radius-lg);
}
.article-author img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; }
.article-author h3 { font-size: 1rem; margin: 0 0 .2rem; }
.article-author p { font-size: .88rem; color: var(--muted); margin: 0; }

/* In-article support callout — the conversion moment for blog traffic. */
.support-callout {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1.25rem;
    align-items: center;
    margin: 2.5rem 0;
    padding: clamp(20px, 3vw, 28px);
    background: var(--ink);
    color: rgba(247, 246, 241, .8);
    border-radius: var(--radius-lg);
}
.support-callout h3 { color: var(--bone); font-size: 1.15rem; margin: 0 0 .3rem; }
.support-callout p { font-size: .9rem; margin: 0; max-width: 48ch; }
.support-callout .btn { flex: none; }
@media (max-width: 700px) { .support-callout { grid-template-columns: 1fr; } }

/* ── 23. Events ──────────────────────────────────────────────────────────── */
.event-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 100%;
}
.event-card .card-img-top { height: 200px; object-fit: cover; }
.event-card__date {
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--jade);
    margin: 0 0 .45rem;
}
.event-card .card-title { font-family: var(--font-display); font-size: 1.2rem; }
.event-card .card-body { padding: 1.2rem 1.35rem 1.4rem; }
.event-hero { position: relative; background: var(--ink); color: var(--bone); }
.event-hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .38; }
.event-hero-overlay { position: absolute; inset: 0; background: linear-gradient(120deg, rgba(8,39,43,.94), rgba(8,39,43,.45)); }
.event-hero-content { position: relative; z-index: 2; padding: clamp(48px, 9vw, 110px) 0; }
.event-hero-title { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3.1rem); color: var(--bone); letter-spacing: -.025em; }
.event-info-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.4rem; }
.event-info-item { display: flex; gap: .8rem; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.event-info-item:last-child { border-bottom: 0; }
.event-info-icon { color: var(--jade); flex: none; margin-top: .15rem; }
.rsvp-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.5rem; }
.rsvp-card h3 { font-size: 1.2rem; }
.rsvp-card .form-control { border: 1px solid var(--line); border-radius: var(--radius); padding: .7rem .85rem; }
.rsvp-card .form-control:focus { border-color: var(--jade); box-shadow: 0 0 0 3px rgba(28,107,88,.14); }

/* ── 24. Contact form ────────────────────────────────────────────────────── */
.contact-form .form-label { font-weight: 600; font-size: .84rem; color: var(--ink); margin-bottom: .4rem; }
.contact-form .form-control, .contact-form .form-select {
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    padding: .8rem .95rem;
    font-size: .96rem;
    background: var(--paper);
    color: var(--text);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.contact-form .form-control:focus, .contact-form .form-select:focus {
    border-color: var(--jade);
    box-shadow: 0 0 0 3px rgba(123, 79, 142, .14);
    outline: none;
}
.contact-form .form-control.is-invalid, .contact-form .form-select.is-invalid { border-color: var(--clay); }
.contact-form .invalid-feedback { font-size: .82rem; color: var(--clay); }
.contact-form .honeypot { position: absolute !important; left: -9999px !important; }
.contact-form .text-danger { color: var(--clay) !important; }

.emergency-notice {
    background: var(--clay-soft);
    border: 1px solid #E7CFC6;
    border-left: 3px solid var(--clay);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 1.1rem 1.25rem;
    color: #6E3222;
}
.emergency-notice h5 { color: #6E3222; font-family: var(--font-body); font-weight: 700; font-size: .92rem; }
.emergency-notice p { font-size: .88rem; margin: 0; color: #6E3222; }
.helpline-info { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.3rem; }
.helpline-info h5 { font-family: var(--font-body); font-weight: 700; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .8rem; }
.helpline-info a { font-weight: 600; color: var(--ink); text-decoration: none; }
.contact-details { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.3rem; }
.contact-details h5 { font-family: var(--font-body); font-weight: 700; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .8rem; }
.contact-details p { font-size: .92rem; }

.steps-mini { display: grid; gap: .9rem; margin: 1.5rem 0 0; padding: 0; list-style: none; counter-reset: mini; }
.steps-mini li { display: flex; gap: .8rem; font-size: .92rem; color: var(--muted); }
.steps-mini li::before {
    counter-increment: mini;
    content: counter(mini);
    flex: none;
    width: 24px; height: 24px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: var(--jade-soft);
    color: var(--jade-dark);
    font-size: .74rem;
    font-weight: 700;
}

/* ── 25. Footer ──────────────────────────────────────────────────────────── */
.site-footer {
    background: var(--ink);
    color: rgba(247, 246, 241, .62);
    font-size: .92rem;
    padding-bottom: 2.5rem;
}
.site-footer .container { padding-top: clamp(48px, 6vw, 76px); }
.site-footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.15fr;
    gap: clamp(28px, 4vw, 56px);
}
.site-footer__logo { height: 58px; width: auto; margin-bottom: 1.1rem; }
.site-footer__brand p { font-size: .9rem; line-height: 1.65; max-width: 34ch; color: rgba(247, 246, 241, .58); }
.site-footer__email {
    display: inline-block;
    margin-top: .8rem;
    color: var(--bone);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(247, 246, 241, .3);
    padding-bottom: 1px;
}
.site-footer__email:hover { color: var(--sage); border-color: var(--sage); }
.site-footer__social { display: flex; flex-wrap: wrap; gap: 1rem; list-style: none; padding: 0; margin: 1.2rem 0 0; font-size: .82rem; }
.site-footer__social a { color: rgba(247, 246, 241, .58); text-decoration: none; }
.site-footer__social a:hover { color: var(--bone); }

.site-footer__heading {
    font-family: var(--font-body);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: rgba(247, 246, 241, .42);
    margin: 0 0 1rem;
}
.site-footer__col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.site-footer__col li { font-size: .9rem; line-height: 1.45; }
.site-footer__col a { color: rgba(247, 246, 241, .74); text-decoration: none; }
.site-footer__col a:hover { color: var(--bone); text-decoration: underline; }
/* A button inside a footer column keeps its own colours: the column link
   rule above is more specific and would otherwise paint bone text on the
   bone button, making the label invisible. */
.site-footer__col a.btn,
.site-footer__col a.btn:hover {
    text-decoration: none;
    color: var(--ink);
}
.site-footer__col a.btn--ghost { color: var(--bone); }
.site-footer__col a.btn--ghost:hover { color: var(--ink); }
.site-footer__help li strong { color: var(--bone); font-size: .98rem; }
.site-footer__help li span { color: rgba(247, 246, 241, .45); font-size: .8rem; }
.site-footer__cta { margin-top: 1.2rem; }

.site-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: clamp(32px, 5vw, 56px);
    padding-top: 1.3rem;
    border-top: 1px solid rgba(247, 246, 241, .12);
    font-size: .78rem;
    color: rgba(247, 246, 241, .4);
}
.site-footer__bottom p { margin: 0; }
.site-footer__legal { display: flex; gap: 1.2rem; list-style: none; margin: 0; padding: 0; }
.site-footer__legal a { color: rgba(247, 246, 241, .4); text-decoration: none; }
.site-footer__legal a:hover { color: var(--bone); }

@media (max-width: 980px) {
    .site-footer__grid { grid-template-columns: 1fr 1fr; }
    .site-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
    .site-footer__grid { grid-template-columns: 1fr; }
}

/* ── 26. Sticky mobile CTA ───────────────────────────────────────────────── */
.mobile-cta {
    display: none;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 80;
    padding: .6rem .8rem calc(.6rem + env(safe-area-inset-bottom, 0px));
    background: rgba(247, 246, 241, .97);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
}
.mobile-cta__inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: .5rem; }
.mobile-cta .btn { padding: .8rem .6rem; font-size: .9rem; }

@media (max-width: 940px) {
    .mobile-cta { display: block; }
    body.site { padding-bottom: 74px; }
}
@media print {
    .mobile-cta, .masthead, .site-footer { display: none !important; }
}

/* ── 27. Motion ──────────────────────────────────────────────────────────── */
/* Deliberately almost none. The hero is the LCP element on the home page, so
   any entrance animation delays the largest paint and costs Core Web Vitals.
   The only movement left is hover/focus feedback, which is cheap and useful. */
@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
    .btn--primary, .btn--ghost, .btn--light, .svc, .post-card, .service-detail-card {
        will-change: transform;
    }
}

/* ── 28. Print ───────────────────────────────────────────────────────────── */
@media print {
    body.site { background: #fff; }
    .page-hero, .hero, .cta-band, .values-band { background: #fff !important; color: #000 !important; }
    .page-title, .hero h1, .cta-band h2, .values-band h2 { color: #000 !important; }
    a { color: #000 !important; text-decoration: underline; }
    .section { padding-block: 1.2rem; }
}

/* ── Supervision referral ─────────────────────────────────────────── */
.referral-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
    gap: clamp(2rem, 4vw, 4rem);
    align-items: start;
}
.referral-form fieldset.ref-step {
    border: 0;
    border-top: 1px solid var(--line);
    margin: 2rem 0 0;
    padding: 1.6rem 0 0;
    min-width: 0;
}
.referral-form .ref-step legend {
    display: flex;
    align-items: center;
    gap: .7rem;
    width: auto;
    padding: 0;
    margin-bottom: .7rem;
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 1.8vw, 1.4rem);
    color: var(--ink);
    line-height: 1.2;
}
.ref-step__num {
    width: 28px;
    height: 28px;
    flex: none;
    border-radius: 50%;
    background: var(--jade-soft);
    color: var(--jade-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body);
    font-size: .8rem;
    font-weight: 600;
}
.referral-form .form-hint {
    display: block;
    font-size: .82rem;
    color: var(--muted);
    margin: -.2rem 0 .4rem;
}
.referral-form .form-check { margin: .2rem 0; }
.referral-form .form-check-label { font-size: .95rem; }
.referral-form .form-check-input { margin-top: .28rem; }
.choice-row {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin: .15rem 0 .2rem;
}
.choice {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    padding: .45rem .9rem;
    font-size: .9rem;
    cursor: pointer;
    background: var(--paper);
    transition: border-color .15s ease, background .15s ease;
}
.choice input { accent-color: var(--jade); margin: 0; }
.choice:has(input:checked) {
    border-color: var(--jade);
    background: var(--jade-soft);
    color: var(--jade-dark);
}
.referral-warning {
    display: flex;
    gap: .8rem;
    align-items: flex-start;
    background: var(--clay-soft);
    border-left: 3px solid var(--clay);
    border-radius: var(--radius);
    padding: 1rem 1.1rem;
    margin: 1.4rem 0;
}
.referral-warning svg { color: var(--clay); flex: none; margin-top: .18rem; }
.referral-warning p { margin: 0; font-size: .94rem; }
.referral-errors {
    background: var(--paper);
    border: 1px solid var(--clay);
    border-radius: var(--radius);
    padding: 1rem 1.1rem;
    margin: 1.2rem 0;
    font-size: .92rem;
}
.referral-errors ul { margin: .5rem 0 0 1.1rem; }
.consent-list { display: grid; gap: .35rem; margin-top: .9rem; }
.referral-submit {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .8rem;
}
.referral-submit p { font-size: .82rem; margin: 0; max-width: 46ch; }
.referral-aside {
    display: grid;
    gap: 1.2rem;
    position: sticky;
    top: 96px;
}
.download-card {
    background: var(--salt-2);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 1.4rem;
}
.download-card__icon { color: var(--jade); display: inline-flex; margin-bottom: .5rem; }
.download-card h2 { font-size: 1.35rem; margin-bottom: .5rem; }
.download-card p { font-size: .9rem; }
.download-card__meta {
    font-size: .78rem !important;
    color: var(--muted);
    margin: .55rem 0 0;
    text-align: center;
}
.referral-aside__block { border-top: 1px solid var(--line); padding-top: 1.2rem; }
.referral-aside__block p { font-size: .92rem; }
.referral-steps {
    list-style: none;
    counter-reset: refstep;
    padding: 0;
    margin: .6rem 0 0;
    display: grid;
    gap: .85rem;
    font-size: .92rem;
}
.referral-steps li { counter-increment: refstep; position: relative; padding-left: 2rem; }
.referral-steps li::before {
    content: counter(refstep);
    position: absolute;
    left: 0;
    top: .05rem;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 50%;
    background: var(--jade-soft);
    color: var(--jade-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .72rem;
    font-weight: 600;
}
.referral-success {
    background: var(--salt);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: clamp(1.6rem, 4vw, 2.6rem);
}
.referral-success__mark { color: var(--jade); display: inline-flex; margin-bottom: .5rem; }
.referral-success h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: .7rem; }
.referral-success__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.4rem; }
.referral-success__actions .btn--ghost { background: transparent; }
@media (max-width: 900px) {
    .referral-layout { grid-template-columns: 1fr; }
    .referral-aside { position: static; }
}
.referral-success__mark { display: block; color: var(--jade); margin-bottom: .9rem; }

/* ── Social work support referral tables ─────────────────────────── */
.referral-form .ref-table {
    margin: 0;
    font-size: .9rem;
    --bs-table-bg: transparent;
}
.referral-form .ref-table th {
    font-size: .74rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--muted);
    font-weight: 600;
    border-bottom: 1px solid var(--line-strong);
    padding: .5rem .4rem;
    vertical-align: middle;
    white-space: nowrap;
}
.referral-form .ref-table td {
    padding: .4rem .35rem;
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
}
.referral-form .ref-table td .form-control,
.referral-form .ref-table td .form-select {
    min-width: 0;
    font-size: .88rem;
    padding: .5rem .6rem;
}
/* The referral form sits inside a grid column, not a .container; Bootstrap's
   negative row margins would otherwise push the form past the viewport. */
.referral-layout > * { min-width: 0; }
.referral-form .row { margin-left: 0; margin-right: 0; }
.referral-form .ref-table { min-width: 640px; }
.ref-table-hint { display: none; }
@media (max-width: 700px) { .ref-table-hint { display: block; margin: .5rem 0 0; } }
