body {
    margin: 0;
    line-height: inherit;
    background: #222222;
}

body > iframe {
    pointer-events: auto;
}

.body-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --- Keep your base .nav styles, but update layout behaviors --- */
/* --- Core Nav Base (Identical to your original) --- */
.nav {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 70px;
    padding: 0;
    position: sticky;
    top: 0;
    left: 0;
    background: #222222;
    color: #ccc;
    font-size: 16px;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    z-index: 50;
}

.nav-button-wrapper {
    display: flex;
    align-items: center;
    flex-grow: 1;
    height: 100%;
    width: 100%;
}

.nav-left { justify-content: flex-end; }
.nav-right { justify-content: flex-start; }

.nav-button-wrapper>* {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-transform: uppercase;
    cursor: pointer;
    font-family: "Montserrat", sans-serif;
    font-weight: 400;
}

.nav-button-wrapper>*>a {
    all: unset;
    width: 100%;
    height: 100%;
    padding-left: 20px;
    padding-right: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-button-wrapper>*:not(.logo) {
    transition: color 500ms, background 500ms;
}

.nav-button-wrapper>*:not(.logo):hover {
    color: rgb(255, 222, 92);
    background: #1e1e1e;
}

.nav-button-wrapper>.selected {
    color: rgb(219, 197, 107);
}

.nav>.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-left: 20px;
    margin-right: 20px;
    height: 100%;
    text-transform: uppercase;
    cursor: default;
    font-family: "Cormorant Garamond", serif;
    font-weight: bold;
}

/* --- Mobile / Hamburger Layering --- */

/* Hide button by default on desktop */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    position: absolute;
    left: 20px; /* Anchors hamburger to the left side on mobile */
    z-index: 60;
}

.menu-toggle span {
    width: 100%;
    height: 2px;
    background-color: #ccc;
    transition: all 0.3s ease-in-out;
}

/* Hamburger to 'X' Animation */
.menu-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }


/* --- Mobile Responsive Rules (< 600px) --- */
@media (max-width: 599px) {
    .menu-toggle {
        display: flex; /* Show hamburger on mobile */
    }

    /* Stack both wrappers inside an absolute-positioned drop down */
    .nav-button-wrapper.mobile-menu-target {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        height: auto;
        background: #222222;
        flex-direction: column;
        
        /* Smooth slide & fade transition states */
        opacity: 0;
        transform: translateY(-10px);
        pointer-events: none;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    /* Stack order so left links sit above right links in the drawer */
    .nav-left.mobile-menu-target { z-index: 42; }
    .nav-right.mobile-menu-target { 
        z-index: 41;
        top: 180px; /* Offsets right links below left links on mobile */
        box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.3);
    }

    /* Active state triggered by JS */
    .nav-button-wrapper.mobile-menu-target.open {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .nav-button-wrapper>* {
        width: 100%;
        height: 55px; /* Mobile link touch targets */
    }
}

.content {
    flex: 1;
    background: #fff;
    padding: 0;

    display: flex;
    flex-direction: column;
    align-items: center;

    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

.footer {
    background: #222222;
    width: 100%;
    padding: 35px 0;
    position: relative;
    z-index: 50;
}

.footer-inner {
    width: auto;
    margin-left: 30px;
    margin-right: 30px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    color: #ccc;
}

.footer-inner>* {
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;

    margin: 12px;
    padding: 0;
}

.footer-header {
    font-size: 16px;
}

.footer-icons {
    display: flex;
    justify-content: center;
    text-align: center;
}

.footer-icons>*{
    font-size: 24px;
    color: rgb(156 163 175);

    padding: 0 10px;
}

.footer-description {
    font-size: 12px;
    color: rgb(107 114 128);
}

.background-scroll {
    transition-property: background-position;
    transition-duration: 25ms;
}

button {
    touch-action: manipulation;
}

input {
    touch-action: manipulation;
}