* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* BASIS */

html {
    font-size: 16px;
}

html,
body {
    width: 100%;
    min-height: 100dvh;
    overflow-x: hidden;
}

body {
    background-image:
        linear-gradient(
            to bottom,
            rgba(18, 55, 32, 0.45),
            rgba(18, 55, 32, 0.10),
            rgba(18, 55, 32, 0.30)
        ),
        url("../images/background-hrd18.1.png");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;

    font-family: Arial, sans-serif;
    color: white;
}

/* PAGINA-INDELING */


/* PAGINA-INDELING */

:root {
    --navigation-height: 76px;
    --navigation-bottom-gap: 10px;
}

.page {
    display: flex;
    flex-direction: column;

    width: min(100%, 700px);
    min-height: 100dvh;
    height: auto;

    margin: 0 auto;

    padding:
        max(76px, env(safe-area-inset-top))
        clamp(20px, 5vw, 32px)
        calc(
            var(--navigation-height) +
            var(--navigation-bottom-gap) +
            30px +
            env(safe-area-inset-bottom)
        );

    .page {
    padding-bottom: calc(
        var(--navigation-height) +
        var(--navigation-bottom-gap) +
        30px +
        env(safe-area-inset-bottom)
    );
    }
    overflow: visible;
}

.homePage {
    justify-content: center;
    align-items: center;
    text-align: center;
}


/* TYPOGRAFIE */

h1 {
    margin-bottom: clamp(12px, 3vw, 20px);

    color: white;
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 700;
}

h2 {
    margin-bottom: clamp(16px, 4vw, 24px);

    color: white;
    font-size: clamp(1.4rem, 5vw, 2rem);
}

p {
    line-height: 1.4;
}

.subtitle {
    margin-bottom: clamp(24px, 6vw, 40px);

    font-size: clamp(1rem, 4vw, 1.35rem);
    text-align: center;
    opacity: 0.85;
}

/* KNOPPEN */

button {
    border: none;
    border-radius: 999px;

    font-weight: 700;
    cursor: pointer;

    transition: 0.25s;
}

button:hover {
    transform: translateY(-3px);
}

button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.primaryButton {
    display: flex;
    justify-content: center;
    align-items: center;

    width: 88%;
    max-width: 260px;
    height: 60px;

    background: #215B35;
    color: white;
    font-size: 20px;
}

/* INPUTS */

input {
    width: 100%;
    padding: 16px;

    border: none;
    border-radius: 12px;

    font-size: clamp(1rem, 4vw, 1.2rem);
}

/* HOMEKNOP */

.homeButton {
    position: fixed;
    top: max(16px, env(safe-area-inset-top));
    left: clamp(16px, 4vw, 24px);
    z-index: 999;

    display: flex;
    justify-content: center;
    align-items: center;

    width: clamp(48px, 12vw, 58px);
    height: clamp(48px, 12vw, 58px);

    border-radius: 18px;

    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);

    font-size: clamp(22px, 6vw, 30px);
    text-decoration: none;

    transition: 0.25s;
}

.homeButton:hover {
    background: white;
    transform: translateY(-2px);
}


/* VASTE ONDERNAVIGATIE */

.bottomNav {
    position: fixed;
    left: 50%;
    bottom: max(var(--navigation-bottom-gap), env(safe-area-inset-bottom));
    transform: translateX(-50%);
    z-index: 1000;

    width: calc(100% - 40px);
    max-width: 520px;
    min-height: var(--navigation-height);

    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: center;
    gap: 6px;

    padding: 7px;
    border-radius: 24px;

    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
}

.navItem {
    min-width: 0;
    min-height: 60px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3px;

    border-radius: 999px;
    color: #626762;

    font-size: 0.78rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
}

.navIcon {
    font-size: 1.6rem;
    line-height: 1;
}

.navItem.active {
    background: #E3F0E8;
    color: #194D3A;
}

.navDisabled {
    cursor: default;
    opacity: 0.85;
}

@media (min-width: 800px) {
    .bottomNav {
        width: calc(100% - 64px);
        max-width: 520px;
    }
}
