@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("../fonts/montserrat-latin-wght-normal-LaWOCQv.woff2") format('woff2');
}

:root {
    --color-navy: #1c3e62;
    --color-navy-dark: #122a45;
    --color-accent: #2c5aa0;
    --color-accent-light: #9dc0ef;
    --color-text: #1f2a37;
    --color-text-muted: #556274;
    --color-border: #dde3ec;
    --color-surface: #ffffff;
    --color-surface-muted: #f3f6fa;
    --color-success: #1e7a4c;
    --color-error: #b42318;

    --font-sans: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --radius: 10px;
    --shadow: 0 1px 2px rgb(18 42 69 / 6%), 0 8px 24px rgb(18 42 69 / 8%);
    --container: 1180px;
    --gutter: clamp(1rem, 4vw, 2rem);
}

/* Base */

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 1rem;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text);
    background: var(--color-surface);
    -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
    margin: 0 0 0.75rem;
    line-height: 1.2;
    color: var(--color-navy);
    font-weight: 700;
}

h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.2rem; }

p {
    margin: 0 0 1rem;
}

a {
    color: var(--color-accent);
}

a:hover {
    color: var(--color-navy);
}

:focus-visible {
    outline: 3px solid var(--color-accent-light);
    outline-offset: 2px;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.container--narrow {
    max-width: 860px;
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: 100;
    padding: 0.5rem 1rem;
    background: var(--color-navy);
    color: #fff;
    border-radius: var(--radius);
}

.skip-link:focus {
    top: 1rem;
}

.icon {
    flex-shrink: 0;
    vertical-align: -0.125em;
}

.eyebrow {
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-accent);
}

.eyebrow--light {
    color: var(--color-accent-light);
}

/* Buttons */

.button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.6rem;
    border: 2px solid var(--color-navy);
    border-radius: 999px;
    background: var(--color-navy);
    color: #fff;
    font: inherit;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.button:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #fff;
}

.button--small {
    padding: 0.55rem 1.2rem;
}

.button--light {
    background: #fff;
    border-color: #fff;
    color: var(--color-navy);
}

.button--light:hover {
    background: var(--color-accent-light);
    border-color: var(--color-accent-light);
    color: var(--color-navy-dark);
}

.button--outline-light {
    background: transparent;
    border-color: rgb(255 255 255 / 60%);
}

.button--outline-light:hover {
    background: rgb(255 255 255 / 10%);
    border-color: #fff;
}

.button--outline {
    background: transparent;
    color: var(--color-navy);
}

.button--outline:hover {
    background: var(--color-navy);
    border-color: var(--color-navy);
    color: #fff;
}

/* Top bar & header */

.topbar {
    background: var(--color-navy-dark);
    font-size: 0.85rem;
}

.topbar__inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.25rem 1.5rem;
    padding-block: 0.4rem;
}

.topbar__link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #fff;
    text-decoration: none;
}

.topbar__link:hover {
    color: var(--color-accent-light);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 84px;
}

.site-header__brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Taller than the header bar: the negative margins let it overlap the top bar and the content below. */
.site-header__brand img:first-child {
    position: relative;
    z-index: 1;
    width: 222px;
    margin-block: -20px;
    filter: drop-shadow(0 4px 8px rgb(18 42 69 / 25%));
    transition: width 0.2s, margin 0.2s;
}

/* Stuck to the top of the screen while scrolling: shrink to fit inside the bar so it doesn't cover the content. */
.site-header.is-stuck .site-header__brand img:first-child {
    width: 136px;
    margin-block: 0;
}

@media (max-width: 860px) {
    .site-header__inner {
        min-height: 68px;
    }

    .site-header__brand img:first-child {
        width: 160px;
        margin-block: -12px;
    }

    .site-header.is-stuck .site-header__brand img:first-child {
        width: 112px;
    }
}

.site-header__jubilee {
    width: 48px;
    border-radius: 6px;
}

.site-nav__list {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-nav__link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 0.9rem;
    border: 0;
    border-radius: 6px;
    background: none;
    color: var(--color-text);
    font: inherit;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.site-nav__link:hover,
.site-nav__link[aria-current='page'],
.site-nav__link.is-active {
    color: var(--color-accent);
}

.site-nav__list > li:last-child {
    margin-left: 0.75rem;
}

.site-nav__dropdown {
    position: relative;
}

.site-nav__submenu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 260px;
    margin: 0;
    padding: 0.5rem;
    list-style: none;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);
    transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
}

.site-nav__dropdown:hover .site-nav__submenu,
.site-nav__dropdown:focus-within .site-nav__submenu {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.site-nav__submenu a {
    display: block;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    color: var(--color-text);
    font-weight: 500;
    text-decoration: none;
}

.site-nav__submenu a:hover,
.site-nav__submenu a[aria-current='page'] {
    background: var(--color-surface-muted);
    color: var(--color-accent);
}

.nav-toggle {
    display: none;
    position: relative;
    width: 44px;
    height: 44px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
}

.nav-toggle__bar,
.nav-toggle__bar::before,
.nav-toggle__bar::after {
    position: absolute;
    left: 11px;
    width: 20px;
    height: 2px;
    background: var(--color-navy);
    content: '';
    transition: transform 0.2s;
}

.nav-toggle__bar { top: 21px; }
.nav-toggle__bar::before { left: 0; top: -6px; }
.nav-toggle__bar::after { left: 0; top: 6px; }

.nav-toggle[aria-expanded='true'] .nav-toggle__bar { background: transparent; }
.nav-toggle[aria-expanded='true'] .nav-toggle__bar::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded='true'] .nav-toggle__bar::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 860px) {
    .nav-toggle {
        display: block;
    }

    .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        max-height: calc(100vh - 84px);
        overflow-y: auto;
        padding: 0.5rem var(--gutter) 1.5rem;
        background: #fff;
        border-bottom: 1px solid var(--color-border);
        box-shadow: var(--shadow);
    }

    .site-nav.is-open {
        display: block;
    }

    .site-nav__list {
        flex-direction: column;
        align-items: stretch;
    }

    .site-nav__link {
        width: 100%;
        padding-inline: 0;
    }

    .site-nav__link .icon {
        display: none;
    }

    .site-nav__submenu {
        position: static;
        min-width: 0;
        padding: 0 0 0 1rem;
        border: 0;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .site-nav__list > li:last-child {
        margin: 0.75rem 0 0;
    }

    .site-nav__list > li:last-child .button {
        justify-content: center;
        width: 100%;
    }
}

/* Hero & page header */

.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--color-navy-dark), var(--color-navy) 60%, var(--color-accent));
    color: #fff;
}

.hero__inner {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
    gap: clamp(2rem, 5vw, 4rem);
    padding-block: clamp(3rem, 8vw, 6rem);
}

.hero h1 {
    color: #fff;
}

.hero__accent {
    display: block;
    color: var(--color-accent-light);
}

.hero__lead {
    max-width: 36rem;
    font-size: 1.1rem;
    color: rgb(255 255 255 / 85%);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.75rem;
}

.hero__image {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: calc(var(--radius) * 1.5);
    box-shadow: 0 24px 48px rgb(0 0 0 / 30%);
}

.page-header {
    padding-block: clamp(2.5rem, 6vw, 4rem);
    background: linear-gradient(135deg, var(--color-navy-dark), var(--color-navy));
    color: #fff;
}

.page-header .eyebrow {
    color: var(--color-accent-light);
}

.page-header h1 {
    margin: 0;
    color: #fff;
}

.page-header__lead {
    max-width: 44rem;
    margin: 0.75rem 0 0;
    font-size: 1.1rem;
    color: rgb(255 255 255 / 85%);
}

@media (max-width: 860px) {
    .hero__inner {
        grid-template-columns: 1fr;
    }
}

/* Sections */

.section {
    padding-block: clamp(3rem, 7vw, 5.5rem);
}

.section--muted {
    background: var(--color-surface-muted);
}

.section-heading {
    max-width: 40rem;
    margin-bottom: 2.5rem;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.card {
    display: flex;
    flex-direction: column;
    padding: 1.75rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.card p {
    flex-grow: 1;
    color: var(--color-text-muted);
}

.card__icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    border-radius: 12px;
    background: var(--color-surface-muted);
    color: var(--color-accent);
    font-size: 1.5rem;
}

.card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    text-decoration: none;
}

.card__link:hover .icon {
    transform: translateX(3px);
}

.card__link .icon {
    transition: transform 0.15s;
}

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: clamp(2rem, 5vw, 4rem);
}

.split--reverse .split__image {
    order: -1;
}

.split__image {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.split__text p {
    color: var(--color-text-muted);
}

@media (max-width: 860px) {
    .split {
        grid-template-columns: 1fr;
    }

    .split--reverse .split__image {
        order: 0;
    }
}

.panel {
    padding: clamp(1.5rem, 3vw, 2.25rem);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* Service pages */

.dienst {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    align-items: start;
    gap: clamp(2rem, 5vw, 4rem);
}

.dienst__aside {
    display: grid;
    gap: 1.5rem;
}

.dienst__aside img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.dienst__aside-heading {
    font-size: 1.1rem;
}

.dienst__menu {
    margin: 0;
    padding: 0;
    list-style: none;
}

.dienst__menu a {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text);
    font-weight: 500;
    text-decoration: none;
}

.dienst__menu li:last-child a {
    border-bottom: 0;
}

.dienst__menu a:hover,
.dienst__menu a[aria-current='page'] {
    color: var(--color-accent);
}

.dienst__menu a[aria-current='page'] {
    font-weight: 700;
}

@media (max-width: 860px) {
    .dienst {
        grid-template-columns: 1fr;
    }
}

/* Error pages */

.error-page {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    align-items: start;
    gap: clamp(2rem, 5vw, 4rem);
}

.error-page__text .lead {
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--color-navy);
}

.error-page__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.75rem;
}

@media (max-width: 860px) {
    .error-page {
        grid-template-columns: 1fr;
    }
}

/* Long-form text */

.prose .lead {
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--color-navy);
}

.prose ul,
.prose ol {
    margin: 0 0 1.25rem;
    padding-left: 1.4rem;
}

.prose li {
    margin-bottom: 0.4rem;
}

.prose li::marker {
    color: var(--color-accent);
}

.prose--legal {
    font-size: 0.95rem;
}

.prose--legal h2 {
    margin-top: 2.5rem;
    font-size: 1.3rem;
    scroll-margin-top: 100px;
}

.prose--legal ol > li {
    padding-left: 0.25rem;
}

.prose--legal ul {
    margin-top: 0.5rem;
}

.legal-details {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 0.25rem 1.5rem;
    margin: 0 0 2rem;
    padding: 1.25rem 1.5rem;
    background: var(--color-surface-muted);
    border-radius: var(--radius);
}

.legal-details dt {
    font-weight: 600;
}

.legal-details dd {
    margin: 0;
}

@media (max-width: 560px) {
    .legal-details {
        grid-template-columns: 1fr;
    }

    .legal-details dd {
        margin-bottom: 0.5rem;
    }
}

/* Contact */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: clamp(2rem, 5vw, 4rem);
}

.contact-grid__map {
    width: 100%;
    max-width: 420px;
    margin-top: 1.5rem;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
}

@media (max-width: 860px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

.contact-details {
    display: grid;
    gap: 0.75rem;
    margin: 1.5rem 0 0;
    padding: 0;
    list-style: none;
}

.contact-details li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.contact-details .icon {
    margin-top: 0.3em;
    color: var(--color-accent);
}

.contact-details a {
    color: var(--color-text);
    font-weight: 600;
    text-decoration: none;
}

.contact-details a:hover {
    color: var(--color-accent);
}

turbo-frame {
    display: block;
}

.contact-form > div {
    margin-bottom: 1.1rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 600;
    font-size: 0.95rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem 0.9rem;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: #fff;
    color: var(--color-text);
    font: inherit;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgb(44 90 160 / 15%);
    outline: none;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form ul {
    margin: 0.35rem 0 0;
    padding: 0;
    list-style: none;
    color: var(--color-error);
    font-size: 0.9rem;
}

.contact-form > ul {
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    background: #fdecea;
}

.contact-form [aria-invalid='true'] {
    border-color: var(--color-error);
}

.contact-form__recaptcha-notice {
    margin: 1rem 0 0;
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

/* Hidden in favour of the notice under the contact form, which Google's terms then require. */
.grecaptcha-badge {
    visibility: hidden;
}

.contact-form__honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.alert {
    padding: 0.85rem 1rem;
    border-radius: 8px;
    font-weight: 500;
}

.alert--success {
    background: #e7f5ee;
    color: var(--color-success);
}

/* Footer */

.site-footer {
    background: var(--color-navy-dark);
    color: rgb(255 255 255 / 80%);
    font-size: 0.95rem;
}

.site-footer__grid {
    display: grid;
    grid-template-columns: 1.3fr repeat(3, 1fr);
    gap: 2.5rem;
    padding-block: 3.5rem 2.5rem;
}

.site-footer__brand img {
    width: 140px;
}

.site-footer__badges {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.site-footer__badges img {
    width: auto;
    height: 56px;
}

/* The VEB logo is white-on-transparent; the erkenningsbordje needs a light backing. */
.site-footer__badges img + img {
    padding: 4px;
    background: #fff;
    border-radius: 6px;
}

.site-footer__heading {
    margin-bottom: 1rem;
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fff;
}

.site-footer__links {
    display: grid;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer a {
    color: rgb(255 255 255 / 80%);
    text-decoration: none;
}

.site-footer a:hover {
    color: #fff;
}

.site-footer__bottom {
    padding-block: 1.25rem;
    border-top: 1px solid rgb(255 255 255 / 12%);
    font-size: 0.85rem;
    color: rgb(255 255 255 / 60%);
}

@media (max-width: 860px) {
    .site-footer__grid {
        grid-template-columns: 1fr 1fr;
    }
}

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