/* Nav CSS */

#nav {
    display: grid;
    grid-template-columns: auto;
    background-color: #e4e0dd;
    padding: 20px 0;
    grid-gap: 20px;
    z-index: 4;
    width: 100%;
}

@media(min-width: 1200px) {
    #nav {
        display: grid;
        /*grid-template-columns: max-content auto max-content;*/
        padding: 8px 32px;
        width: calc(100% - 64px);
    }
}

/* - */

#nav-logo {
    display: grid;
    align-self: center;
    justify-self: center;
}

@media(min-width: 768px) {
    #nav-logo {
        justify-self: start;
        grid-row: 1;
        grid-column: 1;
        z-index: 2;
    }
}

/* - */

#nav-logo a {
    display: grid;
}

#nav-logo a img {
    max-height: 140px;
    justify-self: center;
    margin: 8px 0;
}

@media(max-width: 600px) {
    #nav-logo a img {
        justify-self: center;
        max-width: 320px;
    }

}

/* - */

.nav-link-outer {
    display: grid;
    align-self: center;
    justify-self: center;
    grid-gap: 16px;
    width: 90vw;
}

@media(min-width: 1200px) {
    .nav-link-outer {
        justify-self: center;
        grid-row: 1;
        grid-column: 1;
    }
}


@media(min-width:1200px) {
    #nav-burger {
        display: none;
    }
}

#nav-links {
    display: none;
    grid-gap: 8px;
    justify-self: center;
    align-self: center;
    width: 100%;
}

.show-nav {
    display: grid !important;
}


@media(min-width:1200px) {
    #nav-links {
        display: grid;
        justify-content: center;
        grid-gap: 32px;
    }
}


#nav-burger {
    font-size: 32px;
    color: #fff;
    justify-self: center;
}

@media(min-width: 1200px) {
    #nav-burger {
        display: none;
    }
}

/* - */

.page-link {
    display: grid;
    width: calc(100% - 32px);
    background-color: #141414;
    justify-self: center;
    justify-content: center;
    align-content: center;
    text-align: center;
    padding: 16px 0;
    transition: opacity ease .5s;
}

.page-link:hover {
    opacity: 0.8;
}

.page-link p {
    color: #000;
    text-transform: uppercase;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 1px;
}

/* - */

.active-link p {
    color: #000 !important;
    border-bottom: solid 1px #000;
}

@media(min-width:1200px) {
    .page-link {
        grid-row: 1;
        width: max-content;
        padding: 0;
        background: none;
        font-weight: 500;
    }
}

.nav-phone {
    display: grid;
    align-self: center;
    justify-content: center;
    grid-gap: 8px;
}

@media(min-width: 768px) {
    .nav-phone {
        justify-self: end;
        grid-row: 1;
        grid-column: 1;
        z-index: 2;
    }
}

.nav-phone a:hover {
    opacity: 0.4;
}

.nav-social {
    grid-row: 2 !important;
}

@media(min-width: 1200px) {
    .nav-social {
        grid-row: 1 !important;
    }
}

.nav-phone a {
    display: grid;
    grid-template-columns: max-content auto;
    grid-gap: 8px;
    color: #000;
    transition: opacity ease .5s;
    overflow-wrap: anywhere;
}

@media(min-width: 1200px) {
    .nav-phone a {
        display: grid;
        grid-template-columns: max-content auto;
        grid-gap: 8px;
    }

    .firstphone {
        grid-row: 1;
        overflow-wrap: anywhere;
    }

    /* .secondphone {
		grid-row: 2;
        overflow-wrap: anywhere;
	} */
}

.nav-socials {
    display: grid;
    grid-row: 3;
    /* change this to 3 if adding a second phone */
    justify-content: space-evenly;
}




/* - */

.nav-phone h2 {
    color: #000;
    letter-spacing: 2px;
    line-height: 25px;
    font-weight: 200;
    font-size: 16px;

}

.nav-icon {
    display: grid;
    align-self: center;
    font-size: 24px;
}


/* DROPDOWN */

@media(max-width:768px) {
    .page-linkdrop {}
}

.dropdown-outer:hover .dropdown-container {
    display: grid !important;
}

.dropdown-container {
    display: grid;
    background-color: #e4e0dd;
    padding: 16px 0;
    grid-gap: 8px;
    justify-self: center;
}

.dropdown-container p {
    justify-self: center;
}

.dropdown-outer a {
    color: #000;
    text-transform: uppercase;
}

@media(max-width: 1200px) {
    .dropdown-outer {
        display: contents;
        width: calc(100% - 32px);
    }

    .dropdown-container {
        width: calc(100% - 32px);
    }
}


@media(min-width: 768px) {
    .dropdown-outer {
        grid-row: 1;
    }
}

@media(min-width: 1200px) {
    .dropdown-container {
        display: none;
        position: absolute;
        z-index: 4;
        background-color: #e4e0dd;
        padding: 16px;
        grid-gap: 8px;
        box-shadow: 0 2px 10px 0 rgb(0 0 0 / 10%);
    }
}

.caret {
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 2px;
    vertical-align: middle;
    border-top: 4px solid;
    border-right: 4px solid transparent;
    border-left: 4px solid transparent;
    color: #000;
}

.active-link .caret {
    color: #000;
}
