:root {
    --color-forest: #12382c;
    --color-forest-dark: #0a1f16;
    --color-gold: #c2a46d;
    --color-sand: #efe6d9;
    --color-cream: #fcfaf6;
    --color-charcoal: #1e1c1a;
    --color-muted: #6c6a66;
    --color-shadow: rgba(0, 0, 0, 0.2);
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Source Sans 3', 'Helvetica Neue', Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    background: var(--color-cream);
    color: var(--color-charcoal);
    font-family: var(--font-body);
    line-height: 1.6;
}

.menu-page {
    background: var(--color-cream);
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    padding: 0.5rem 1rem;
    background: var(--color-gold);
    color: #000;
    z-index: 1000;
}

.skip-link:focus {
    left: 1rem;
    top: 1rem;
}

.menu-hero {
    display: flex;
    justify-content: space-between;
    gap: 3rem;
    padding: 4rem clamp(1.5rem, 6vw, 6rem);
    background: radial-gradient(circle at top, rgba(255, 255, 255, 0.1), rgba(18, 56, 44, 0.6));
    background-size: cover;
    color: var(--color-cream);
    position: relative;
    z-index: 1;
}

.menu-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(0, 0, 0, 0.7), rgba(18, 56, 44, 0.85));
    z-index: 1;
    pointer-events: none;
}

.menu-hero .hero-content,
.menu-hero .hero-left,
.menu-hero .hero-inner,
.menu-hero .hero-right {
    position: relative;
    z-index: 2;
}

.hero-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.85rem;
    color: var(--color-gold);
    margin-bottom: 0.5rem;
}

.menu-hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.8rem);
    margin: 0 0 1rem;
    color: #fff;
}

.hero-copy {
    max-width: 40rem;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
}

.hero-actions,
.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.85rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    font-size: 0.9rem;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.badge--outline {
    background: transparent;
}

.menu-root {
    position: relative;
    margin: -2rem auto 4rem;
    padding: clamp(1.5rem, 5vw, 3rem);
    width: min(1200px, 92vw);
    background: #fff;
    border-radius: 1.5rem;
    box-shadow: 0 20px 50px var(--color-shadow);
    z-index: 5;
}

.menu-toolbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 0.5rem;
    background: #71d37e;
    box-shadow: 0 0 8px rgba(113, 211, 126, 0.7);
}

.menu-placeholder,
.menu-error {
    width: 100%;
    text-align: center;
    padding: 2rem;
    color: var(--color-muted);
    background: var(--color-cream);
    border-radius: 1rem;
}

.menu-error {
    color: #c04e2d;
}

.menu-root.is-loading [data-menu-grid] {
    opacity: 0.5;
}

.table-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--color-cream);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 1rem;
    padding: 0.75rem 1.25rem;
    margin-bottom: 1.5rem;
}

.table-banner strong {
    font-family: var(--font-heading);
}

.table-banner button {
    border: none;
    background: var(--color-forest);
    color: #fff;
    border-radius: 999px;
    padding: 0.4rem 0.9rem;
    cursor: pointer;
}

.order-drawer {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(900px, 100%);
    background: #fff;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
    border-top-left-radius: 1.5rem;
    border-top-right-radius: 1.5rem;
    padding: 1rem 1.5rem;
    z-index: 40;
    display: none;
}

.order-fab {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 60;
    border: none;
    border-radius: 1.25rem;
    padding: 0.85rem 1rem;
    background: var(--color-forest);
    color: #fff;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    display: grid;
    gap: 0.15rem;
    text-align: left;
    min-width: 165px;
}

.order-fab__label {
    font-weight: 700;
}

.order-fab__meta {
    font-size: 0.9rem;
    opacity: 0.9;
}

.cart-list--modal {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.75rem;
    flex: 1;
    min-height: 100%;
    max-height: none;
    overflow: visible;
    color: var(--color-charcoal);
}

.cart-list--modal .cart-empty {
    background: #fff;
    border-radius: 1rem;
    padding: 1.25rem;
    text-align: center;
    color: var(--color-muted);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.nk-modal__sheet--full {
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    transform: none;
    width: 100%;
    max-width: 100%;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    max-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.nk-modal__footer--sticky {
    position: relative;
    background: #fff;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.nk-modal__total {
    margin-right: auto;
    font-size: 1rem;
    color: var(--color-charcoal);
}

.nk-modal__sheet--full .nk-modal__body {
    flex: 1;
    overflow: auto;
    display: flex;
    flex-direction: column;
}

.nk-track {
    gap: 1rem;
}

.nk-track__list {
    display: grid;
    gap: 0.75rem;
}

.nk-track__order {
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 1rem;
    background: #fff;
    padding: 1rem 1rem;
    cursor: pointer;
    text-align: left;
    color: var(--color-charcoal);
}

.nk-track__order strong {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-family: var(--font-heading);
}

.nk-track__order small {
    display: block;
    color: var(--color-muted);
    margin-top: 0.25rem;
}

.nk-track__detail {
    display: grid;
    gap: 0.75rem;
}

.nk-track__card {
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 1rem;
    background: #fff;
    padding: 1rem;
    color: var(--color-charcoal);
}

.nk-track__items {
    list-style: none;
    padding: 0;
    margin: 0.75rem 0 0;
    display: grid;
    gap: 0.6rem;
}

.nk-track__item {
    padding: 0.75rem 0.85rem;
    border-radius: 0.9rem;
    background: var(--color-cream);
    color: var(--color-charcoal);
}

.nk-track__item small {
    color: var(--color-muted);
    display: block;
}

.order-drawer.is-active {
    display: block;
}

.order-drawer.is-disabled {
    opacity: 0.4;
    pointer-events: none;
}

.order-drawer header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.nk-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
}

.nk-modal[hidden] {
    display: none;
}

.nk-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

.nk-modal__sheet {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: min(920px, 100%);
    max-height: 92vh;
    overflow: auto;
    background: #fff;
    border-top-left-radius: 1.5rem;
    border-top-right-radius: 1.5rem;
    padding: 1.25rem 1.5rem 1.5rem;
    box-shadow: 0 -12px 50px rgba(0, 0, 0, 0.25);
}

.nk-modal__close {
    position: absolute;
    right: 1rem;
    top: 0.85rem;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.06);
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
}

.nk-modal__header h2 {
    font-family: var(--font-heading);
    margin: 0;
}

.nk-modal__subtitle {
    margin: 0.35rem 0 0;
    color: var(--color-muted);
}

.nk-modal__body {
    margin-top: 1.25rem;
    display: grid;
    gap: 1.25rem;
}

.nk-modal__section {
    padding: 1rem;
    border-radius: 1rem;
    background: var(--color-cream);
}

.nk-modal__section-title {
    margin: 0 0 0.75rem;
    font-family: var(--font-heading);
    font-size: 1.1rem;
}

.nk-modal__hint {
    margin: 0.75rem 0 0;
    color: var(--color-muted);
    font-size: 0.95rem;
}

.nk-modal__footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1rem;
}

.nk-btn {
    border: none;
    border-radius: 999px;
    padding: 0.8rem 1.25rem;
    cursor: pointer;
    font-weight: 600;
}

.nk-btn--primary {
    background: var(--color-forest);
    color: #fff;
}

.nk-btn--outline {
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.18);
    color: var(--color-forest);
}

.nk-btn.is-selected {
    box-shadow: 0 12px 26px rgba(18, 56, 44, 0.18);
    transform: translateY(-1px);
    border-color: rgba(18, 56, 44, 0.3);
}

.nk-btn--outline.is-selected {
    background: rgba(18, 56, 44, 0.08);
}

.nk-btn--primary.is-selected {
    outline: 2px solid rgba(194, 164, 109, 0.55);
    outline-offset: 2px;
}

.nk-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.nk-option-list label,
.nk-extra-row {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    background: #fff;
    padding: 0.75rem 0.85rem;
    border-radius: 0.9rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.nk-option-list {
    display: grid;
    gap: 0.6rem;
}

.nk-option-meta {
    margin-left: auto;
    color: var(--color-muted);
}

.nk-extra-list {
    display: grid;
    gap: 0.6rem;
}

.nk-extra-controls {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.nk-extra-controls button {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: none;
    background: rgba(0, 0, 0, 0.06);
    cursor: pointer;
}

.nk-field {
    display: grid;
    gap: 0.35rem;
    margin: 0.6rem 0 0;
}

.nk-field span {
    font-size: 0.9rem;
    color: var(--color-muted);
}

.nk-field input {
    border: 1px solid rgba(0, 0, 0, 0.14);
    border-radius: 0.85rem;
    padding: 0.75rem 0.85rem;
    font-size: 1rem;
}

.nk-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.nk-checkout-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

@media (max-width: 520px) {
    .nk-checkout-actions {
        grid-template-columns: 1fr;
    }
    .nk-field-row {
        grid-template-columns: 1fr;
    }
}

.cart-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 200px;
    overflow-y: auto;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--color-charcoal);
}

.cart-item p,
.cart-item small {
    color: var(--color-muted);
    margin: 0.2rem 0 0;
}

.cart-item strong,
.cart-line-total {
    color: var(--color-charcoal);
}

.cart-controls button {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: var(--color-sand);
    cursor: pointer;
}

.order-drawer footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.order-drawer footer button {
    background: var(--color-forest);
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
}

.order-btn {
    width: 100%;
    border: none;
    border-radius: 0.75rem;
    padding: 0.65rem;
    background: var(--color-forest);
    color: #fff;
    font-size: 0.95rem;
    cursor: pointer;
    margin-top: 0.75rem;
}

.order-btn.is-disabled {
    background: #ccc;
    color: #666;
    cursor: not-allowed;
}

@media (max-width: 960px) {
    .menu-hero {
        flex-direction: column;
        padding: 3rem 1.5rem;
    }

    .menu-root {
        margin-top: -2rem;
        width: calc(100% - 2rem);
    }
}

@media (max-width: 640px) {
    .hero-meta {
        flex-direction: column;
    }
}
