/* ═════════════════════════════════════════════
   RESET
═════════════════════════════════════════════ */
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html,
body{
    width:100%;
    overflow-x:hidden;
}

body.admin-bar{
    margin-top:0 !important;
}

/* ═════════════════════════════════════════════
   HEADER BASE
═════════════════════════════════════════════ */
header{
    position:absolute;
    top:0;
    left:0;
    width:100%;
    z-index:1000;

    display:flex;
    align-items:center;
    justify-content:space-between;

    padding:20px 60px;
    background:transparent;

    transition:
        background .3s ease,
        padding .3s ease,
        box-shadow .3s ease;
}

/* Optional container */
/* .header-container{
    width:100%;
    max-width:1400px;
    margin:auto;

    display:flex;
    align-items:center;
    justify-content:space-between;
} */

/* ═════════════════════════════════════════════
   LOGO
═════════════════════════════════════════════ */
.logo{
    flex-shrink:0;
}

.logo img{
    height:80px;
    width:auto;
    object-fit:contain;
    transition:.3s ease;
}

/* ═════════════════════════════════════════════
   MENU BAR
═════════════════════════════════════════════ */
.menu-bar{
    display:flex;
    align-items:center;
}

.nav{
    display:flex;
    align-items:center;
    margin: 0;
    padding: 0;
    list-style: none !important;
    gap: 40px;
}

.nav li{
    position:relative;
    list-style:none;
}

/* ═════════════════════════════════════════════
   NAV LINKS
═════════════════════════════════════════════ */
.nav a{
    position:relative;

    display:block;
    align-items:center;

    color:#000;
    font-size:20px;
    font-weight:500;
    text-decoration:none;

    transition:.3s ease;
}

/* UNDERLINE */
.nav a::after{
    content:"";
    position:absolute;
    left:0;
    bottom:-6px;
    width:0%;
    height:2px;
    background:linear-gradient(90deg,#4284DB,#29EAC4);
    transition:.3s ease;
}

.nav a:hover::after,
.nav .current-menu-item > a::after{
    width:100%;
}

/* ═════════════════════════════════════════════
   DROPDOWN ARROW
═════════════════════════════════════════════ */
.menu-item-has-children > a{
    padding-right:18px;
}

.menu-item-has-children > a::before{
    content:"▼";

    position:absolute;
    right:0;
    top:50%;

    transform:translateY(-50%);

    font-size:9px;
}

/* ═════════════════════════════════════════════
   CONTACT BUTTON
═════════════════════════════════════════════ */
.nav-contact{
    margin-left:28px;

    display:inline-flex;
    align-items:center;
    justify-content:center;

    padding:12px 22px;

    border-radius:40px;

    background:linear-gradient(135deg,#4284DB,#29EAC4);

    color:#fff;
    font-size:14px;
    font-weight:600;
    text-decoration:none;

    transition:.3s ease;
}

.nav-contact:hover{
    transform:translateY(-2px);
    box-shadow:0 8px 20px rgba(0,0,0,.15);
}

/* ═════════════════════════════════════════════
   HAMBURGER
═════════════════════════════════════════════ */
.hamburger{
    display:none;

    width:34px;
    height:26px;

    flex-direction:column;
    justify-content:space-between;

    cursor:pointer;

    z-index:1200;
}

.hamburger span{
    width:100%;
    height:3px;

    background:#fff;

    border-radius:10px;

    transition:.3s ease;
}

/* HAMBURGER ANIMATION */
.hamburger.open span:nth-child(1){
    transform:translateY(11px) rotate(45deg);
}

.hamburger.open span:nth-child(2){
    opacity:0;
}

.hamburger.open span:nth-child(3){
    transform:translateY(-11px) rotate(-45deg);
}

/* ═════════════════════════════════════════════
   SUBMENU
═════════════════════════════════════════════ */
.sub-menu{
    position:absolute;
    top:120%;
    left:0;

    min-width:260px;

    padding:12px;

    list-style:none;

    display:flex;
    flex-direction:column;
    gap:10px;

    background:rgba(255,255,255,.08);

    opacity:0;
    visibility:hidden;

    transform:translateY(10px);

    transition:.3s ease;

    z-index:999;
}

.sub-menu li{
    width:100%;
}

.sub-menu a{
    width:100%;

    display:block;

    padding:12px 18px;

    border-radius:12px;

    background:rgba(255,255,255,.96);

    backdrop-filter:blur(12px);

    color:#222;

    box-shadow:0 8px 24px rgba(0,0,0,.12);

    font-size:15px;
}

/* Remove underline */
.sub-menu a::after{
    display:none;
}

.sub-menu a:hover{
    background:linear-gradient(135deg,#4284DB,#29EAC4);
    color:#fff;

    transform:translateX(5px);
}

/* SHOW SUBMENU */
.menu-item-has-children:hover > .sub-menu{
    opacity:1;
    visibility:visible;

    transform:translateY(0);
}

/* ═════════════════════════════════════════════
   SCROLL EFFECT
═════════════════════════════════════════════ */
header.scrolled{
    position:fixed;

    background:rgba(255,255,255,.94);

    backdrop-filter:blur(12px);
    -webkit-backdrop-filter:blur(12px);

    box-shadow:0 4px 20px rgba(0,0,0,.08);

    padding:14px 60px;
}

/* LOGO SMALL */
header.scrolled .logo img{
    height:68px;
}

/* TEXT COLOR */
header.scrolled .nav a{
    color:#222;
}

header.scrolled .hamburger span{
    background:#222;
}

/* ═════════════════════════════════════════════
   LARGE TABLET
═════════════════════════════════════════════ */
@media (max-width:1024px){

    header{
        padding:16px 32px;
    }

    header.scrolled{
        padding:14px 32px;
    }

    .logo img{
        height:70px;
    }

    .nav{
        gap:24px;
    }

    .nav a{
        font-size:15px;
    }

    .nav-contact{
        padding:10px 18px;
        font-size:13px;
    }
}

/* ═════════════════════════════════════════════
   TABLET & MOBILE MENU
═════════════════════════════════════════════ */
@media (max-width:768px){

    header{
        padding:14px 20px;
    }

    header.scrolled{
        padding:12px 20px;
    }

    .logo img{
        height:60px;
    }

    /* SHOW HAMBURGER */
    .hamburger{
        display:flex;
    }

    /* MOBILE MENU */
    .menu-bar{
        position:absolute;

        top:100%;
        left:0;

        width:100%;

        background:#fff;

        display:none;
        flex-direction:column;

        padding:10px 0;

        border-top:1px solid rgba(0,0,0,.05);

        box-shadow:0 10px 30px rgba(0,0,0,.08);
    }

    .menu-bar.active{
        display:flex;
    }

    .nav{
        width:100%;

        flex-direction:column;
        align-items:flex-start;

        gap:0;
    }

    .nav li{
        width:100%;

        border-bottom:1px solid #f1f1f1;
    }

    .nav a{
        width:100%;

        color:#222;

        font-size:16px;

        padding:16px 20px;
    }

    .nav a::after{
        display:none;
    }

    /* SUBMENU MOBILE */
    .sub-menu{
        position:static;

        opacity:1;
        visibility:visible;

        transform:none;

        display:none;

        width:100%;

        padding:0;

        background:#f8f8f8;
    }

    .menu-item-has-children.active > .sub-menu{
        display:flex;
    }

    .sub-menu li{
        border:none;
    }

    .sub-menu a{
        background:transparent;

        box-shadow:none;

        border-radius:0;

        color:#444;

        padding:14px 40px;

        font-size:14px;
    }

    .sub-menu a:hover{
        background:#efefef;

        color:#222;

        transform:none;
    }

    /* ARROW */
    .menu-item-has-children > a::before{
        right:20px;
    }

    .nav-contact{
        display:none;
    }
}

/* ═════════════════════════════════════════════
   MOBILE
═════════════════════════════════════════════ */
@media (max-width:640px){

    header{
        padding:12px 16px;
    }

    header.scrolled{
        padding:10px 16px;
    }

    .logo img{
        height:52px;
    }

    .menu-bar{
        max-height:calc(100vh - 80px);
        overflow-y:auto;
    }

    .nav a{
        font-size:15px;
        padding:15px 18px;
    }

    .sub-menu a{
        padding:12px 32px;
    }
}

/* ═════════════════════════════════════════════
   SMALL MOBILE
═════════════════════════════════════════════ */
@media (max-width:400px){

    .logo img{
        height:46px;
    }

    .hamburger{
        width:30px;
        height:22px;
    }

    .nav a{
        font-size:14px;
    }
}