.main-nav {
    position: fixed;
    background: #1A1D24;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    z-index: 200;
    padding: 0 1.5rem;
    box-sizing: border-box;
    border-bottom: 1px solid rgba(148, 163, 184, 0.5);
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.8rem;
    order: 1;
}

#logo { display: block; height: 32px; width: auto; }
#logo-txt { display: block; height: 1rem; width: auto; border-radius: 0;}

.menu-checkbox { display: none; }

.hamburger-btn {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    cursor: pointer;
    z-index: 350;
    order: 2;
}

.hamburger-btn span {
    display: block; width: 100%; height: 2px;
    background-color: #94A3B8;
    transition: transform 0.3s, opacity 0.3s;
}
 
.nav-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background-color: #1A1D24;
    z-index: 250;
    box-sizing: border-box;
    transition: left 0.4s cubic-bezier(0.1, 0.9, 0.2, 1);
    display: flex;
    justify-content: center;
    align-items: top;
}

.menu-checkbox:checked ~ .nav-menu {
    left: 0;
}

.menu-checkbox:checked ~ .logo-container {
    position: fixed;
    top: 5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 300;
    display: flex;
    flex-direction: column !important;
    gap: 1.2rem;
    max-height: none;
}

.menu-checkbox:checked ~ .logo-container #logo { width: 100%; max-width: 60px; height: auto; }
.menu-checkbox:checked ~ .logo-container #logo-txt {  max-width: 140px; height: auto; width: 100%; }

.menu-checkbox:checked + .hamburger-btn {
    position: fixed;
    top: 1.2rem;
    right: 1.5rem;
    z-index: 350;
}

.menu-checkbox:checked + .hamburger-btn span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-checkbox:checked + .hamburger-btn span:nth-child(2) { opacity: 0; }
.menu-checkbox:checked + .hamburger-btn span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.main-content { margin-left: 0; width: 100%; padding: 6rem 1.5rem 1.5rem 1.5rem; }

.nav-menu ul {
    margin-top: 18rem;
    text-align: center;
    width: 100%;
}

.nav-contact {
    position: fixed;
    bottom: 3rem;
    left: -100%;
    width: 100%;
    z-index: 260;
    display: flex;
    justify-content: left;
    padding-left: 5rem;
    transition: left 0.4s cubic-bezier(0.1, 0.9, 0.2, 1);
    padding-top: 2rem;
}

.nav-contact::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, rgba(254, 190, 51, 1), rgba(254, 190, 51, 0));
}

.contact-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: #94a3b8;
    font-size: 0.8rem;
    line-height: 1.5;
    padding-left: 2rem;
    background-repeat: no-repeat;
    background-position: left center;
    background-size: 1.5rem 1.5rem;
    margin-bottom: 0.6rem;
}

.phone-link {
    background-image: url("../img/icon-phone.svg");
}

.email-link {
    background-image: url("../img/icon-email.svg");
}

.location-link {
    background-image: url("../img/icon-location.svg");
}


.menu-checkbox:checked ~ .nav-contact {
    left: 0;
}

@media (min-width: 768px) {
    
    .main-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 30%;
        max-width: 480px;
        height: 100vh;
        z-index: 100;
        border-bottom: none;
        padding: 2rem 2rem;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
    }

    .hamburger-btn {
        display: none;
    }

    .logo-container {
        order: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        margin-bottom: 2.2rem;
    } 

    #logo {
        max-width: 50px;
        width: 100%;
        height: auto;
        margin-bottom: 0.8rem;
    }

    #logo-txt {
        height: 100%;
        max-height: 1rem;
        width: auto;
    }

   .nav-menu {
    order: 2;
        position: static;
        width: 100%;
        height: auto;
        background-color: transparent;
        display: block;
    }

    .nav-menu ul { text-align: left; margin-top: 0; }

    .nav-contact {
        order: 3;
        position: static;
        width: 100%;
        height: auto;
        background-color: transparent;
        display: block;
        margin-top: auto;
        padding-top: 2rem;
        padding-left: 0;
    }

    .nav-contact::before {
         display: none !important;
    }

   /* .main-nav::before {
        content: "";
        position: absolute;
        bottom: 10rem; 
        left: 0;
        width: 100%;
        height: 1px;
        background: linear-gradient(to right, rgba(254, 190, 51, 1), rgba(254, 190, 51, 0)) !important;
        z-index: 105;
        pointer-events: none;
    }*/

    .nav-menu ul {
    margin-top: 0;
    text-align: left;
}

    .main-nav::after {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        width: 1px;
        background: linear-gradient(to bottom, rgba(148, 163, 184, 1), rgba(148, 163, 184, 0));
    }

    .main-content {
        margin-left: 30%;
        width: 70%;
        max-width: 1400px;
        padding: 3rem;
    }
}

@media (min-width: 1600px) {
    .main-content { margin-left: 480px; width: calc(100% - 480px); }
}

