/* ========================================
   TIFFANY FOOD & DRINK — WEB MENU
   ======================================== */

/* --- Variables --- */
:root {
    /* Food section palette — Tiffany brand */
    --food-bg: #faf4ec;
    --food-card-bg: #ffffff;
    --food-accent: #ef764b;
    --food-accent-light: #f8aa48;
    --food-text: #2d5260;
    --food-text-muted: #7d95a0;
    --food-border: #e8dfd4;

    /* Bar section palette — Tiffany brand teal (reference) */
    --bar-bg: #3a626a;
    --bar-bg-light: #46727c;
    --bar-card-bg: transparent;
    --bar-accent: #f8aa48;
    --bar-accent-light: #ef764b;
    --bar-text: #ffffff;
    --bar-text-muted: #cfe8ee;
    --bar-border: rgba(255,255,255,.35);

    /* Shared */
    --font-heading: 'Cormorant Garamond', Georgia, serif;
    --font-category: 'Comfortaa', cursive;
    --font-body: 'Montserrat', 'Segoe UI', sans-serif;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 2px 16px rgba(0,0,0,.08);
    --shadow-lg: 0 8px 32px rgba(0,0,0,.12);
    --transition: .3s ease;
}

/* --- Reset --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; height: 100%; }
body {
    font-family: var(--font-body);
    color: var(--food-text);
    background: var(--food-bg);
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
    min-height: 100%;
    -webkit-overflow-scrolling: touch;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* --- Container --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   HERO
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--food-bg);
    overflow: hidden;
    padding: 40px 20px;
}
.hero__overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.hero__content {
    position: relative;
    z-index: 1;
    text-align: center;
    width: 100%;
    max-width: 700px;
}

/* Hero grid: logo spans full width, cards below in 2 columns */
.hero__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    width: 100%;
}
.hero__logo {
    grid-column: 1 / -1;
    text-align: center;
    margin-bottom: 0;
}
.hero__logo-card {
    display: inline-block;
    background: #ede4d8;
    border-radius: 16px;
    padding: 32px 48px;
    box-shadow: 0 8px 32px rgba(45,82,96,.08);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    transform-style: preserve-3d;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}
.logo-tiffany {
    display: block;
    width: 100%;
    max-width: 560px;
    height: auto;
    margin: 0 auto;
    user-select: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}
.hero__title,
.hero__subtitle { display: none; }
.hero-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 36px 24px;
    border-radius: var(--radius);
    transition: transform var(--transition), box-shadow var(--transition);
}
.hero-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.hero-card--food {
    background: linear-gradient(135deg, var(--food-accent), var(--food-accent-light));
    color: #fff;
}
.hero-card--bar {
    background: var(--bar-bg);
    color: #fff;
    border: 1px solid var(--bar-bg);
}
.hero-card__icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}
.hero-card__label {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 1px;
}
.hero-card__desc {
    font-size: 12px;
    opacity: .85;
    line-height: 1.4;
    max-width: 200px;
}

/* Scroll indicator */
.hero__scroll {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(45,82,96,.45);
    animation: bounce 2s infinite;
    z-index: 1;
}
@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ========================================
   NAV
   ======================================== */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(250,244,236,.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--food-border);
    transform: translateY(-100%);
    transition: transform var(--transition);
}
.nav.visible { transform: translateY(0); }
.nav__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav__logo {
    display: flex;
    align-items: center;
}
.nav__logo-img {
    height: 52px;
    width: auto;
}
.nav__links { display: flex; gap: 24px; }
.nav__link {
    font-size: 14px;
    font-weight: 500;
    color: var(--food-text-muted);
    transition: color var(--transition);
    position: relative;
}
.nav__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--food-accent);
    transition: width var(--transition);
}
.nav__link:hover { color: var(--food-accent); }
.nav__link:hover::after { width: 100%; }

/* Nav actions */
.nav__actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.nav__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 24px;
    font-size: 13px;
    font-weight: 500;
    transition: all var(--transition);
    border: 1.5px solid var(--food-border);
    color: var(--food-text-muted);
    background: transparent;
    white-space: nowrap;
}
.nav__btn:hover {
    border-color: var(--food-accent);
    color: var(--food-accent);
}
.nav__btn--vk:hover {
    border-color: #0077FF;
    color: #0077FF;
}
.nav__btn--booking {
    background: var(--food-accent);
    border-color: var(--food-accent);
    color: #fff;
}
.nav__btn--booking:hover {
    background: var(--food-accent-light);
    border-color: var(--food-accent-light);
    color: #fff;
}
.nav__btn-icon {
    flex-shrink: 0;
}

/* ========================================
   MENU SECTIONS
   ======================================== */
.menu-section {
    padding: 60px 0 80px;
}
.menu-section--bar {
    background: var(--bar-bg);
    color: var(--bar-text);
}

/* Section title */
.section-title {
    font-family: var(--font-heading);
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}
.section-title--food {
    color: var(--food-text);
    font-family: var(--font-category);
    font-weight: 700;
}
.section-title--food::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--food-accent);
    margin: 12px auto 0;
    border-radius: 2px;
}
.section-title--bar {
    color: var(--bar-text);
    font-family: var(--font-category);
    font-weight: 700;
}
.section-title--bar::after {
    content: '';
    display: block;
    width: 60px;
    height: 1px;
    background: var(--bar-border);
    margin: 12px auto 0;
    border-radius: 0;
}

/* ========================================
   FILTERS
   ======================================== */
.filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 40px;
    position: sticky;
    top: 60px;
    z-index: 40;
    background: var(--food-bg);
    padding: 14px 24px;
    margin-left: -20px;
    margin-right: -20px;
    box-shadow: 0 6px 20px -12px rgba(0,0,0,.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform .3s ease;
}
.filters.filters--hidden {
    transform: translateY(calc(-100% - 80px));
}
.filter-btn {
    padding: 8px 18px;
    border-radius: 24px;
    font-size: 13px;
    font-weight: 500;
    transition: all var(--transition);
    border: 1.5px solid var(--food-border);
    color: var(--food-text-muted);
    background: transparent;
}
.filter-btn:hover {
    border-color: var(--food-accent);
    color: var(--food-accent);
}
.filter-btn.active {
    background: var(--food-accent);
    border-color: var(--food-accent);
    color: #fff;
}

/* Bar filters */
.filters--bar {
    background: var(--bar-bg);
    box-shadow: 0 6px 20px -12px rgba(0,0,0,.35);
}
.filters--bar .filter-btn {
    border-color: var(--bar-border);
    color: var(--bar-text-muted);
}
.filters--bar .filter-btn:hover {
    border-color: var(--bar-text);
    color: var(--bar-text);
}
.filters--bar .filter-btn.active {
    background: var(--bar-text);
    border-color: var(--bar-text);
    color: var(--bar-bg);
}

/* ========================================
   MENU GRID
   ======================================== */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

/* Category card */
.menu-category {
    background: var(--food-card-bg);
    border-radius: var(--radius);
    padding: 28px 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--food-border);
    transition: opacity var(--transition), transform var(--transition);
}
.menu-category.hidden {
    display: none;
}
.category-title {
    font-family: var(--font-category);
    font-size: 24px;
    font-weight: 700;
    color: var(--food-accent);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--food-accent);
    display: flex;
    align-items: center;
    gap: 8px;
}
.category-note {
    font-size: 12px;
    color: var(--food-text-muted);
    margin-top: -14px;
    margin-bottom: 18px;
    font-style: italic;
}

/* Bar category overrides — card layout like food menu */
.menu-section--bar .menu-category {
    background: rgba(255,255,255,.08);
    border: 1px solid var(--bar-border);
    border-radius: var(--radius);
    box-shadow: 0 2px 16px rgba(0,0,0,.1);
    padding: 28px 24px;
}
.menu-section--bar .category-title {
    font-family: var(--font-category);
    color: var(--food-accent);
    border-bottom-color: var(--bar-border);
    border-bottom-width: 2px;
    font-weight: 700;
    font-size: 24px;
}
.menu-section--bar .category-note {
    color: var(--bar-text-muted);
}
.beer-subheading {
    font-family: var(--font-category);
    font-size: 16px;
    font-weight: 600;
    color: var(--bar-text);
    margin: 20px 0 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.category-note-bar {
    text-align: center;
    padding: 10px 16px;
    margin-bottom: 18px;
    background: rgba(255,255,255,.1);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--bar-text);
}
.price-highlight {
    font-weight: 700;
    color: var(--bar-accent);
    font-size: 16px;
}

/* Vector flags */
.flag {
    width: 21px;
    height: 14px;
    display: inline-block;
    vertical-align: -2px;
    margin-left: 6px;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(0,0,0,.12);
}

/* Tea list: 2-column layout */
.tea-list {
    list-style: none;
    padding: 0;
    margin: 12px 0 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 24px;
}
.tea-list li {
    font-size: 13px;
    color: var(--bar-text-muted);
    line-height: 1.4;
}
.menu-section--bar .tea-list li {
    color: var(--bar-text-muted);
}
@media (max-width: 480px) {
    .tea-list {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   MENU ITEM
   ======================================== */
.category-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.menu-item {
    padding-bottom: 14px;
    border-bottom: 1px solid var(--food-border);
}
.menu-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
}
.menu-item__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 4px;
}
.menu-item__name {
    font-size: 15px;
    font-weight: 500;
    color: var(--food-text);
    line-height: 1.4;
}
.menu-item__price {
    font-size: 15px;
    font-weight: 600;
    color: var(--food-accent);
    white-space: nowrap;
    flex-shrink: 0;
}
.menu-item__desc {
    font-size: 12px;
    color: var(--food-text-muted);
    line-height: 1.5;
    margin-bottom: 4px;
}
.menu-item__meta {
    font-size: 11px;
    color: var(--food-text-muted);
    font-weight: 400;
}
.menu-item__weight {
    background: var(--food-bg);
    padding: 2px 8px;
    border-radius: 4px;
}

/* Bar item overrides */
.menu-section--bar .menu-item {
    border-bottom-color: var(--bar-border);
}
.menu-section--bar .menu-item__name {
    color: var(--bar-text);
    font-size: 15px;
    font-weight: 500;
}
.menu-section--bar .menu-item__price {
    color: var(--bar-text);
    font-weight: 600;
}
.menu-section--bar .menu-item__desc {
    color: var(--bar-text-muted);
}
.menu-section--bar .menu-item__weight {
    background: rgba(255,255,255,.1);
    color: var(--bar-text-muted);
}

/* Badges */
.badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.5px;
    padding: 3px 8px;
    border-radius: 4px;
    margin-right: 6px;
    vertical-align: middle;
    text-transform: uppercase;
}
.badge--new {
    background: var(--food-accent);
    color: #fff;
}
.badge--top {
    background: var(--bar-accent);
    color: var(--bar-bg);
}
.menu-section--bar .badge--new {
    background: var(--bar-accent-light);
    color: #fff;
}
.menu-section--bar .badge--top {
    background: #fff;
    color: var(--bar-bg);
}

/* Info Icon */
.info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    color: var(--food-text-muted);
    cursor: help;
    margin-left: 6px;
    vertical-align: middle;
    position: relative;
    transition: color var(--transition);
}

.info-icon svg {
    width: 100%;
    height: 100%;
}

.info-icon:hover {
    color: var(--food-accent);
}

.menu-section--bar .info-icon {
    color: var(--bar-text-muted);
}

.menu-section--bar .info-icon:hover {
    color: var(--bar-text);
}

/* Inline Flag */
.flag-inline {
    width: 21px;
    height: 14px;
    display: inline-block;
    vertical-align: -2px;
    margin-left: 6px;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(0,0,0,.12);
}

/* Info Tooltip */
.info-tooltip {
    position: fixed;
    background: var(--food-card-bg);
    color: var(--food-text);
    border: 1px solid var(--food-border);
    border-radius: 10px;
    padding: 14px 18px;
    font-size: 13px;
    line-height: 1.5;
    max-width: 280px;
    box-shadow: 0 8px 32px rgba(0,0,0,.12);
    opacity: 0;
    transform: translateY(6px) scale(0.96);
    transition: opacity .25s ease, transform .25s ease;
    pointer-events: none;
    z-index: 1000;
    font-family: var(--font-body);
}

.info-tooltip.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.menu-section--bar .info-tooltip {
    background: var(--bar-bg);
    color: var(--bar-text);
    border-color: var(--bar-border);
    box-shadow: 0 8px 32px rgba(0,0,0,.25);
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: var(--bar-bg);
    color: var(--bar-text-muted);
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid var(--bar-border);
}
.footer__content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-bottom: 16px;
}
.footer__stamp {
    width: 140px;
    height: auto;
    flex-shrink: 0;
    user-select: none;
}
.footer__logo-main {
    width: 280px;
    height: auto;
    user-select: none;
}
.footer__copy {
    font-size: 12px;
    opacity: .6;
}

/* Footer actions */
.footer__actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}
.footer__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition);
    border: 1.5px solid var(--bar-border);
    color: var(--bar-text-muted);
    background: transparent;
    white-space: nowrap;
}
.footer__btn:hover {
    border-color: var(--bar-text);
    color: var(--bar-text);
}
.footer__btn--vk:hover {
    border-color: #0077FF;
    color: #0077FF;
}
.footer__btn--booking {
    background: var(--food-accent);
    border-color: var(--food-accent);
    color: #fff;
}
.footer__btn--booking:hover {
    background: var(--food-accent-light);
    border-color: var(--food-accent-light);
    color: #fff;
}
.footer__btn-icon {
    flex-shrink: 0;
}

/* ========================================
   BOOKING POPUP
   ======================================== */
.booking-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition), visibility var(--transition);
    padding: 20px;
}
.booking-overlay.visible {
    opacity: 1;
    visibility: visible;
}
.booking-popup {
    background: var(--food-card-bg);
    border-radius: var(--radius);
    padding: 32px;
    max-width: 380px;
    width: 100%;
    position: relative;
    box-shadow: var(--shadow-lg);
    transform: translateY(20px) scale(0.95);
    transition: transform var(--transition);
    text-align: center;
}
.booking-overlay.visible .booking-popup {
    transform: translateY(0) scale(1);
}
.booking-popup__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--food-text-muted);
    transition: all var(--transition);
}
.booking-popup__close:hover {
    background: var(--food-bg);
    color: var(--food-text);
}
.booking-popup__title {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    color: var(--food-text);
    margin-bottom: 8px;
}
.booking-popup__subtitle {
    font-size: 14px;
    color: var(--food-text-muted);
    margin-bottom: 16px;
}
.booking-popup__phones {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}
.booking-popup__phone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    background: var(--food-bg);
    color: var(--food-text);
    font-size: 16px;
    font-weight: 600;
    transition: all var(--transition);
}
.booking-popup__phone:hover {
    background: var(--food-accent);
    color: #fff;
}
.booking-popup__phone:hover svg {
    stroke: #fff;
}
.booking-popup__phone svg {
    flex-shrink: 0;
}
.booking-popup__divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    color: var(--food-text-muted);
    font-size: 13px;
}
.booking-popup__divider::before,
.booking-popup__divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--food-border);
}
.booking-popup__vk-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    background: #0077FF;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition);
    width: 100%;
}
.booking-popup__vk-btn:hover {
    background: #0066DD;
}

/* ========================================
   BACK TO TOP
   ======================================== */
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--food-accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition);
    z-index: 99;
}
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top:hover {
    background: var(--food-accent-light);
    transform: translateY(-2px);
}

/* ========================================
   RESPONSIVE
   ======================================== */

/* Tablet */
@media (max-width: 768px) {
    .hero__grid {
        grid-template-columns: 1fr;
        max-width: 360px;
        margin: 0 auto;
    }
    .menu-grid {
        grid-template-columns: 1fr;
    }
    .hero-card {
        padding: 28px 20px;
    }
    .filters {
        gap: 6px;
    }
    .filter-btn {
        padding: 6px 14px;
        font-size: 12px;
    }
    .nav__inner {
        flex-wrap: wrap;
    }
    .nav__btn-text {
        display: none;
    }
    .nav__btn {
        padding: 8px 10px;
    }
    .nav__actions {
        gap: 4px;
        margin-left: auto;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .hero {
        min-height: 100svh;
        padding: 32px 16px;
    }
    .logo-tiffany { width: 220px; height: auto; }
    .hero__logo-card { padding: 24px 32px; }
    .footer__content { gap: 16px; }
    .footer__stamp { width: 96px; }
    .footer__logo-main { width: 200px; }
    .hero-card__icon { width: 36px; height: 36px; }
    .hero-card__label { font-size: 20px; }
    .hero-card__desc { font-size: 11px; }
    .menu-section { padding: 40px 0 60px; }
    .menu-category { padding: 20px 16px; }
    .container { padding: 0 14px; }
    .nav__inner {
        padding: 10px 14px;
        flex-wrap: wrap;
        gap: 8px;
    }
    .nav__links { gap: 16px; }
    .nav__link { font-size: 13px; }
    .nav__actions {
        margin-left: auto;
    }
    .nav__btn {
        padding: 6px 8px;
    }
    .nav__btn-icon {
        width: 18px;
        height: 18px;
    }
    .back-to-top { bottom: 16px; right: 16px; width: 40px; height: 40px; }
    .menu-item__header { flex-direction: column; gap: 2px; }
    .menu-item__price { align-self: flex-end; }
    .footer__actions {
        gap: 8px;
    }
    .footer__btn {
        padding: 8px 14px;
        font-size: 13px;
    }
    .booking-popup {
        padding: 24px 20px;
        max-width: calc(100vw - 40px);
        max-height: calc(100vh - 40px);
        overflow-y: auto;
    }
    .booking-popup__title {
        font-size: 20px;
    }
    .booking-popup__phone {
        font-size: 15px;
        padding: 10px 16px;
        word-break: break-word;
    }
}

/* Wide screens */
@media (min-width: 1200px) {
    .menu-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
