/* ===== NAVIGATION ===== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    color: white;
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    background-color: rgba(36, 37, 42, 0.95);
    backdrop-filter: blur(8px);
    height: 7vh;
    min-height: 48px;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.logo {
    width: 4vh;
    min-width: 28px;
}

img {
    align-items: center;
}

/* ===== DESKTOP NAV ===== */
.nav__links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav__links li {
    padding: 0 0.5rem;
    font-size: clamp(0.8rem, 1.5vw, 1rem);
}

.nav__links a,
.overlay__content a {
    font-family: "Montserrat", 'Segoe UI', sans-serif;
    font-weight: 500;
    color: #edf0f1;
    text-decoration: none;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}

.nav__links li a:hover {
    color: #0088a9;
    background: rgba(0,136,169,0.1);
}

.nav__links a.active {
    color: #0088a9;
    font-weight: 700;
}

/* ===== DROPDOWN ===== */
.nav__links .dropdown {
    position: relative;
    display: inline-block;
}

.nav__links .dropdown .dropbtn {
    background-color: transparent;
    color: #edf0f1;
    border: none;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    font-size: clamp(0.8rem, 1.5vw, 1rem);
    font-family: 'Montserrat', 'Segoe UI', sans-serif;
    font-weight: 500;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}

.nav__links .dropdown .dropbtn:hover {
    color: #0088a9;
    background: rgba(0,136,169,0.1);
}

.nav__links .dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    background-color: #1e1f24;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    z-index: 1000;
    white-space: nowrap;
    overflow: hidden;
    min-width: 160px;
}

.nav__links .dropdown:hover .dropdown-content {
    display: block;
}

.nav__links .dropdown-content a {
    color: #edf0f1;
    padding: 0.6rem 1rem;
    display: block;
    border-radius: 0;
    font-size: 0.9rem;
}

.nav__links .dropdown-content a:hover {
    background: rgba(0,136,169,0.15);
    color: #0088a9;
}

.dropdown-content img {
    max-width: 60px;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* ===== MOBILE MENU BUTTON ===== */
.menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: background 0.2s;
    font-size: 1.5rem;
    line-height: 1;
    color: #edf0f1;
}

.menu:hover {
    background: rgba(255,255,255,0.1);
}

.cta {
    display: none;
}

/* ===== MOBILE OVERLAY ===== */
.overlay {
    height: 100vh;
    width: 0;
    position: fixed;
    z-index: 500;
    left: 0;
    top: 0;
    background-color: #1a1b20;
    overflow-x: hidden;
    overflow-y: auto;
    transition: width 0.3s ease;
}

.overlay--active {
    width: min(320px, 85vw);
    box-shadow: 4px 0 24px rgba(0,0,0,0.5);
}

.overlay__content {
    display: flex;
    flex-direction: column;
    padding: 5rem 2rem 2rem;
}

.overlay__content a {
    padding: 0.75rem 0;
    font-size: 1.2rem;
    display: block;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    transition: color 0.2s, padding-left 0.2s;
}

.overlay__content a:hover {
    color: #0088a9;
    padding-left: 0.5rem;
}

.overlay .close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    color: #edf0f1;
    cursor: pointer;
    background: none;
    border: none;
    line-height: 1;
    padding: 0.5rem;
    border-radius: 8px;
    transition: background 0.2s;
}

.overlay .close:hover {
    background: rgba(255,255,255,0.1);
}

.overlay .dropdown-content {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

.overlay .dropdown-content a {
    border-bottom: none;
    padding: 0.25rem;
}

.overlay .dropdown-content img {
    max-width: 44px;
}

/* ===== MOBILE BREAKPOINT ===== */
@media screen and (max-width: 750px) {
    .nav__links,
    .cta {
        display: none;
    }

    .menu {
        display: block;
    }
}
