/*----------------------------------DESKTOP HEADER: STANDARD--------------------------------*/

header {
    color: white;
    position: absolute;
    z-index: 2;
    height: 100px;
    width: 100%;
    display: flex;
    justify-content: space-between;
}

.header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: clamp(12px, 2vw, 32px);
}

nav {
    color: var(--off-white);
    text-transform: uppercase;
    font-style: italic;
}

nav ul {
    gap: 1.5rem;
    display: flex;
    margin: 0;
}

nav a {
    text-decoration: none;
    font-weight: normal;
    font-size: var(--medium-font-size);
	letter-spacing: var(--heading-spacing);
}

nav a:hover {
    text-decoration: underline;
}

.nav-left {
    justify-self: start;
}

.nav-right {
    justify-self: end;
}

.logo svg {
    width: 90px;
    height: auto;
    color: var(--off-white);
}

.align-right{
    justify-content: end;
}

/*----------------------------------DESKTOP HEADER: HOME--------------------------------*/

.home .header-inner {
    display: flex;
}

.home header .logo {
    display: none;
}

/*----------------------------------DESKTOP HEADER: ALTERNATE--------------------------------*/

.header-border {
    height: 100px;
    border-bottom: 1px solid #B8B8B8;
}

body:has(.privacy-policy) .logo svg,
body:has(.privacy-policy) .open-nav-btn svg,
body:has(.privacy-policy) .nav-right,
body:has(.privacy-policy) .nav-left,
body:has(.privacy-policy) header .btn {
    color: var(--navy);
}

body:has(.privacy-policy) header .btn {
    border: solid 1px var(--navy);
}

/*----------------------------------MOBILE HEADER--------------------------------*/

.open-nav-btn {
    display: none;
    padding: 0;
    width: 30px;
}

.open-nav-btn svg {
    color: var(--off-white);
}

.close-nav-btn {
    padding: 0;
    display: flex;
    justify-content: center;
}

.mobile-cta {
    display: none;
}

/*----------------------------------MOBILE NAV--------------------------------*/

.mobile-nav {
    position: fixed;
    top: 100%;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--sea);
    color: var(--off-white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3rem;
    padding: 2rem;
    transition: top 0.3s ease-in-out;
    z-index: 3;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

body.navOpen {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

.mobile-nav.open {
    top: 0;
    display: flex;
}

.mobile-nav .top-section {
    align-items: center;
    gap: 3rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mobile-nav .custom-logo {
    width: 130px;
    height: auto;
}

.mobile-nav .illustration {
    width: 130px;
    height: auto;
}

.mobile-nav .links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.mobile-nav .instagram svg {
    color: var(--off-white);
    width: 25px;
    height: auto;
}

.mobile-nav .divider {
    width: 100%;
    height: 1px;
    background-color: var(--off-white);
    margin-bottom: 25px;
}

.mobile-nav .bottom-section {
    width: 100%;
    padding-bottom: calc(24px + env(safe-area-inset-bottom, 0));
    margin-top: auto;
}

.mobile-nav .address{
    text-align: center;
    text-transform: none;

}

@supports (height: 100svh) {
    .mobile-nav.open {
        height: 100svh;
    }
}

@supports (height: 100dvh) {
    .mobile-nav.open {
        height: 100dvh;
    }
}

/*----------------------------------RESPONSIVENESS--------------------------------*/


@media (max-width: 913px) {

    .header-inner {
        display: flex;
    }

    header .logo,
    .nav-left,
    .nav-right {
        display: none;
    }

    .mobile-cta,
    .open-nav-btn {
        display: block;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
    }
}