/* ============================================================
   Erene Mitchell — Counselling
   Palette: highveld at dusk — warm paper, sand, espresso ink,
   rooibos accent, dry-season olive. Type: Young Serif (display),
   Literata (body), Karla (utility).
   ============================================================ */

:root {
    --paper: #FBF6EF;
    --sand: #F1E7D8;
    --sand-deep: #E8DAC5;
    --espresso: #33271C;
    --ink: #3A2E22;
    --ink-soft: #6E5F4E;
    --rooibos: #A64B2A;
    --rooibos-deep: #8B3D21;
    --olive: #77815F;
    --olive-soft: #A3AA8C;
    --paper-on-dark: #F6EEE1;
    --max: 1080px;
    --serif-display: "Young Serif", Georgia, serif;
    --serif-body: "Literata", Georgia, serif;
    --sans: "Karla", -apple-system, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
    font-family: var(--serif-body);
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
}

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

a { color: var(--rooibos); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--rooibos-deep); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }

/* ---------- Typography ---------- */

h1, h2 {
    font-family: var(--serif-display);
    font-weight: 400;
    line-height: 1.15;
    color: var(--espresso);
    letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); margin-bottom: 0.6em; }
h2 { font-size: clamp(1.45rem, 2.8vw, 1.9rem); margin: 0 0 0.7em; }
h3 {
    font-family: var(--serif-body);
    font-weight: 600;
    font-size: 1.15rem;
    color: var(--espresso);
    margin-bottom: 0.5em;
}
p + p, p + ul, ul + p { margin-top: 1em; }
ul { padding-left: 1.3em; }
li + li { margin-top: 0.4em; }
strong { color: var(--espresso); }

.eyebrow {
    font-family: var(--sans);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--olive);
    margin-bottom: 1.1em;
}

.lede { font-size: 1.15rem; color: var(--ink-soft); }

/* ---------- Header ---------- */

.site-header {
    background: var(--paper);
    border-bottom: 1px solid var(--sand-deep);
    position: relative;
    z-index: 50;
}
.site-header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 18px;
    padding-bottom: 18px;
}
.brand { text-decoration: none; color: var(--espresso); line-height: 1.2; }
.brand .brand-name { font-family: var(--serif-display); font-size: 1.35rem; display: block; }
.brand .brand-sub {
    font-family: var(--sans);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--olive);
}
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a {
    font-family: var(--sans);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--ink);
    text-decoration: none;
}
.site-nav a:hover { color: var(--rooibos); }
.site-nav a[aria-current="page"] { color: var(--rooibos); }
.nav-cta {
    background: var(--rooibos);
    color: #fff !important;
    padding: 9px 18px;
    border-radius: 999px;
    font-weight: 700 !important;
}
.nav-cta:hover { background: var(--rooibos-deep); }
.nav-toggle { display: none; }

@media (max-width: 840px) {
    .nav-toggle {
        display: block;
        background: none;
        border: 1px solid var(--sand-deep);
        border-radius: 8px;
        padding: 8px 12px;
        font-family: var(--sans);
        font-size: 0.9rem;
        color: var(--espresso);
        cursor: pointer;
    }
    .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--paper);
        border-bottom: 1px solid var(--sand-deep);
        flex-direction: column;
        align-items: flex-start;
        padding: 18px 24px 24px;
        gap: 16px;
        box-shadow: 0 14px 30px rgba(51, 39, 28, 0.08);
    }
    .site-nav.open { display: flex; }
}

/* ---------- Horizon divider (signature) ---------- */

.horizon { display: block; width: 100%; height: auto; color: var(--olive-soft); }
.horizon--footer { color: var(--olive); opacity: 0.55; }

/* ---------- Hero ---------- */

.hero { background: var(--paper); overflow: hidden; }
.hero .wrap {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 40px;
    align-items: end;
    padding-top: 64px;
}
.hero-text { padding-bottom: 64px; animation: rise 0.7s ease both; }
.hero-text .lede { max-width: 46ch; }
.hero-actions { margin-top: 2em; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-fine {
    margin-top: 1.6em;
    font-family: var(--sans);
    font-size: 0.85rem;
    color: var(--ink-soft);
}
.hero-figure { position: relative; align-self: end; margin: 0; }
.hero-figure::before {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 82%;
    background: var(--sand);
    border-radius: 300px 300px 0 0;
}
.hero-figure img { position: relative; width: min(360px, 80%); margin: 0 auto; }

@keyframes rise {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
}

@media (max-width: 840px) {
    .hero .wrap { grid-template-columns: 1fr; padding-top: 40px; }
    .hero-text { padding-bottom: 0; }
    .hero-figure { margin-top: 34px; }
}

/* ---------- Buttons ---------- */

.btn {
    display: inline-block;
    font-family: var(--sans);
    font-weight: 700;
    font-size: 0.98rem;
    text-decoration: none;
    border-radius: 999px;
    padding: 13px 26px;
    transition: background 0.15s ease, color 0.15s ease;
}
.btn-primary { background: var(--rooibos); color: #fff; }
.btn-primary:hover { background: var(--rooibos-deep); color: #fff; }
.btn-ghost { color: var(--espresso); border: 1.5px solid var(--sand-deep); background: transparent; }
.btn-ghost:hover { border-color: var(--rooibos); color: var(--rooibos); }
.btn-whatsapp { background: transparent; border: 1.5px solid var(--olive); color: var(--olive); }
.btn-whatsapp:hover { background: var(--olive); color: #fff; }

/* ---------- Sections ---------- */

.section { padding: 72px 0; }
.section--sand { background: var(--sand); }
.section--tight { padding: 56px 0; }
.section-head { max-width: 640px; margin-bottom: 40px; }

/* Article/service pages */
.article-head { padding: 64px 0 8px; }
.article-body { padding: 8px 0 40px; }
.article-body h2 { margin-top: 1.8em; }
.article-body h2:first-child { margin-top: 0.4em; }
/* headings that follow body copy inside any narrow content block */
.wrap-narrow > h2:not(:first-child),
.wrap-narrow > h3:not(:first-child) { margin-top: 1.8em; }
.article-meta {
    font-family: var(--sans);
    font-size: 0.85rem;
    color: var(--ink-soft);
    margin-bottom: 2em;
}

/* ---------- Cards ---------- */

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 22px;
}
.card {
    background: var(--paper);
    border: 1px solid var(--sand-deep);
    border-radius: 14px;
    padding: 26px 26px 24px;
    text-decoration: none;
    color: var(--ink);
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: border-color 0.15s ease, transform 0.15s ease;
}
.section--sand .card { border-color: transparent; }
.card:hover { border-color: var(--rooibos); transform: translateY(-2px); color: var(--ink); }
.card h3 { font-family: var(--serif-display); font-weight: 400; font-size: 1.18rem; margin: 0; }
.card p { font-size: 0.98rem; color: var(--ink-soft); margin: 0; }
.card .card-more {
    margin-top: auto;
    padding-top: 8px;
    font-family: var(--sans);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--rooibos);
}

/* ---------- Fee cards ---------- */

.fee-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 22px;
    margin: 32px 0;
}
.fee-card {
    background: var(--paper);
    border: 1px solid var(--sand-deep);
    border-radius: 14px;
    padding: 28px;
}
.fee-card .fee-region {
    font-family: var(--sans);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--olive);
}
.fee-card .fee-amount {
    font-family: var(--serif-display);
    font-size: 2rem;
    color: var(--espresso);
    margin: 10px 0 2px;
}
.fee-card .fee-unit { font-family: var(--sans); font-size: 0.9rem; color: var(--ink-soft); }
.fee-card ul { margin-top: 14px; padding-left: 1.2em; font-size: 0.95rem; }

/* ---------- FAQ ---------- */

.faq { max-width: 760px; }
.faq details {
    border-bottom: 1px solid var(--sand-deep);
    padding: 4px 0;
}
.faq summary {
    font-family: var(--serif-body);
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--espresso);
    padding: 14px 30px 14px 0;
    cursor: pointer;
    list-style: none;
    position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "+";
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--sans);
    font-size: 1.3rem;
    color: var(--rooibos);
    transition: transform 0.15s ease;
}
.faq details[open] summary::after { content: "–"; }
.faq .faq-a { padding: 0 0 18px; color: var(--ink); }

/* ---------- CTA band ---------- */

.cta-band { background: var(--espresso); color: var(--paper-on-dark); }
.cta-band .wrap {
    padding-top: 64px;
    padding-bottom: 64px;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 36px;
    align-items: center;
}
.cta-band h2 { color: var(--paper-on-dark); }
.cta-band p { color: rgba(246, 238, 225, 0.82); }
.cta-band .cta-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: flex-end; }
.cta-band .btn-ghost { border-color: rgba(246, 238, 225, 0.4); color: var(--paper-on-dark); }
.cta-band .btn-ghost:hover { border-color: var(--paper-on-dark); }
@media (max-width: 840px) {
    .cta-band .wrap { grid-template-columns: 1fr; }
    .cta-band .cta-actions { justify-content: flex-start; }
}

/* ---------- Contact form ---------- */

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 48px;
    align-items: start;
}
@media (max-width: 840px) { .contact-grid { grid-template-columns: 1fr; } }

.form-field { margin-bottom: 18px; }
.form-field label {
    display: block;
    font-family: var(--sans);
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--espresso);
    margin-bottom: 6px;
}
.form-field .hint { font-weight: 400; color: var(--ink-soft); }
.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    font-family: var(--serif-body);
    font-size: 1rem;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--sand-deep);
    border-radius: 10px;
    padding: 12px 14px;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: 2px solid var(--rooibos);
    outline-offset: 1px;
    border-color: var(--rooibos);
}
.form-note { font-family: var(--sans); font-size: 0.85rem; color: var(--ink-soft); margin: 14px 0; }
.form-result {
    border-radius: 10px;
    padding: 18px 20px;
    background: #EAF0E2;
    border: 1px solid var(--olive-soft);
    margin-top: 16px;
}
.form-result.error { background: #F6E7DE; border-color: var(--rooibos); }
.hp-field { position: absolute; left: -6000px; opacity: 0; pointer-events: none; }

/* ---------- Info list (contact page) ---------- */

.info-list { list-style: none; padding: 0; }
.info-list li { padding: 14px 0; border-bottom: 1px solid var(--sand-deep); }
.info-list .info-label {
    font-family: var(--sans);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--olive);
    display: block;
    margin-bottom: 2px;
}

/* ---------- Timezone table ---------- */

.tz-table { border-collapse: collapse; width: 100%; font-family: var(--sans); font-size: 0.93rem; margin: 20px 0; }
.tz-table th, .tz-table td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--sand-deep); }
.tz-table th { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--olive); }

/* ---------- Full-bleed image band ---------- */

.band {
    height: clamp(180px, 24vw, 300px);
    background-image: url("/assets/band-forest.webp");
    background-size: cover;
    background-position: center 60%;
    position: relative;
}
.band::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(251,246,239,0.55), rgba(251,246,239,0) 35%, rgba(241,231,216,0) 65%, rgba(241,231,216,0.6));
}

/* ---------- Related reading ---------- */

.read-more-list { list-style: none; padding: 0; }
.read-more-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--sand-deep);
    font-family: var(--serif-body);
}
.read-more-list li:first-child { border-top: 1px solid var(--sand-deep); }
.read-more-list a { text-decoration: none; color: var(--espresso); }
.read-more-list a::before { content: "→ "; color: var(--rooibos); }
.read-more-list a:hover { color: var(--rooibos); }

/* ---------- Blog ---------- */

.post-list { display: grid; gap: 22px; }
.post-item {
    display: block;
    text-decoration: none;
    color: var(--ink);
    padding: 24px 26px;
    background: var(--paper);
    border: 1px solid var(--sand-deep);
    border-radius: 14px;
    transition: border-color 0.15s ease;
}
.post-item:hover { border-color: var(--rooibos); color: var(--ink); }
.post-item h3 { font-family: var(--serif-display); font-weight: 400; margin-bottom: 6px; }
.post-item p { color: var(--ink-soft); font-size: 0.98rem; }
.post-date { font-family: var(--sans); font-size: 0.8rem; color: var(--ink-soft); }

/* ---------- Footer ---------- */

.site-footer { background: var(--espresso); color: rgba(246, 238, 225, 0.85); font-size: 0.95rem; }
.site-footer .wrap { padding-top: 56px; padding-bottom: 40px; }
.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
@media (max-width: 840px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 {
    font-family: var(--sans);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--olive-soft);
    margin-bottom: 14px;
}
.site-footer a { color: var(--paper-on-dark); }
.site-footer ul { list-style: none; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-brand { font-family: var(--serif-display); font-size: 1.25rem; color: var(--paper-on-dark); margin-bottom: 10px; }
.footer-crisis {
    border-top: 1px solid rgba(246, 238, 225, 0.15);
    padding-top: 22px;
    font-size: 0.88rem;
    color: rgba(246, 238, 225, 0.65);
}
.footer-legal {
    margin-top: 18px;
    font-family: var(--sans);
    font-size: 0.8rem;
    color: rgba(246, 238, 225, 0.5);
}

/* ---------- Utility ---------- */

.center { text-align: center; }
.mt-2 { margin-top: 2em; }
.visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    margin: -1px; padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}
:focus-visible { outline: 2px solid var(--rooibos); outline-offset: 2px; }

/* Cookie-consent banner — only rendered when GA_ID is set in generate.py */
.consent-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 60;
    max-width: 640px;
    margin: 0 auto;
    background: var(--paper);
    border: 1px solid var(--sand-deep);
    border-radius: 14px;
    padding: 18px 22px;
    box-shadow: 0 8px 30px rgba(51, 39, 28, 0.18);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 20px;
}
.consent-banner p {
    margin: 0;
    flex: 1 1 280px;
    font-family: var(--sans);
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--ink-soft);
}
.consent-banner a { color: var(--rooibos); }
.consent-actions {
    display: flex;
    gap: 10px;
    flex: 0 0 auto;
}
.consent-banner .btn {
    padding: 9px 18px;
    font-size: 0.85rem;
}
@media (max-width: 840px) {
    .consent-actions { width: 100%; }
    .consent-banner .btn { flex: 1; text-align: center; }
}
