/**
 * Ristorante Il Gusto - Frontend CSS Stylesheet
 * 
 * Vibe: Sophisticated, upscale Italian dining
 * Palette: Off-white/Cream, Gold/Bronze, Charcoal Black
 */

:root {
    --primary: #b68d40;
    --primary-hover: #9c7633;
    --primary-light: #fdfaf2;
    
    --bg-light: #fdfcf9;
    --bg-cream: #f7f4ec;
    --bg-dark: #121212;
    --bg-dark-accent: #1a1a1a;
    
    --text-dark: #1c1a17;
    --text-light: #fcfcfc;
    --text-muted: #6b6761;
    
    --border-color: #e5dfd3;
    --border-light: #f3eee3;
    
    --transition-smooth: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow-subtle: 0 4px 20px rgba(28, 26, 23, 0.03);
    --shadow-medium: 0 10px 30px rgba(28, 26, 23, 0.06);
    
    --success: #2a9d8f;
    --error: #e63946;
}

/* Reset & Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 25px;
}

/* Typography */
h1, h2, h3, h4, h5, h6, .brand-font {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 500;
    line-height: 1.3;
}

p {
    font-size: 16px;
    color: var(--text-muted);
    font-weight: 300;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 0; /* Elegant sharp corners */
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--text-light);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--primary);
    color: var(--primary);
}

.btn-secondary:hover {
    background-color: var(--primary);
    color: var(--text-light);
    transform: translateY(-2px);
}

.btn-block {
    display: flex;
    width: 100%;
}

/* Top Bar */
.top-bar {
    background-color: var(--bg-dark-accent);
    color: #a3a19d;
    font-size: 13px;
    padding: 10px 0;
    border-bottom: 1px solid #222;
}

.top-bar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-info-link {
    color: #a3a19d;
    text-decoration: none;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-info-link:hover {
    color: var(--primary);
}

.top-info-text {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s;
}

.top-info-text:hover {
    color: var(--primary);
}

/* Main Navigation */
.main-header {
    background-color: rgba(253, 252, 249, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition-smooth);
}

.main-header.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.header-container {
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: var(--text-dark);
    text-decoration: none;
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 1.5px;
    line-height: 1;
    display: flex;
    flex-direction: column;
}

.logo span {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--primary);
    margin-top: 4px;
}

.nav-menu ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding: 8px 0;
    transition: color 0.3s;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--primary);
    transition: var(--transition-smooth);
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-btn {
    padding: 8px 18px;
    font-size: 12px;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    width: 30px;
}

.mobile-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-dark);
    transition: var(--transition-smooth);
}

/* Hero Section / Slider */
.hero {
    position: relative;
    width: 100%;
    aspect-ratio: 21 / 9; /* Cinematic wide ratio, matching original site */
    min-height: 450px;
    max-height: 850px;
    background-color: var(--bg-dark);
    color: var(--text-light);
    overflow: hidden;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    display: flex;
    align-items: center;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

/* High-end design layout overlays - background images styled elegantly */
.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.4);
    transform: scale(1.05);
    transition: transform 6s ease-out;
}

.slide.active .slide-bg {
    transform: scale(1);
}

.slide-content {
    position: relative;
    z-index: 10;
    max-width: 650px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s 0.4s ease-out, transform 0.8s 0.4s ease-out;
}

.slide.active .slide-content {
    opacity: 1;
    transform: translateY(0);
}

.slide-tagline {
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--primary);
    margin-bottom: 15px;
}

.slide-content h2 {
    font-size: 52px;
    margin-bottom: 20px;
}

.slide-content p {
    color: #e5e2db;
    font-size: 18px;
    margin-bottom: 30px;
}

/* Slider Controls */
.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 20;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.dot:hover, .dot.active {
    background-color: var(--primary);
    transform: scale(1.2);
}

/* Section Header */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px auto;
}

.section-subtitle {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--primary);
    margin-bottom: 15px;
    display: block;
}

.section-title {
    font-size: 38px;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.section-header p {
    font-size: 16px;
    color: var(--text-muted);
}

.section-divider {
    width: 60px;
    height: 1px;
    background-color: var(--primary);
    margin: 20px auto 0 auto;
}

/* Menu Section */
.menu-section {
    background-color: var(--bg-cream);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 35px 50px;
    min-height: 200px;
    transition: opacity 0.3s;
}

.menu-item {
    background-color: var(--bg-light);
    border: 1px solid var(--border-light);
    padding: 25px;
    box-shadow: var(--shadow-subtle);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition-smooth);
}

.menu-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
    border-color: var(--border-color);
}

.menu-item-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 15px;
    margin-bottom: 10px;
}

.menu-item-name {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
}

.menu-item-price {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: 18px;
    color: var(--primary);
    white-space: nowrap;
}

.menu-item-desc {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 15px;
    font-weight: 300;
}

#allergenPanel {
    transition: opacity 0.3s ease;
}

.menu-item-footer {
    display: flex;
    justify-content: flex-end;
    gap: 5px;
}

/* Wine Section (Flip Cards) */
.wine-section {
    background-color: var(--bg-cream);
}

.wine-grid {
    transition: opacity 0.3s ease;
}

.wine-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
}

.wine-card {
    background-color: transparent;
    height: 280px;
    perspective: 1000px;
    cursor: pointer;
}

.wine-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
    box-shadow: var(--shadow-subtle);
    will-change: transform;
}

.wine-card:hover .wine-card-inner {
    transform: rotateY(180deg);
    box-shadow: var(--shadow-medium);
}

.wine-card-front, .wine-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    padding: 25px;
}

.wine-card-front {
    background-color: var(--bg-light);
    color: var(--text-dark);
    justify-content: space-between;
}

.wine-card-back {
    background-color: var(--bg-dark);
    color: var(--text-light);
    transform: rotateY(180deg);
    justify-content: flex-start;
    overflow-y: auto;
    text-align: left;
}

.wine-header {
    margin-bottom: 15px;
}

.wine-region {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    margin-bottom: 8px;
}

.wine-name {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
}

.wine-name-back {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary);
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding-bottom: 10px;
}

.wine-info {
    margin-bottom: 15px;
}

.wine-meta {
    font-size: 14px;
    color: var(--text-muted);
}

.wine-price-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: auto;
}

.wine-price-box {
    text-align: center;
}

.wine-price-box .wine-size {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.wine-price-box .wine-price {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--primary);
}

.wine-price-box.magnum .wine-price {
    color: var(--primary);
}

.wine-flip-hint {
    margin-top: 15px;
    font-size: 12px;
    color: var(--text-muted);
    opacity: 0.6;
    transition: opacity 0.3s;
}

.wine-card:hover .wine-flip-hint {
    opacity: 0;
}

/* Touch devices: click to flip instead of hover */
@media (hover: none) {
    .wine-card:hover .wine-card-inner {
        transform: none;
        box-shadow: var(--shadow-subtle);
    }
    .wine-card.flipped .wine-card-inner {
        transform: rotateY(180deg);
        box-shadow: var(--shadow-medium);
    }
    .wine-flip-hint {
        opacity: 1 !important;
    }
    .wine-flip-hint span::after {
        content: ' (Tippen zum Umdrehen)';
        font-size: 11px;
    }
}

.wine-grapes {
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.5;
}

.wine-desc {
    font-size: 14px;
    line-height: 1.6;
    font-weight: 300;
    opacity: 0.9;
}

/* Event Cards */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.event-card {
    position: relative;
    cursor: pointer;
    background-color: var(--bg-light);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-subtle);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
    border-color: var(--border-color);
}

.event-img-wrapper {
    position: relative;
    height: 200px;
    overflow: hidden;
    background-color: #efede7;
}

.event-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.event-card:hover .event-img {
    transform: scale(1.05);
}

.event-date-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: var(--primary);
    color: var(--text-light);
    padding: 8px 12px;
    font-family: 'Playfair Display', serif;
    font-size: 14px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.event-date-badge span {
    font-size: 18px;
    font-weight: 700;
    display: block;
}

.event-card-body {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.event-card h3 {
    font-size: 22px;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.event-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

.event-vital-info {
    font-size: 13px;
    color: var(--text-dark);
    font-weight: 500;
    margin-top: 10px;
}

/* Event Overlay Animation */
.event-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(30, 30, 30, 0.96);
    color: #fff;
    transform: translateY(101%);
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: 10;
    padding: 30px 25px;
    backdrop-filter: blur(4px);
}

.event-card:hover .event-overlay,
.event-card.active .event-overlay {
    transform: translateY(0);
}

/* Reservation Section */
.reservation-section {
    background-color: var(--bg-cream);
    position: relative;
}

.reservation-box {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-medium);
    padding: 50px;
}

.reservation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-light);
    border-radius: 0;
    font-size: 15px;
    font-family: inherit;
    transition: var(--transition-smooth);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background-color: white;
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.alert {
    padding: 15px 20px;
    margin-bottom: 30px;
    font-size: 15px;
    line-height: 1.5;
}

.alert-success {
    background-color: #eaf6f4;
    color: var(--success);
    border: 1px solid #a8dadc;
}

.alert-error {
    background-color: #fdf2f2;
    color: var(--error);
    border: 1px solid #f8b4b4;
}

/* Footer */
.site-footer {
    background-color: var(--bg-dark);
    color: #a3a19d;
    padding: 80px 0 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 60px;
}

.footer-logo {
    color: var(--text-light);
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.footer-tagline {
    max-width: 320px;
    font-size: 15px;
    margin-bottom: 20px;
    color: #7b7873;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: #7b7873;
    font-size: 18px;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--primary);
}

.footer-col h4 {
    color: var(--text-light);
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 25px;
    position: relative;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 1px;
    background-color: var(--primary);
}

.hours-list, .contact-list {
    list-style: none;
}

.hours-list li {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 12px;
    border-bottom: 1px dashed #222;
    padding-bottom: 6px;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    margin-bottom: 15px;
}

.contact-list li a {
    color: #a3a19d;
    text-decoration: none;
    transition: color 0.2s;
}

.contact-list li a:hover {
    color: var(--primary);
}

.contact-list i {
    color: var(--primary);
    margin-top: 4px;
}

.kitchen-note {
    font-size: 12px;
    color: #615f5c;
    margin-top: 20px;
    line-height: 1.4;
}

.footer-bottom {
    background-color: var(--bg-dark-accent);
    padding: 30px 0;
    border-top: 1px solid #1e1e1e;
    font-size: 13px;
}

.footer-bottom-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: #7b7873;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--text-light);
}

.footer-links .hidden-admin-link {
    color: #4a4844; /* extremely faint link */
    font-size: 12px;
}

.footer-links .hidden-admin-link:hover {
    color: var(--primary);
}

/* Modals */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(18, 18, 18, 0.7);
    backdrop-filter: blur(5px);
}

.modal-card {
    position: relative;
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-medium);
    padding: 40px;
    max-width: 450px;
    width: 90%;
    z-index: 10;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal.active .modal-card {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--primary);
}

.modal-card h3 {
    font-size: 24px;
    margin-bottom: 25px;
    color: var(--text-dark);
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 10px;
}

.modal-hours-list {
    list-style: none;
    margin-bottom: 25px;
}

.modal-hours-list li {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 6px;
}

.modal-hours-note {
    font-size: 12px;
    color: var(--text-muted);
}

/* ── Badge/Label Chips ─────────────────────────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
}

.badge-success {
    background-color: #e6f9f7;
    color: #2ec4b6;
}

.badge-danger {
    background-color: #fdebee;
    color: var(--error);
}

/* ── Tab Buttons (Menu Categories) ────────────────────────────────────────── */
.menu-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 50px;
}

.tab-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    padding: 9px 22px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 30px;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.tab-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

.tab-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 4px 14px rgba(182, 141, 64, 0.25);
}

/* Remove old ::after pseudo-element effect */
.tab-btn::after { display: none; }

/* Allergen Panel fade transition */
#allergenPanel {
    transition: opacity 0.3s ease;
}

/* ── Floating Contact Widget ─────────────────────────────────────────────── */
.floating-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.floating-widget-btn {
    width: auto;
    padding: 0 25px;
    height: 56px;
    border-radius: 28px;
    background-color: var(--primary);
    color: #fff;
    border: none;
    box-shadow: 0 5px 20px rgba(182, 141, 64, 0.4);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.3s;
    outline: none;
    animation: pulse-shadow 2s infinite;
}

@keyframes pulse-shadow {
    0% { box-shadow: 0 0 0 0 rgba(182, 141, 64, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(182, 141, 64, 0); }
    100% { box-shadow: 0 0 0 0 rgba(182, 141, 64, 0); }
}

.floating-widget-btn i {
    font-size: 20px;
}

.floating-widget-btn:hover,
.floating-widget:focus-within .floating-widget-btn {
    transform: scale(1.1);
    background-color: var(--primary-hover);
}

.floating-widget-content {
    position: absolute;
    bottom: 75px;
    right: 0;
    width: 280px;
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-color);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transform-origin: bottom right;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
}

/* Show only when JS adds .active */
.floating-widget.active .floating-widget-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.floating-widget-content h4 {
    font-size: 16px;
    margin-bottom: 15px;
    color: var(--text-dark);
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 8px;
    font-family: 'Playfair Display', serif;
}

.widget-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 15px;
}

.widget-contact a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.widget-contact a i {
    color: var(--primary);
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.widget-contact a:hover {
    color: var(--primary);
}

.floating-widget-content hr {
    border: 0;
    height: 1px;
    background: var(--border-light);
    margin: 15px 0;
}

.widget-hours {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 13px;
}

.widget-hours li {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
    color: var(--text-muted);
    font-size: 12px;
}

.widget-hours li span:first-child {
    font-weight: 600;
    color: var(--text-dark);
}

/* ── Responsive Styles ─────────────────────────────────────────────────────── */
@media (max-width: 991px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-col:first-child {
        grid-column: span 2;
    }

    .menu-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .top-bar { display: none; }

    .mobile-toggle { display: flex; }

    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--bg-light);
        padding: 40px 25px;
        transform: translateX(100%);
        transition: var(--transition-smooth);
        border-top: 1px solid var(--border-light);
        overflow-y: auto;
        z-index: 90;
    }

    .nav-menu.active { transform: translateX(0); }

    .nav-menu ul {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }

    .nav-link { font-size: 17px; }

    /* Hero */
    .hero { height: 480px; }

    .slide-content {
        padding: 0 5px;
    }

    .slide-content h2 {
        font-size: 30px;
        margin-bottom: 14px;
    }

    .slide-content p {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .slide-tagline {
        font-size: 12px;
        letter-spacing: 2px;
        margin-bottom: 10px;
    }

    /* Sections */
    .section { padding: 50px 0; }

    .section-title { font-size: 28px; }

    .section-header { margin-bottom: 35px; }

    /* Welcome section two-col layout → stack */
    .form-row {
        flex-direction: column;
    }

    /* Menu tabs – horizontal scroll on mobile */
    .menu-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 6px;
        margin-bottom: 30px;
        padding-bottom: 4px;
    }
    .menu-tabs::-webkit-scrollbar { display: none; }

    /* Wine tabs – horizontal scroll on mobile */
    .wine-tabs {
        flex-wrap: nowrap !important;
        overflow-x: auto;
        justify-content: flex-start !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 4px;
    }
    .wine-tabs::-webkit-scrollbar { display: none; }

    .tab-btn {
        font-size: 12px;
        padding: 7px 16px;
        flex-shrink: 0;
    }

    /* Menu grid */
    .menu-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .menu-item { padding: 18px; }

    .menu-item-name { font-size: 17px; }

    .menu-item-price { font-size: 16px; }

    /* Wine cards on mobile */
    .wine-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    .wine-card {
        height: 300px;
    }

    .wine-card-front,
    .wine-card-back {
        padding: 20px;
    }

    .wine-name { font-size: 17px; }

    /* Allergen panel grid – single column on mobile */
    #allergenPanel > div {
        grid-template-columns: 1fr !important;
    }

    /* Events */
    .events-grid {
        grid-template-columns: 1fr;
    }

    /* Reservation */
    .reservation-box {
        padding: 25px 15px;
    }

    .reservation-grid {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-col:first-child { grid-column: span 1; }

    .footer-bottom-container {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .footer-links { justify-content: center; flex-wrap: wrap; gap: 12px; }

    /* Opening hours box in welcome section */
    .hours-list li { font-size: 13px; }
}

@media (max-width: 480px) {
    .container { padding: 0 15px; }

    .section-title { font-size: 24px; }

    .slide-content h2 { font-size: 24px; }

    .logo { font-size: 20px; }

    .reservation-box { padding: 20px 12px; }

    .form-control { font-size: 14px; }
}
