﻿/* ===== Force hamburger visible at all sizes ===== */
.mobile-bar {
    display: flex !important;
}

.header-wrapper {
    position: relative;
}

.menu-button {
    position: relative;
    z-index: 10001;
}

header * {
    color: #4f0077;
}

/* ===== Hide close button — hamburger handles open/close ===== */
.close-menu-button {
    display: none !important;
}

/* ===== Nav as small dropdown box ===== */
.navigation {
    position: absolute !important;
    display: flex;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
    top: 55px !important;
    bottom: auto !important;
    left: auto !important;
    right: 65px !important;
    width: min(290px, 85vw) !important;
    height: fit-content !important;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    overflow: visible !important;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) !important;
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s !important;
    padding: 1.5em 1em !important;
    z-index: 10000;
}

/* Override scoped mobile styles that kick in at 899px */
@media only screen and (max-width: 899px) {
    .navigation {
        position: absolute !important;
        left: auto !important;
        right: 20px !important;
        top: 55px !important;
        bottom: auto !important;
        width: min(290px, 85vw) !important;
        height: fit-content !important;
        transform: translateY(-10px) !important;
        transition: opacity 0.3s, visibility 0.3s, transform 0.3s !important;
        opacity: 0;
        visibility: hidden;
    }

    #menu-open:checked ~ * .navigation {
        transform: none !important;
        opacity: 1;
        visibility: visible;
    }
}

/* Show nav when checkbox is checked */
#menu-open:checked ~ * .navigation {
    opacity: 1;
    visibility: visible;
    transform: none !important;
}

.navigation .tools {
    z-index: 1;
}

.navigation:before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url(/_content/Advania.Theme/images/advania-pattern.svg);
    background-repeat: no-repeat;
    background-position: bottom right;
    opacity: .2;
    z-index: 2;
    pointer-events: none;
}

/* ===== Hide nav-logo ===== */
.nav-logo {
    display: none;
}

/* ===== Tools ===== */
.tools {
    flex-direction: row-reverse;
    align-self: center;
    gap: .5rem;
}

/* ===== Menu layout inside dropdown ===== */
.page-menu {
    flex: 0 0 auto;
}

.menu {
    position: relative;
    overflow: hidden;
}

.menu-items, .menu-items-root {
    margin: 0px;
    padding: 0px;
    position: relative !important;
    top: auto !important;
    bottom: auto !important;
    width: 100%;
    overflow-y: visible !important;
    overflow-x: hidden;
    display: block !important;
}

.menu-items {
    transition: transform .5s;
    transform: translate(150%,0);
    background-color: white;
    position: absolute !important;
    top: 0 !important;
    bottom: 0 !important;
}

.menu-expander, .nav-item-icon {
    display: flex;
    opacity: 0;
    position: absolute;
}

.menu-expander:checked + ul {
    transform: translate(0%,0);
}

.nav-item {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.nav-item.nav-item--hide-mobile {
    display: none;
}

.nav-link {
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.menu-items-root > li > .nav-link {
    font-size: 17px;
    font-weight: 600;
    height: 50px;
}

.menu-items > li > .nav-link {
    font-size: 16px;
    font-weight: 400;
    height: 35px;
}

.expand-label {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    padding: 0 1em;
    background-image: url(/_content/advania.theme/images/arrow.svg);
    background-size: 18px auto;
    background-repeat: no-repeat;
    background-position: center center;
    width: 18px;
    height: 18px;
    text-indent: -150%;
    overflow: hidden;
}

.back-label {
    display: flex;
    flex-direction: row;
    align-items: center;
    height: 50px;
    font-size: 17px;
    font-weight: 600;
}

.back-label::before {
    content: '';
    display: block;
    background-image: url(/_content/advania.theme/images/arrow.svg);
    background-size: 18px auto;
    background-repeat: no-repeat;
    background-position: center center;
    width: 18px;
    height: 18px;
    transform: scaleX(-1);
    filter: grayscale(1) brightness(1.8);
    margin-right: 1em;
}

.menu-items-heading {
    height: 70px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    font-size: 17px;
    font-weight: 600;
}

.menu-items-heading::after {
    content: '';
    display: block;
    background-image: url(/_content/advania.theme/images/arrow.svg);
    background-size: 18px auto;
    background-repeat: no-repeat;
    background-position: center center;
    width: 18px;
    height: 18px;
    transform: rotate(90deg);
    filter: grayscale(1) brightness(1.8);
}

#menu-open:checked ~ * .advania-logo {
    background-image: var(--advania-logo);
}

/* ===== Hero ===== */
.hero-background {
    --hero-clip-path: none;
}

.hero-content-columns div.column1 h1 {
    word-spacing: 100vw;
    font-weight: bold;
}

.hero-content-columns div.column1 .veva-paragraph {
    max-width: 100%;
    box-sizing: border-box;
}

.light {
    --text-color: #4f0077 !important;
}