/* --- HEADER & NAV --- */
.top-bar {
    background: var(--sn-navy);
    color: white;
    padding: 10px 0;
    font-size: 13px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar .container {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
}

.top-bar a {
    opacity: 0.8;
}

.top-bar a:hover {
    opacity: 1;
    color: var(--sn-blue);
}

.top-bar i {
    margin-right: 5px;
    color: var(--sn-blue);
}

nav {
    background: var(--white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 999;
    padding: 15px 0;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: var(--sn-navy);
    letter-spacing: -1px;
    display: flex;
    align-items: center;
}

.logo i {
    color: var(--sn-blue);
    margin-right: 10px;
    font-size: 24px;
}

.logo span {
    color: var(--sn-blue);
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    font-size: 15px;
    color: var(--sn-navy);
    text-transform: uppercase;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--sn-blue);
}

.nav-btn {
    padding: 8px 20px;
}

.mobile-menu-btn {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--sn-navy);
}

/* Responsive Styles for Header */

/* Tablet and smaller laptops */
@media (max-width: 1024px) {
    .nav-links {
        gap: 20px;
    }

    .nav-links a {
        font-size: 14px;
    }
}

/* Mobile and tablet portrait - Switch to hamburger menu earlier */
@media (max-width: 992px) {
    .top-bar {
        display: none;
    }

    nav {
        padding: 12px 0;
    }

    .logo {
        font-size: 24px;
    }

    .logo i {
        font-size: 20px;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        padding: 20px;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
        gap: 0;
        animation: slideDown 0.3s ease-out;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        padding: 15px 20px;
        width: 100%;
        text-align: left;
        border-bottom: 1px solid #f0f0f0;
        transition: all 0.2s ease;
    }

    .nav-links a:hover {
        background: #f8f9fa;
        padding-left: 25px;
    }

    .mobile-menu-btn {
        display: block;
        transition: transform 0.3s ease;
    }

    .mobile-menu-btn:active {
        transform: scale(0.9);
    }

    .nav-links .nav-btn {
        margin-top: 10px;
        text-align: center;
        color: white;
        width: auto;
        border: none;
    }

    .nav-links .nav-btn:hover {
        background: var(--sn-navy);
        padding-left: 20px;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fix for button text color on desktop due to specificity */
.nav-links .nav-btn {
    color: var(--white);
}