/* Mobile menu button */
#mobile-cta {
    display: none;
    padding: 0.3em 1.2em;
    font-size: 0.8em;
    font-family: 'BOLD';
    color: white;
    text-decoration: none;
    border: 1px solid var(--color-primary);
    border-radius: 100px;
    background-color: var(--color-primary);
    white-space: nowrap;
    transition: background 0.25s;
}

#mobile-cta:hover {
    background: color-mix(in oklab, var(--color-primary), white 10%);
}

#mobile-menu-button-col {
    display: none;
    align-items: center;
    justify-content: center;
    flex-basis: 3em;
    font-size: 2em;
    z-index: 1100;
}

#mobile-menu-button {
    cursor: pointer;
    user-select: none;
    line-height: 1;
    transition: transform 0.3s ease;
    padding-bottom: 0.3em;
}

#mobile-menu-button.open {
    transform: rotate(90deg);
}

body.mobile-menu-open {
    overflow: hidden;
}

/* Fullscreen mobile overlay */
#mobile-nav {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1050;
    overflow-y: auto;
    flex-direction: column;
    align-items: center;
    padding: calc(var(--header-height) + 1em) 1.5em 3em;
    background: linear-gradient(
        to bottom,
        rgb(240, 245, 240) 0%,
        rgb(244, 245, 247) 100%
    );
    backdrop-filter: blur(20px);
}

#mobile-nav.open {
    display: flex;
}

.mobile-nav-group {
    width: 100%;
    max-width: 400px;
    padding: 1.2em 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.mobile-nav-group h3 {
    font-family: "REGU", sans-serif;
    font-size: 0.8em;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-primary);
    margin-bottom: 0.6em;
    padding-bottom: 0.4em;
}

.mobile-nav-group a {
    display: block;
    padding: 0.55em 0;
    font-size: 1.15em;
    color: rgba(0, 0, 0, 0.8);
    text-decoration: none;
    transition: color 0.2s;
}

.mobile-nav-group a:hover,
.mobile-nav-group a:active {
    color: var(--color-primary);
}

/* Mobile breakpoint */
@media screen and (max-width: 768px) {
    :root {
        --page-width: 90%;
        --header-height: 3em;
    }

    #main-menu-content {
        justify-content: space-between;
        padding: 0 0.8em;
    }

    #mobile-menu-button-col {
        order: 1;
        display: flex !important;
        flex-basis: auto;
        font-size: 1.5em;
    }

    #main-menu-logo-col {
        order: 2;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        flex-grow: 0;
        flex-basis: auto;
        z-index: 10;
    }

    #navilogo {
        position: static;
    }

    #logo {
        height: 70%;
    }

    #main-menu-navi-items-col {
        display: none !important;
    }

    #main-menu-contact-col {
        order: 3;
        flex-basis: auto;
    }

    .main-cta-button {
        display: none;
    }

    #mobile-cta {
        display: inline-block;
        align-self: center;
    }

    .page-content {
        margin-top: 3em;
        width: 90%;
        padding: 0 0.5em;
        margin-bottom: 500px;
    }

    /* Hero adjustments */
    .hero {
        padding: 2em 0.5em;
    }

    .hero h1 {
        font-size: clamp(1.5em, 6vw, 2.5em);
    }

    .hero-ctas {
        flex-direction: column;
        align-items: center;
    }

    /* Features grid */
    .features-grid {
        grid-template-columns: 1fr;
    }

    /* Steps */
    .steps {
        flex-direction: column;
        align-items: center;
    }

    .step {
        max-width: 100%;
    }

    /* Footer */
    #footerRoot {
        width: 100%;
        height: auto;
        min-height: 300px;
        padding-top: 2em;
        padding-bottom: 1em;
    }

    #footerZones {
        width: 95%;
        flex-direction: column;
        gap: 1em;
    }

    #footerblock1 {
        flex-direction: column;
        gap: 1em;
    }

    .desktop-only {
        display: none !important;
    }

}
