/* ===== NAVBAR ===== */
.navbar-custom {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 72px;
    background: #f5f8fe;
    z-index: 1000;
}

.navbar-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 1rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ===== TOGGLE ===== */
.menu-toggle {
    display: none;
}

/* ===== HAMBURGER ===== */
.hamburger {
    width: 32px;
    height: 22px;
    position: relative;
    cursor: pointer;
    z-index: 99999;
}

.hamburger span,
.hamburger span::before,
.hamburger span::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 2px;
    background: #020226;
    transition: 0.3s ease;
}

.hamburger span {
    top: 50%;
    transform: translateY(-50%);
}

.hamburger span::before {
    top: -8px;
}

.hamburger span::after {
    bottom: -8px;
}

/* X animation */
.menu-toggle:checked + label span {
    transform: rotate(45deg);
}

.menu-toggle:checked + label span::before {
    top: 0;
    transform: rotate(90deg);
}

.menu-toggle:checked + label span::after {
    bottom: 0;
    transform: rotate(90deg);
}

/* ===== OVERLAY ===== */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.4);
    opacity: 0;
    visibility: hidden;
    transition: .3s;
    z-index: 1050;
}

/* ===== OFF CANVAS ===== */
.offcanvas-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: #f5f8fe;
    padding: 5rem 1.5rem;
    transition: .4s ease;
    z-index: 1100;
}

.menu-toggle:checked ~ .overlay {
    opacity: 1;
    visibility: visible;
}

.menu-toggle:checked ~ .offcanvas-menu {
    right: 0;
}

.offcanvas-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.offcanvas-menu li {
    margin-bottom: 1.5rem;
}

.offcanvas-menu a {
    text-decoration: none;
    font-size: 1.2rem;
    color: #020226;
}

/* ===== DESKTOP ===== */
@media (min-width: 992px) {
    .hamburger,
    .overlay {
        display: none;
    }

    .offcanvas-menu {
        position: static;
        height: auto;
        width: auto;
        padding: 0;
        background: transparent;
        display: block;
        transform: none;
    }

    .offcanvas-menu ul {
        display: flex;
        gap: 2rem;
    }

    .offcanvas-menu li {
        margin: 0;
    }

    .offcanvas-menu a {
        font-size: 1rem;
    }
}