/* Design tokens: taken from the existing site www.martines-ak.nl (there is no Figma design). */
:root {
    --color-primary: #5a3079;
    --color-primary-light: #8b62a8;
    --color-primary-dark: #3f2254;
    --color-heading: #292526;
    --color-text: #4d4d4f;
    --color-muted: #737376;
    --color-background: #ffffff;
    --color-surface: #efefef;
    --color-border: #dddddd;
    --color-on-primary: #ffffff;
    --color-overlay: rgb(41 37 38 / 0.6);
    --color-error: #c62828;

    --font-family-base: 'Ubuntu', system-ui, sans-serif;
    --font-family-heading: 'Merriweather', Georgia, serif;
    --font-size-base: 0.9375rem;
    --line-height-base: 1.6;

    --font-size-h1: clamp(1.4375rem, 1.1rem + 1.4vw, 2.0625rem);
    --font-size-h2: clamp(1.5625rem, 1.25rem + 1.2vw, 2.25rem);
    --font-size-h3: clamp(1.0625rem, 0.85rem + 0.8vw, 1.5rem);

    --container-width: 75rem;
    --gutter: 1.25rem;
    --header-height: 7.8125rem;
    --radius: 5px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 1rem;
}

/* At least as tall as the screen, with main taking the rest, so the footer sits at the bottom of a short page */
body {
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
    margin: 0;
    font-family: var(--font-family-base);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--color-text);
    background: var(--color-background);
}

main {
    flex: 1;
}

img {
    max-width: 100%;
    height: auto;
}

h1,
h2,
h3 {
    margin: 0 0 1.5rem;
    font-weight: 400;
    color: var(--color-heading);
}

h1,
h2 {
    font-family: var(--font-family-heading);
    line-height: 1.4;
}

h1 {
    font-size: var(--font-size-h1);
}

h2 {
    font-size: var(--font-size-h2);
}

h3 {
    font-family: var(--font-family-base);
    font-size: var(--font-size-h3);
    line-height: 1.4;
    color: var(--color-primary);
}

p,
ul,
ol {
    margin: 0 0 1.5rem;
}

a {
    color: inherit;
}

a:hover {
    color: var(--color-primary);
}

:focus-visible {
    outline: 2px solid var(--color-primary-light);
    outline-offset: 3px;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

/* Button: purple, uppercase */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.5rem;
    padding: 0.625rem 1.25rem;
    border: 1px solid var(--color-primary);
    border-radius: var(--radius);
    font: inherit;
    line-height: 1.2;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--color-on-primary);
    background: var(--color-primary);
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
}

.button:hover {
    color: var(--color-on-primary);
    border-color: var(--color-primary-dark);
    background: var(--color-primary-dark);
}

/* Header: the logo and the menu. On the homepage it lies over the hero, with the menu in white on the purple of the image. */
.site-header {
    position: relative;
    z-index: 20;
    background: var(--color-background);
}

.page-home .site-header {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    background: none;
}

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: var(--header-height);
}

.site-header-logo {
    display: block;
    flex-shrink: 0;
}

.site-header-logo img {
    display: block;
    width: 17.5rem;
}

.site-menu ul {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-menu a {
    display: inline-block;
    padding: 0.4rem 0;
    font-size: 1rem;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--color-text);
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s, background-color 0.2s;
}

.site-menu a:hover {
    color: var(--color-primary);
    border-bottom-color: currentColor;
}

.site-menu .site-menu-button {
    padding: 0.625rem 1rem;
    border: 0;
    border-radius: var(--radius);
    font-size: var(--font-size-base);
    line-height: 1.2;
    color: var(--color-on-primary);
    background: var(--color-primary-light);
}

.site-menu .site-menu-button:hover {
    color: var(--color-on-primary);
    background: var(--color-primary);
}

.page-home .site-menu a {
    color: var(--color-on-primary);
}

.page-home .site-menu .site-menu-button:hover {
    background: var(--color-primary-dark);
}

.site-menu-toggle {
    display: none;
    align-items: center;
    gap: 0.5rem;
    min-height: 2.75rem;
    padding: 0 0.625rem;
    border: 0;
    font: inherit;
    text-transform: uppercase;
    color: var(--color-text);
    background: none;
    cursor: pointer;
}

.site-menu-toggle:hover {
    color: var(--color-primary);
}

@media (max-width: 60rem) {
    :root {
        --header-height: 5.9rem;
    }

    .page-home .site-header {
        position: relative;
        background: var(--color-background);
    }

    .site-header-logo img {
        width: 11.25rem;
    }

    .site-menu-toggle {
        display: inline-flex;
    }

    /* The menu as a panel from the left, over a veil on the page */
    .site-menu {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        z-index: 30;
        width: min(17.5rem, 80vw);
        overflow-y: auto;
        background: var(--color-background);
        box-shadow: 0 0 1.5rem rgb(0 0 0 / 0.2);
        transform: translateX(-100%);
        visibility: hidden;
        transition: transform 0.25s, visibility 0.25s;
    }

    .site-header::after {
        content: '';
        position: fixed;
        inset: 0;
        z-index: 25;
        background: var(--color-overlay);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.25s;
    }

    .site-header.is-open .site-menu {
        transform: none;
        visibility: visible;
    }

    .site-header.is-open::after {
        opacity: 1;
    }

    .site-menu ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .site-menu a,
    .page-home .site-menu a,
    .site-menu .site-menu-button {
        display: block;
        padding: 0.75rem var(--gutter);
        border: 0;
        border-bottom: 1px solid var(--color-border);
        border-radius: 0;
        font-size: var(--font-size-base);
        text-transform: none;
        color: var(--color-text);
        background: none;
    }

    .site-menu a:hover,
    .page-home .site-menu a:hover,
    .site-menu .site-menu-button:hover,
    .page-home .site-menu .site-menu-button:hover {
        color: var(--color-primary);
        border-bottom-color: var(--color-border);
        background: var(--color-surface);
    }
}

/* Hero: the heading on grey, the illustration with the purple curve on the right, reaching up behind the header */
.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(var(--color-background) var(--header-height), var(--color-surface) var(--header-height));
}

.hero-image {
    position: absolute;
    top: 0;
    left: calc(50% - 6.875rem);
    width: 61.25rem;
}

.hero-image img {
    display: block;
    width: 100%;
}

.hero-inner {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 36.5625rem;
    padding-top: var(--header-height);
}

/* The text sits in the middle of the grey part, below the white band behind the header */
.hero-content {
    padding: 3.25rem 0 1.75rem;
}

.hero-content {
    max-width: 31.25rem;
}

.hero-lead {
    margin-bottom: 1.5rem;
    font-size: var(--font-size-h3);
    line-height: 1.4;
    color: var(--color-primary);
}

@media (max-width: 60rem) {
    .hero {
        background: var(--color-surface);
    }

    .hero-image {
        position: static;
        width: 100%;
    }

    .hero-inner {
        display: block;
        min-height: 0;
        padding-top: 1.25rem;
    }

    .hero-content {
        padding: 0 0 1rem;
    }
}

/* About: "Over mij", the text and the three strengths with a check */
.about {
    padding-top: 2.5rem;
}

.about .container {
    padding-bottom: 2.5rem;
}

.about .container::after {
    content: '';
    display: block;
    margin: 1.5rem calc(var(--gutter) * -1 + 0.625rem) 0;
    border-top: 2px solid var(--color-surface);
}

.eyebrow {
    margin-bottom: 0.625rem;
    font-size: var(--font-size-h3);
    line-height: 1.4;
    color: var(--color-primary);
}

.about-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem 7.5rem;
}

.about-text p {
    margin-bottom: 1.5rem;
}

.check-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.check-list li {
    position: relative;
    margin-bottom: 1.25rem;
    padding-left: 2.5rem;
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--color-heading);
}

.check-list li::before {
    content: '';
    position: absolute;
    top: -0.0625rem;
    left: 0;
    width: 1.5rem;
    height: 1.5rem;
    background: var(--color-primary-light);
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20.3 4.6 9 15.9l-5.3-5.3-2.6 2.6L9 21.1 22.9 7.2z'/%3E%3C/svg%3E") center / contain no-repeat;
}

@media (max-width: 48rem) {
    .about-columns {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .check-list {
        margin-left: 0;
    }
}

/* Services: four columns with an icon */
.services {
    padding: 2.5rem 0 3.75rem;
}

.services > .container > h2 {
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
    padding-top: 1.5rem;
}

.service img {
    display: block;
    width: 9.875rem;
    margin-bottom: 1.25rem;
}

.service ul {
    padding-left: 1rem;
}

.service li::marker {
    color: var(--color-primary-light);
}

.service-list-intro {
    margin-bottom: 0.3rem;
    color: var(--color-heading);
}

@media (max-width: 60rem) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 40rem) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* Contact: white text on the purple photo, with the VDVV logo */
.contact {
    padding: 2.5rem 0;
    color: var(--color-on-primary);
    background: var(--color-primary) url('../img/contact-bg.jpg') center / cover no-repeat;
}

.contact h2 {
    color: var(--color-on-primary);
}

.contact-inner {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2.5rem 4.6875rem;
    align-items: start;
}

.contact-intro p {
    margin: 0;
}

.contact-details {
    padding-top: 4.6rem;
}

.contact .contact-list a {
    color: var(--color-on-primary);
}

.contact .contact-list a[href^="tel:"] {
    text-decoration: none;
}

.contact .contact-list a:hover {
    text-decoration: underline;
}

.contact-partner img {
    display: block;
    width: 23.3rem;
}

@media (max-width: 60rem) {
    .contact-inner {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .contact-details {
        padding-top: 0;
    }
}

/* Contact details: the address block and phone/mail with an icon (footer and contact band) */
.contact-address,
.contact-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.contact-icon {
    flex-shrink: 0;
}

/* Footer */
.site-footer {
    padding: 3.125rem 0;
}

.site-footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 2rem 5rem;
}

.site-footer-logo img {
    display: block;
    width: 13.4375rem;
}

.site-footer-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 4.5rem;
}

.site-footer .contact-list {
    padding-top: 0.6rem;
    font-size: 1.125rem;
    line-height: 1.75;
}

.site-footer .contact-icon {
    width: 1.4rem;
    height: 1.4rem;
    color: var(--color-primary-light);
}

.site-footer a {
    text-decoration: none;
}

.site-footer-menu {
    margin-left: auto;
    align-self: flex-end;
}

.site-footer-menu ul {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer-menu li + li::before {
    content: '|';
    margin: 0 0.75rem;
    color: var(--color-border);
}

.site-footer-menu a {
    text-decoration: underline;
}

.site-footer-menu a[aria-current="page"] {
    color: var(--color-primary);
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

@media (max-width: 60rem) {
    .site-footer-inner {
        flex-direction: column;
        gap: 1.5rem;
    }

    .site-footer-contact {
        flex-direction: column;
        gap: 0.5rem;
    }

    .site-footer-menu {
        margin-left: 0;
        align-self: auto;
        padding-top: 1rem;
    }
}

/* Text pages: privacy, disclaimer, algemene voorwaarden */
.page {
    padding: 4.75rem 0 2.5rem;
}

.breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    margin: -0.5rem 0 1.5rem;
    padding: 0;
    list-style: none;
    color: var(--color-muted);
}

.breadcrumb li + li::before {
    content: '>';
    margin: 0 0.75rem;
}

.breadcrumb a {
    color: var(--color-text);
    text-decoration: underline;
}

.page-content {
    max-width: 48rem;
}

.page-content h2 {
    margin: 2rem 0 0.75rem;
    font-family: var(--font-family-base);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--color-primary);
}

.page-content ol,
.page-content ul {
    padding-left: 1.5rem;
}

/* Numbered articles of the algemene voorwaarden: 1.1, 1.2, ... */
.page-content .subnumbering,
.page-content .subnumbering ol {
    margin-left: 0;
    padding-left: 0;
    counter-reset: item;
}

.page-content .subnumbering li {
    display: block;
    margin-bottom: 0.6em;
}

.page-content .subnumbering li::before {
    content: counters(item, '.') ' ';
    counter-increment: item;
    color: var(--color-primary);
}

.page-content .subnumbering > li::before {
    content: '';
}

.page-content .subnumbering h2 {
    text-transform: none;
}

/* Panel: the password page and the 404 */
.section {
    padding: 4rem 0;
}

.panel {
    max-width: 30rem;
    margin: 0 auto;
    text-align: center;
}

.panel-note {
    margin-top: 1rem;
    color: var(--color-muted);
}

.panel-action {
    margin-top: 2rem;
}

/* Login form on the password page */
.login-form {
    display: grid;
    gap: 0.5rem;
    margin-top: 2rem;
    text-align: left;
}

.login-form-label {
    font-weight: 700;
    color: var(--color-heading);
}

.login-form-input {
    min-height: 2.75rem;
    padding: 0 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font: inherit;
}

.login-form-input:focus {
    border-color: var(--color-primary-light);
}

.login-form-input[aria-invalid="true"] {
    border-color: var(--color-error);
}

.login-form-error {
    margin: 0;
    color: var(--color-error);
}

.login-form .button {
    margin-top: 1rem;
}

/* Preview bar: only for visitors who logged in while the site is in preview */
body:has(.preview-bar) {
    padding-bottom: 4.5rem;
}

.preview-bar {
    position: fixed;
    left: 1rem;
    bottom: 1rem;
    z-index: 100;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 1rem;
    padding: 0.5rem 0.5rem 0.5rem 1.25rem;
    border-radius: 999px;
    font-size: 0.875rem;
    color: #ffffff;
    background: rgb(26 26 26 / 0.9);
}

.preview-bar-label {
    font-weight: 600;
}

.preview-bar form {
    display: contents;
}

.preview-bar-action {
    padding: 0.4rem 0.9rem;
    border: 1px solid rgb(255 255 255 / 0.35);
    border-radius: 999px;
    font: inherit;
    color: inherit;
    background: none;
    cursor: pointer;
}

.preview-bar-action:hover {
    border-color: #ffffff;
}

@media (max-width: 40rem) {
    .preview-bar {
        right: 1rem;
        justify-content: center;
        border-radius: 1rem;
    }
}
