/* ==========================================================================
   NAVBAR — Sticky top navigation, dropdowns, hamburger, responsive
   ========================================================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: var(--primary);
    z-index: 1000;
    transition: background .4s, box-shadow .4s, border .4s;
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.navbar.scrolled {
    background: rgba(10, 22, 40, .97);
    box-shadow: 0 4px 30px rgba(0,0,0,.2);
    backdrop-filter: blur(10px);
}
.nav-container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
}
.nav-logo .logo-icon { font-size: 1.6rem; color: var(--accent); }
.nav-logo strong { color: var(--accent); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
}
.nav-links > li > a {
    color: rgba(255,255,255,.85);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: .9rem;
    font-weight: 500;
    transition: all var(--transition);
}
.nav-links > li > a:hover,
.nav-links > li > a.active {
    color: #fff;
    background: rgba(255,255,255,.1);
}

/* Dropdown */
.dropdown { position: relative; }
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 220px;
    border-radius: var(--radius-sm);
    box-shadow: 0 10px 40px rgba(0,0,0,.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all .25s;
    padding: 8px 0;
    z-index: 100;
}
.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown-menu li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    color: var(--text);
    font-size: .88rem;
    transition: background .2s;
}
.dropdown-menu li a:hover {
    background: var(--bg-alt);
    color: var(--accent);
}
.dropdown-menu li a i { width: 20px; text-align: center; color: var(--accent); }

/* Login & CTA */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}
.login-btn {
    background: transparent;
    border: 1.5px solid rgba(255,255,255,.4);
    color: #fff;
    padding: 7px 18px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: .85rem;
    font-weight: 600;
    transition: all var(--transition);
}
.login-btn:hover {
    background: rgba(255,255,255,.15);
    border-color: #fff;
}
.nav-cta {
    background: var(--accent);
    color: #fff;
    padding: 8px 20px;
    border-radius: var(--radius-sm);
    font-size: .85rem;
    font-weight: 600;
    transition: all var(--transition);
}
.nav-cta:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.hamburger span {
    width: 26px;
    height: 2.5px;
    background: #fff;
    border-radius: 2px;
    transition: all .3s;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 90px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: #25d366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 4px 20px rgba(37,211,102,.4);
    z-index: 999;
    transition: transform .3s;
}
.whatsapp-float:hover { transform: scale(1.1); }

/* --- Responsive --- */
@media (max-width: 900px) {
    .hamburger { display: flex; }
    .nav-links {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        background: var(--primary);
        flex-direction: column;
        padding: 20px;
        gap: 0;
        transform: translateY(-120%);
        transition: transform .35s;
    }
    .nav-links.active { transform: translateY(0); }
    .nav-links > li > a { padding: 14px 20px; width: 100%; }
    .dropdown-menu {
        position: static;
        box-shadow: none;
        background: rgba(255,255,255,.05);
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
    }
    .dropdown.open .dropdown-menu { display: block; }
    .dropdown-menu li a { color: rgba(255,255,255,.8); }
    .dropdown-menu li a:hover { background: rgba(255,255,255,.1); color: #fff; }
    .nav-actions { display: none; }
}
