@import url("../abstract/variables.css");

.navbar {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    background: var(--dark);
    box-shadow: var(--shadow);
}

.nav-container {
    width: min(1200px, 92%);
    margin: auto;
    height: 82px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    width: 170px;
    height: auto;
    transition: .3s;
}

.logo:hover img {
    transform: scale(1.05);
}

#nav-menu {
    display: flex;
    align-items: center;
    gap: 35px;
    list-style: none;
    margin: 0;
    padding: 0;
}

#nav-menu li {
    list-style: none;
    margin: 10px;
}

#nav-menu a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    text-decoration: none;
    transition: .3s;
    font-weight: 500;
}

#nav-menu a:hover {
    color: var(--primary);
}

#nav-menu ion-icon {
    font-size: 18px;
}

.quote-btn {
    background: var(--primary);
    color: white !important;
    padding: 12px 24px;
    border-radius: 10px;
}

.quote-btn:hover {
    background: var(--primary-hover);
}

.menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 34px;
}

@media(max-width:900px) {

    .menu-btn {
        display: block;
    }

    .logo img {
        width: 140px;
    }

    #nav-menu {
        position: absolute;
        top: 82px;
        left: 0;
        width: 100%;
        background: var(--dark);
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0;
        overflow: hidden;
        max-height: 0;
        transition: max-height .35s ease;
    }

    #nav-menu.show {
        max-height: 600px;
    }

    #nav-menu li {
        width: 100%;
    }

    #nav-menu a {
        justify-content: center;
        width: 100%;
        padding: 18px;
    }

    .quote-btn {
        width: 220px;
        margin: 20px auto;
        justify-content: center;
    }
}

@media(max-width:600px) {

    .nav-container {
        height: 72px;
    }

    #nav-menu {
        top: 72px;
    }

    .logo img {
        width: 120px;
    }
}