:root {
    --nav-height: 88px;
}

nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    z-index: 1000;
    background: rgba(248, 245, 240, 0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-family: "Cormorant Garamond", "Playfair Display", serif;
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--navy);
    text-decoration: none;
    letter-spacing: 0.06em;
}

.logo span {
    color: var(--copper);
    font-style: italic;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--charcoal);
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color 0.3s;
    font-weight: 500;
}

.nav-links a:hover,
.nav-links a.is-active,
.nav-links a[aria-current="page"] {
    color: var(--copper);
}

.nav-cta {
    background: var(--navy) !important;
    color: var(--white) !important;
    padding: 0.75rem 1.75rem !important;
    border-radius: 2px;
}

.nav-cta:hover {
    background: var(--copper) !important;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--charcoal);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--copper);
    outline-offset: 2px;
}

@media (max-width: 992px) {
    nav {
        overflow: visible;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .nav-inner {
        padding: 18px 24px;
        position: relative;
    }

    .menu-toggle {
        display: inline-flex;
        min-height: 44px;
        min-width: 44px;
        align-items: center;
        justify-content: center;
    }

    .nav-links {
        position: absolute;
        top: calc(100% + 1px);
        left: 0;
        right: 0;
        bottom: auto;
        display: none !important;
        flex-direction: column;
        gap: 0;
        background: rgba(248, 245, 240, 0.98);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border-bottom: 1px solid #e8e2d9;
        border-top: 1px solid #e8e2d9;
        padding: 20px 24px calc(24px + env(safe-area-inset-bottom));
        z-index: 1100;
        max-height: calc(100dvh - var(--nav-height));
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        animation: slideDown 0.25s ease;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .nav-links li {
        border-bottom: 1px solid rgba(184, 115, 51, 0.15);
    }

    .nav-links li:last-child {
        border-bottom: 0;
        padding-top: 15px;
        margin-top: 5px;
    }

    .nav-links a {
        display: block;
        padding: 16px 4px;
        min-height: 44px;
        font-size: 0.9rem;
    }

    .nav-cta {
        text-align: center;
        padding: 16px 32px !important;
    }

    nav .nav-links.is-open {
        display: flex !important;
    }
}

@media (max-width: 768px) {
    .logo {
        font-size: 1.75rem;
    }
}
