/*
 * Publieke site van Un eindje um.
 * Palet: bosgroen #013A20, zand #ECD5BB, wit, bijna-zwart #1E1514.
 * Letters: Fraunces (koppen), DM Sans (tekst). Scherpe hoeken, geen schaduwen, geen verlopen.
 * De admin gebruikt nog css/app.css en wordt hier niet door geraakt.
 */
:root {
    --g: #013A20;
    --s: #ECD5BB;
    --d: #1E1514;
    --w: #FFFFFF;
    --mute: #6B5F5A;
    --line: rgba(30, 21, 20, .16);
    --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
    --sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --gutter: clamp(20px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--w);
    color: var(--d);
    font: 400 16px/1.65 var(--sans);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main { flex: 1; }

img { max-width: 100%; height: auto; display: block; }

a { color: var(--g); }
a:hover { color: var(--d); }

:focus-visible { outline: 3px solid var(--g); outline-offset: 3px; }

h1, h2, h3, h4 {
    font-family: var(--serif);
    font-weight: 800;
    line-height: 1.05;
    margin: 0 0 .5em;
    color: var(--g);
    text-wrap: balance;
    overflow-wrap: anywhere;
    hyphens: auto;
}
h1 { font-size: clamp(1.9rem, 7.2vw, 4.2rem); }
@media (min-width: 900px) { h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); } }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1em; max-width: 68ch; }

.wrap { max-width: 1180px; margin: 0 auto; padding-inline: var(--gutter); }

.eyebrow {
    font-size: 12px;
    letter-spacing: .12em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--mute);
}

/* knoppen */
.btn {
    display: inline-block;
    background: var(--g);
    color: var(--s);
    border: 2px solid var(--g);
    padding: 12px 22px;
    font: 700 14px/1.2 var(--sans);
    text-decoration: none;
    cursor: pointer;
    border-radius: 0;
}
.btn:hover { background: var(--d); border-color: var(--d); color: var(--s); }
.btn--sand { background: var(--s); color: var(--g); border-color: var(--s); }
.btn--sand:hover { background: var(--w); border-color: var(--w); color: var(--g); }
.btn--line { background: transparent; color: var(--g); }
.btn--line:hover { background: var(--g); color: var(--s); border-color: var(--g); }

.more {
    font-weight: 700;
    text-decoration: none;
    border-bottom: 2px solid var(--g);
    padding-bottom: 1px;
}
.more:hover { color: var(--d); border-color: var(--d); }

/* kop en navigatie */
.site-header { border-bottom: 1px solid var(--line); background: var(--w); position: relative; z-index: 20; }
.site-header .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 68px; }
.logo { font: 800 1.3rem/1 var(--serif); color: var(--g); text-decoration: none; }
.logo:hover { color: var(--g); }

.nav-toggle {
    display: none;
    background: transparent;
    border: 2px solid var(--g);
    color: var(--g);
    font: 700 13px var(--sans);
    padding: 8px 14px;
    cursor: pointer;
}
.nav { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav a { color: var(--d); text-decoration: none; font-weight: 500; font-size: 15px; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-color: var(--g); color: var(--g); }
.nav a[aria-current="page"] { color: var(--g); font-weight: 700; border-color: var(--g); }

@media (max-width: 820px) {
    .nav-toggle { display: block; }
    .nav {
        display: none;
        position: absolute;
        left: 0; right: 0; top: 100%;
        background: var(--w);
        border-bottom: 1px solid var(--line);
        flex-direction: column;
        gap: 0;
        padding: 8px var(--gutter) 16px;
    }
    .site-header.open .nav { display: flex; }
    .nav a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
}

/* paginakop */
.pagehead { padding: clamp(36px, 7vw, 72px) 0 clamp(24px, 4vw, 40px); border-bottom: 1px solid var(--line); }
.pagehead h1 { margin-bottom: .3em; }
.pagehead p { color: #4a3f3c; font-size: 1.1rem; margin-bottom: 0; }

.section { padding-block: clamp(36px, 6vw, 64px); }
.section--sand { background: var(--s); }
.section--green { background: var(--g); color: var(--s); }
.section--green h2, .section--green h3 { color: var(--s); }
.section--green a:not(.btn) { color: var(--s); }

/* home */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 24px; padding-block: clamp(32px, 6vw, 64px); align-items: center; }
.count { display: inline-block; background: var(--s); color: var(--g); padding: 6px 12px; font-weight: 700; font-size: 13px; margin-bottom: 18px; }
.hero h1 { margin-bottom: .35em; }
.hero p { font-size: 1.1rem; color: #4a3f3c; }

.trail { position: relative; aspect-ratio: 10 / 6; min-width: 0; }
.trail svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.trail .fp { opacity: 0; transform-box: fill-box; transform-origin: center; }
.trail.go .fp { animation: step .5s ease-out forwards; }
@keyframes step { from { opacity: 0; transform: scale(.6); } to { opacity: .9; transform: scale(1); } }
.trail .goal {
    position: absolute; right: 0; bottom: 2%;
    background: var(--g); color: var(--s);
    padding: 12px 20px; font-weight: 800; font-size: 14px; text-decoration: none;
    opacity: 0; transition: opacity .5s;
}
.trail.go .goal { opacity: 1; transition-delay: var(--end, 5s); }
.trail .goal:hover { background: var(--d); color: var(--s); }

@media (max-width: 820px) { .hero { grid-template-columns: minmax(0, 1fr); } }

@media (prefers-reduced-motion: reduce) {
    .trail .fp { opacity: .9; animation: none !important; transform: none; }
    .trail .goal { opacity: 1; transition: none; }
}


/* tweedeling met afbeelding */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 56px); align-items: center; }
.split--flip > :first-child { order: 2; }
.split img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.split img.contain { aspect-ratio: auto; max-height: 420px; object-fit: contain; background: var(--w); padding: 16px; }
@media (max-width: 820px) { .split { grid-template-columns: minmax(0, 1fr); } .split--flip > :first-child { order: 0; } }

.social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }

/* tekstblokken uit het CMS */
.prose { max-width: 68ch; }
.prose img { margin-block: 1.2em; }
.prose h2, .prose h3, .prose h4 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose a { font-weight: 700; }
.prose--wide { max-width: none; }

/* tocht */
.trip-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: clamp(28px, 5vw, 64px); align-items: start; }
.trip-layout .hero-img { width: 100%; max-height: 520px; object-fit: cover; margin-bottom: 28px; }
.facts { margin: 0 0 32px; border-top: 2px solid var(--g); }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--mute); }
.facts dd { margin: 0; font-weight: 700; text-align: right; }
.aside h4 { margin-top: 28px; }
.related { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.related li { border-bottom: 1px solid var(--line); }
.related a { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px 0; text-decoration: none; color: var(--d); }
.related img { width: 64px; height: 64px; object-fit: cover; }
.related b { font: 800 1.05rem/1.2 var(--serif); color: var(--g); display: block; }
.related small { color: var(--mute); }
.share { display: flex; flex-wrap: wrap; gap: 14px; }
.editbar { margin-top: 12px; }
@media (max-width: 900px) { .trip-layout { grid-template-columns: minmax(0, 1fr); } }

/* galerij */

/* formulieren */
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--mute); margin-bottom: 6px; }
.field input[type="text"], .field input[type="email"], .field input[type="password"], .field textarea {
    width: 100%; background: var(--w); color: var(--d);
    border: 1px solid rgba(30, 21, 20, .45); border-radius: 0;
    padding: 12px 14px; font: 400 16px/1.4 var(--sans);
}
.field textarea { min-height: 170px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--g); box-shadow: inset 0 0 0 1px var(--g); }
.field .err { color: #8B1E14; font-size: 14px; margin-top: 4px; }
.check { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; }
.hp { display: none; }

.notice { padding: 14px 18px; margin-bottom: 20px; font-weight: 700; border-left: 6px solid var(--g); background: var(--s); color: var(--g); max-width: 68ch; }
.notice--error { border-color: #8B1E14; color: #8B1E14; background: #F6E3DF; }

.contact-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); }
.contact-layout dl { margin: 0; border-top: 2px solid var(--g); }
.contact-layout dl div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-layout dt { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--mute); }
.contact-layout dd { margin: 2px 0 0; }
@media (max-width: 820px) { .contact-layout { grid-template-columns: minmax(0, 1fr); } }

.auth { max-width: 440px; margin: 0 auto; padding: 32px; border: 1px solid var(--line); background: var(--w); }
.authpage { padding-block: clamp(32px, 8vw, 96px); }
.authpage h1 { text-align: center; font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 28px; }

/* foutpagina's */
.errorpage { padding-block: clamp(48px, 10vw, 120px); display: flex; gap: 32px; align-items: center; flex-wrap: wrap; }
.errorpage .nr { font: 800 clamp(5rem, 16vw, 10rem)/.85 var(--serif); color: var(--g); }

/* voet */
.site-footer { background: var(--g); color: var(--s); margin-top: 0; }
.site-footer a { color: var(--s); }
.site-footer a:hover { color: var(--w); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 32px; padding-block: 48px 32px; }
.site-footer h4 { color: var(--s); font: 700 12px var(--sans); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; opacity: .8; }
.site-footer p { font-size: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.site-footer li + li { margin-top: 6px; }
.footer-bottom { border-top: 1px solid rgba(236, 213, 187, .3); padding-block: 16px; font-size: 13px; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }

/* uitgelichte afbeelding (affiche) */
.promo__figure { margin: 0 auto; width: min(100%, 440px); }
.promo__link { display: block; box-shadow: 8px 8px 0 var(--g); transition: transform .15s ease, box-shadow .15s ease; }
.promo__link:hover { transform: translate(-2px, -2px); box-shadow: 12px 12px 0 var(--g); }
.promo__link img { width: 100%; height: auto; }
.promo__figure figcaption { margin-top: 22px; text-align: center; font-size: 14px; }
@media (min-width: 900px) {
    .promo__figure { width: min(100%, 520px); }
    .promo__link { box-shadow: 14px 14px 0 var(--g); }
    .promo__link:hover { box-shadow: 18px 18px 0 var(--g); }
}
@media (prefers-reduced-motion: reduce) { .promo__link { transition: none; } .promo__link:hover { transform: none; } }
