/* sban.nl — the foundation's page (foundation-page, INC-061, D-076). The app's colours; phone first; no horizontal
   scrolling from 360 px. Language: Dutch shows by default; the script sets .lang-en on <html> for English.
   Motion (A-048): every animation and transition sits inside the reduced-motion guard at the end; elements only start
   hidden when the script runs (.js), so all text shows without it. */

:root {
    --brand: #1F4E8C;
    --brand-dark: #163A69;
    --brand-deep: #0F2A4D;
    --brand-soft: #DCE8F7;
    --brand-softer: #EEF2F6;
    --own-bubble: #D6E6FA;
    --text: #14202E;
    --text-2: #33465C;
    --muted: #4A5868;
    --bg: #FFFFFF;
    --surface: #F6F8FB;
    --border: #E6EBF1;
    --emergency: #C2410C;
    --emergency-text: #9A3412;
    --emergency-bg: #FFF4EC;
    --emergency-border: #F3B48A;
    --radius: 16px;
    --font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color-scheme: light;
}

/* ---- Language ---- */
html:not(.lang-en) .l-en { display: none !important; }
.lang-en .l-nl { display: none !important; }

/* ---- Base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 6vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 4vw, 2.2rem); font-weight: 750; }
h3 { font-size: 1.125rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--brand); }
a:focus-visible, button:focus-visible { outline: 3px solid #F59E0B; outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
section { padding: 72px 0; }

.skip { position: absolute; left: -9999px; top: 8px; background: #fff; padding: 8px 14px; border-radius: 8px; z-index: 20; }
.skip:focus { left: 8px; }

/* ---- Top bar ---- */
.top {
    position: sticky; top: 0; z-index: 10;
    background: rgba(255, 255, 255, .88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: .95rem; min-width: 0; }
.brand img { width: 40px; height: 40px; flex: none; }
.brand span { overflow: hidden; text-overflow: ellipsis; }
.lang-switch {
    flex: none;
    font: inherit; font-size: .9rem; font-weight: 600;
    color: var(--brand); background: var(--brand-softer);
    border: 1px solid var(--brand-soft); border-radius: 999px;
    padding: 8px 16px; min-height: 44px; cursor: pointer;
}
.lang-switch:hover { background: var(--brand-soft); }

/* ---- Buttons ---- */
.button {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 52px; padding: 14px 28px;
    border-radius: 999px;
    background: var(--brand); color: #fff;
    font-weight: 700; text-decoration: none;
    box-shadow: 0 10px 24px -10px rgba(31, 78, 140, .7);
}
.button:hover { background: var(--brand-dark); }
.button-light { background: #fff; color: var(--brand-dark); box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .45); }
.button-light:hover { background: var(--brand-softer); }
.text-link { font-weight: 700; font-size: 1.15rem; }
.text-link.light { color: #fff; }

/* ---- Hero (what) ---- */
.hero { position: relative; overflow: hidden; padding: 56px 0 72px; background: linear-gradient(160deg, var(--brand-softer) 0%, #fff 60%); }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(40px); opacity: .55; }
.b1 { width: 340px; height: 340px; background: #B9D2F2; top: -80px; right: -60px; }
.b2 { width: 260px; height: 260px; background: #D6E6FA; bottom: -60px; left: -80px; }
.b3 { width: 180px; height: 180px; background: #FFE2CC; top: 40%; right: 30%; opacity: .35; }
.hero-inner { position: relative; display: grid; gap: 48px; align-items: center; }
.lead p { font-size: 1.2rem; color: var(--text-2); max-width: 36em; }
.hero-button { margin-top: 8px; }

.phone {
    justify-self: center;
    width: 100%; max-width: 300px;
    border-radius: 36px; padding: 12px;
    background: var(--brand-deep);
    box-shadow: 0 30px 60px -20px rgba(15, 42, 77, .55);
}
.phone-screen { background: var(--brand-softer); border-radius: 26px; overflow: hidden; padding-bottom: 16px; min-height: 360px; }
.phone-bar { background: var(--brand); color: #fff; font-weight: 700; padding: 14px 18px; font-size: .95rem; }
.bubble {
    margin: 14px 14px 0; padding: 10px 14px;
    border-radius: 16px; font-size: .9rem; line-height: 1.4;
    background: #fff; max-width: 85%;
    box-shadow: 0 2px 6px rgba(20, 32, 46, .08);
}
.bubble strong { display: block; font-size: .8rem; color: var(--brand-dark); margin-bottom: 2px; }
.b-official { border-left: 4px solid var(--brand); }
.badge { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--brand); color: #fff; font-size: .65rem; }
.b-own { margin-left: auto; background: var(--own-bubble); width: fit-content; }

/* ---- Offers ---- */
.offers h2 { text-align: center; margin-bottom: 40px; }
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 28px 24px;
}
.card p { color: var(--text-2); margin: 0; }
.ico {
    width: 48px; height: 48px; padding: 11px; margin-bottom: 14px;
    border-radius: 14px; background: var(--brand-soft);
    fill: none; stroke: var(--brand); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* ---- Start ---- */
.start { background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%); color: #fff; text-align: center; }
.start-inner { max-width: 720px; }
.start p { color: #E4EDF8; font-size: 1.15rem; }

/* ---- Emergency ---- */
.emergency { padding: 48px 0; background: var(--emergency-bg); border-top: 1px solid var(--emergency-border); border-bottom: 1px solid var(--emergency-border); }
.emergency-inner { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.emergency-number {
    flex: none; display: grid; place-items: center;
    width: 88px; height: 88px; border-radius: 50%;
    background: var(--emergency); color: #fff;
    font-size: 1.9rem; font-weight: 800;
}
.emergency-inner > div:last-child { flex: 1 1 260px; }
.emergency h2 { color: var(--emergency-text); margin-bottom: .3em; }
.emergency p { margin: 0; }

/* ---- Take part and who ---- */
.two-col { display: grid; gap: 8px 48px; }
.who { background: var(--surface); }
.towns-label { font-weight: 700; margin-bottom: .4em; }
.towns { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.towns li { background: var(--brand-soft); color: var(--brand-dark); font-weight: 700; padding: 6px 16px; border-radius: 999px; }
.towns-more { margin: 12px 0 0; color: var(--muted); font-size: .95rem; }

/* ---- Contact ---- */
.contact { background: var(--brand-deep); color: #fff; padding: 64px 0 40px; }
.contact p { color: #C9D8EC; }
.contact-inner { display: grid; gap: 32px; }
/* The logo's dark green name needs a light background (Q-292). */
.footer-logo { justify-self: start; background: #fff; border-radius: var(--radius); padding: 18px 22px; }
.footer-logo img { display: block; width: 220px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.footer-links a { color: #fff; }
.small { font-size: .85rem; margin: 0; }

/* ---- Wider screens ---- */
@media (min-width: 768px) {
    section { padding: 96px 0; }
    .hero { padding: 80px 0 96px; }
    .hero-inner { grid-template-columns: 1.15fr .85fr; }
    .cards { grid-template-columns: repeat(2, 1fr); }
    .two-col { grid-template-columns: 1fr 1.6fr; }
    .contact-inner { grid-template-columns: auto 1.5fr 1fr; align-items: end; gap: 32px 48px; }
    .small { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
    .cards { grid-template-columns: repeat(3, 1fr); }
}

/* ---- Motion: only when the visitor has not asked for less (A-048) ---- */
@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }

    .js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
    .js .reveal.shown { opacity: 1; transform: none; }
    .js .cards .card:nth-child(2) { transition-delay: .08s; }
    .js .cards .card:nth-child(3) { transition-delay: .16s; }
    .js .cards .card:nth-child(5) { transition-delay: .08s; }
    .js .cards .card:nth-child(6) { transition-delay: .16s; }

    .card { transition: transform .25s ease, box-shadow .25s ease; }
    .card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px -18px rgba(15, 42, 77, .45); }
    .button { transition: background-color .2s ease, transform .2s ease; }
    .button:hover { transform: translateY(-2px); }

    /* Once, under five seconds; nothing repeats or flashes. */
    .blob { animation: drift 4.5s ease-out both; }
    .b2 { animation-delay: .2s; }
    .b3 { animation-delay: .4s; }
    @keyframes drift {
        from { transform: translate(0, 30px) scale(.85); }
        to { transform: none; }
    }

    .js .phone.shown .bubble { animation: pop .5s ease-out both; }
    .js .phone.shown .d1 { animation-delay: .5s; }
    .js .phone.shown .d2 { animation-delay: 1.3s; }
    .js .phone.shown .d3 { animation-delay: 2.1s; }
    .js .phone .bubble { opacity: 0; }
    @keyframes pop {
        from { opacity: 0; transform: translateY(12px) scale(.96); }
        to { opacity: 1; transform: none; }
    }
}
