/* ============================================
   The Coffee Barn NY - Stylesheet
   Mobile-First Design
   ============================================ */

/* CSS Variables - Brand Colors */
:root {
    --barn-red: #8B2635;
    --chocolate-brown: #3D2817;
    --cream: #F5F1E8;
    --cream-border: #F0E8D8;
    --warm-beige: #E8DCC6;
    --gold: #D4A574;
    --text-dark: #2C2C2C;
    --text-light: #666;
    --white: #FFFFFF;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-hover: rgba(0, 0, 0, 0.15);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--cream);
    overflow-x: hidden;
    padding-top: 3rem;
    padding-bottom: 2rem;
}

/* Global Heading Styles - Modern Drive-Thru Pairing */
h1, h2, h3 {
    font-family: 'Kenyan Coffee', serif;
}

/* Specialty Drink Names - Artisan Signature */
.drink-name,
.signature-drink-name {
    font-family: 'Yellowtail', cursive;
    font-size: 1.5rem;
}

/* Drink Details - Artisan Signature */
.drink-details,
.drink-description {
    font-family: 'Oswald', sans-serif;
    font-weight: 400;
    letter-spacing: 0.5px;
}

@media (min-width: 768px) {
    body {
        padding-bottom: 0;
        padding-top: 5rem;
    }
}

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

a {
    text-decoration: none;
    color: inherit;
}

/* Navigation */
.navbar {
    background-color: var(--white);
    border: 2px solid var(--cream-border);
    box-shadow: 0 2px 10px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    position: relative;
    z-index: 2;
}

.nav-drive-thru-panel {
    background-color: var(--warm-beige);
    color: var(--barn-red);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    border: 2px solid var(--barn-red);
    white-space: nowrap;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    flex: 0 0 auto;
}

.logo-img {
    max-height: 60px;
    width: auto;
    display: block;
}

.logo-caption {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--barn-red);
    letter-spacing: 1px;
    text-transform: uppercase;
    text-align: center;
    padding: 0.25rem 0.75rem;
    background-color: var(--warm-beige);
    border-radius: 4px;
    border: 1px solid var(--barn-red);
}

.nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--chocolate-brown);
    transition: all 0.3s ease;
}

.nav-menu {
    display: none;
    list-style: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--white);
    border: 2px solid var(--cream-border);
    box-shadow: 0 4px 10px var(--shadow);
    padding: 1rem 0;
}

.nav-menu.active {
    display: flex;
}

.nav-menu li {
    padding: 0.75rem 1.5rem;
}

.nav-menu a {
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
    display: block;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--barn-red);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: var(--cream);
    padding: 0 1rem 0.125rem 1rem;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    max-width: 1000px;
    width: 100%;
}

.hero-logo-wrapper {
    max-width: 900px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-logo {
    width: 100%;
    height: auto;
    display: block;
    transform: scale(1.17);
}

.hero-panel {
    background-color: var(--white);
    border: 2px solid var(--cream-border);
    padding: 0.75rem 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px var(--shadow);
    max-width: 600px;
    width: 100%;
    margin-bottom: 0.125rem;
    position: relative;
    z-index: 2;
}

.hero-panel-text {
    font-size: 1.1rem;
    color: var(--text-dark);
    line-height: 1.6;
    margin: 0;
    text-align: center;
}

/* Quick Info Strip */
.quick-info {
    background-color: var(--chocolate-brown);
    color: var(--white);
    padding: 2rem 1rem;
    text-align: center;
}

.info-container {
    max-width: 1200px;
    margin: 0 auto 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.info-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

.info-value {
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 300px;
    margin: 0 auto;
}

/* Shimmer Animation Keyframes */
@keyframes shimmer-slide {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

@keyframes spin-around {
    0% {
        transform: translateZ(0) rotate(0);
    }
    15%, 35% {
        transform: translateZ(0) rotate(90deg);
    }
    65%, 85% {
        transform: translateZ(0) rotate(270deg);
    }
    100% {
        transform: translateZ(0) rotate(360deg);
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn > * {
    position: relative;
    z-index: 3;
}

/* Shimmer effect overlay - removed animation */
.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    animation: none;
    z-index: 2;
    pointer-events: none;
}

/* Spark/glow effect - removed animation */
.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.15) 0%,
        transparent 70%
    );
    transform: translate(-50%, -50%);
    animation: none;
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease, width 0.5s ease, height 0.5s ease;
}

.btn:hover::after {
    width: 150px;
    height: 150px;
    opacity: 0.6;
}

.btn-primary {
    background-color: var(--barn-red);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #7a1f2d;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-hover);
}

.btn-primary::before {
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.15),
        transparent
    );
}

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

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--chocolate-brown);
}

.btn-secondary::before {
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
    z-index: 1;
}

/* Features Section */
.features {
    padding: 3rem 1rem;
    background-color: var(--white);
    border: 2px solid var(--cream-border);
}

.features .container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.feature-card {
    background-color: var(--warm-beige);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: visible;
    border: 2px solid transparent;
    z-index: 2;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px var(--shadow);
}

.feature-card h3 {
    font-family: 'Kenyan Coffee', serif;
    color: var(--chocolate-brown);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.feature-card p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.link {
    color: var(--barn-red);
    font-weight: 600;
    transition: color 0.3s ease;
}

.link:hover {
    color: #7a1f2d;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--chocolate-brown) 0%, var(--barn-red) 100%);
    color: var(--white);
    padding: 3rem 1rem;
    text-align: center;
}

.page-header h1 {
    font-family: 'Kenyan Coffee', serif;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

/* Our Story page header uses Heritage Retro */
.about-page .page-header h1 {
    font-family: 'Young Serif', serif;
}

.page-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Story Section */
.story-section {
    padding: 3rem 1rem;
    background-color: var(--white);
    border: 2px solid var(--cream-border);
}

.story-images {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.story-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px var(--shadow);
    aspect-ratio: 1;
    position: relative;
}

.story-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.story-content {
    max-width: 800px;
    margin: 0 auto;
    font-family: 'Libre Baskerville', serif;
    position: relative;
    z-index: 1;
}

.story-block {
    margin-bottom: 2.5rem;
    position: relative;
    overflow: visible;
    background-color: var(--white);
    border: 2px solid var(--cream-border);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px var(--shadow);
    z-index: 2;
}

.story-block h2 {
    font-family: 'Young Serif', serif;
    color: var(--chocolate-brown);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    border-bottom: 3px solid var(--barn-red);
    padding-bottom: 0.5rem;
}

.story-block p {
    font-family: 'Libre Baskerville', serif;
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Menu Section */
.menu-section {
    padding: 3rem 1rem;
    background-color: var(--white);
    border: 2px solid var(--cream-border);
}

.menu-image-container {
    max-width: 1035px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.menu-board-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px var(--shadow);
    display: block;
    margin: 0 auto;
}

/* Deli Section */
.deli-section {
    padding: 3rem 1rem;
    background-color: var(--white);
    border: 2px solid var(--cream-border);
}

.deli-intro {
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
    position: relative;
    z-index: 1;
    background-color: var(--white);
    border: 2px solid var(--cream-border);
    padding: 2rem;
    border-radius: 10px;
}

.lead-text {
    font-size: 1.3rem;
    color: var(--chocolate-brown);
    line-height: 1.8;
    font-weight: 500;
}

.deli-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.deli-category {
    margin-bottom: 3rem;
    background-color: var(--white);
    border: 2px solid var(--cream-border);
    padding: 2rem;
    border-radius: 10px;
}

.deli-category h2 {
    font-family: 'Kenyan Coffee', serif;
    color: var(--chocolate-brown);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.deli-category p {
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.8;
}

.deli-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

.deli-feature-card {
    background-color: var(--warm-beige);
    padding: 2rem;
    border-radius: 10px;
    border-top: 4px solid var(--barn-red);
    position: relative;
    overflow: visible;
    border-left: 2px solid transparent;
    border-right: 2px solid transparent;
    border-bottom: 2px solid transparent;
    z-index: 2;
}

.deli-feature-card h3 {
    font-family: 'Kenyan Coffee', serif;
    color: var(--chocolate-brown);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.deli-feature-card p {
    color: var(--text-light);
    line-height: 1.7;
}

.deli-cta {
    text-align: center;
    padding: 3rem 1rem;
    background-color: var(--white);
    border: 2px solid var(--cream-border);
    border-radius: 10px;
    margin-top: 3rem;
    position: relative;
    z-index: 2;
}

.deli-cta h2 {
    font-family: 'Kenyan Coffee', serif;
    color: var(--chocolate-brown);
    margin-bottom: 1rem;
    font-size: 2rem;
}

.deli-cta p {
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.deli-cta .btn-secondary {
    background-color: transparent;
    color: var(--barn-red);
    border-color: var(--barn-red);
}

.deli-cta .btn-secondary:hover {
    background-color: var(--barn-red);
    color: var(--white);
}

.deli-cta .btn-secondary::before {
    background: linear-gradient(
        90deg,
        transparent,
        rgba(139, 38, 53, 0.15),
        transparent
    );
}

.deli-cta .btn-secondary:hover::before {
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
}

#apple-maps-btn {
    background-color: var(--white);
    color: var(--barn-red);
    border-color: var(--barn-red);
}

#apple-maps-btn:hover {
    background-color: var(--barn-red);
    color: var(--white);
}

#apple-maps-btn::before {
    background: linear-gradient(
        90deg,
        transparent,
        rgba(139, 38, 53, 0.15),
        transparent
    );
}

#apple-maps-btn:hover::before {
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
}

/* Contact Section */
.contact-section {
    padding: 3rem 1rem;
    background-color: var(--white);
    border: 2px solid var(--cream-border);
}

.contact-card {
    background-color: var(--warm-beige);
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px var(--shadow);
    position: relative;
    overflow: visible;
    border: 2px solid transparent;
    z-index: 2;
}

.contact-card h2 {
    font-family: 'Kenyan Coffee', serif;
    color: var(--chocolate-brown);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    border-bottom: 3px solid var(--barn-red);
    padding-bottom: 0.5rem;
}

.hours-info,
.location-info {
    margin-bottom: 1.5rem;
}

.opening-time {
    font-size: 1.3rem;
    color: var(--barn-red);
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.map-container {
    margin: 1.5rem 0;
    border-radius: 8px;
    overflow: hidden;
}

.direction-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.drive-thru-info {
    color: var(--text-light);
    line-height: 1.8;
}

.drive-thru-list {
    list-style: none;
    margin-top: 1rem;
    padding-left: 0;
}

.drive-thru-list li {
    padding: 0.75rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-light);
}

.drive-thru-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--barn-red);
    font-weight: bold;
}

.contact-info {
    color: var(--text-light);
    line-height: 1.8;
}

.contact-note {
    margin-top: 1rem;
    font-style: italic;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--chocolate-brown) 0%, var(--barn-red) 100%);
    color: var(--white);
    padding: 3rem 1rem;
    text-align: center;
}

.cta-section h2 {
    font-family: 'Kenyan Coffee', serif;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* Footer */
.footer {
    background-color: var(--chocolate-brown);
    color: var(--white);
    padding: 2rem 1rem;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 3rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-image {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    overflow: hidden;
    height: 150px;
    position: relative;
}

.footer-sipsavor-img {
    max-height: 150px;
    width: auto;
    display: block;
    transform: rotate(90deg);
    border: none;
    outline: none;
}

.footer-info {
    font-size: 0.9rem;
    opacity: 0.9;
    flex: 1 1 auto;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.footer-info p {
    margin: 0.5rem 0;
}

/* Floating Directions Button */
.floating-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background-color: var(--barn-red);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px var(--shadow-hover);
    z-index: 999;
    transition: all 0.3s ease;
    cursor: pointer;
}

.floating-btn:hover {
    transform: scale(1.1);
    background-color: #7a1f2d;
    box-shadow: 0 6px 20px var(--shadow-hover);
}

.floating-btn svg {
    width: 24px;
    height: 24px;
}

/* Mobile Adjustments - Reduced Sizes */
@media (max-width: 767px) {
    /* Base font size reduction */
    body {
        font-size: 0.9rem;
    }

    /* Hero Section */
    .hero {
        padding: 0 0.75rem 0.125rem 0.75rem;
    }

    .hero-logo {
        transform: scale(0.975);
    }

    .hero-panel {
        padding: 0.5rem 1rem;
        margin-bottom: 0.125rem;
    }

    .hero-panel-text {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    /* Quick Info */
    .quick-info {
        padding: 1.5rem 0.75rem;
    }

    .info-label {
        font-size: 0.8rem;
    }

    .info-value {
        font-size: 1rem;
    }

    /* Buttons */
    .btn {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }

    /* Features Section */
    .features {
        padding: 2rem 0.75rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .feature-card h3 {
        font-size: 1.2rem;
        margin-bottom: 0.75rem;
    }

    .feature-card p {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
    }

    /* Page Headers */
    .page-header {
        padding: 2rem 0.75rem;
    }

    .page-header h1 {
        font-size: 1.8rem;
    }

    .page-subtitle {
        font-size: 1rem;
    }

    /* Story Section */
    .story-section {
        padding: 2rem 0.75rem;
    }

    .story-block {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .story-block h2 {
        font-size: 1.4rem;
    }

    .story-block p {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    /* Menu Section */
    .menu-section {
        padding: 2rem 0.75rem;
    }

    /* Deli Section */
    .deli-section {
        padding: 2rem 0.75rem;
    }

    .deli-intro {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }

    .lead-text {
        font-size: 1.1rem;
    }

    .deli-category {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }

    .deli-category h2 {
        font-size: 1.5rem;
    }

    .deli-category p {
        font-size: 0.95rem;
    }

    .deli-feature-card {
        padding: 1.5rem;
    }

    .deli-feature-card h3 {
        font-size: 1.2rem;
    }

    .deli-feature-card p {
        font-size: 0.9rem;
    }

    .deli-cta {
        padding: 2rem 0.75rem;
        margin-top: 2rem;
    }

    .deli-cta h2 {
        font-size: 1.5rem;
    }

    .deli-cta p {
        font-size: 1rem;
    }

    /* Contact Section */
    .contact-section {
        padding: 2rem 0.75rem;
    }

    .contact-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .contact-card h2 {
        font-size: 1.4rem;
    }

    .opening-time {
        font-size: 1.1rem;
    }

    /* CTA Section */
    .cta-section {
        padding: 2rem 0.75rem;
    }

    .cta-section h2 {
        font-size: 1.5rem;
    }

    .cta-section p {
        font-size: 1rem;
    }

    /* Footer */
    .footer-content {
        flex-direction: column;
        text-align: center;
        padding-left: 1rem;
    }

    .footer-image {
        display: none;
    }

    .footer-info {
        text-align: center;
        font-size: 0.85rem;
    }

    /* Drink names */
    .drink-name,
    .signature-drink-name {
        font-size: 1.2rem;
    }

    /* Container padding */
    .container {
        padding: 0 0.75rem;
    }

    /* Floating button */
    .floating-btn {
        width: 50px;
        height: 50px;
        bottom: 1.5rem;
        right: 1.5rem;
    }

    .floating-btn svg {
        width: 20px;
        height: 20px;
    }

    /* Tubelight navigation - optimized for mobile */
    .tubelight-nav {
        margin-top: 0.5rem;
        padding: 0 0.75rem;
        position: fixed;
        top: 0;
        justify-content: center;
    }

    .tubelight-nav-container {
        gap: 0.3rem;
        padding: 0.3rem;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        max-width: calc(100vw - 1.5rem);
        width: auto;
        margin: 0 auto;
        position: relative;
    }

    .tubelight-nav-container::-webkit-scrollbar {
        display: none;
    }

    /* Scroll indicators - gradient overlays with fade effect */
    .tubelight-nav::before,
    .tubelight-nav::after {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        width: 30px;
        pointer-events: none;
        z-index: 3;
        transition: opacity 0.3s ease;
    }

    .tubelight-nav::before {
        left: 0;
        background: linear-gradient(to right, rgba(245, 241, 232, 0.95) 0%, rgba(245, 241, 232, 0.7) 50%, transparent 100%);
        opacity: 0;
    }

    .tubelight-nav::after {
        right: 0;
        background: linear-gradient(to left, rgba(245, 241, 232, 0.95) 0%, rgba(245, 241, 232, 0.7) 50%, transparent 100%);
        opacity: 0;
    }

    .tubelight-nav.scrollable-left::before {
        opacity: 1;
    }

    .tubelight-nav.scrollable-right::after {
        opacity: 1;
    }

    /* Add a subtle pulsing animation to the right indicator when scrollable */
    @keyframes pulse-fade {
        0%, 100% { opacity: 0.6; }
        50% { opacity: 1; }
    }

    .tubelight-nav.scrollable-right::after {
        animation: pulse-fade 2s ease-in-out infinite;
    }

    .tubelight-nav-item {
        padding: 0.4rem 0.7rem;
        font-size: 0.7rem;
        font-weight: 600;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .tubelight-indicator::before {
        width: 1.5rem;
        height: 0.2rem;
        top: -0.4rem;
    }

    .tubelight-indicator::after {
        width: 2rem;
        height: 1rem;
        top: -0.6rem;
    }
}

/* Tablet Styles */
@media (min-width: 768px) {
    .story-images {
        grid-template-columns: repeat(2, 1fr);
    }
    .nav-toggle {
        display: none;
    }

    .nav-menu {
        display: flex;
        flex-direction: row;
        position: static;
        box-shadow: none;
        padding: 0;
        gap: 2rem;
    }

    .nav-menu li {
        padding: 0;
    }

    .hero-logo-wrapper {
        max-width: 1050px;
    }

    .hero-panel-text {
        font-size: 1.2rem;
    }

    .info-container {
        flex-direction: row;
        justify-content: center;
        gap: 3rem;
    }

    .cta-buttons {
        flex-direction: row;
        max-width: none;
        justify-content: center;
    }

    .features .container {
        grid-template-columns: repeat(3, 1fr);
    }

    .deli-features {
        grid-template-columns: repeat(3, 1fr);
    }

    .direction-buttons {
        flex-direction: row;
        justify-content: center;
    }

    .page-header h1 {
        font-size: 3.5rem;
    }
}

/* Desktop Styles */
@media (min-width: 1024px) {
    .hero {
        min-height: 70vh;
    }

    .hero-content {
        padding: 1rem 2rem;
    }

    .hero-logo-wrapper {
        max-width: 1200px;
    }

    .hero-panel {
        padding: 2rem 3rem;
    }

    .hero-panel-text {
        font-size: 1.3rem;
    }

    .container {
        padding: 0 2rem;
    }

    .story-section,
    .menu-section,
    .deli-section,
    .contact-section {
        padding: 4rem 2rem;
    }

    .floating-btn {
        bottom: 3rem;
        right: 3rem;
    }
}

/* Ensure content is above other elements */
.feature-card > *,
.contact-card > *,
.deli-feature-card > *,
.story-block > *,
.menu-item > * {
    position: relative;
    z-index: 2;
}

/* Wave Background - WebGL canvas will be positioned absolutely */
/* Ensure white/cream background sections can contain the wave canvas */
.navbar,
.hero,
.hero-panel,
.features,
.story-section,
.contact-section,
.menu-section,
.deli-section {
    position: relative;
    overflow: hidden;
}


/* Tubelight Navigation */
.tubelight-nav {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    margin-top: 1rem;
    margin-bottom: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 0 1rem;
    pointer-events: none;
}

.tubelight-nav-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(245, 241, 232, 0.95);
    border: 1px solid var(--barn-red);
    backdrop-filter: blur(10px);
    padding: 0.25rem;
    border-radius: 9999px;
    box-shadow: 0 4px 15px var(--shadow-hover);
    pointer-events: auto;
    position: relative;
    z-index: 2;
    width: fit-content;
    max-width: calc(100% - 1.5rem);
}

.tubelight-nav-item {
    position: relative;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    transition: all 0.3s ease;
    color: var(--text-dark);
    opacity: 0.8;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.tubelight-nav-item:hover {
    color: var(--barn-red);
    opacity: 1;
}

.tubelight-nav-item.active {
    background: var(--warm-beige);
    color: var(--barn-red);
    opacity: 1;
}

.tubelight-nav-icon {
    display: none;
    font-size: 1.125rem;
}

.tubelight-nav-text {
    display: inline;
}

.tubelight-indicator {
    position: absolute;
    inset: 0;
    width: 100%;
    background: var(--barn-red);
    opacity: 0.1;
    border-radius: 9999px;
    z-index: -1;
    transform: scale(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tubelight-nav-item.active .tubelight-indicator {
    transform: scale(1);
}

.tubelight-indicator::before {
    content: '';
    position: absolute;
    top: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 2rem;
    height: 0.25rem;
    background: var(--barn-red);
    border-radius: 9999px 9999px 0 0;
}

.tubelight-indicator::after {
    content: '';
    position: absolute;
    top: -0.75rem;
    left: 50%;
    transform: translateX(-50%);
    width: 3rem;
    height: 1.5rem;
    background: var(--barn-red);
    opacity: 0.2;
    border-radius: 50%;
    filter: blur(0.5rem);
}

/* Tablet and Desktop - Show text, hide icons */
@media (min-width: 768px) {
    .tubelight-nav {
        margin-top: 1.5rem;
    }

    .tubelight-nav-icon {
        display: none;
    }

    .tubelight-nav-text {
        display: inline;
    }

    .tubelight-nav-item {
        padding: 0.5rem 1.5rem;
    }
}

