﻿html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    font-family: Montserrat, sans-serif;
    background-color: rgba(249, 249, 250, 0.8);
}

    body > form {
        flex: 1;
        display: flex;
        flex-direction: column;
    }

main {
    flex: 1;
    display: flex;
    flex-direction: column;
}


.header {
    font-family: Arial;
    font-size: 25px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    color: rgb(45, 82, 128);
    z-index: 3;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

.header-logo img {
    position: absolute;
    height: 80px;
    width: auto;
    display: block;
    top: 10px;
    left: 10px;
}

.header-logotekst img {
    position: absolute;
    height: 70px;
    width: auto;
    display: block;
    top: 15px;
    left: 90px;
}

@media (max-width: 570px) {
    .header-logotekst img {
        height: 55px;
        top: 20px;
    }
}

@media (max-width: 485px) {
    .header-logotekst img {
        height: 45px;
        top: 25px;
    }
}

@media (max-width: 430px) {
    .header-logotekst img {
        height: 40px;
        top: 15px;
        left: 60px;
    }

    .header-logo img {
        height: 60px;
        top: 5px;
        left: 5px;
    }

    .nav-bar .toggle_btn {
        display: block;
        top: -3px;
        position: absolute;
        font-size: 2rem;
        position: relative;
    }
}

@media (max-width: 360px) {
    .header-logotekst img {
        left: 0px;
    }

    .header-logo img {
        display: none;
    }
}

.header-companyname {
    position: absolute;
    font-size: 45px;
    top: 10px;
    left: 57px;
    font-weight: bold;
    font-family: Montserrat, sans-serif;
}

    .header-companyname:hover {
        color: rgb(108,144,184);
        cursor: pointer;
    }

.header-slogan {
    position: absolute;
    font-size: 20px;
    top: 60px;
    left: 45px;
    font-family: Montserrat, sans-serif;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.spinning-cogwheel {
    position: fixed;
    animation: spin 2.5s linear infinite;
    display: block;
    width: 40px;
    top: 17px;
    left: 10px;
}

.nav-bar {
    display: flex;
    width: 100%;
    height: 100px;
    align-items: center;
    justify-content: right;
    margin: 0;
    padding: 0;
    background-color: rgba(255, 255, 255, 1);
    transition: background-color 0.5s ease, color 0.5s ease;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

@media (max-width: 430px) {
    .nav-bar {
        height: 75px;
    }
}

.nav-items {
    list-style-type: none;
    font-family: Montserrat, sans-serif;
}

.nav-item {
    float: right;
}

    .nav-item a {
        position: relative;
        display: block;
        text-align: center;
        padding: 30px 16px;
        text-decoration: none;
        color: var(--TechnificentColor);
        transition: color 0.3s ease;
        font-weight: 500;
    }

        .nav-item a span {
            display: inline-block;
            position: relative;
        }

        .nav-item a:hover {
            color: rgb(108,144,184);
        }

        .nav-item a::after {
            content: '';
            position: absolute;
            left: 50%;
            bottom: 20px; /* Adjust for spacing */
            transform: translateX(-50%) scaleX(0);
            transform-origin: center;
            height: 3px;
            width: 78%;
            border-radius: 2px;
            background-color: var(--TechnificentColor);
            transition: transform 0.3s ease;
        }
/* Hover effect */
.nav-bar .nav-item a:hover::after {
    transform: translateX(-50%) scaleX(1);
}
/* The sliding underline */
.nav-underline {
    position: absolute;
    bottom: 25px; /* adjust depending on padding */
    height: 3px;
    background-color: var(--TechnificentColor);
    width: 0;
    left: 2000px;
    transition: all 1s ease;
    pointer-events: none;
    border-radius: 2px;
}
/*
.toggle_btn {
    font-size: 2.5rem;
    padding: 20px 20px 20px 0;
    cursor: pointer;
    display: none;
    z-index: 4;
}

    .toggle_btn:hover {
        color: rgb(108,144,184);
    }

.dropdown_menu {
    position: absolute;
    display: flex;
    flex-direction: column;
    right: 0;
    top: 100px;
    width: 300px;
    height: 0;
    background: rgba(255,255,255, 0.4);
    backdrop-filter: blur(15px);
    border-radius: 0 0 10px 10px;
    transition: height .2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

    .dropdown_menu.open {
        height: 220px;
    }

    .dropdown_menu .nav-items {
        margin-left: -40px;
        margin-top: 15px;
    }

    .dropdown_menu .nav-item {
        float: none;
        display: none;
        align-items: center;
        justify-content: center;
        line-height: 1.6;
    }

        .dropdown_menu .nav-item.open {
            display: flex;
        }

        .dropdown_menu .nav-item a {
            padding: 0;
        }

@media (max-width: 1250px) {
    .nav-bar .nav-items {
        display: none;
    }

    .nav-bar .toggle_btn {
        display: block;
    }
}

@media (min-width: 1250px) {
    .dropdown_menu, .dropdown_menu .nav-item {
        display: none;
    }
}

@media (max-width: 430px) {
    .dropdown_menu {
        top: 75px;
    }
}*/

.mobile-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    margin-right: 16px;
    padding: 10px;
    flex-shrink: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #074d6b;
    cursor: pointer;
}

    .mobile-menu-toggle svg {
        width: 60px;
        height: 60px;
    }

.mobile-menu {
    --menu-blue: #005280;
    --menu-active: #0966b4;
    --menu-gold: #c8b28a;
    --menu-line: #e3eaf0;
    --menu-photo: url('/images/RobotarmBovenProductielijn.png');
    position: fixed;
    inset: 0 0 0 auto;
    width: min(88vw, 440px);
    max-width: 100%;
    height: 100%;
    height: 100dvh;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 26px 0 0 26px;
    background: #fcfdfe;
    color: var(--menu-blue);
    font-family: "Montserrat", sans-serif;
    overflow-y: auto;
    overscroll-behavior: contain;
    box-shadow: -12px 0 45px rgb(0 0 0 / 16%);
}

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

        .mobile-menu::backdrop {
            background: rgb(0 0 0 / 53%);
        }

        .mobile-menu[open] {
            animation: mobile-menu-enter 240ms ease-out;
        }

.mobile-menu-inner {
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-height: 100%;
    padding: max(30px, env(safe-area-inset-top)) max(22px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) 22px;
}

.mobile-menu a {
    color: inherit;
    text-decoration: none;
}

.mobile-menu svg {
    display: block;
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    stroke-width: 1.7px;
}

/* Merk en sluitknop */
.mobile-menu-header {
    position: relative;
    padding: 8px 40px 0 8px;
}

.mobile-menu-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.mobile-menu-logo {
    display: block;
    width: 42px;
    height: auto;
    flex-shrink: 0;
}

.mobile-menu-logotekst {
    display: block;
    width: 180px;
    max-width: calc(100% - 50px);
    height: auto;
}

.mobile-menu-close {
    position: absolute;
    top: -10px;
    right: 9px;
    display: grid;
    place-items: center;
    width: 60px;
    height: 60px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--menu-blue);
    cursor: pointer;
}

    .mobile-menu-close svg {
        width: 50px;
        height: 50px;
    }

@media (max-width: 430px) {
    .mobile-menu-inner {
        display: flex;
        flex-direction: column;
        gap: 24px;
        min-height: 100%;
        padding: max(20px, env(safe-area-inset-top)) max(22px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) 22px;
    }

    
    
    .mobile-menu-header {
        position: static;
        padding: 0px 40px 0 8px;
    }

    .mobile-menu-close {
        position: absolute;
        top: 7.5px;
        right: 16px;
        width: 60px;
        height: 60px;
    }
}

/* Navigatie */
.mobile-menu-links {
    margin: 0;
    padding: 0;
    list-style: none;
}

    .mobile-menu-links li {
        margin: 0;
        padding: 0;
    }

    .mobile-menu-links a {
        display: flex;
        align-items: center;
        gap: 20px;
        min-height: 70px;
        padding: 16px;
        border-bottom: 1px solid var(--menu-line);
        font-size: 18px;
        font-weight: 650;
        line-height: 1.4;
    }

        .mobile-menu-links a > span {
            flex: 1;
        }

        .mobile-menu-links a > svg:last-child {
            width: 18px;
            height: 18px;
            opacity: 0.75;
        }

        .mobile-menu-links a:hover,
        .mobile-menu-links a.is-active {
            border-radius: 13px;
            background: #edf3f7;
            color: var(--menu-active);
        }

/* Contactknop */
.mobile-menu .mobile-menu-cta {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 66px;
    padding: 18px;
    border-radius: 13px;
    background: var(--menu-gold);
    color: #fff;
    font-size: 15px;
    font-weight: 650;
    line-height: 1.4;
    box-shadow: 0 4px 8px rgb(70 58 30 / 9%);
}

.mobile-menu-cta span {
    flex: 1;
}

.mobile-menu-cta svg:last-child {
    width: 22px;
}

.mobile-menu-cta:hover {
    filter: brightness(0.95);
}

/* Promotiekaart */
.mobile-menu-promo {
    display: block;
    min-height: 215px;
    padding: 24px 18px 18px;
    border-radius: 14px;
    overflow: hidden;
    background-color: #eaf0f3;
    background-image: linear-gradient( 90deg, #eef3f6 5%, rgb(238 243 246 / 94%) 42%, rgb(238 243 246 / 0%) 85% ), var(--menu-photo);
    background-position: center, 70% center;
    background-size: cover;
}

    .mobile-menu-promo small {
        display: block;
        margin-bottom: 10px;
        color: #8b774f;
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 1px;
        text-transform: uppercase;
    }

    .mobile-menu-promo strong {
        display: block;
        font-size: 28px;
        line-height: 1.1;
        letter-spacing: -0.6px;
    }

        .mobile-menu-promo strong::after {
            content: "";
            display: block;
            width: 38px;
            height: 3px;
            margin-top: 14px;
            background: var(--menu-gold);
        }

.mobile-menu-promo-arrow {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    margin-top: 16px;
    border-radius: 50%;
    background: var(--menu-gold);
    color: #fff;
}

/* Onderste links */
.mobile-menu-footer {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--menu-line);
}

    .mobile-menu-footer a {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        min-height: 64px;
        padding: 6px;
        font-size: 12px;
        text-align: center;
    }

        .mobile-menu-footer a + a {
            border-left: 1px solid var(--menu-line);
        }

    .mobile-menu-footer span {
        color: #617c91;
    }

    
.mobile-menu :focus-visible,
.mobile-menu-toggle:focus-visible {
    outline: none;
}

@keyframes mobile-menu-enter {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(0);
    }
}

/* Bestaande header */
@media (max-width: 1252px) {
    .nav-bar > .nav-items,
    .nav-bar > .nav-underline {
        display: none;
    }

    .mobile-menu-toggle {
        display: inline-flex;
    }

    .header-logotekst img {
        max-width: calc(100vw - 160px);
        object-fit: contain;
        object-position: left center;
    }
}

@media (max-width: 430px) {
    .header-logotekst img {
        max-width: calc(100vw - 130px);
    }
}

@media (max-width: 360px) {
    .mobile-menu {
        width: 94vw;
    }

    .mobile-menu-inner {
        padding-left: 16px;
        padding-right: 16px;
    }

    .header-logotekst img {
        max-width: calc(100vw - 75px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .mobile-menu[open] {
        animation: none;
    }
}


.body-content {
    /*position: absolute;
top: 0;
left: 0;
width: 100%;*/
}

/* Technificent footer */
.tf-footer {
    --tf-blue: #005280;
    --tf-orange: #ff6f00;
    --tf-surface: #f3f6f7;
    --tf-text-muted: #496273;
    width: 100%;
    margin-top: auto;
    background: var(--tf-surface);
    color: var(--tf-blue);
    font-family: "Montserrat", sans-serif;
}

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

        .tf-footer a {
            color: inherit;
            text-decoration: none;
        }

            .tf-footer a:hover {
                text-decoration: underline;
                text-underline-offset: 4px;
            }

            .tf-footer a:focus-visible {
                outline: 2px solid currentColor;
                outline-offset: 5px;
            }

/* Gelijke uitlijning van hoofdgedeelte en onderbalk */
.tf-footer-inner,
.tf-footer-bottom-inner {
    width: calc(100% - 3rem);
    max-width: 1600px;
    margin-inline: auto;
}

.tf-footer-inner {
    padding-block: 32px 28px;
}

/* Merk links, contactknop rechts */
.tf-footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

.tf-footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
}

    .tf-footer-brand:hover {
        text-decoration: none;
    }

.tf-footer-name {
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: 0.45em;
}

.tf-footer-tagline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;

    margin-top: 7px;
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #D8C7A3;
}

    .tf-footer-tagline::before,
    .tf-footer-tagline::after {
        content: "";
        width: 10px;
        height: 1px;
        background-color: currentColor;
        flex-shrink: 0;
    }

.tf-footer-description {
    margin-top: 14px;
    font-size: 0.8125rem;
    line-height: 1.6;
    color: var(--tf-text-muted);
}

.tf-footer-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    min-height: 44px;
    padding: 12px 18px;
    border: 1px solid var(--tf-blue);
    background: #fff;
    font-size: 0.8125rem;
    font-weight: 600;
    transition: background-color 0.2s, color 0.2s;
}

    .tf-footer-cta span {
        color: var(--tf-orange);
    }

    .tf-footer-cta:hover {
        background: var(--tf-blue);
        color: #fff;
        text-decoration: none;
    }

/* Navigatie en direct contact */
.tf-footer-middle {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 24px 40px;
    margin-top: 28px;
}

.tf-footer-nav,
.tf-footer-legal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 24px;
}

.tf-footer-nav {
    font-size: 0.8125rem;
    line-height: 1.6;
}

.tf-footer-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    min-width: 0;
    max-width: 100%;
    margin: 0;
    font-size: 0.8125rem;
    font-style: normal;
    line-height: 1.6;
}

.tf-footer-phone {
    white-space: nowrap;
}

.tf-footer-email {
    max-width: 100%;
    overflow-wrap: anywhere;
}

/* Compacte blauwe onderbalk */
.tf-footer-bottom {
    background: var(--tf-blue);
    color: #e1edf3;
}

.tf-footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 24px;
    padding-block: 18px;
    font-size: 0.75rem;
    line-height: 1.6;
}

.tf-footer-legal {
    gap: 8px 20px;
}

.tf-footer a.tf-no-underline:hover {
    text-decoration: none;
}

.cta-arrow {
    height: 12px;
    margin-left: 0px;
    width: 12px;
    stroke-width: 3px;
    color: var(--tf-orange);
    transition: transform 0.15s ease;
}

.tf-footer .tf-footer-cta:hover .cta-arrow {
    transform: scale(1.6);
}

/* Tablet: contact krijgt een eigen regel */
@media (max-width: 900px) {
    .tf-footer-middle {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .tf-footer-contact {
        align-items: flex-start;
        flex-direction: row;
        gap: 55px;
    }

}

/* Mobiel */
@media (max-width: 600px) {
    .tf-footer-inner {
        padding-block: 28px;
    }

    .tf-footer-nav {
        gap: 10px 20px;
    }

    .tf-footer-bottom-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 430px){
    .tf-footer-contact {
        align-items: flex-start;
        flex-direction: row;
        gap: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tf-footer-cta {
        transition: none;
    }
}
