/* =========================================================
   QUADSIGHT HEADER
========================================================= */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;

    width: 100vw;
    z-index: 1000;

    background: transparent;

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    transition:
        background 0.35s ease,
        box-shadow 0.35s ease;
}


/* =========================================================
   SCROLLED HEADER
========================================================= */

.header.scrolled {
    background: var(--onyx) !important;

    box-shadow:
        0 4px 25px rgba(0, 0, 0, 0.18);
}


/* =========================================================
   HEADER NAV
========================================================= */

.header-nav {
    width: 100%;
    max-width: var(--container-width);

    margin: 0 auto;

    padding: 18px 20px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;

    border-bottom: 3.5px solid rgba(23, 23, 23, 0.6);

    transition:
        padding 0.35s ease,
        border-color 0.35s ease;

    position: relative;
}


.header.scrolled .header-nav {
    border-bottom: none;
}


/* =========================================================
   LOGO
========================================================= */

.logo-container {
    width: 280px;
    height: 43px;

    flex: 0 0 280px;
}


.logo-container .logo {
    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: flex-start;
}


.logo-container .logo img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: left center;
}


/* =========================================================
   DESKTOP NAVIGATION
========================================================= */

.nav-container {
    flex: 1;

    display: flex;
    align-items: center;
    justify-content: center;

    min-width: 0;
}


.navlinks {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 36px;

    margin: 0;
    padding: 0;

    list-style: none;
}


.navlinks li {
    list-style: none;
}


.navlinks a {
    position: relative;

    display: inline-block;

    color: var(--white);

    font-size: 12px;
    font-weight: 600;

    letter-spacing: 1.6px;

    text-transform: uppercase;
    text-decoration: none;

    white-space: nowrap;

    transition: color 0.25s ease;
}


.navlinks a::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: -7px;

    width: 0;
    height: 2px;

    background: var(--terracotta);

    transition: width 0.3s ease;
}


.navlinks a:hover {
    color: var(--terracotta);
}


.navlinks a:hover::after {
    width: 100%;
}


/* =========================================================
   DESKTOP CTA
========================================================= */

.nav-button {
    display: flex;
    align-items: center;

    flex: 0 0 auto;
}


.nav-button .btn {
    white-space: nowrap;
}


/* =========================================================
   MOBILE MENU BUTTON
========================================================= */

.menu-toggle {
    display: none;

    width: 44px;
    height: 44px;

    padding: 0;

    border: 1px solid rgba(255, 255, 255, 0.35);

    background: transparent;

    cursor: pointer;

    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    transition:
        border-color 0.3s ease,
        background 0.3s ease;
}


.menu-toggle:hover {
    border-color: var(--terracotta);
}


.menu-toggle svg {
    width: 22px;
    height: 22px;

    display: block;

    fill: none;
    stroke: var(--white);

    color: var(--white);
}


/* =========================================================
   MOBILE SIDE MENU
========================================================= */

.mobile-menu {
    position: fixed;

    top: 0;
    right: 0;

    width: min(400px, 88vw);
    height: 100dvh;

    background: var(--onyx);

    z-index: 1002;

    transform: translateX(100%);

    visibility: hidden;

    overflow-y: auto;
    overflow-x: hidden;

    box-shadow:
        10px 0 40px rgba(0, 0, 0, 0.25);

    transition:
        transform 0.5s cubic-bezier(0.77, 0, 0.175, 1),
        visibility 0s linear 0.5s;
}


.mobile-menu.is-open {
    transform: translateX(0);

    visibility: visible;

    transition:
        transform 0.5s cubic-bezier(0.77, 0, 0.175, 1),
        visibility 0s linear 0s;
}


/* =========================================================
   MOBILE OVERLAY
========================================================= */

.menu-overlay {
    position: fixed;

    inset: 0;

    z-index: 1001;

    background: rgba(0, 0, 0, 0.6);

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    transition:
        opacity 0.4s ease,
        visibility 0.4s ease;
}


.menu-overlay.is-open {
    opacity: 1;

    visibility: visible;

    pointer-events: auto;
}


/* =========================================================
   MOBILE MENU HEADER
========================================================= */

.mobile-menu-header {
    height: 90px;

    padding: 20px 25px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-bottom:
        1px solid rgba(255, 255, 255, 0.12);
}


.mobile-menu-label {
    font-family: var(--tertiary);

    font-size: 11px;

    letter-spacing: 2px;

    text-transform: uppercase;

    color: var(--terracotta);
}


/* =========================================================
   CLOSE BUTTON
========================================================= */

.menu-close {
    position: relative;

    width: 40px;
    height: 40px;

    padding: 0;

    border:
        1px solid rgba(255, 255, 255, 0.25);

    background: transparent;

    cursor: pointer;
}


.menu-close span {
    position: absolute;

    left: 10px;
    top: 19px;

    width: 18px;
    height: 1.5px;

    background: var(--white);

    transition:
        background 0.3s ease;
}


.menu-close span:first-child {
    transform: rotate(45deg);
}


.menu-close span:last-child {
    transform: rotate(-45deg);
}


.menu-close:hover span {
    background: var(--terracotta);
}


/* =========================================================
   MOBILE CONTENT
========================================================= */

.mobile-menu-content {
    min-height:
        calc(100dvh - 90px);

    display: flex;

    flex-direction: column;

    justify-content: space-between;

    padding: 30px 25px;
}


/* =========================================================
   MOBILE LINKS
========================================================= */

.mobile-navlinks {
    margin: 0;
    padding: 0;

    list-style: none;
}


.mobile-navlinks li {
    border-bottom:
        1px solid rgba(255, 255, 255, 0.12);
}


.mobile-navlinks a {
    min-height: 72px;

    display: flex;
    align-items: center;

    gap: 20px;

    color: var(--white);

    font-family: var(--secondary);

    font-size: 25px;
    font-weight: 500;

    text-transform: uppercase;

    text-decoration: none;

    transition:
        color 0.3s ease,
        padding-left 0.3s ease;
}


.mobile-navlinks a:hover {
    color: var(--terracotta);

    padding-left: 8px;
}


.mobile-number {
    width: 30px;

    flex-shrink: 0;

    font-family: var(--tertiary);

    font-size: 10px;

    letter-spacing: 1px;

    color:
        rgba(255, 255, 255, 0.35);
}


/* =========================================================
   MOBILE FOOTER
========================================================= */

.mobile-menu-footer {
    padding-top: 30px;
}


.mobile-talk-button {
    width: 100%;

    min-height: 50px;

    display: flex;
    align-items: center;
    justify-content: center;
}


/* =========================================================
   BODY LOCK
========================================================= */

body.menu-open {
    overflow: hidden;
}


/* =========================================================
   TABLET / MOBILE
========================================================= */

@media (max-width: 768px) {

    .header {
        width: 100vw;
    }


    /* -----------------------------------------
       MOBILE HEADER
    ----------------------------------------- */

    .header-nav {

        width: 100%;
        max-width: 100%;

        margin: 0;

        padding: 14px 18px;

        gap: 12px;

        border-bottom:
            1px solid rgba(255, 255, 255, 0.25);

        overflow: hidden;
    }


    /* -----------------------------------------
       MOBILE LOGO
    ----------------------------------------- */

    .logo-container {

        width: 200px;
        height: 60px;

        flex: 0 1 auto;

        min-width: 0;
    }


    .logo-container .logo {
        width: 100%;
        height: 100%;
    }


    .logo-container .logo img {

        width: 100%;
        height: 100%;

        object-fit: cover;
        object-position: left center;

        margin-left:-35px;
    }


    /* -----------------------------------------
       HIDE DESKTOP NAV
    ----------------------------------------- */

    .nav-container,
    .nav-button {
        display: none;
    }


    /* -----------------------------------------
       SHOW MOBILE MENU BUTTON
    ----------------------------------------- */

    .menu-toggle {

        display: flex;
        width: 42px;
        height: 42px;

        flex: 0 0 42px;
    }
}