/* ============================================================================
   Tasiang Kitchen & Taps - Premium Stylesheet v2.0
   Based on Branding V9.0
   ============================================================================ */

/* ---------- 1. Variables & Design Tokens ---------- */
:root {
    /* --- Brand Palette --- */
    --color-primary: #B25C2E;
    /* Amber Wood: The soul, warm, appetizing */
    --color-primary-dark: #8C421F;
    /* Darker shade for hover/active */
    --color-background: #F4EDE6;
    /* Cream Light: The canvas, soft, welcoming */
    --color-text: #2E2E2E;
    /* Charcoal: The ink, clear, readable */
    --color-text-light: #5d5d5d;
    /* Softer text for descriptions */
    --color-accent: #F6D27A;
    /* Warm Glow: Highlights */
    --color-secondary: #365C73;
    /* Dusk Blue: The cool contrast */
    --color-success: #10B981;
    /* Fresh Green: Indicators */
    --color-surface: #FFFFFF;
    /* Pure White: Cards and inputs */

    /* --- Typography --- */
    --font-display: 'Playfair Display', serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;

    /* --- Spacing System --- */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-xxl: 48px;

    /* --- UI Components --- */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --shadow-sm: 0 1px 2px rgba(58, 37, 24, 0.06), 0 1px 3px rgba(58, 37, 24, 0.05);
    --shadow-md: 0 4px 14px rgba(58, 37, 24, 0.08), 0 1px 3px rgba(58, 37, 24, 0.05);
    --shadow-lg: 0 14px 34px rgba(58, 37, 24, 0.13), 0 3px 8px rgba(58, 37, 24, 0.06);
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);

    /* --- Warm darks & lines (header, footer, borders) --- */
    --color-ink: #1a110a;
    --color-ink-2: #2d1c12;
    --color-line: #E9DED3;
    --focus-ring: 0 0 0 3px rgba(246, 210, 122, 0.85);
}

/* Shared inline-SVG icon (stroke style) */
svg.icon {
    width: 1.25em;
    height: 1.25em;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

/* Visible keyboard focus everywhere, without changing mouse/touch look */
a:focus-visible,
button:focus-visible,
select:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ---------- 2. Reset & Base Styles ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    background-color: var(--color-background);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.5;
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    color: var(--color-primary);
    margin-top: 0;
    line-height: 1.2;
}

h1 {
    font-size: 2rem;
    margin-bottom: var(--space-md);
}

h2 {
    font-size: 2rem;
    margin-bottom: var(--space-md);
    text-align: center;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

/* Decorative underline for H2 */
h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--color-accent);
    margin: 8px auto 0;
    border-radius: 2px;
}

h3 {
    font-size: 1.4rem;
    color: var(--color-text);
    margin-bottom: var(--space-sm);
}

p {
    margin: 0 0 var(--space-md) 0;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-primary-dark);
    text-decoration: underline;
}

/* ---------- 3. Layout Utilities ---------- */
.container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--space-md);
    box-sizing: border-box;
}

.section-divider {
    border: 0;
    border-top: 1px dashed #CAB8A8;
    margin: var(--space-lg) 0;
}

/* --- Header (V3: warm dark band, scrolls away) ---
   The header used to stick to the top of the screen, which kept a ~250px logo
   block in view on phones while guests scrolled the long takeout list. It now
   scrolls away with the page and is more compact. */
header {
    background:
        radial-gradient(120% 140% at 50% 0%, rgba(178, 92, 46, 0.28), transparent 60%),
        linear-gradient(180deg, var(--color-ink) 0%, var(--color-ink-2) 100%);
    border-bottom: 3px solid var(--color-accent);
    padding: 28px var(--space-md) 22px;
    text-align: center;
    box-shadow: 0 6px 18px rgba(26, 17, 10, 0.18);
    color: white;
    position: relative;
    z-index: 1;
}

header img {
    width: min(64vw, 340px);
    max-width: none;
    height: auto;
    border-radius: 14px;
    background: #F7F0E6;
    padding: 8px 12px;
    box-shadow:
        0 6px 20px rgba(0, 0, 0, 0.3),
        0 0 48px rgba(246, 210, 122, 0.12);
    display: block;
    margin: 0 auto;
}

@media (max-width: 480px) {
    header {
        /* room on top keeps the language button clear of the logo */
        padding: 46px var(--space-md) 16px;
    }

    header img {
        width: min(72vw, 300px);
        padding: 6px 10px;
    }
}

.brand-tagline {
    font-family: var(--font-display);
    font-style: italic;
    font-size: clamp(0.85rem, 2.2vw, 1.05rem);
    color: rgba(255, 248, 238, 0.82);
    /* Off-white for readability on dark */
    margin: 12px 0 0;
    letter-spacing: 0.4px;
}

/* ---------- 5. Cards & Containers ---------- */
/* --- Components --- */

/* Cards (V2: Deeper shadows, 'Lifted' look) */
.card {
    background: var(--color-surface);
    border-radius: 16px;
    padding: var(--space-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: var(--space-lg);
    border: 1px solid rgba(178, 92, 46, 0.08);
    position: relative;
    overflow: hidden;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.card:hover {
    /* Slight lift on desktop */
    box-shadow: var(--shadow-lg);
}

/* Decor strip at top of cards */
/* .card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--color-primary);
} */

/* Top accents for cards */
.card.accent-blue {
    border-top: 5px solid var(--color-secondary);
}

.card.accent-green {
    border-top: 5px solid var(--color-success);
}

.card.green-top {
    border-top: 5px solid var(--color-success);
}

/* Alias */

/* ---------- 6. Buttons & Interactive ---------- */
.btn {
    display: inline-block;
    background-color: var(--color-primary);
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-family: var(--font-body);
    transition: all var(--transition-fast);
    box-shadow: 0 2px 6px rgba(140, 66, 31, 0.22);
    text-decoration: none;
}

.btn:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(140, 66, 31, 0.28);
    text-decoration: none;
    color: white;
}

.btn:active {
    transform: translateY(1px);
}

.btn-submit,
.btn-primary {
    width: 100%;
    margin-top: var(--space-md);
    font-size: 1.1rem;
    padding: 14px;
}

.btn-order {
    width: 100%;
    background-color: var(--color-success);
    padding: 16px;
    font-size: 1.2rem;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
}

.btn-order:hover {
    background-color: #059669;
    /* Darker green */
    filter: brightness(1.05);
}

.btn:disabled {
    background-color: #9CA3AF;
    cursor: not-allowed;
    transform: none;
}

/* Secondary Button / Back Link — a quiet pill with a back chevron */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 40px;
    margin-top: var(--space-md);
    margin-bottom: var(--space-md);
    padding: 0 16px 0 12px;
    border-radius: 999px;
    border: 1px solid var(--color-line);
    background: rgba(255, 255, 255, 0.7);
    color: var(--color-secondary);
    font-weight: 600;
    font-size: 0.9rem;
    transition: background var(--transition-fast), border-color var(--transition-fast);
}

.back-link::before {
    content: '';
    width: 8px;
    height: 8px;
    border-left: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    margin-left: 4px;
}

.back-link:hover {
    text-decoration: none;
    background: #fff;
    border-color: rgba(54, 92, 115, 0.35);
    color: var(--color-secondary);
}

/* Large Checkbox for Pre-order Toggle */
.toggle-header input[type="checkbox"] {
    width: 24px;
    height: 24px;
    margin-right: 15px;
    cursor: pointer;
    accent-color: var(--color-primary);
}

.form-textarea {
    min-height: 150px;
    width: 100%;
    resize: vertical;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
}

/* Toggle Content (Pre-order section) */
.toggle-content {
    display: none;
    /* Hidden by default */
}

.toggle-content.visible {
    display: block;
    /* Shown when checkbox is checked */
}

/* ---------- 7. Forms & Inputs ---------- */
.form-group {
    margin-bottom: var(--space-md);
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--color-primary-dark);
    font-size: 0.95rem;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    min-height: 48px;
    padding: 11px 14px;
    border: 1.5px solid #E3D8CD;
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-text);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
    background-color: #FFFDFB;
}

.form-input:hover,
.form-select:hover,
.form-textarea:hover {
    border-color: #D3C2B1;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    background-color: white;
    box-shadow: 0 0 0 4px rgba(178, 92, 46, 0.14);
}

.form-textarea {
    min-height: 80px;
    resize: vertical;
}

.form-hint {
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-top: 4px;
    font-style: italic;
}

/* Radio Option Cards (Desktop/Mobile) */
.radio-cards-group {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-sm);
}

@media (min-width: 600px) {
    .radio-cards-group {
        grid-template-columns: repeat(2, 1fr);
    }
}

.radio-card-label {
    display: flex;
    align-items: center;
    padding: var(--space-md);
    border: 2px solid #E5E7EB;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    background: white;
}

.radio-card-label:hover {
    border-color: #D1D5DB;
}

.radio-card-label input[type="radio"] {
    margin-right: var(--space-md);
    transform: scale(1.2);
    accent-color: var(--color-primary);
}

.radio-card-label input[type="radio"]:checked+div {
    color: var(--color-primary);
}

/* Targeting sibling if structure allows, or JS handles class */

/* Enhance checked state via parent class or :has selector if supported (using simpler CSS for compatibility) */
.radio-card-label:has(input:checked) {
    border-color: var(--color-primary);
    background-color: #FFF8F3;
    /* Very light orange tint */
}

/* ---------- 8. Complex Menu Items (Mobile First) ---------- */
.menu-group {
    margin-bottom: var(--space-xl);
}

.menu-title,
.menu-category-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-secondary);
    border-bottom: 2px solid #E5E7EB;
    padding-bottom: var(--space-xs);
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    font-family: var(--font-display);
}

.menu-item {
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: var(--radius-sm);
    padding: var(--space-md);
    margin-bottom: var(--space-md);
    display: grid;
    /* Grid Layout for Existing HTML Structure */
    /* Label (Checkbox+Name) | Qty | Price */
    grid-template-columns: 1fr auto auto;
    gap: var(--space-sm);
    align-items: center;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.menu-item:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-sm);
}

/* Target the existing HTML structure */
.menu-item>label {
    grid-column: 1;
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    cursor: pointer;
    line-height: 1.3;
}

.menu-item>label>div {
    display: flex;
    flex-direction: column;
    /* Stack name and badge */
}

.menu-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--color-primary);
    margin-top: 2px;
}

.menu-item-text {
    font-weight: 600;
    color: var(--color-text);
    font-size: 1rem;
}

.menu-item .qty-container {
    grid-column: 2;
    display: flex;
    align-items: center;
}

.menu-item .price {
    grid-column: 3;
    font-family: var(--font-body);
    font-weight: 700;
    color: var(--color-primary);
    font-size: 1.1rem;
    white-space: nowrap;
}

.menu-item .soda-options {
    grid-column: 1 / -1;
    margin-top: var(--space-sm);
    padding: var(--space-sm);
    background: #F0FDF4;
    border: 1px solid #86EFAC;
    border-radius: var(--radius-sm);
    display: none;
    /* JS toggles class 'visible' */
}

.menu-item .soda-options.visible {
    display: block;
}

/* Mobile Optimization for Menu Items */
@media (max-width: 550px) {
    .menu-item {
        grid-template-columns: 1fr auto;
        /* Label | Price */
        grid-template-rows: auto auto auto;
        gap: var(--space-sm) var(--space-xs);
    }

    .menu-item>label {
        grid-column: 1 / -1;
        grid-row: 1;
        margin-bottom: 4px;
    }

    .menu-item .qty-container {
        grid-column: 1;
        grid-row: 2;
        justify-self: start;
    }

    .menu-item .price {
        grid-column: 2;
        /* Stick directly to right of qty or right edge */
        grid-row: 2;
        justify-self: end;
    }

    .menu-item .soda-options {
        grid-column: 1 / -1;
        grid-row: 3;
    }
}

/* Quantity Control Styles */
.qty-container {
    border: 1px solid #D1D5DB;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: white;
}

.qty-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: #F9FAFB;
    font-weight: bold;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--color-text);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.qty-btn:hover {
    background: #E5E7EB;
}

.qty-input {
    width: 36px;
    height: 32px;
    text-align: center;
    border: none;
    border-left: 1px solid #D1D5DB;
    border-right: 1px solid #D1D5DB;
    font-weight: 600;
    font-family: var(--font-body);
    font-size: 0.95rem;
    padding: 0;
    border-radius: 0;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* ---------- 9. Specific Page Components ---------- */

/* Welcome Page Grid */
.choice-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    margin: var(--space-xl) 0;
}

@media (min-width: 600px) {
    .choice-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.choice-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--space-xl) var(--space-lg);
    background: var(--color-surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    border: 2px solid transparent;
    color: var(--color-text);
}

.choice-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary);
}

.choice-icon {
    font-size: 3rem;
    margin-bottom: var(--space-md);
}

.choice-title {
    font-size: 1.5rem;
    color: var(--color-primary);
    font-family: var(--font-display);
    margin-bottom: var(--space-sm);
}

.choice-desc {
    color: var(--color-text-light);
}

/* Banners / Alerts */
.banner {
    padding: var(--space-md);
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-lg);
    font-size: 0.95rem;
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
}

.banner-info {
    background: #EFF6FF;
    color: #1E40AF;
    border-left: 4px solid #3B82F6;
}

.banner-promo {
    background: linear-gradient(135deg, var(--color-primary), #D97706);
    color: white;
    text-align: center;
    justify-content: center;
    font-weight: 500;
}

.banner-warning {
    background: #FFFBEB;
    color: #92400E;
    border: 1px solid #FDE68A;
}

/* Footer */
footer {
    text-align: center;
    padding: var(--space-xl) 0;
    color: #9CA3AF;
    font-size: 0.85rem;
    margin-top: auto;
}

/* Badge tags */
.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    vertical-align: middle;
    margin-left: var(--space-xs);
}

.badge-free {
    background-color: var(--color-success);
}

.badge-info {
    background-color: var(--color-secondary);
}

.free-soda {
    display: inline-block;
    width: 100px;
    /* Fixed width for uniformity */
    text-align: center;
    background-color: var(--color-success);
    color: white;
    padding: 2px 0;
    /* Reduced side padding since width is fixed */
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 8px;
    white-space: nowrap;
    /* Prevent wrapping */
}

/* ---------- 10. Mobile Optimization ---------- */
@media (max-width: 480px) {
    :root {
        --space-lg: 20px;
        --space-xl: 24px;
    }

    h1 {
        font-size: 1.75rem;
    }

    .card {
        padding: var(--space-md);
    }

    /* Stack menu item content better on small screens */
    .menu-item {
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto auto;
        gap: var(--space-xs) var(--space-sm);
    }

    .menu-checkbox-area {
        grid-column: 1;
        grid-row: 1;
    }

    .menu-info-area {
        grid-column: 2;
        grid-row: 1;
    }

    .menu-price-area {
        grid-column: 2;
        grid-row: 2;
        text-align: left;
        padding-top: 4px;
    }

    .menu-controls-area {
        grid-column: 1 / -1;
        grid-row: 3;
    }
}

/* Summary Card */
.summary-card {
    background-color: #F8FAFC;
    border: 2px solid var(--color-secondary);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    margin: var(--space-lg) 0;
    box-shadow: var(--shadow-sm);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--space-sm);
    font-size: 1.1rem;
    color: var(--color-text);
}

.total-row {
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 2px dashed #CBD5E1;
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--color-primary);
    display: flex;
    justify-content: space-between;
}

/* ---------- 11. Welcome Page Styles ---------- */
.info-card {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: var(--space-lg);
    text-align: left;
}

.info-card p {
    margin-bottom: var(--space-sm);
}

.info-card p:last-child {
    margin-bottom: 0;
}

.welcome-text {
    text-align: center;
    margin: var(--space-xl) 0 var(--space-md);
}

.welcome-text h2 {
    display: block;
    width: 100%;
}

.welcome-text p {
    color: var(--color-text-light);
    font-size: 0.95rem;
}

.choice-card .icon,
.choice-card .choice-card-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
}

.choice-card h3 {
    font-family: var(--font-display);
    color: var(--color-text);
    margin-bottom: var(--space-sm);
    font-size: 1.25rem;
}

.choice-card p {
    color: var(--color-text-light);
    font-size: 0.9rem;
    margin: 0;
}

.walk-in-note {
    text-align: center;
    color: var(--color-text-light);
    font-size: 0.95rem;
    padding: var(--space-md);
    background: rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-sm);
    margin-top: var(--space-md);
}

/* Welcome page footer - uses .footer class */
.footer {
    text-align: center;
    padding: var(--space-lg) var(--space-md);
    color: var(--color-text-light);
    font-size: 0.85rem;
    margin-top: var(--space-lg);
}

/* Free Soda Badge in menu items */
.free-soda {
    display: inline-block;
    background-color: var(--color-success);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-left: var(--space-xs);
    vertical-align: middle;
}

/* Item Details (sub-text) */
.item-details {
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-top: 2px;
}

/* ============================================================================
   12. Homepage (Scoped: .welcome-page)
   Photo hero → event spotlights → choice tiles → visit info → footer
   ============================================================================ */

.welcome-page {
    background: #FBF7F1;
    min-height: 100vh;
}

/* --- Hero: bar photo, logo, live open/closed pill, quick actions --- */
.welcome-page .home-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    min-height: 430px;
    padding: 64px 20px 40px;
    background: var(--color-ink);
    border-bottom: none;
    box-shadow: none;
    color: #fff;
    text-align: center;
}

.welcome-page .home-hero-photo {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    max-width: none;
    height: 100%;
    margin: 0;
    padding: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    object-fit: cover;
    object-position: 50% 62%;
}

/* Darken the photo so the logo and text stay readable */
.welcome-page .home-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(90% 70% at 50% 42%, rgba(26, 17, 10, 0.25), rgba(26, 17, 10, 0.6) 100%),
        linear-gradient(180deg, rgba(26, 17, 10, 0.55) 0%, rgba(26, 17, 10, 0.2) 35%, rgba(26, 17, 10, 0.78) 78%, rgba(26, 17, 10, 0.96) 100%);
}

/* Golden accent line under the hero */
.welcome-page .home-hero::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent 5%, var(--color-accent), var(--color-primary), var(--color-accent), transparent 95%);
}

.welcome-page .home-hero-content {
    width: 100%;
    max-width: 640px;
}

.welcome-page .home-hero-logo {
    margin: 0;
    line-height: 0;
}

.welcome-page .home-hero-logo img {
    display: block;
    width: min(76vw, 440px);
    max-width: none;
    height: auto;
    margin: 0 auto;
    padding: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    filter: drop-shadow(0 8px 22px rgba(0, 0, 0, 0.5));
}

.welcome-page .brand-tagline {
    margin: 10px 0 0;
    color: rgba(255, 248, 238, 0.9);
    font-size: clamp(0.95rem, 2.5vw, 1.2rem);
    letter-spacing: 0.6px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

/* Live open / closed pill (filled in by js/business-hours.mjs) */
.welcome-page .hours-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    max-width: 100%;
    margin-top: 16px;
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.12);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.2;
}

.welcome-page .hours-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}

.welcome-page .hours-status-detail {
    font-weight: 500;
    opacity: 0.88;
}

.welcome-page .hours-status--open {
    border-color: rgba(52, 211, 153, 0.55);
    background: rgba(6, 95, 70, 0.45);
    color: #ECFDF5;
}

.welcome-page .hours-status--open .hours-status-dot {
    background: #34D399;
    box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.25);
    animation: hoursPulse 2.4s ease-in-out infinite;
}

.welcome-page .hours-status--closed {
    border-color: rgba(255, 255, 255, 0.24);
    background: rgba(26, 17, 10, 0.45);
    color: rgba(255, 248, 238, 0.95);
}

.welcome-page .hours-status--closed .hours-status-dot {
    background: #F59E0B;
}

@keyframes hoursPulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.28); }
    50% { box-shadow: 0 0 0 6px rgba(52, 211, 153, 0.08); }
}

.welcome-page .home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.welcome-page .hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.12);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    transition: background var(--transition-fast), transform var(--transition-fast);
}

.welcome-page .hero-btn:hover {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

.welcome-page .hero-btn--primary {
    border-color: var(--color-accent);
    background: var(--color-accent);
    color: var(--color-ink);
}

.welcome-page .hero-btn--primary:hover {
    background: #FADF9B;
    color: var(--color-ink);
}

.welcome-page .hero-btn svg.icon {
    width: 18px;
    height: 18px;
}

/* --- Main column --- */
.welcome-page .home-main {
    max-width: 1040px;
    padding-top: 4px;
}

.welcome-page .home-section {
    margin-top: 8px;
}

.welcome-page .welcome-text {
    margin: 34px 0 18px;
}

.welcome-page .welcome-text h2 {
    font-size: clamp(1.6rem, 4.6vw, 2.1rem);
    margin-bottom: 6px;
}

.welcome-page .welcome-text p {
    margin: 0;
}

/* --- Event Spotlight Banners (rendered by the inline script) --- */
#event-spotlights {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: var(--space-lg) 0 0;
}

#event-spotlights:empty {
    display: none;
}

.event-spotlight {
    display: none;
    margin: 0;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    animation: spotlightFadeIn 0.5s ease-out both;
}

@keyframes spotlightFadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.event-spotlight-inner {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: 18px 22px;
    color: #fff;
    text-decoration: none;
    transition: filter 0.2s ease;
}

.event-spotlight-inner:hover {
    filter: brightness(1.08);
    text-decoration: none;
    color: #fff;
}

.event-spotlight[data-type="karaoke"] .event-spotlight-inner {
    background: linear-gradient(135deg, #6d28d9 0%, #9333ea 55%, #c084fc 100%);
}
.event-spotlight[data-type="trivia"] .event-spotlight-inner {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 55%, #60a5fa 100%);
}
.event-spotlight[data-type="painting"] .event-spotlight-inner {
    background: linear-gradient(135deg, #166534 0%, #16a34a 55%, #4ade80 100%);
}
.event-spotlight:not([data-type="karaoke"]):not([data-type="trivia"]):not([data-type="painting"]) .event-spotlight-inner {
    background: linear-gradient(135deg, #8C421F 0%, #B25C2E 55%, #E0A050 100%);
}

.spotlight-icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.18);
    font-size: 1.8rem;
    flex-shrink: 0;
    line-height: 1;
}

.spotlight-body {
    flex: 1;
    min-width: 0;
}

.spotlight-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    opacity: 0.85;
    margin-bottom: 2px;
}

.spotlight-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 2px;
    line-height: 1.25;
}

.spotlight-meta {
    font-size: 0.85rem;
    opacity: 0.9;
}

.spotlight-cta {
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.95);
    color: var(--color-ink);
    padding: 9px 16px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
    transition: background 0.2s;
}

.event-spotlight-inner:hover .spotlight-cta {
    background: #fff;
}

@media (max-width: 480px) {
    .event-spotlight-inner { flex-wrap: wrap; padding: 16px; }
    .spotlight-cta { width: 100%; text-align: center; margin-top: 4px; }
}

/* --- Choice tiles: featured menu photo tile + four quick tiles --- */
.welcome-page .choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
}

.welcome-page .choice-card {
    --tile-bg: #FBE9DC;
    --tile-fg: var(--color-primary);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 12px;
    min-height: 150px;
    padding: 16px;
    overflow: hidden;
    border: 1px solid var(--color-line);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow-sm);
    color: var(--color-text);
    text-align: left;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.welcome-page .choice-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(178, 92, 46, 0.32);
    color: var(--color-text);
    text-decoration: none;
}

.welcome-page .choice-card:active {
    transform: translateY(0);
}

.welcome-page .choice-card .choice-card-icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin: 0;
    border-radius: 13px;
    background: var(--tile-bg);
    color: var(--tile-fg);
    font-size: inherit;
    transition: transform 0.25s ease;
}

.welcome-page .choice-card:hover .choice-card-icon {
    transform: scale(1.06);
}

.welcome-page .choice-card-icon svg.icon {
    width: 23px;
    height: 23px;
}

.welcome-page .choice-card-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.welcome-page .choice-card h3 {
    margin: 0;
    color: var(--color-text);
    font-family: var(--font-display);
    font-size: 1.08rem;
    line-height: 1.2;
}

.welcome-page .choice-card p {
    margin: 0;
    color: var(--color-text-light);
    font-size: 0.82rem;
    line-height: 1.42;
}

.welcome-page .choice-card-arrow {
    position: absolute;
    top: 18px;
    right: 16px;
    width: 18px;
    height: 18px;
    color: #CDBCAB;
    transition: transform 0.25s ease, color 0.25s ease;
}

.welcome-page .choice-card:hover .choice-card-arrow {
    transform: translateX(3px);
    color: var(--color-primary);
}

.welcome-page .choice-card.dine-in { --tile-bg: #E5F2E9; --tile-fg: #2F7A50; }
.welcome-page .choice-card.takeout { --tile-bg: #FBE9DC; --tile-fg: #B25C2E; }
.welcome-page .choice-card.gallery { --tile-bg: #E3EDF3; --tile-fg: #365C73; }
.welcome-page .choice-card.events  { --tile-bg: #F1E7F7; --tile-fg: #7B4A9C; }

/* Featured: the menu tile carries a dumpling photo */
.welcome-page .choice-card.menu {
    grid-column: 1 / -1;
    justify-content: flex-end;
    min-height: 176px;
    padding: 20px;
    border: none;
    background: #3a2518;
    color: #fff;
}

.welcome-page .choice-card-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        linear-gradient(100deg, rgba(26, 17, 10, 0.94) 0%, rgba(26, 17, 10, 0.72) 48%, rgba(26, 17, 10, 0.12) 100%),
        url('../products/handmade-dumplings/hero.webp') 70% 55% / cover no-repeat;
    transition: transform 0.6s ease;
}

.welcome-page .choice-card.menu:hover .choice-card-bg {
    transform: scale(1.04);
}

.welcome-page .choice-card.menu .choice-card-icon,
.welcome-page .choice-card.menu .choice-card-text {
    position: relative;
    z-index: 1;
}

.welcome-page .choice-card.menu .choice-card-arrow {
    z-index: 1;
    color: rgba(255, 255, 255, 0.75);
}

.welcome-page .choice-card.menu:hover .choice-card-arrow {
    color: var(--color-accent);
}

.welcome-page .choice-card.menu .choice-card-icon {
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

.welcome-page .choice-card.menu h3 {
    color: #fff;
    font-size: 1.5rem;
}

.welcome-page .choice-card.menu p {
    max-width: 26ch;
    color: rgba(255, 248, 238, 0.86);
    font-size: 0.9rem;
}

/* --- Walk-in note --- */
.welcome-page .walk-in-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 14px;
    padding: 14px 16px;
    border: 1px solid rgba(246, 210, 122, 0.55);
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(246, 210, 122, 0.2), rgba(246, 210, 122, 0.08));
    color: #5d4e3d;
    font-size: 0.92rem;
    text-align: left;
}

.welcome-page .walk-in-note svg.icon {
    width: 20px;
    height: 20px;
    margin-top: 1px;
    color: #B7791F;
}

/* --- Visit us card --- */
.welcome-page .info-card {
    max-width: 760px;
    margin: 34px auto 0;
    padding: 22px 20px;
    border: 1px solid var(--color-line);
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--shadow-sm);
    text-align: left;
}

.welcome-page .info-card-title {
    display: block;
    margin: 0 0 14px;
    padding: 0;
    text-align: left;
    font-size: 1.45rem;
}

.welcome-page .info-card-title::after {
    display: none;
}

.welcome-page .info-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 0;
    border-top: 1px solid #F1E9E0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.welcome-page .info-row:first-of-type {
    padding-top: 0;
    border-top: none;
}

.welcome-page .info-icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    margin: 0;
    border-radius: 11px;
    background: #FBF1E7;
    color: var(--color-primary);
    flex-shrink: 0;
}

.welcome-page .info-icon svg.icon {
    width: 19px;
    height: 19px;
}

.welcome-page .info-body {
    flex: 1;
    min-width: 0;
    padding-top: 1px;
}

.welcome-page .info-sub {
    font-size: 0.86em;
    color: var(--color-text-light);
}

.welcome-page .hours-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 10px;
}

.welcome-page .info-phones {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.welcome-page .phone-chip {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    background: #FBF1E7;
    color: var(--color-primary-dark);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.welcome-page .phone-chip:hover {
    background: var(--color-primary);
    color: #fff;
    text-decoration: none;
}

/* Navigate button */
.welcome-page .nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 100px;
    background: var(--color-primary);
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: var(--font-body);
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    align-self: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(178, 92, 46, 0.25);
}

.welcome-page .nav-btn svg.icon {
    width: 15px;
    height: 15px;
}

.welcome-page .nav-btn:hover {
    background: var(--color-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(178, 92, 46, 0.35);
    text-decoration: none;
    color: white;
}

.welcome-page .welcome-sign-off {
    margin: 6px 0 0;
    padding-top: 16px;
    border-top: 1px dashed rgba(178, 92, 46, 0.22);
    color: #6b5c4e;
    font-style: italic;
    font-size: 0.95rem;
    line-height: 1.6;
    text-align: center;
}

/* --- Social & Review Bar --- */
.welcome-page .social-bar {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: var(--space-lg) 0 0;
    flex-wrap: wrap;
}

.welcome-page .social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 24px;
    border-radius: 100px;
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
}

.welcome-page .social-btn:hover {
    transform: translateY(-2px);
    text-decoration: none;
}

.welcome-page .social-btn.facebook {
    background: #1877F2;
    color: white;
}

.welcome-page .social-btn.facebook:hover {
    background: #0d65d9;
    box-shadow: 0 6px 20px rgba(24, 119, 242, 0.35);
    color: white;
}

.welcome-page .social-btn.google-review {
    background: linear-gradient(135deg, #F59E0B, #D97706);
    color: white;
}

.welcome-page .social-btn.google-review:hover {
    background: linear-gradient(135deg, #D97706, #B45309);
    box-shadow: 0 6px 20px rgba(217, 119, 6, 0.35);
    color: white;
}

/* --- Site footer (homepage + menu page) --- */
.site-footer {
    margin-top: 48px;
    padding: 36px 20px calc(20px + env(safe-area-inset-bottom, 0px));
    background: var(--color-ink);
    color: rgba(255, 248, 238, 0.72);
    font-size: 0.88rem;
    text-align: left;
}

.site-footer a {
    color: rgba(255, 248, 238, 0.9);
}

.site-footer a:hover {
    color: var(--color-accent);
    text-decoration: none;
}

.site-footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px 48px;
    max-width: 1040px;
    margin: 0 auto;
}

.site-footer-brand img {
    display: block;
    width: 170px;
    height: auto;
    margin-bottom: 10px;
}

.site-footer-brand p {
    margin: 0;
    line-height: 1.75;
}

.site-footer-links {
    display: grid;
    grid-template-columns: repeat(2, auto);
    gap: 10px 32px;
    align-content: start;
}

.site-footer-links a {
    font-weight: 600;
}

.site-footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    max-width: 1040px;
    margin: 28px auto 0;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 248, 238, 0.5);
    font-size: 0.8rem;
}

.site-footer .staff-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    color: rgba(255, 248, 238, 0.65);
    font-size: 0.8rem;
    font-weight: 600;
}

.site-footer .staff-link:hover {
    border-color: rgba(246, 210, 122, 0.6);
    color: #fff;
}

.site-footer .staff-link svg.icon {
    width: 14px;
    height: 14px;
}

/* --- Phones --- */
@media (max-width: 480px) {
    .welcome-page .home-hero {
        min-height: 400px;
        padding: 58px 16px 30px;
    }

    .welcome-page .brand-tagline {
        font-size: 0.95rem;
        margin-bottom: 6px;
    }

    .welcome-page .hours-line {
        display: block;
    }

    .welcome-page .hours-status {
        display: flex;
        width: fit-content;
        margin-top: 8px;
        margin-left: auto;
        margin-right: auto;
    }

    .welcome-page .hero-btn {
        flex: 1 1 0;
        justify-content: center;
        padding: 0 14px;
    }

    .welcome-page .info-card {
        padding: 20px 16px;
    }

    .welcome-page .social-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .welcome-page .social-btn {
        width: 100%;
    }

    .site-footer-bottom {
        flex-direction: column-reverse;
        align-items: flex-start;
    }
}

/* Very narrow phones: tiles stack as rows so text never squeezes */
@media (max-width: 359px) {
    .welcome-page .choice-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Tablets & desktop: bento grid with a tall menu tile --- */
@media (min-width: 768px) {
    .welcome-page .home-hero {
        min-height: 540px;
        padding: 80px 24px 56px;
    }

    .welcome-page .home-hero-logo img {
        width: min(60vw, 500px);
    }

    .welcome-page .choice-grid {
        grid-template-columns: 1.3fr 1fr 1fr;
        grid-auto-rows: minmax(176px, auto);
        gap: 16px;
    }

    .welcome-page .choice-card {
        padding: 22px;
    }

    .welcome-page .choice-card h3 {
        font-size: 1.22rem;
    }

    .welcome-page .choice-card p {
        font-size: 0.9rem;
    }

    .welcome-page .choice-card.menu {
        grid-column: 1;
        grid-row: span 2;
        padding: 28px;
    }

    .welcome-page .choice-card-bg {
        background:
            linear-gradient(0deg, rgba(26, 17, 10, 0.92) 0%, rgba(26, 17, 10, 0.5) 50%, rgba(26, 17, 10, 0.08) 100%),
            url('../products/handmade-dumplings/hero.webp') 50% 50% / cover no-repeat;
    }

    .welcome-page .choice-card.menu h3 {
        font-size: 2rem;
    }

    .welcome-page .choice-card.menu p {
        font-size: 1rem;
    }

    .welcome-page .info-card {
        padding: 28px 32px;
    }
}
