﻿@font-face {
    font-family: 'JTH';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url(/fonts/JTH-Bold.woff2) format('woff2');
}

@font-face {
    font-family: 'Owners';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url(/fonts/Owners-500-Medium.woff2) format('woff2');
}

@font-face {
    font-family: 'Owners';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url(/fonts/Owners-700-Bold.woff2) format('woff2');
}

@font-face {
    font-family: 'OwnersText';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(/fonts/OwnersText-400-Regular.woff2) format('woff2');
}

@font-face {
    font-family: 'OwnersText';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url(/fonts/OwnersText-500-Medium.woff2) format('woff2');
}

:root {
    --black: hsla(0, 0%, 13%, 1); /* black #222222*/
    --black-50: hsla(0, 0%, 47%, 1); /* black 500 #777777 */
    --green: hsla(143, 100%, 34%, 1); /* green #00AE44 */
    --orange: hsla(38, 100%, 66%, 1); /* orange #FFBE51 */
    --pink: hsla(335, 100%, 82%, 1); /* pink #FFA2C9 */
    --purple: hsla(246, 35%, 52%, 1); /* purple #625AB0*/
    --red: hsla(12, 97%, 55%, 1); /* red #FC471C */
    --white: hsla(0, 0%, 100%, 1); /* white #FFFFFF*/
    --yellow: hsla(59, 100%, 50%, 1); /* yellow #FFF900 */
    --green-contrast: #006b2a;
    --orange-contrast: #8a4b00;
    --pink-contrast: #7a1d49;
    --purple-contrast: #3d347a;
    --red-contrast: #a12300;
    --yellow-contrast: #6a5f00;
    --mainfont: 'OwnersText', sans-serif;
    --secondfont: 'Owners', sans-serif;
    --headerfont: 'JTH', sans-serif;
    --transition-default: all .3s linear;
    --nav-height: 6.8rem;
    --app-height: 100%;
    --padding-lg: 4rem;
    --col10: 83.33333333%;
    --col8: 66.66666667%;
    --polygon-title: polygon(0 7%, 100% 0, 99% 95%, 2% 100%);
    --polygon-button: polygon(0 5%, 100% 0, 98% 100%, 3% 95%);
    --polygon-label: polygon(0 2%, 97% 0, 100% 97%, 4% 100%);
    --bgcolor: var(--pink);
    --bordercolor: var(--purple);
    --textcolor: var(--white);
    --polygoncolor: var(--red);
    --buttoncolor: var(--black);
}

body.contrast {
    --green: var(--green-contrast);
    --orange: var(--orange-contrast);
    --pink: var(--pink-contrast);
    --purple: var(--purple-contrast);
    --red: var(--red-contrast);
    --yellow: var(--yellow-contrast);
}

@media(min-width: 992px) {
    :root {
        --padding-lg: 8rem;
    }
}

* {
    margin-block: 0;
}

html {
    font-size: 62.5%;
    height: 100%;
}

body {
    font-family: var(--mainfont);
    font-size: 1.6rem;
    line-height: 1;
    font-weight: 400;
    color: #000;
    height: 100%;
    -webkit-backface-visibility: visible !important;
    backface-visibility: visible !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding: 0;
    margin: 0;
    background-color: var(--bgcolor);
    color: var(--textcolor);
}

    body:after {
        content: "";
        opacity: 0;
        transition: var(--transition-default);
    }

    body:not(.body--home):not(.body--location) {
        padding-top: 8rem;
    }

    body.contrast {
        --bgcolor: var(--pink-contrast);
    }

    body.menu--open,
    body.popup--open {
        overflow: hidden;
    }

        body.popup--open:after {
            content: "";
            width: 100vw;
            height: 100vh;
            height: var(--app-height);
            position: fixed;
            top: 0;
            left: 0;
            background-color: hsla(0, 0%, 13%, .25);
            opacity: 1;
            z-index: 101;
        }

.body--text {
    --bgcolor: var(--green);
    --bordercolor: var(--pink);
    --polygoncolor: var(--orange);
}

.body--locations {
    --bgcolor: var(--pink);
    --bordercolor: var(--red);
    --textcolor: var(--black);
    --polygoncolor: var(--purple);
}

    .body--locations.contrast {
        --textcolor: var(--white);
    }

.body--newsitems,
.body--newsitem,
.body--article {
    --bgcolor: var(--purple);
    --bordercolor: var(--green);
    --polygoncolor: var(--green);
}

.body--education {
    --bgcolor: var(--orange);
    --bordercolor: var(--purple);
    --textcolor: var(--black);
    --polygoncolor: var(--green);
}

    .body--education.contrast {
        --textcolor: var(--white);
    }

main {
    max-width: 100vw;
    overflow: hidden;
}

.container, .container-fluid, .container-xxl, .container-xl, .container-lg, .container-md, .container-sm {
    box-sizing: border-box;
    --bs-gutter-x: 4rem;
}

a, button {
    text-decoration: none;
    transition: var(--transition-default);
}

    /* Zorg voor een consistente, zichtbare toetsenbordfocus op interactieve elementen */
    a:focus-visible,
    button:focus-visible,
    input:focus-visible,
    select:focus-visible,
    textarea:focus-visible {
        outline: .3rem solid var(--black);
        outline-offset: .3rem;
    }

.richtext a:not(.button) {
    color: var(--front);
    background-image: linear-gradient(var(--white), var(--white));
    background-position: 100% 100%;
    background-repeat: no-repeat;
    background-size: 100% 1px;
}

@media(min-width: 992px) {
    .richtext a:not(.button):hover {
        background-size: 0% 1px;
    }
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--headerfont);
    font-weight: 700;
    text-transform: uppercase;
}

h1, .h1 {
    font-size: 6.4rem;
}

h2, .h2 {
    font-size: 6.4rem;
}

h3, .h3 {
    font-size: 6.4rem;
}

h4, .h4 {
    font-size: 4.8rem;
}

h5, .h5 {
    font-size: 2.4rem;
}

p,
ol,
ul {
    font-size: 1.6rem;
    line-height: 2.4rem;
}

.richtext p:has(+p,ul,ol,div) {
    margin-bottom: 2rem;
}

strong {
    font-weight: 500;
}

.subtitle {
    font-family: var(--headerfont);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 2.4rem;
    margin-bottom: .5rem;
    transform: rotate(-.5deg);
}

.subtitle--news {
    font-family: var(--secondfont);
    display: inline-flex;
    font-size: 3rem !important;
    font-weight: 700;
    color: var(--white);
    text-transform: uppercase;
    clip-path: var(--polygon-label);
    padding: .5rem 1rem;
    margin-bottom: 1.5rem;
    background-color: var(--red);
    transform: rotate(1.5deg);
}

small {
    font-size: 1.4rem;
    line-height: 2.1rem;
}

img {
    object-fit: cover;
    object-position: 50% 50%;
}

@media(min-width: 992px) {
    body:not(.body--home):not(.body--location) {
        padding-top: 4rem;
    }

    h1, .h1 {
        font-size: 12rem;
    }

    h2, .h2 {
        font-size: 11.2rem;
    }

    h3, .h3 {
        font-size: 8rem;
    }

    h4, .h4 {
        font-size: 6.4rem;
    }

    h5, .h5 {
        font-size: 4.8rem;
    }

    .h1-lg {
        font-size: 13.6rem;
    }

    .h2-lg {
        font-size: 11.2rem;
    }

    .h3-lg {
        font-size: 8rem;
    }

    .h4-lg {
        font-size: 7.2rem;
    }

    .h5-lg {
        font-size: 4.8rem;
    }

    .subtitle {
        font-size: 4.8rem;
        margin-bottom: 1.5rem;
    }

    p,
    ol,
    ul,
    .large,
    .large p,
    .large ol,
    .large ul {
        font-size: 2rem;
        line-height: 3rem;
    }

        .large h2,
        .large h3,
        .large h4,
        .large h5,
        .large h6 {
            line-height: 1;
        }

    .large {
        max-width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }

    .sticky__subscribe svg,
    .navbar__locations ul {
        animation: none !important;
    }
}
