@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;700&display=swap');
@import url(./typography.css);

:root {
    --padding-container: 0 80px;
}

html {
    scroll-behavior: smooth;

}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* Nav */

.nav {
    position: fixed;
    height: 100px;
    width: 100%;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    background: #353535;
    --padding-container: 0 32px;
    visibility: visible;
    transition: all 0.5s;
    opacity: 1;
    z-index: 9999;
    max-width: 1920px;
    margin: 0 auto;
}

.nav--main {
    background: rgba(5, 5, 5, 0.5);
    z-index: 1;
}

.nav__logo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav__picture {
    width: 100%;
    width: 100px;
    height: 65px;
}

.nav__list {
    margin: 0 auto;
    height: 100%;
    display: grid;
    width: 100%;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
}

.nav__items {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.nav__item {
    text-align: center;
    width: fit-content;
    display: flex;
    gap: 10px;
    transform: translateY(25%);
}

.nav__icon {
    max-height: 24px;
    color: #fff;
}

.nav__links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nav__link {
    color: #fff;
    text-decoration: none;
    font-size: var(--body);
    transition: hover .5s;
    cursor: pointer;
}

.nav__underline {
    display: block;
    visibility: hidden;
    border: 1.5px solid #ECB43B;
    background-color: #ECB43B;
    border-radius: 50px;
}

.nav__items:hover .nav__underline {
    visibility: visible;
}

.nav__items:hover .nav__link {
    color: #ECB43B;
}

.nav__items:hover .nav__icon {
    color: #ECB43B;
}

.nav__buttons {
    display: grid;
    height: 100%;
    margin: 0 auto;
    width: 50%;
    grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));
    gap: 16px;
}

.nav__button-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.nav__button-content {
    position: absolute;
    width: 100%;
    max-width: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    top: 50%;
    transform: translateY(-50%);
}

.nav__button-content--right {
    right: 0;
}

.nav__button-content--left {
    left: 0;
}

.nav__call {
    height: fit-content;
    border-radius: 5px;
    padding: 10px 15px;
    border: 3px #ECB43B solid;
    background: rgba(0, 0, 0, 0);
    text-decoration: none;
}

.nav__phone {
    color: #ECB43B;
    font-size: var(--body);
    font-weight: var(--bold);
}

.nav__quote {
    border-radius: 5px;
    padding: 10px 15px;
    margin: 0 auto;
    border: 3px #ECB43B solid;
    background-color: #ECB43B;
    text-decoration: none;
}

.nav__text {
    color: #353535;
    font-size: var(--body);
    font-weight: var(--bold);
}

.nav__hamburger {
    cursor: pointer;
    display: none;
}

.nav__bar {
    width: 32px;
    height: 4px;
    border-radius: 4px;
    background-color: #ECB43B;
    margin-bottom: 6px;
}

/* Mobile */

@media only screen and (max-width: 768px) {
    .nav {
        height: 64px;
        --padding-container: 0 24px;
        position: relative;
        background-color: #353535;
        opacity: 0.8;
    }

    .nav__logo {
        margin: 0 auto;
    }

    .nav__picture {
        width: 72px;
        height: 36px;
    }

    .nav__list {
        width: 0;
        height: 0;
        overflow: hidden;
        display: none;
    }

    .nav__buttons {
        width: 0;
        height: 0;
        overflow: hidden;
        display: none;
    }

    .nav__hamburger {
        display: block;
    }
}