/* =========================================================
   DWALLNET GENESIS
   HEADER
   ========================================================= */


/* =========================================================
   HEADER BASE
   ========================================================= */

.dw-header {
    position: absolute;
    top: 0;
    left: 0;

    width: 100%;

    padding: 24px 0;

    z-index: 1000;

    transition:
        background-color 0.3s ease,
        padding 0.3s ease,
        box-shadow 0.3s ease,
        backdrop-filter 0.3s ease;
}


/* =========================================================
   SCROLLED HEADER
   ========================================================= */

.dw-header.scrolled {
    position: fixed;

    padding: 14px 0;

    background:
        rgba(8, 17, 32, 0.90);

    backdrop-filter:
        blur(18px);

    -webkit-backdrop-filter:
        blur(18px);

    box-shadow:
        0 8px 35px rgba(0, 0, 0, 0.18);
}


/* =========================================================
   HEADER INNER
   ========================================================= */

.dw-header-inner {
    display: flex;

    align-items: center;

    justify-content: space-between;

    width: 100%;

    min-height: 58px;

    gap: 30px;
}


/* =========================================================
   LOGO
   ========================================================= */

.dw-logo {
    flex: 0 0 auto;

    position: relative;

    z-index: 1003;
}


.dw-logo a {
    display: inline-flex;

    align-items: center;

    color: #ffffff;

    font-size: 30px;

    font-weight: 800;

    line-height: 1;

    text-decoration: none;

    white-space: nowrap;
}


.dw-logo img {
    display: block;

    width: auto;

    max-width: 180px;

    max-height: 60px;
}


/* =========================================================
   DESKTOP NAVIGATION
   ========================================================= */

.dw-navigation {
    display: block;

    margin-left: auto;
}


.dw-menu {
    display: flex;

    align-items: center;

    gap: 32px;

    margin: 0;
    padding: 0;

    list-style: none;
}


.dw-menu li {
    position: relative;

    margin: 0;
    padding: 0;

    list-style: none;
}


.dw-menu li a {
    display: inline-flex;

    align-items: center;

    position: relative;

    padding: 8px 0;

    color: #ffffff;

    font-size: 15px;

    font-weight: 500;

    line-height: 1.4;

    text-decoration: none;

    transition:
        color 0.25s ease;
}


.dw-menu li a::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: 0;

    width: 0;
    height: 2px;

    border-radius: 10px;

    background:
        var(--dw-accent);

    transition:
        width 0.3s ease;
}


.dw-menu li a:hover {
    color:
        var(--dw-accent);
}


.dw-menu li a:hover::after {
    width: 100%;
}


/* =========================================================
   HEADER ACTIONS
   ========================================================= */

.dw-header-actions {
    display: flex;

    align-items: center;

    gap: 12px;

    flex: 0 0 auto;

    position: relative;

    z-index: 1003;
}


/* =========================================================
   DARK MODE BUTTON
   ========================================================= */

.dw-dark-toggle {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    width: 42px;
    height: 42px;

    margin: 0;
    padding: 0;

    border: none;

    border-radius: 50%;

    background: #ffffff;

    color: #081120;

    font-size: 18px;

    line-height: 1;

    cursor: pointer;

    transition:
        transform 0.25s ease,
        background-color 0.25s ease;
}


.dw-dark-toggle:hover {
    transform: translateY(-2px);
}


/* =========================================================
   MOBILE MENU BUTTON
   ========================================================= */

.dw-menu-toggle {
    display: none;

    align-items: center;

    justify-content: center;

    flex-direction: column;

    width: 44px;
    height: 44px;

    margin: 0;
    padding: 0;

    border: none;

    background: transparent;

    cursor: pointer;

    position: relative;

    z-index: 1005;
}


.dw-menu-toggle span {
    display: block;

    width: 28px;
    height: 3px;

    margin: 3px 0;

    border-radius: 20px;

    background: #ffffff;

    transform-origin: center;

    transition:
        transform 0.3s ease,
        opacity 0.2s ease;
}


/* =========================================================
   HAMBURGER → X
   ========================================================= */

.dw-menu-toggle.dw-active
span:nth-child(1) {
    transform:
        translateY(6px)
        rotate(45deg);
}


.dw-menu-toggle.dw-active
span:nth-child(2) {
    opacity: 0;
}


.dw-menu-toggle.dw-active
span:nth-child(3) {
    transform:
        translateY(-6px)
        rotate(-45deg);
}


/* =========================================================
   MOBILE NAVIGATION
   ========================================================= */

@media (max-width: 900px) {


    /* -----------------------------------------------------
       HEADER
       ----------------------------------------------------- */

    .dw-header {
        padding: 18px 0;
    }


    .dw-header.scrolled {
        padding: 12px 0;
    }


    .dw-header-inner {
        min-height: 50px;

        gap: 15px;
    }


    /* -----------------------------------------------------
       DESKTOP NAVIGATION HIDDEN
       ----------------------------------------------------- */

    .dw-navigation {
        display: none;
    }


    /* -----------------------------------------------------
       HAMBURGER DISPLAYED
       ----------------------------------------------------- */

    .dw-menu-toggle {
        display: flex;
    }


    /* -----------------------------------------------------
       ENROLL BUTTON HIDDEN
       ----------------------------------------------------- */

    .dw-header-actions
    .dw-btn-primary {
        display: none;
    }


    /* -----------------------------------------------------
       MOBILE NAVIGATION OPEN
       ----------------------------------------------------- */

    .dw-navigation.active {

        display: block;

        position: fixed;

        top: 0;
        left: 0;

        width: 100%;

        height: 100vh;
        height: 100dvh;

        padding:
            100px 25px 40px;

        overflow-y: auto;

        background:
            rgba(8, 17, 32, 0.98);

        backdrop-filter:
            blur(22px);

        -webkit-backdrop-filter:
            blur(22px);

        z-index: 1001;

        box-sizing: border-box;

        animation:
            dw-mobile-menu-open
            0.25s ease;
    }


    /* -----------------------------------------------------
       MOBILE MENU LIST
       ----------------------------------------------------- */

    .dw-navigation.active
    .dw-menu {

        display: flex;

        flex-direction: column;

        align-items: stretch;

        gap: 0;

        width: 100%;

        max-width: 600px;

        margin: 0 auto;

        padding: 0;

        list-style: none;
    }


    /* -----------------------------------------------------
       MOBILE MENU ITEM
       ----------------------------------------------------- */

    .dw-navigation.active
    .dw-menu li {

        display: block;

        width: 100%;

        margin: 0;
        padding: 0;

        border-bottom:
            1px solid
            rgba(255, 255, 255, 0.08);

        list-style: none;
    }


    /* -----------------------------------------------------
       MOBILE MENU LINK
       ----------------------------------------------------- */

    .dw-navigation.active
    .dw-menu li a {

        display: flex;

        align-items: center;

        width: 100%;

        min-height: 62px;

        padding: 12px 5px;

        color: #ffffff;

        font-size: 17px;

        font-weight: 600;

        line-height: 1.4;

        text-decoration: none;

        box-sizing: border-box;

        transition:
            color 0.25s ease,
            padding-left 0.25s ease;
    }


    .dw-navigation.active
    .dw-menu li a:hover {

        color:
            var(--dw-accent);

        padding-left: 10px;
    }


    /* -----------------------------------------------------
       REMOVE DESKTOP UNDERLINE
       ----------------------------------------------------- */

    .dw-navigation.active
    .dw-menu li a::after {
        display: none;
    }

}


/* =========================================================
   MOBILE MENU ANIMATION
   ========================================================= */

@keyframes dw-mobile-menu-open {

    from {
        opacity: 0;

        transform:
            translateY(-12px);
    }

    to {
        opacity: 1;

        transform:
            translateY(0);
    }

}


/* =========================================================
   BODY LOCK
   ========================================================= */

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


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {


    .dw-header {
        padding: 15px 0;
    }


    .dw-header.scrolled {
        padding: 10px 0;
    }


    .dw-logo a {
        font-size: 25px;
    }


    .dw-logo img {
        max-width: 150px;

        max-height: 50px;
    }


    .dw-navigation.active {
        padding:
            88px 20px 30px;
    }


    .dw-navigation.active
    .dw-menu li a {

        min-height: 58px;

        font-size: 16px;
    }


    .dw-menu-toggle {
        width: 42px;
        height: 42px;
    }


    .dw-menu-toggle span {
        width: 26px;
    }


    .dw-dark-toggle {
        width: 40px;
        height: 40px;
    }

}