
:root {
    --cream: #F5F0E8;
    --warm-white: #FAF7F2;
    --ink: #1A1612;
    --ink-soft: #3D3530;
    --ink-muted: #7A6E65;
    --gold: #B8935A;
    --gold-light: #D4AE7A;
    --gold-dark: #8B6A38;
    --border: rgba(184, 147, 90, 0.25);
    --border-light: rgba(184, 147, 90, 0.12);
    --section-bg: rgba(184, 147, 90, 0.04);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Jost', sans-serif;
    background: var(--warm-white);
    color: var(--ink);
    min-height: 100vh;
}

/* ─── HERO / HEADER ─── */
.hero {
    background: var(--ink);
    color: var(--cream);
    text-align: center;
    padding: 3.5rem 2rem 3rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(184, 147, 90, 0.18) 0%, transparent 65%);
    pointer-events: none;
}

.hero-ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.hero-line {
    width: 60px;
    height: 1px;
    background: var(--gold);
    opacity: 0.6;
}

.hero-diamond {
    width: 6px;
    height: 6px;
    background: var(--gold);
    transform: rotate(45deg);
}

.hero h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    font-weight: 300;
    letter-spacing: 0.08em;
    line-height: 1;
    color: var(--cream);
    margin-bottom: 0.6rem;
}

.hero-subtitle {
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold-light);
    margin-bottom: 2rem;
}

/* ─── NAV TABS ─── */
.nav-tabs {
    display: flex;
    justify-content: center;
    gap: 0.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    padding: 4px;
    display: inline-flex;
}

.nav-tab {
    font-family: 'Jost', sans-serif;
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(245, 240, 232, 0.6);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.55rem 1.8rem;
    border-radius: 100px;
    transition: all 0.3s ease;
}

.nav-tab.active {
    background: var(--gold);
    color: var(--ink);
    font-weight: 500;
}

.nav-tab:hover:not(.active) {
    color: var(--cream);
    background: rgba(255, 255, 255, 0.07);
}

/* ─── MAIN LAYOUT ─── */
main {
    max-width: 860px;
    margin: 0 auto;
    padding: 3rem 1.5rem 5rem;
}

/* ─── SECTION ─── */
.menu-section {
    margin-bottom: 3.5rem;
    animation: fadeUp 0.5s ease both;
}

.menu-section:nth-child(1) { animation-delay: 0.05s; }
.menu-section:nth-child(2) { animation-delay: 0.1s; }
.menu-section:nth-child(3) { animation-delay: 0.15s; }
.menu-section:nth-child(4) { animation-delay: 0.2s; }

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--ink);
    letter-spacing: 0.03em;
    margin-bottom: 0.3rem;
    text-align: center;
}

.section-subtitle {
    text-align: center;
    font-size: 0.78rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin-bottom: 1.5rem;
}

.section-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.section-divider::before,
.section-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.section-divider span {
    color: var(--gold);
    font-size: 0.9rem;
}

/* ─── ITEM LIST ─── */
.item-list {
    list-style: none;
}

.item {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: start;
    gap: 1rem;
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--border-light);
    transition: background 0.2s;
}

.item:last-child {
    border-bottom: none;
}

.item:hover {
    background: var(--section-bg);
    margin: 0 -0.75rem;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    border-radius: 6px;
    border-bottom-color: transparent;
}

.item-name {
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--ink-soft);
    line-height: 1.5;
}

.item-allergens {
    display: inline-flex;
    gap: 4px;
    align-items: center;
    vertical-align: middle;
    margin-left: 6px;
}

.item-allergens img {
    width: 17px;
    height: 17px;
    opacity: 0.7;
    vertical-align: middle;
}

.item-price {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--gold-dark);
    white-space: nowrap;
    padding-top: 0.05rem;
}

/* ─── WINE REGION TITLE ─── */
.wine-region {
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
}

.wine-region-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.45rem;
    font-weight: 400;
    color: var(--ink);
    text-align: center;
    letter-spacing: 0.04em;
    margin-bottom: 0.75rem;
}

/* ─── ALLERGEN LEGEND ─── */
.allergen-legend {
    background: var(--cream);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.5rem;
    margin-top: 3rem;
}

.allergen-legend h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--ink);
    text-align: center;
    margin-bottom: 1.25rem;
    letter-spacing: 0.04em;
}

.allergen-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.6rem;
}

.allergen-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--ink-soft);
}

.allergen-item img {
    width: 20px;
    height: 20px;
}

/* ─── PAGE VISIBILITY ─── */
.page {
    display: none;
}

.page.active {
    display: block;
}

/* ─── FOOTER ─── */
footer {
    background: var(--ink);
    color: var(--cream);
    text-align: center;
    padding: 2.5rem 1.5rem;
}

.footer-ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    opacity: 0.3;
}

.footer-ornament-line {
    width: 40px;
    height: 1px;
    background: var(--gold);
}

.footer-ornament-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--gold);
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(245, 240, 232, 0.7);
    text-decoration: none;
    font-size: 0.83rem;
    letter-spacing: 0.04em;
    transition: color 0.2s;
}

.footer-link:hover {
    color: var(--gold-light);
}

.footer-link img {
    width: 16px;
    height: 16px;
    opacity: 0.6;
    filter: invert(1);
}

.footer-copy {
    margin-top: 1.5rem;
    font-size: 0.72rem;
    color: rgba(245, 240, 232, 0.25);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 600px) {
    .hero {
        padding: 2.5rem 1.25rem 2rem;
    }

    main {
        padding: 2rem 1rem 4rem;
    }

    .allergen-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}