/* ── Google Font ── */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'nexa', sans-serif;
}

/* ── Sticky Wrapper ── */
.navbar__wrapper {
    position: fixed;
    top: 10px;
    left: 0;
    right: 0;
    z-index: 999;
    padding: 0 20px;
}

/* ── Navbar Container ── */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #ffffff;
    border: 1.5px solid #e0e0e0;
    height: 70px;
    width: 100%;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border-radius: 4px;
    position: relative;
    padding: 0 0 0 0;
}

/* ── Logo ── */
.navbar__logo {
    padding-left: 20px;
    flex-shrink: 0;
}

.navbar__logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.navbar__logo img {
    height: 48px;
    width: auto;
    object-fit: contain;
}

/* ── Nav Links ── */
.navbar__links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 36px;
    margin: 0 auto;
}

.navbar__links li a {
    text-decoration: none;
    color: #1a2d5a;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.navbar__links li a:hover {
    color: #1a8cff;
}

/* ── Dropdown ── */
.dropdown {
    position: relative;
    padding-bottom: 10px;
    margin-bottom: -10px;
}

.dropdown__toggle {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.dropdown__chevron {
    font-size: 18px;
    transition: transform 0.25s ease;
    line-height: 1;
}

.dropdown__menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    list-style: none;
    min-width: 220px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    overflow: hidden;
    padding-top: 10px;
    margin-top: 0;
}

/* Bridge gap between toggle and menu */
.dropdown__menu::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 10px;
}

.dropdown__menu li a {
    display: block;
    padding: 11px 20px;
    color: #1a2d5a;
    font-size: 14px;
    font-weight: 400;
    transition: background 0.2s ease, color 0.2s ease;
}

.dropdown__menu li a:hover {
    background-color: #1a8cff;
    color: #ffffff;
}

.dropdown:hover .dropdown__menu {
    display: block;
}

.dropdown:hover .dropdown__chevron {
    transform: rotate(180deg);
}

.dropdown--closed .dropdown__menu {
    display: none !important;
}

.dropdown--closed .dropdown__chevron {
    transform: rotate(0deg) !important;
}

/* ── Get A Quote Button ── */
.navbar__cta {
    flex-shrink: 0;
    height: 100%;
    display: flex;
    align-items: center;
}

.btn-quote {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #1a8cff;
    color: #ffffff;
    text-decoration: none;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 0 52px;
    height: 100%;
    text-transform: uppercase;
    white-space: nowrap;
    transition: background-color 0.2s ease;
    border-radius: 0 4px 4px 0;
}

.btn-quote:hover {
    background-color: #0072e0;
}

/* ── Active Link ── */
.navbar__links li a.active {
    color: #1a8cff;
    font-weight: 600;
}

/* ── Hamburger (hidden on desktop) ── */
.navbar__hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 28px;
    color: #1a2d5a;
    padding: 0 16px;
    margin-left: auto;
    line-height: 1;
}

/* ════════════════════════════════
   RESPONSIVE — Tablet (≤ 992px)
════════════════════════════════ */
@media (max-width: 992px) {
    .btn-quote {
        font-size: 15px;
        padding: 0 28px;
    }

    .navbar__links {
        gap: 22px;
    }
}

/* ════════════════════════════════
   RESPONSIVE — Mobile (≤ 768px)
════════════════════════════════ */
@media (max-width: 768px) {
    .navbar {
        flex-wrap: wrap;
        height: auto;
        padding: 12px 0;
        align-items: center;
    }

    /* Show hamburger */
    .navbar__hamburger {
        display: flex;
        align-items: center;
        order: 2;
    }

    /* Hide CTA on mobile, show inside menu */
    .navbar__cta {
        display: none;
    }

    /* Nav links become vertical drawer */
    .navbar__links {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        width: 100%;
        order: 3;
        background: #ffffff;
        border-top: 1px solid #e0e0e0;
        padding: 10px 0;
        margin: 0;
    }

    .navbar__links--open {
        display: flex;
    }

    .navbar__links li {
        width: 100%;
    }

    .navbar__links li a {
        display: block;
        padding: 12px 24px;
        font-size: 15px;
        border-bottom: 1px solid #f0f0f0;
    }

    /* Mobile dropdown */
    .dropdown__menu {
        position: static;
        transform: none;
        box-shadow: none;
        border: none;
        border-radius: 0;
        background: #f7f9fc;
        min-width: 100%;
    }

    .dropdown:hover .dropdown__menu,
    .dropdown__menu {
        display: block;
    }

    .dropdown__chevron {
        display: none;
    }
}
