/**
 * Preview · Direction D — Tasting Menu
 * Single-page editorial. Hero, then chapters, then sticky bottom bar.
 * Maximum heritage feel. Sage + gold both first-class.
 *
 * Strategy: reuse the typographic-row pattern from Direction B for
 * individual dishes, but reframe the whole page as long-form editorial:
 *   - oversized hero
 *   - chapter openers (full-width sage bands)
 *   - large breathing room between chapters
 *   - sticky bottom action bar
 *   - cinematic feel on chapter transitions
 */

body[data-preview="tasting"] {
    --gold: #B8956A;
    --gold-soft: rgba(184, 149, 106, 0.18);
    --gold-deep: #8C6E48;
    --ink: #1F2A1B;
    --ink-soft: #4F5A4A;
    --paper: #F4EFDF;
    --paper-deep: #ECE4CD;
    --paper-darkest: #2A2418;
    --sage: var(--color-primary);
    --rule: rgba(31, 42, 27, 0.14);
    background: var(--paper);
    color: var(--ink);
}

/* ─── Top bar / header: muted, near-invisible to keep focus on content ─── */
body[data-preview="tasting"] .top-bar {
    background: var(--paper-darkest);
    color: var(--paper);
    font-family: var(--font-primary);
    font-style: italic;
    font-size: 0.85rem;
}

body[data-preview="tasting"] .header {
    background: rgba(244, 239, 223, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gold-soft);
}

body[data-preview="tasting"] .logo-text {
    font-family: var(--font-primary);
    font-style: italic;
    font-weight: 500;
    color: var(--ink);
}

body[data-preview="tasting"] .nav-link {
    font-family: var(--font-primary);
    font-style: italic;
    font-size: 1.05rem;
    color: var(--ink-soft);
    letter-spacing: 0.01em;
}
body[data-preview="tasting"] .nav-link:hover,
body[data-preview="tasting"] .nav-link.active {
    color: var(--gold-deep);
    background: transparent;
}

/* ─── HERO — full viewport editorial cover ─── */
body[data-preview="tasting"] .hero {
    min-height: 90vh;
    background:
        linear-gradient(rgba(31, 42, 27, 0.45), rgba(31, 42, 27, 0.62)),
        var(--paper-darkest);
    color: var(--paper);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 1.5rem;
    position: relative;
}
body[data-preview="tasting"] .hero::before {
    background: none;
}
body[data-preview="tasting"] .hero-content {
    max-width: 920px;
    z-index: 2;
}
body[data-preview="tasting"] .hero-subtitle {
    font-family: var(--font-secondary);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.44em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 2rem;
}
body[data-preview="tasting"] .hero h1 {
    font-family: var(--font-primary);
    font-style: italic;
    font-weight: 500;
    font-size: clamp(3rem, 8vw, 6.5rem);
    line-height: 1.05;
    color: var(--paper);
    margin: 0 0 2rem;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}
body[data-preview="tasting"] .hero-tagline {
    font-family: var(--font-primary);
    font-style: italic;
    font-size: 1.25rem;
    color: var(--paper);
    opacity: 0.85;
    max-width: 540px;
    margin: 0 auto;
    line-height: 1.6;
}
body[data-preview="tasting"] .hero-cta {
    margin-top: 3rem;
}
body[data-preview="tasting"] .hero-cta .btn-primary {
    background: transparent;
    color: var(--paper);
    border: 1px solid var(--paper);
    border-radius: 0;
    font-family: var(--font-secondary);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    padding: 1.25rem 3rem;
    box-shadow: none;
}
body[data-preview="tasting"] .hero-cta .btn-primary:hover {
    background: var(--paper);
    color: var(--ink);
}

/* Scroll indicator under hero */
body[data-preview="tasting"] .hero::after {
    content: "↓";
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--paper);
    font-family: var(--font-primary);
    font-size: 1.5rem;
    animation: tastingBounce 2.5s ease-in-out infinite;
    opacity: 0.7;
}
@keyframes tastingBounce {
    0%, 100% { transform: translate(-50%, 0); opacity: 0.5; }
    50%      { transform: translate(-50%, 8px); opacity: 0.9; }
}

/* ─── Chapter openers (full-width sage bands) ─── */
body[data-preview="tasting"] .menu-section,
body[data-preview="tasting"] .featured-section {
    background: var(--paper);
    padding: 6rem 0;
    position: relative;
}
body[data-preview="tasting"] .menu-section:nth-of-type(even) {
    background: var(--paper-deep);
}

body[data-preview="tasting"] .section-title,
body[data-preview="tasting"] .menu-section h2 {
    font-family: var(--font-primary);
    font-style: italic;
    font-weight: 500;
    text-align: center;
    font-size: clamp(3rem, 5vw, 4.5rem);
    color: var(--ink);
    margin: 0 0 0.5rem;
    line-height: 1.1;
}

body[data-preview="tasting"] .menu-section .section-label,
body[data-preview="tasting"] .featured-section .section-label {
    font-family: var(--font-secondary);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.44em;
    text-transform: uppercase;
    color: var(--gold);
    display: block;
    text-align: center;
    margin-bottom: 1rem;
}

body[data-preview="tasting"] .section-tagline {
    font-family: var(--font-primary);
    font-style: italic;
    text-align: center;
    color: var(--ink-soft);
    font-size: 1.15rem;
    margin: 0 auto 4rem;
    max-width: 560px;
}

/* ─── Category tabs disappear — single scroll, no tabs ─── */
body[data-preview="tasting"] .menu-filters {
    background: transparent;
    position: sticky;
    top: 80px;
    z-index: 5;
    border-bottom: 1px solid var(--gold-soft);
    padding: 1rem 0;
    margin-bottom: 3rem;
}
body[data-preview="tasting"] .category-tab {
    background: transparent;
    color: var(--ink-soft);
    font-family: var(--font-primary);
    font-style: italic;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0;
}
body[data-preview="tasting"] .category-tab.active {
    background: transparent;
    color: var(--gold-deep);
    border-bottom: 1px solid var(--gold);
}

/* ─── Items as typographic rows (same pattern as Direction B) ─── */
body[data-preview="tasting"] .menu-grid {
    display: block;
    max-width: 780px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

body[data-preview="tasting"] .menu-item-card {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 2rem 0;
    margin: 0;
    border-bottom: 1px solid var(--rule);
    display: block;
    height: auto;
    cursor: pointer;
    transition: padding 320ms ease;
    position: relative;
    contain: layout style;
}
body[data-preview="tasting"] .menu-item-card:hover {
    padding-left: 1rem;
    transform: none !important;
    box-shadow: none !important;
}

body[data-preview="tasting"] .menu-item-image {
    display: none;
}

body[data-preview="tasting"] .menu-item-content {
    padding: 0;
    display: block;
}
body[data-preview="tasting"] .menu-item-header {
    display: flex;
    align-items: baseline;
    gap: 1.25rem;
    border-bottom: none;
    padding: 0;
    margin: 0 0 0.5rem;
}
body[data-preview="tasting"] .menu-item-name {
    font-family: var(--font-primary);
    font-style: italic;
    font-weight: 500;
    font-size: 1.8rem;
    line-height: 1.2;
    color: var(--ink);
    margin: 0;
    flex: 0 1 auto;
    max-width: 70%;
}
body[data-preview="tasting"] .menu-item-header::after {
    content: "";
    flex: 1 1 auto;
    border-bottom: 1px solid var(--rule);
    margin: 0 0.5rem 0.5em;
}
body[data-preview="tasting"] .menu-item-price {
    font-family: var(--font-secondary);
    font-feature-settings: "tnum", "lnum";
    font-weight: 500;
    font-size: 1.05rem;
    color: var(--gold-deep);
    letter-spacing: 0.04em;
    white-space: nowrap;
}
body[data-preview="tasting"] .menu-item-description {
    font-family: var(--font-primary);
    font-style: italic;
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--ink-soft);
    margin: 0 0 0 0;
    max-width: 60ch;
    -webkit-line-clamp: unset;
    display: block;
    overflow: visible;
    max-height: none;
    opacity: 1;
}

body[data-preview="tasting"] .menu-item-meta { display: none; }

/* Tag glyphs */
body[data-preview="tasting"] .item-badges {
    position: static;
    display: inline-flex;
    gap: 0.4rem;
    margin-left: 0.5rem;
}
body[data-preview="tasting"] .item-badge {
    background: transparent !important;
    color: var(--gold) !important;
    padding: 0;
    font-size: 0;
    border: none;
    border-radius: 0;
}
body[data-preview="tasting"] .item-badge i { display: none; }
body[data-preview="tasting"] .badge-signature::before { content: "★"; font-size: 0.95rem; }
body[data-preview="tasting"] .badge-vegetarian::before { content: "ⓥ"; font-size: 0.95rem; }
body[data-preview="tasting"] .badge-vegan::before { content: "ⓥᵍ"; font-size: 0.85rem; }
body[data-preview="tasting"] .badge-spicy::before { content: "🌶"; font-size: 0.85rem; }

/* Quick-add as elegant text link below row, fades in on hover */
body[data-preview="tasting"] .item-quick-add {
    all: unset;
    cursor: pointer;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-secondary);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--gold-deep);
    opacity: 0;
    transition: opacity 280ms ease;
}
body[data-preview="tasting"] .item-quick-add::before {
    content: "Add ＋";
}
body[data-preview="tasting"] .item-quick-add i { display: none; }
body[data-preview="tasting"] .menu-item-card:hover .item-quick-add {
    opacity: 1;
}

/* ─── Fleurons between chapters ─── */
body[data-preview="tasting"] .menu-section + .menu-section::before,
body[data-preview="tasting"] .featured-section + .menu-section::before,
body[data-preview="tasting"] .menu-section + .featured-section::before {
    content: "❦  ❦  ❦";
    display: block;
    text-align: center;
    letter-spacing: 2rem;
    color: var(--gold);
    font-size: 1.2rem;
    opacity: 0.6;
    position: absolute;
    top: -1rem;
    left: 0;
    right: 0;
}

/* ─── Sticky bottom action bar ─── */
body[data-preview="tasting"] .cart-toggle {
    position: fixed;
    bottom: 1.5rem;
    right: 50%;
    transform: translateX(50%);
    background: var(--ink);
    color: var(--paper);
    padding: 1rem 2.5rem;
    border-radius: 999px;
    box-shadow: 0 12px 32px rgba(31, 42, 27, 0.28);
    font-family: var(--font-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    z-index: 50;
    width: auto;
    height: auto;
    border-radius: 999px;
}
body[data-preview="tasting"] .cart-toggle:hover {
    background: var(--gold-deep);
}

/* ─── Featured section: turn into "House Signatures" feature spread ─── */
body[data-preview="tasting"] .featured-section {
    background: var(--paper-darkest);
    color: var(--paper);
    padding: 7rem 0;
}
body[data-preview="tasting"] .featured-section .section-title {
    color: var(--paper);
}
body[data-preview="tasting"] .featured-section .section-label {
    color: var(--gold);
}
body[data-preview="tasting"] .featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}
body[data-preview="tasting"] .featured-item-card {
    background: transparent;
    border: 1px solid rgba(244, 239, 223, 0.15);
    color: var(--paper);
    padding: 2rem;
    border-radius: 4px;
}
body[data-preview="tasting"] .featured-item-card h3,
body[data-preview="tasting"] .featured-item-name {
    color: var(--paper);
    font-family: var(--font-primary);
    font-style: italic;
}
body[data-preview="tasting"] .featured-item-card p {
    color: rgba(244, 239, 223, 0.75);
}

/* ─── Reservation page treatment ─── */
body[data-preview="tasting"] .reservation-hero {
    background:
        linear-gradient(rgba(31, 42, 27, 0.55), rgba(31, 42, 27, 0.7)),
        var(--paper-darkest);
    color: var(--paper);
    padding: 8rem 1.5rem;
    border-bottom: none;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
body[data-preview="tasting"] .reservation-hero h1 {
    font-family: var(--font-primary);
    font-style: italic;
    font-weight: 500;
    font-size: clamp(3rem, 6vw, 5rem);
    color: var(--paper);
    margin: 0 0 1rem;
}
body[data-preview="tasting"] .reservation-hero p {
    color: var(--paper);
    opacity: 0.85;
    font-style: italic;
    font-size: 1.2rem;
    max-width: 480px;
    text-align: center;
}

body[data-preview="tasting"] .reservation-page {
    margin-top: -4rem;
    max-width: 720px;
}

body[data-preview="tasting"] .res-card {
    background: var(--paper);
    border: 1px solid var(--gold);
    border-radius: 4px;
    box-shadow: 0 30px 60px rgba(31, 42, 27, 0.18);
    padding: 0;
}
body[data-preview="tasting"] .res-card-header {
    background: var(--paper-deep);
    border-bottom: 1px solid var(--gold-soft);
    padding: 2rem;
    justify-content: center;
}
body[data-preview="tasting"] .res-card-header i { color: var(--gold); }
body[data-preview="tasting"] .res-card-header h2 {
    font-family: var(--font-primary);
    font-style: italic;
    font-weight: 500;
    color: var(--ink);
}

body[data-preview="tasting"] .res-input,
body[data-preview="tasting"] .res-select,
body[data-preview="tasting"] .res-textarea {
    background: var(--paper);
    border: none;
    border-bottom: 1px solid var(--gold-soft);
    border-radius: 0;
    padding: 0.7rem 0.5rem;
    font-family: var(--font-primary);
    font-style: italic;
    font-size: 1.1rem;
    color: var(--ink);
}
body[data-preview="tasting"] .res-input:focus,
body[data-preview="tasting"] .res-select:focus,
body[data-preview="tasting"] .res-textarea:focus {
    border-bottom-color: var(--gold);
    box-shadow: none;
}

body[data-preview="tasting"] .res-form-group label {
    font-family: var(--font-secondary);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold-deep);
}

body[data-preview="tasting"] .res-chip {
    background: transparent;
    border: 1px solid var(--gold-soft);
    color: var(--ink-soft);
    font-family: var(--font-primary);
    font-style: italic;
    border-radius: 999px;
}
body[data-preview="tasting"] .res-chip.selected {
    background: var(--gold);
    color: var(--paper);
    border-color: var(--gold);
}

body[data-preview="tasting"] .res-info-bar {
    background: var(--paper-deep);
    border: none;
    border-radius: 0;
    border-top: 1px solid var(--gold-soft);
    border-bottom: 1px solid var(--gold-soft);
}

body[data-preview="tasting"] .res-submit-btn {
    background: var(--ink);
    color: var(--paper);
    border: none;
    border-radius: 999px;
    font-family: var(--font-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    padding: 1.2rem 3.5rem;
    box-shadow: 0 14px 32px rgba(31, 42, 27, 0.24);
}
body[data-preview="tasting"] .res-submit-btn:hover:not(:disabled) {
    background: var(--gold-deep);
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(140, 110, 72, 0.36);
}
