/* ==========================================================================
   DESIGN SYSTEM & CUSTOM PROPERTIES
   ========================================================================== */
:root {
    /* Color Palette */
    --primary: hsl(14, 60%, 45%);             /* Warm Terracotta */
    --primary-hover: hsl(14, 60%, 38%);
    --primary-light: hsl(14, 60%, 95%);
    --secondary: hsl(120, 20%, 25%);          /* Rustic Olive/Forest Green */
    --secondary-hover: hsl(120, 20%, 18%);
    --bg-warm: hsl(36, 40%, 97%);             /* Soft Cream Background */
    --text-dark: hsl(24, 25%, 15%);           /* Rich Charcoal/Espresso */
    --text-muted: hsl(24, 15%, 45%);
    --card-bg: hsl(0, 0%, 100%);
    --border-color: hsl(24, 20%, 88%);
    
    /* Shadows */
    --shadow-sm: 0 2px 8px hsla(14, 30%, 15%, 0.05);
    --shadow-md: 0 8px 24px hsla(14, 30%, 15%, 0.08);
    --shadow-lg: 0 16px 40px hsla(14, 30%, 15%, 0.12);
    
    /* Typography */
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', 'Montserrat', system-ui, -apple-system, sans-serif;
    
    /* Layout Sizes */
    --container-max: 1200px;
    --header-height: 80px;
    --header-shrink-height: 70px;
    --border-radius: 12px;
}

/* ==========================================================================
   BASE STYLES & RESET
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-warm);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Paper/Linen Texture Overlay for Organic/Tuscan feel */
.texture-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.025;
    background-image: 
        repeating-linear-gradient(45deg, #000 25%, transparent 25%, transparent 75%, #000 75%, #000),
        repeating-linear-gradient(45deg, #000 25%, var(--bg-warm) 25%, var(--bg-warm) 75%, #000 75%, #000);
    background-size: 4px 4px;
    background-position: 0 0, 2px 2px;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   REUSABLE UTILITIES & COMPONENTS
   ========================================================================== */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 12px 28px;
    border-radius: 30px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: center;
}

.btn-primary {
    background-color: var(--primary);
    color: #fff;
    box-shadow: 0 4px 12px hsla(14, 60%, 45%, 0.2);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px hsla(14, 60%, 45%, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background-color: transparent;
    border-color: #fff;
    color: #fff;
}

.btn-secondary:hover {
    background-color: #fff;
    color: var(--text-dark);
    transform: translateY(-2px);
}

.btn-secondary:active {
    transform: translateY(0);
}

.btn-large {
    padding: 16px 36px;
    font-size: 1.05rem;
}

.btn-wide {
    width: 100%;
}

.btn-text-action {
    background: none;
    border: none;
    color: var(--primary);
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    padding: 8px 0;
    position: relative;
    align-self: flex-start;
    transition: color 0.3s ease;
}

.btn-text-action::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.btn-text-action:hover {
    color: var(--primary-hover);
}

.btn-text-action:hover::after {
    width: 100%;
    background-color: var(--primary-hover);
}

/* Sections */
.section-tagline {
    display: block;
    font-family: var(--font-serif);
    color: var(--primary);
    font-size: 1.3rem;
    font-style: italic;
    margin-bottom: 8px;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
    margin-bottom: 16px;
}

/* ==========================================================================
   NAVIGATION HEADER
   ========================================================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: transparent;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border-bottom: 1px solid transparent;
}

.main-header.scrolled {
    height: var(--header-shrink-height);
    background-color: var(--bg-warm);
    border-bottom-color: var(--border-color);
    box-shadow: var(--shadow-sm);
}

.nav-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo Design */
.logo {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-sub {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 0.95rem;
    color: var(--primary);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.logo-main {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    transition: color 0.3s ease;
}

.scrolled .logo-main {
    color: var(--text-dark);
}

/* Nav Menu */
.nav-list {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    padding: 8px 0;
    position: relative;
}

.nav-link:hover {
    color: #fff;
}

.scrolled .nav-link {
    color: var(--text-dark);
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #fff;
    transition: width 0.3s ease;
}

.scrolled .nav-link::after {
    background-color: var(--primary);
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Mobile Toggle Hamburger */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1100;
}

.mobile-toggle .bar {
    display: block;
    width: 24px;
    height: 2px;
    margin: 5px 0;
    background-color: #fff;
    transition: all 0.3s ease;
}

.scrolled .mobile-toggle .bar {
    background-color: var(--text-dark);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    height: 100vh;
    min-height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    
    /* 
       REMASTERED IMAGE BACKGROUND:
       Uncomment the background-image line below and add your file path to replace the fallback warm gradient.
    */
    background-color: hsl(24, 25%, 15%);
    background-image: url('assets/hero_bg.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Warm terracotta/charcoal overlay to preserve readability & represent ambient light */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, hsla(14, 50%, 15%, 0.75) 0%, hsla(24, 25%, 10%, 0.6) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding-top: 60px; /* Offset sticky header */
}

.hero-title {
    font-family: var(--font-serif);
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.hero-subtitle {
    font-family: var(--font-sans);
    font-weight: 400;
    font-size: 1.35rem;
    margin-bottom: 40px;
    color: hsl(36, 40%, 90%);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Scroll Down Icon */
.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s, bottom 0.3s;
}

.scroll-down:hover {
    color: #fff;
    bottom: 25px;
}

.scroll-arrow {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-8px);
    }
    60% {
        transform: translateY(-4px);
    }
}

/* ==========================================================================
   HIGHLIGHTS SECTION
   ========================================================================== */
.highlights-section {
    padding: 60px 0;
    background-color: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.highlight-card {
    text-align: center;
    padding: 10px;
}

.highlight-icon {
    color: var(--primary);
    margin-bottom: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    background-color: var(--primary-light);
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.highlight-card:hover .highlight-icon {
    transform: rotate(5deg) scale(1.05);
}

.highlight-card h3 {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.highlight-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* ==========================================================================
   STORY / SPECIALTY SECTION
   ========================================================================== */
.story-section {
    padding: 100px 0;
}

.story-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
    align-items: center;
}

.story-content {
    display: flex;
    flex-direction: column;
}

.story-lead {
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 20px;
}

.story-content p {
    margin-bottom: 20px;
    color: var(--text-muted);
    font-size: 1rem;
}

.story-signature {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    border-left: 2px solid var(--primary);
    padding-left: 16px;
}

.sig-name {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--text-dark);
}

.sig-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
}

.story-visual {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.story-img-placeholder {
    height: 480px;
    background-color: var(--card-bg);
    border: 2px dashed var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    text-align: center;
}

.placeholder-icon {
    color: var(--primary);
    margin-bottom: 16px;
    opacity: 0.6;
}

.placeholder-text {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.placeholder-sub {
    font-size: 0.85rem;
    color: var(--text-muted);
    max-width: 250px;
}

.story-img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.story-visual:hover .story-img {
    transform: scale(1.03);
}

/* ==========================================================================
   MENU SECTION
   ========================================================================== */
.menu-section {
    padding: 100px 0;
    background-color: var(--card-bg);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

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

.menu-lead-text {
    color: var(--text-muted);
    margin-bottom: 30px;
}

.menu-tabs-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 40px;
}

/* Gradient fade masks at the scroll edges of the viewport on mobile */
.menu-tabs-wrapper::before,
.menu-tabs-wrapper::after {
    content: '';
    position: absolute;
    top: -10px;
    bottom: 0;
    width: 48px;
    z-index: 2;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.menu-tabs-wrapper::before {
    left: -24px;
    background: linear-gradient(to right, var(--card-bg) 30%, transparent);
}

.menu-tabs-wrapper::after {
    right: -24px;
    background: linear-gradient(to left, var(--card-bg) 30%, transparent);
}

.menu-tabs-container {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none; /* Hide scrollbar for Firefox */
    -webkit-overflow-scrolling: touch; /* Smooth inertia scrolling on iOS */
    padding: 6px 24px 16px 24px;
    margin: -10px -24px 0 -24px;
}

.menu-tabs-container::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome/Safari */
}

.menu-tabs {
    display: inline-flex;
    background-color: var(--bg-warm);
    padding: 6px;
    border-radius: 40px;
    border: 1px solid var(--border-color);
    margin: 0 auto; /* Safe centering: centers when fits, left-aligns with scroll boundary on overflow */
}

.tab-btn {
    background: none;
    border: none;
    padding: 10px 24px;
    border-radius: 30px;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

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

.tab-btn.active {
    background-color: var(--primary);
    color: #fff;
    box-shadow: var(--shadow-sm);
}

/* Menu Grid */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.menu-item-card {
    background-color: var(--bg-warm);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
    border: 1px solid var(--border-color);
}

.menu-item-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: var(--shadow-md);
}

.menu-item-img-container {
    width: 200px;
    min-width: 200px;
    position: relative;
    overflow: hidden;
    background-color: #fff;
    border-right: 1px solid var(--border-color);
}

.menu-item-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

/* Placeholder for Menu Images */
.menu-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px;
    background-color: var(--primary-light);
    color: var(--primary);
    text-align: center;
}

.menu-img-placeholder svg {
    width: 70px;
    height: 70px;
    margin-bottom: 8px;
    opacity: 0.7;
}

.img-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.menu-item-info {
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

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

.menu-item-title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
}

.menu-item-price {
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--primary);
}

.glass-bottle {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 400;
}

.menu-item-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.5;
}

/* Filter Animation */
.menu-item-card.hide {
    display: none;
}

/* ==========================================================================
   LOCATION, HOURS & MAP SECTION
   ========================================================================== */
.location-section {
    padding: 100px 0;
}

.location-grid {
    display: grid;
    grid-template-columns: 4fr 5fr;
    gap: 60px;
    align-items: center;
}

.info-block {
    margin-bottom: 30px;
}

.info-block h3 {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.info-block p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.map-link {
    display: inline-block;
    margin-top: 8px;
    font-weight: 600;
}

.hours-table {
    width: 100%;
    border-collapse: collapse;
}

.hours-table td {
    padding: 6px 0;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.hours-table td:last-child {
    text-align: right;
    font-weight: 500;
    color: var(--text-dark);
}

.hours-table tr {
    border-bottom: 1px solid var(--border-color);
}

.phone-num a, .email-addr a {
    color: var(--text-dark);
}

.phone-num a:hover, .email-addr a:hover {
    color: var(--primary);
}

/* Map frame */
.map-container {
    height: 450px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

/* ==========================================================================
   RESERVATIONS SECTION
   ========================================================================== */
.reservations-section {
    padding: 100px 0;
    background-color: var(--secondary);
    color: #fff;
    position: relative;
    border-top: 1px solid var(--border-color);
}

/* Dark elegant green overlay */
.reservations-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, hsla(120, 20%, 15%, 0.95) 0%, hsla(120, 20%, 25%, 0.8) 100%);
    z-index: 1;
}

.reservations-container {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.reservations-header {
    text-align: center;
    margin-bottom: 40px;
}

.reservations-header .section-tagline {
    color: var(--bg-warm);
}

.reservations-header .section-title {
    color: #fff;
}

.reservations-header p {
    color: hsl(36, 40%, 90%);
}

.reservations-header p a {
    color: #fff;
    text-decoration: underline;
}

/* Reservation Form Elements */
.reservation-form {
    background-color: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-lg);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    color: hsl(36, 40%, 90%);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 14px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.15);
}

/* Style select element arrows */
.form-group select option {
    background-color: var(--secondary-hover);
    color: #fff;
}

.form-submit {
    margin-top: 30px;
    text-align: center;
}

/* ==========================================================================
   MAIN FOOTER
   ========================================================================== */
.main-footer {
    background-color: var(--text-dark);
    color: #fff;
    padding: 80px 0 20px 0;
    font-size: 0.9rem;
    border-top: 3px solid var(--primary);
}

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

.footer-brand .logo-main {
    color: #fff;
}

.footer-bio {
    color: hsl(24, 15%, 70%);
    margin: 20px 0;
    line-height: 1.5;
}

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

.social-links a {
    color: hsl(24, 15%, 70%);
    transition: color 0.3s ease, transform 0.3s;
}

.social-links a:hover {
    color: var(--primary);
    transform: translateY(-2px);
}

.footer-links h3,
.footer-newsletter h3 {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 8px;
}

.footer-links h3::after,
.footer-newsletter h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary);
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: hsl(24, 15%, 70%);
}

.footer-links ul li a:hover {
    color: #fff;
}

.footer-newsletter p {
    color: hsl(24, 15%, 70%);
    margin-bottom: 20px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
}

.newsletter-form input {
    padding: 12px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background-color: rgba(255, 255, 255, 0.05);
    color: #fff;
    flex-grow: 1;
    font-family: var(--font-sans);
    padding-left: 20px;
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--primary);
    background-color: rgba(255, 255, 255, 0.08);
}

.newsletter-form .btn {
    padding: 12px 24px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 20px;
    color: hsl(24, 15%, 50%);
    font-size: 0.8rem;
}

/* ==========================================================================
   ORDER MODAL
   ========================================================================== */
.order-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.order-modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.order-modal {
    background-color: var(--bg-warm);
    border-radius: var(--border-radius);
    max-width: 760px;
    width: 100%;
    position: relative;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.order-modal-overlay.open .order-modal {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
}

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

.order-modal-header {
    padding: 40px 40px 20px 40px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.order-modal-header h2 {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.order-modal-header p {
    color: var(--text-muted);
}

.order-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 40px;
}

.order-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 30px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    position: relative;
}

.order-card-content {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.order-card-actions {
    display: flex;
    flex-direction: column;
    margin-top: auto;
}

/* Badge for recommended direct order */
.badge {
    display: inline-block;
    align-self: flex-start;
    background-color: var(--secondary);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 12px;
    width: fit-content;
}

.direct-order {
    border-color: var(--secondary);
    box-shadow: 0 4px 20px hsla(120, 20%, 25%, 0.08);
}

.order-card h3 {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.order-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0; /* Margin handled by wrapper */
    line-height: 1.5;
}

.delivery-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-delivery {
    display: block;
    width: 100%;
    padding: 12px;
    border-radius: 6px;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.doordash-btn {
    background-color: hsl(0, 75%, 97%);
    color: hsl(355, 80%, 45%);
    border-color: hsl(355, 80%, 90%);
}

.doordash-btn:hover {
    background-color: hsl(355, 80%, 45%);
    color: #fff;
}

.ubereats-btn {
    background-color: hsl(150, 40%, 97%);
    color: hsl(150, 60%, 20%);
    border-color: hsl(150, 40%, 90%);
}

.ubereats-btn:hover {
    background-color: hsl(150, 60%, 20%);
    color: #fff;
}

.grubhub-btn {
    background-color: hsl(5, 80%, 97%);
    color: hsl(5, 85%, 45%);
    border-color: hsl(5, 80%, 90%);
}

.grubhub-btn:hover {
    background-color: hsl(5, 85%, 45%);
    color: #fff;
}

.order-card .sub-text {
    display: block;
    margin-top: 16px;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
    font-style: italic;
}

/* ==========================================================================
   TAB TRANSITIONS & VIEWS
   ========================================================================== */
.tab-section {
    display: none;
    opacity: 0;
}

.tab-section.active {
    display: block;
    animation: fadeInTab 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-section.tab-section.active {
    display: flex;
}

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

/* ==========================================================================
   RESPONSIVE DESIGN MEDIA QUERIES
   ========================================================================== */

/* Tablet: Landscape / Small Desktop */
@media screen and (max-width: 1024px) {
    .story-grid,
    .location-grid {
        gap: 40px;
    }
    
    .hero-title {
        font-size: 3.2rem;
    }
    
    .footer-grid {
        gap: 30px;
    }
}

/* Tablet: Portrait */
@media screen and (max-width: 900px) {
    .highlights-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .story-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .story-visual {
        order: -1; /* Place image on top on tablet/mobile */
    }
    
    .story-img-placeholder,
    .story-img {
        height: 380px;
    }
    
    .menu-grid {
        grid-template-columns: 1fr;
    }
    
    .location-grid {
        grid-template-columns: 1fr;
    }
    
    .map-container {
        height: 350px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Mobile Screen Sizes */
@media screen and (max-width: 768px) {
    :root {
        --header-height: 70px;
        --header-shrink-height: 70px;
    }
    
    .logo-main {
        font-size: 1.4rem;
    }
    
    /* Navigation Drawer for Mobile */
    .mobile-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        right: -100%;
        width: 80%;
        height: calc(100vh - var(--header-height));
        background-color: var(--bg-warm);
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
        z-index: 999;
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        border-left: 1px solid var(--border-color);
        padding: 40px 24px;
    }
    
    .nav-menu.open {
        right: 0;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 24px;
    }
    
    .nav-link {
        color: var(--text-dark);
        font-size: 1.15rem;
        display: block;
    }
    
    .nav-link::after {
        background-color: var(--primary);
    }
    
    .mobile-toggle.active .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    
    .mobile-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-toggle.active .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
    
    .scrolled .mobile-toggle .bar {
        background-color: var(--text-dark);
    }
    
    /* If the nav isn't scrolled, toggle bars are white by default */
    .mobile-toggle .bar {
        background-color: #fff;
    }
    
    .mobile-toggle.active .bar {
        background-color: var(--text-dark) !important;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 30px;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 12px;
        padding: 0 16px;
    }
    
    .btn-large {
        padding: 14px 28px;
    }
    
    /* Formspree Form */
    .reservation-form {
        padding: 24px 16px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    /* Menu Card Stack on Mobile */
    .menu-item-card {
        flex-direction: column;
    }
    
    .menu-item-img-container {
        width: 100%;
        height: 180px;
        min-height: 180px;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    
    .menu-item-info {
        padding: 20px;
    }
    
    /* Ordering Modal Responsive Layout */
    .order-options {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }
    
    .order-modal-header h2 {
        font-size: 1.6rem;
    }
    
    .order-modal-header {
        padding: 30px 20px 10px 20px;
    }
}
