/* =========================================================
   Safe Web Innovations — Algemene responsive regels
   Eén bron van waarheid voor laptop, tablet en mobiel
   ========================================================= */

/* Laptop */

@media (max-width: 1180px) {
    .site-header__inner {
        width: min(calc(100% - 48px), 1680px);
        gap: 36px;
    }

    .primary-navigation {
        gap: 20px;
    }

    .primary-navigation > a:not(.button) {
        font-size: 0.86rem;
    }

    .primary-navigation .button {
        min-width: 210px;
        padding-inline: 20px;
    }

    /* Footer */

    .site-footer__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 54px 64px;
    }

    .site-footer__brand {
        grid-column: 1 / -1;
    }
}

/* Tablet */

@media (max-width: 1180px) {
    :root {
        --header-height: 82px;
    }

    body.menu-open {
        overflow: hidden;
    }

    body.menu-open main,
    body.menu-open .site-footer {
        filter: blur(5px);
    }

    .site-header {
        min-height: var(--header-height);
        overflow: visible;
    }

    .site-header__inner {
        width: min(calc(100% - 40px), 1680px);
        min-height: var(--header-height);
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 20px;
    }

    .brand {
        position: relative;
        z-index: 1102;
        min-width: 0;
        max-width: calc(100% - 72px);
    }

    .brand__logo {
        width: 260px;
        height: auto;
        flex: 0 0 auto;
    }

    .nav-toggle {
        position: relative;
        z-index: 1102;
        width: 48px;
        height: 48px;
        display: flex;
        flex: 0 0 48px;
        margin-left: auto;
        border: 0;
        background: transparent;
    }

    .nav-toggle span {
        position: absolute;
        width: 26px;
        height: 2px;
        border-radius: 999px;
        background: #ffffff;
        transition:
            top 180ms ease,
            transform 180ms ease,
            opacity 180ms ease;
    }

    .nav-toggle span:nth-child(1) {
        top: 15px;
    }

    .nav-toggle span:nth-child(2) {
        top: 23px;
    }

    .nav-toggle span:nth-child(3) {
        top: 31px;
    }

    .nav-toggle[aria-expanded="true"] span:nth-child(1) {
        top: 23px;
        transform: rotate(45deg);
    }

    .nav-toggle[aria-expanded="true"] span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle[aria-expanded="true"] span:nth-child(3) {
        top: 23px;
        transform: rotate(-45deg);
    }

    .primary-navigation {
        position: fixed;
        z-index: 1100;
        inset: 0;
        width: 100%;
        min-height: 100dvh;
        display: flex;
        align-items: stretch;
        justify-content: flex-start;
        flex-direction: column;
        gap: 0;
        padding:
            calc(var(--header-height) + 72px)
            clamp(40px, 9vw, 120px)
            56px;
        overflow-y: auto;
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-16px);
        border: 0;
        background:
            radial-gradient(
                circle at 18% 18%,
                rgba(124, 58, 237, 0.12),
                transparent 30rem
            ),
            rgba(0, 0, 3, 0.97);
        backdrop-filter: blur(18px);
        transition:
            opacity 220ms ease,
            visibility 220ms ease,
            transform 220ms ease;
    }

    .primary-navigation.is-open {
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .primary-navigation > a:not(.button) {
        width: 100%;
        padding: 24px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
        color: #ffffff;
        font-size: clamp(1.65rem, 4vw, 2.5rem);
        font-weight: 420;
        line-height: 1.15;
        letter-spacing: -0.035em;
    }

    .primary-navigation > a:not(.button)::after {
        display: none;
    }

    .primary-navigation > a:not(.button):hover,
    .primary-navigation > a[aria-current="page"] {
        color: #ffffff;
    }

    .primary-navigation .button {
        width: fit-content;
        min-width: 230px;
        min-height: 58px;
        margin-top: 52px;
        padding: 17px 34px;
        border-radius: 999px;
        font-size: 1rem;
    }

    /* Footer */

    .site-footer {
        padding-top: 88px;
    }

    .site-footer__cta {
        align-items: flex-start;
        flex-direction: column;
        gap: 42px;
        padding-bottom: 68px;
    }

    .site-footer__cta-content {
        max-width: 760px;
    }

    .site-footer__cta .button {
        flex-shrink: 0;
    }

    .site-footer__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 54px 64px;
        padding-block: 64px;
    }

    .site-footer__brand {
        grid-column: 1 / -1;
    }

    .site-footer__brand p {
        max-width: 620px;
    }

    .site-footer__bottom {
        min-height: 0;
        grid-template-columns: 1fr;
        justify-items: start;
        gap: 18px;
        padding: 28px 0;
    }

    .site-footer__legal {
        justify-content: flex-start;
    }

    .site-footer__credit {
        text-align: left;
    }
}

/* Mobiel */

@media (max-width: 640px) {
    .whatsapp-contact {
        right: 14px;
        bottom: 14px;
        gap: 10px;
    }

    .whatsapp-contact__label {
        padding: 7px 11px;
        border-radius: 11px;
        font-size: 0.72rem;
    }

    .whatsapp-contact__button {
        width: 48px;
        height: 48px;
    }

    .whatsapp-contact__button svg {
        width: 26px;
        height: 26px;
    }

    .cookie-settings-trigger {
        bottom: 14px;
        left: 14px;
        width: 46px;
        height: 46px;
        padding: 0;
    }

    .cookie-settings-trigger svg {
        width: 25px;
        height: 25px;
    }

    .cookie-dialog {
        align-items: end;
        padding: 12px;
    }

    .cookie-dialog__panel {
        max-height: calc(100dvh - 24px);
        padding: 28px 20px;
        border-radius: 10px;
    }

    .cookie-option {
        align-items: flex-start;
        gap: 18px;
    }

    .cookie-dialog__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .cookie-dialog__actions .button {
        width: 100%;
    }

    .container {
        width: min(calc(100% - 32px), var(--container-width));
    }

    .site-header__inner {
        width: min(calc(100% - 30px), 1680px);
    }

    .brand__logo {
        width: 150px;
        height: auto;
        flex-basis: auto;
    }

    .nav-toggle {
        width: 46px;
        height: 46px;
        flex-basis: 46px;
    }

    .primary-navigation {
        padding:
            calc(var(--header-height) + 42px)
            24px
            36px;
    }

    .primary-navigation > a:not(.button) {
        padding: 17px 0;
        font-size: clamp(1.55rem, 7vw, 2.15rem);
    }

    .primary-navigation .button {
        width: fit-content;
        min-width: 0;
        min-height: 52px;
        margin-top: 32px;
        padding: 14px 24px;
        font-size: 0.92rem;
    }

    /* Footer */

    .site-footer {
        padding-top: 72px;
    }


    .site-footer__cta {
        gap: 32px;
        padding-bottom: 56px;
    }

    .site-footer__cta-content {
        width: 100%;
        max-width: 100%;
    }

    .site-footer__cta h2 {
        width: 100%;
        max-width: 100%;
        font-size: clamp(1.95rem, 8.2vw, 2.75rem);
        line-height: 1.08;
        letter-spacing: -0.045em;
        word-spacing: normal;
        text-transform: none;
        text-wrap: pretty;
        overflow-wrap: normal;
        word-break: normal;
    }

    .site-footer__cta-content > p:last-child {
        font-size: 0.96rem;
        line-height: 1.75;
    }

    .site-footer__cta .button {
        width: 100%;
    }

    .site-footer__grid {
        grid-template-columns: 1fr;
        gap: 46px;
        padding: 54px 0;
    }

    .site-footer__brand {
        grid-column: auto;
    }

    .site-footer .brand__text {
        display: block;
        min-width: 0;
    }

    .site-footer__column {
        min-width: 0;
    }

    .site-footer__column > a:not(.site-footer__contact-link) {
        margin-bottom: 12px;
    }

    .site-footer p,
    .site-footer a,
    .site-footer button {
        max-width: 100%;
        overflow-wrap: anywhere;
    }

    .site-footer__bottom {
        min-height: 0;
        grid-template-columns: 1fr;
        justify-items: start;
        gap: 18px;
        padding: 28px 0 34px;
    }

    .site-footer__legal {
        align-items: flex-start;
        justify-content: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .site-footer__credit {
        text-align: left;
    }
}

/* Kleine mobiel */

@media (max-width: 420px) {
    .container {
        width: min(calc(100% - 24px), var(--container-width));
    }

    .site-header__inner {
        width: min(calc(100% - 22px), 1680px);
    }

    .brand__tagline {
        display: none;
    }


    .site-footer__cta h2 {
        font-size: clamp(1.8rem, 8.4vw, 2.35rem);
        line-height: 1.1;
        letter-spacing: -0.04em;
        text-transform: none;
    }

    .site-footer__grid {
        gap: 40px;
    }

    .footer-contact a {
        grid-template-columns: 21px minmax(0, 1fr);
        gap: 11px;
    }
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}