/* ============================================
   Apex Guard Solution - Shared Navbar & Topbar Styles
   ============================================ */

/* ---------- Top Bar ---------- */
.ads-topbar {
    background-color: #082f49;
    color: #e0f2fe;
    font-size: 0.78rem;
    font-family: 'Inter', sans-serif;
    z-index: 9999;
    position: relative;
}

.ads-topbar-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 38px;
}

.ads-topbar-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ads-topbar-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: #bae6fd;
}

.ads-topbar-item i {
    color: #38bdf8;
    font-size: 0.7rem;
}

.ads-topbar-item a {
    color: #f0f9ff;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.15s;
}

.ads-topbar-item a:hover {
    color: #38bdf8;
}

.ads-topbar-divider {
    color: #334e68;
    margin: 0 0.25rem;
}

.ads-topbar-right {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.ads-topbar-right a {
    color: #bae6fd;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s;
    white-space: nowrap;
}

.ads-topbar-right a:hover {
    color: #38bdf8;
}

/* ---------- Main Navbar ---------- */
.ads-navbar {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 0;
    z-index: 9998;
    font-family: 'Inter', sans-serif;
}

.ads-navbar-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    height: 68px;
    gap: 1rem;
}

/* Logo */
.ads-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    flex-shrink: 0;
    margin-right: 1.5rem;
}

.ads-logo-icon {
    width: 40px;
    height: 40px;
    background: #0284c7;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.15rem;
    box-shadow: 0 0 12px rgba(2, 132, 199, 0.35);
    transition: background 0.2s;
}

.ads-logo:hover .ads-logo-icon {
    background: #0ea5e9;
}

.ads-logo-text {
    font-weight: 800;
    font-size: 1.3rem;
    color: #082f49;
    letter-spacing: -0.03em;
}

.ads-logo-text span {
    color: #0284c7;
}

/* Nav Links list */
.ads-nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
    flex: 1;
}

.ads-nav-item {
    position: relative;
}

.ads-nav-link {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0 0.9rem;
    height: 68px;
    line-height: 68px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.15s;
}

.ads-nav-link:hover,
.ads-nav-item:hover>.ads-nav-link {
    color: #0284c7;
}

.ads-chevron {
    font-size: 0.6rem;
    transition: transform 0.2s;
}

.ads-nav-item:hover>.ads-nav-link .ads-chevron {
    transform: rotate(180deg);
}

/* Dropdown */
.ads-dropdown {
    position: absolute;
    top: calc(100% + 0px);
    left: 0;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 12px 32px -4px rgba(0, 0, 0, 0.12);
    min-width: 220px;
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: all 0.18s ease;
    z-index: 10000;
}

.ads-nav-item:hover .ads-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.ads-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 0.85rem;
    font-size: 0.84rem;
    font-weight: 500;
    color: #374151;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.12s, color 0.12s;
}

.ads-dropdown-item i {
    color: #0284c7;
    width: 16px;
    text-align: center;
    font-size: 0.8rem;
}

.ads-dropdown-item:hover {
    background: #f0f9ff;
    color: #0284c7;
}

/* CTA Button */
.ads-cta-btn {
    margin-left: auto;
    flex-shrink: 0;
    background: #0284c7;
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.6rem 1.3rem;
    border-radius: 50px;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 0 12px rgba(2, 132, 199, 0.35);
    transition: background 0.2s, transform 0.15s, box-shadow 0.15s;
}

.ads-cta-btn:hover {
    background: #0ea5e9;
    transform: translateY(-1px);
    box-shadow: 0 4px 18px rgba(14, 165, 233, 0.45);
}

/* Hamburger */
.ads-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    margin-left: 0.5rem;
}

.ads-hamburger span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: #082f49;
    border-radius: 2px;
    transition: all 0.25s;
}

/* Mobile menu open state */
.ads-hamburger.is-open span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

.ads-hamburger.is-open span:nth-child(2) {
    opacity: 0;
}

.ads-hamburger.is-open span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .ads-nav-links {
        display: none;
    }

    .ads-cta-btn {
        display: none;
    }

    .ads-hamburger {
        display: flex;
        margin-left: auto;
    }

    .ads-topbar-right {
        display: none;
    }

    /* Mobile menu panel */
    .ads-nav-links.ads-mobile-open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        border-top: 2px solid #e2e8f0;
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
        padding: 1rem 1.5rem 1.5rem;
        gap: 0;
        z-index: 9997;
        max-height: 80vh;
        overflow-y: auto;
    }

    .ads-nav-links.ads-mobile-open .ads-nav-link {
        height: auto;
        line-height: normal;
        padding: 0.75rem 0;
        border-bottom: 1px solid #f1f5f9;
        font-size: 0.95rem;
    }

    .ads-nav-links.ads-mobile-open .ads-dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        border-radius: 0;
        padding: 0 0 0 1rem;
        background: transparent;
    }

    .ads-nav-links.ads-mobile-open .ads-nav-item:hover .ads-dropdown {
        display: flex;
        flex-direction: column;
    }

    .ads-nav-links.ads-mobile-open li {
        width: 100%;
    }
}