/* ── Single unified responsive nav ── */

.site-nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-top: 8px;
}

/* Hamburger button — hidden on desktop */
.menu-btn {
    display: none;
    font-size: 16px;
    cursor: pointer;
    background: none;
    border: none;
    color: white;
    font-weight: bolder;
}

/* Arrow indicator — hidden on desktop, visible on mobile */
.nav-arrow {
    display: none;
}

/* Nav — horizontal row on desktop */
.site-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 10px 0;
    margin: 0;
}

.site-nav > a,
.site-nav .dropdown > a {
    text-decoration: none;
    color: rgb(2, 2, 2);
    font-size: 20px;
    font-weight: bolder;
    transition: 0.3s;
    position: relative;
    white-space: nowrap;
}

.site-nav > a::after,
.site-nav .dropdown > a::after {
    content: "";
    position: absolute;
    left: 0;
    top: 28px;
    width: 100%;
    height: 3px;
    background-color: #ffcc00;
    transform: scaleX(0);
    transition: transform 0.2s ease-in-out;
}

.site-nav > a:hover::after,
.site-nav .dropdown > a:hover::after {
    transform: scaleX(1);
}

.site-nav > a:hover {
    transform: translateY(-5px);
    transition: transform 0.3s ease-in-out;
    display: inline-block;
}

/* Products dropdown — desktop hover */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    text-align: center;
    position: absolute;
    background-color: white;
    min-width: 320px;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.2);
    padding: 10px 0;
    z-index: 1000;
    border-radius: 8px;
    border: 1px solid #ddd;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
}

.dropdown-content a {
    color: black;
    padding: 12px 20px;
    text-decoration: none;
    display: flex;
    align-items: center;
    font-size: 16px;
    transition: background 0.3s, padding-left 0.3s !important;
    position: relative;
}

.dropdown-content a::after {
    content: "";
    position: absolute;
    left: 8%;
    bottom: 5px;
    width: 80%;
    height: 3px;
    top: auto;
    background-color: #0037ff;
    transform: scaleX(0);
    transition: transform 0.3s ease-in-out !important;
}

.dropdown-content a:hover {
    background-color: #bed6ee;
    padding-left: 25px;
}

.dropdown-content a:hover::after {
    transform: scaleX(1);
}

.dropdown:hover .dropdown-content {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Mobile styles (max-width: 767px) ── */
@media (max-width: 767px) {

    .site-nav-wrapper {
        background: #334391;
        padding: 10px;
        justify-content: flex-start;
    }

    .menu-btn {
        display: block;
    }

    .nav-arrow {
        display: inline;
    }

    .site-nav {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        position: absolute;
        top: 60px;
        left: 10px;
        background: white;
        width: 220px;
        border-radius: 5px;
        box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
        z-index: 999;
        gap: 0;
        padding: 0;
    }

    .site-nav.show {
        display: flex;
    }

    .site-nav > a {
        display: block;
        color: black;
        font-size: 16px;
        font-weight: bolder;
        padding: 10px;
        border-bottom: 1px solid #ddd;
        width: 100%;
        box-sizing: border-box;
        transform: none !important;
    }

    .site-nav > a::after {
        display: none;
    }

    .site-nav > a:hover {
        background: #f4f4f4;
    }

    .dropdown {
        width: 100%;
        display: block;
    }

    .dropdown > a {
        display: block;
        color: black;
        font-size: 16px;
        font-weight: bolder;
        padding: 10px;
        border-bottom: 1px solid #ddd;
        width: 100%;
        box-sizing: border-box;
        text-decoration: none;
    }

    .dropdown > a::after {
        display: none;
    }

    /* Disable CSS hover on mobile — JS controls visibility via inline style */
    .dropdown:hover .dropdown-content {
        display: none;
        animation: none;
    }

    .dropdown-content {
        position: relative;
        box-shadow: none;
        border: none;
        border-radius: 0;
        min-width: unset;
        width: 100%;
        padding: 0;
    }

    .dropdown-content a {
        padding: 8px 10px;
        font-size: 14px;
        border-bottom: 1px solid #eee;
    }

    .dropdown-content a::after {
        display: none;
    }
}
