/* ===== HEADER ===== */
header{
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255,255,255,.9);
    backdrop-filter: blur(14px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,.06);
}

/* Logo */
.logo{
    font-size: 26px;
    font-weight: 700;
    color: var(--primary);
}

/* Navigation */
nav{
    display: flex;
    align-items: center;
}

nav a{
    margin-left: 24px;
    text-decoration: none;
    color: var(--secondary);
    font-weight: 500;
    position: relative;
    white-space: nowrap;
}

nav a::after{
    content: "";
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: .3s;
}
nav a:hover::after{
    width: 100%;
}

/* CTA Button */
.cta{
    margin-left: 30px;
    background: linear-gradient(135deg,#2563eb,#1d4ed8);
    color: #fff;
    padding: 12px 22px;
    border-radius: 12px;
    font-weight: 600;
}

/* ===== MOBILE MENU BUTTON ===== */
.menu-toggle{
    display: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--secondary);
}

/* ===== RESPONSIVE ===== */

/* Tablet */
@media (max-width: 992px){
    header{
        padding: 16px 24px;
    }

    nav a{
        margin-left: 18px;
    }
}

/* Mobile */
@media (max-width: 768px){
    header{
        padding: 14px 20px;
    }

    .menu-toggle{
        display: block;
    }

    nav{
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        flex-direction: column;
        align-items: center;
        gap: 18px;
        padding: 25px 0;
        box-shadow: 0 20px 40px rgba(0,0,0,.1);
        display: none;
    }

    nav.active{
        display: flex;
    }

    nav a{
        margin-left: 0;
        font-size: 16px;
    }

    .cta{
        margin-left: 0;
        width: 90%;
        text-align: center;
    }
}
