/* ============================================================================
   Name        :   assets/css/site.css
   Description :   De vormgeving van de website van Vervoer met Betekenis.
   Created By  :   Nick Nijmeijer | ITonFire | info@itonfire.nl
   ============================================================================ */

/* ========================================================================
   Design tokens - rustig en ingetogen, opgebouwd rond het antraciet en grijs
   van het logo. Kleur zit alleen in de actieknoppen: ingetogen groen voor
   contact, een frisser groen voor de vrijwillige gift.
   ======================================================================== */
:root {
    --bg: #fbfaf8;
    --bg-tint: #f2f0ec;
    --vlak: #ffffff;
    --tekst: #2b2e32;
    --tekst-2: #5c6166;
    --antraciet: #44484c;
    --antraciet-d: #33373a;
    --rand: #e2dfda;
    --groen: #2f6b4f;
    --groen-h: #24543d;
    --gift: #2e7d4f;
    --gift-d: #1f5c38;
    --rood: #a3271b;

    --font-tekst: 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
    --font-kop: Georgia, 'Iowan Old Style', 'Palatino Linotype', 'Times New Roman', serif;

    --r: 10px;
    --breedte: 1120px;
    --breedte-smal: 760px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font-tekst);
    font-size: clamp(16px, 1.5vw, 18px);
    line-height: 1.7;
    color: var(--tekst);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1,
h2,
h3 {
    font-family: var(--font-kop);
    font-weight: 400;
    line-height: 1.25;
    color: var(--antraciet-d);
    margin: 0 0 0.6em;
}

h1 {
    font-size: clamp(2rem, 4.5vw, 3rem);
    letter-spacing: -0.01em;
}

h2 {
    font-size: clamp(1.45rem, 2.6vw, 1.9rem);
}

h3 {
    font-size: 1.25rem;
}

p {
    margin: 0 0 1.1em;
}

a {
    color: var(--groen);
    text-underline-offset: 0.18em;
}

a:hover {
    color: var(--groen-h);
}

:focus-visible {
    outline: 3px solid var(--groen);
    outline-offset: 3px;
    border-radius: 3px;
}

.heel {
    white-space: nowrap;
}

/* Alleen zichtbaar voor wie met het toetsenbord door de pagina gaat. */
.skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 10;
    padding: 10px 16px;
    background: var(--antraciet-d);
    color: #fff;
    border-radius: var(--r);
}

.skip-link:focus {
    top: 12px;
    color: #fff;
}

/* ── Indeling ───────────────────────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: var(--breedte);
    margin: 0 auto;
    padding: 0 24px;
}

.container.smal {
    max-width: var(--breedte-smal);
}

.sectie {
    padding: clamp(48px, 7vw, 88px) 0;
}

.sectie-tint {
    background: var(--bg-tint);
    border-top: 1px solid var(--rand);
    border-bottom: 1px solid var(--rand);
}

/* Koppen binnen een doorlopende tekst krijgen lucht boven zich. */
.smal > p + h2,
.smal > ul + h2 {
    margin-top: 1.8em;
}

.sectie .container > :last-child,
.intro .container > :last-child {
    margin-bottom: 0;
}

/* ── Kop met logo en navigatie ──────────────────────────────────────────── */
.kop {
    background: var(--vlak);
    border-bottom: 1px solid var(--rand);
}

.kop-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 32px;
    padding-top: 14px;
    padding-bottom: 14px;
}

.kop-logo img {
    width: clamp(210px, 28vw, 290px);
}

.nav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 28px;
}

.nav a {
    padding: 8px 0;
    color: var(--antraciet);
    text-decoration: none;
    border-bottom: 2px solid transparent;
}

.nav a:hover {
    border-bottom-color: var(--rand);
}

.nav a[aria-current='page'] {
    color: var(--antraciet-d);
    font-weight: 600;
    border-bottom-color: var(--antraciet);
}

/* ── Hero (homepage) en intro (overige pagina's) ────────────────────────── */
.hero,
.intro {
    padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 72px);
    background: var(--vlak);
}

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(32px, 6vw, 80px);
}

.hero-tekst > :last-child {
    margin-bottom: 0;
}

.foto {
    margin: 0;
}

.foto img {
    width: 100%;
    border-radius: var(--r);
}

.foto figcaption {
    margin-top: 0.5em;
    font-size: 0.7rem;
    text-align: right;
    color: var(--tekst-2);
}

.intro .foto {
    margin-top: 2em;
}

.lead {
    font-family: var(--font-kop);
    font-size: clamp(1.15rem, 2.2vw, 1.45rem);
    font-style: italic;
    line-height: 1.45;
    color: var(--tekst-2);
    margin-bottom: 1.4em;
}

.besloten-label {
    display: inline-block;
    margin-bottom: 1.2em;
    padding: 3px 12px;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--tekst-2);
    border: 1px solid var(--rand);
    border-radius: 999px;
}

/* ── Kaarten en panelen ─────────────────────────────────────────────────── */
.kaarten {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: 1.6em;
}

.kaarten-twee {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 0;
}

.kaart,
.paneel {
    padding: 28px;
    background: var(--vlak);
    border: 1px solid var(--rand);
    border-radius: var(--r);
}

.kaart > :last-child,
.paneel > :last-child {
    margin-bottom: 0;
}

.kaart h2,
.paneel h2 {
    font-size: 1.4rem;
}

.kaart-link {
    color: var(--tekst-2);
}

.tweeluik {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    align-items: start;
    gap: clamp(28px, 5vw, 64px);
}

.tweeluik-gelijk {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.tweeluik:has(.foto) {
    align-items: center;
}

.tweeluik > div > :last-child {
    margin-bottom: 0;
}

/* ── Lijsten ────────────────────────────────────────────────────────────── */
.lijst {
    list-style: none;
    margin: 0 0 1.1em;
    padding: 0;
}

.lijst li {
    position: relative;
    padding-left: 1.5em;
    margin-bottom: 0.55em;
}

.lijst li::before {
    content: '';
    position: absolute;
    left: 0.15em;
    top: 0.68em;
    width: 0.5em;
    height: 0.5em;
    border-radius: 50%;
    background: var(--antraciet);
    opacity: 0.55;
}

.stappen {
    list-style: none;
    counter-reset: stap;
    margin: 1.6em 0;
    padding: 0;
}

.stappen li {
    counter-increment: stap;
    position: relative;
    min-height: 2.4em;
    padding: 0.25em 0 0.25em 3.4em;
    margin-bottom: 0.9em;
}

.stappen li::before {
    content: counter(stap);
    position: absolute;
    left: 0;
    top: 0;
    width: 2.4em;
    height: 2.4em;
    display: grid;
    place-items: center;
    /* Niet het kopfont: Georgia heeft uithangende cijfers, waardoor de 3 en 4
       onder het midden zakken en de 1 en 2 er juist boven lijken te zweven. */
    font-family: var(--font-tekst);
    font-weight: 600;
    font-variant-numeric: lining-nums;
    line-height: 1;
    color: #fff;
    background: var(--antraciet);
    border-radius: 50%;
}

/* ── Knoppen ────────────────────────────────────────────────────────────── */
.acties {
    margin-top: 1.6em;
}

.knop {
    display: inline-block;
    padding: 0.8em 1.6em;
    font: inherit;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
    overflow-wrap: anywhere;
    border: 2px solid transparent;
    border-radius: var(--r);
    cursor: pointer;
    transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}

.knop-groen {
    background: var(--groen);
    color: #fff;
}

.knop-groen:hover {
    background: var(--groen-h);
    color: #fff;
}

/* De giftknop mag uitnodigen: rond, iets groter, en hij komt je bij aanwijzen
   een stukje tegemoet en veert bij het indrukken mee. */
.knop-gift {
    padding: 0.95em 2.2em;
    font-size: 1.05em;
    color: #fff;
    background: var(--gift);
    border-radius: 999px;
    box-shadow: 0 2px 0 var(--gift-d), 0 6px 16px rgba(46, 125, 79, 0.25);
    transition: transform 0.15s, box-shadow 0.15s;
}

.knop-gift:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 0 var(--gift-d), 0 12px 24px rgba(46, 125, 79, 0.3);
}

.knop-gift:active {
    transform: translateY(2px);
    box-shadow: 0 0 0 var(--gift-d), 0 3px 8px rgba(46, 125, 79, 0.25);
}

.knop-omlijnd {
    color: var(--antraciet-d);
    border-color: var(--antraciet);
}

.knop-omlijnd:hover {
    background: var(--antraciet);
    color: #fff;
}

.tekstknop {
    padding: 0;
    font: inherit;
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 0.18em;
    background: none;
    border: 0;
    cursor: pointer;
}

/* ── Citaat ─────────────────────────────────────────────────────────────── */
.sectie-citaat {
    background: var(--antraciet);
}

.citaat {
    margin: 0;
    text-align: center;
    font-family: var(--font-kop);
    font-size: clamp(1.3rem, 2.8vw, 1.8rem);
    font-style: italic;
    line-height: 1.5;
    color: #fff;
}

.citaat p {
    margin: 0;
}

.citaat p + p {
    margin-top: 0.5em;
    color: #d5d7d9;
}

/* ── Uitgelicht blok (contact voor uitvaartondernemers) ─────────────────── */
.uitgelicht {
    margin-top: 2.4em;
    padding: 28px;
    background: var(--bg-tint);
    border-left: 4px solid var(--groen);
    border-radius: 0 var(--r) var(--r) 0;
}

.uitgelicht > :last-child {
    margin-bottom: 0;
}

/* ── Vrijwillige gift ───────────────────────────────────────────────────── */
.gift {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 32px;
    margin-top: 2em;
    padding: 28px;
    background: var(--vlak);
    border: 1px solid var(--rand);
    border-radius: var(--r);
}

.gift-hint,
.gift-omschrijving {
    margin: 0.9em 0 0;
    font-size: 0.92rem;
    color: var(--tekst-2);
}

.gift-qr {
    margin: 0;
    max-width: 170px;
    text-align: center;
}

.gift-qr img {
    border: 1px solid var(--rand);
    border-radius: 6px;
}

.gift-qr figcaption {
    margin-top: 0.6em;
    font-size: 0.85rem;
    line-height: 1.4;
    color: var(--tekst-2);
}

.slot {
    font-family: var(--font-kop);
    font-size: 1.2rem;
    font-style: italic;
    color: var(--antraciet);
}

.acties + .slot {
    margin-top: 2em;
}

/* ── Inlogformulier ─────────────────────────────────────────────────────── */
.formulier-container {
    max-width: 520px;
}

.formulier {
    display: grid;
    gap: 10px;
    margin: 1.6em 0;
}

.formulier label {
    font-weight: 600;
}

.formulier input[type='password'] {
    width: 100%;
    padding: 0.75em 0.9em;
    font: inherit;
    color: var(--tekst);
    background: var(--vlak);
    border: 1px solid #9a9ea2;
    border-radius: var(--r);
}

.formulier .knop {
    margin-top: 8px;
}

.formulier-fout {
    margin: 1.2em 0 0;
    padding: 12px 16px;
    color: var(--rood);
    background: #fbeeec;
    border: 1px solid #ecc5c0;
    border-radius: var(--r);
}

.formulier-hulp {
    font-size: 0.92rem;
    color: var(--tekst-2);
}

/* ── Voet ───────────────────────────────────────────────────────────────── */
.voet {
    padding: 56px 0 28px;
    font-size: 0.95rem;
    color: #d5d7d9;
    background: var(--antraciet-d);
}

.voet-kolommen {
    display: grid;
    grid-template-columns: 1.5fr 0.8fr 1.1fr 1.2fr;
    gap: 40px;
}

.voet h2 {
    font-size: 1.1rem;
    color: #fff;
}

.voet a {
    color: #fff;
}

.voet a:hover {
    color: #d5d7d9;
}

.voet :focus-visible {
    outline-color: #fff;
}

.voet-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Ruime raakvlakken, zodat de links in de voet ook met een duim te raken zijn. */
.voet-links a,
.voet p > a,
.voet .tekstknop {
    display: inline-block;
    padding: 11px 0;
}

.voet p:has(> a:only-child) {
    margin: 0;
}

.voet-uitloggen {
    margin: 0;
}

.voet-onder {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    font-size: 0.85rem;
    color: #b3b7ba;
}

.voet-onder p {
    margin: 0;
}

/* ── Smalle schermen ────────────────────────────────────────────────────── */
@media (max-width: 860px) {

    .hero-inner,
    .tweeluik,
    .tweeluik-gelijk,
    .kaarten,
    .kaarten-twee,
    .voet-kolommen {
        grid-template-columns: minmax(0, 1fr);
    }

    /* Een staande foto over de volle breedte wordt op een smal scherm erg hoog. */
    .hero .foto,
    .tweeluik .foto {
        max-width: 420px;
    }

    .voet-kolommen {
        gap: 28px;
    }
}

@media (max-width: 560px) {
    .container {
        padding: 0 16px;
    }

    .gift {
        grid-template-columns: minmax(0, 1fr);
    }

    .gift-qr {
        justify-self: center;
    }

    .kaart,
    .paneel,
    .gift,
    .uitgelicht {
        padding: 22px;
    }

    .knop {
        display: block;
    }

    .knop-gift {
        padding: 0.95em 1em;
        font-size: 1em;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .knop {
        transition: none;
    }

    .knop-gift:hover,
    .knop-gift:active {
        transform: none;
    }
}

@media print {

    .kop,
    .voet,
    .skip-link {
        display: none;
    }
}
