/* ============================================
   Manakeesh Hub - Shared Styles
   Monument Valley Aesthetic + Aggressive Caching
   ============================================ */

/* Critical CSS - Load First */
:root {
    --color-bg: #1a0f0a;
    --color-bg-light: #2d1f16;
    --color-bg-lighter: #3d2820;
    --color-gold: #d4a853;
    --color-gold-light: #e8c67a;
    --color-gold-dark: #b8923f;
    --color-cream: #f5e6d3;
    --color-cream-dark: #e6d0b3;
    --color-spice: #c75b3a;
    --color-spice-light: #d9714f;
    --color-olive: #6b7c3e;
    --color-olive-light: #7a8f4a;
    
    --font-display: 'Cinzel Decorative', serif;
    --font-body: 'Quattrocento Sans', sans-serif;
    
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --duration-slow: 1.2s;
    --duration-medium: 0.8s;
    --duration-fast: 0.4s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    color-scheme: dark;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--color-bg);
    color: var(--color-cream);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* ============================================
   Monument Valley Geometric Elements
   ============================================ */

/* Floating Geometric Shapes */
.geometric-shape {
    position: fixed;
    pointer-events: none;
    z-index: 0;
    opacity: 0.15;
}

.shape-cube {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-dark) 100%);
    transform: rotate(45deg);
    animation: float-cube 20s ease-in-out infinite;
}

.shape-cube:nth-child(1) { top: 10%; left: 5%; animation-delay: 0s; }
.shape-cube:nth-child(2) { top: 60%; right: 8%; animation-delay: -5s; }
.shape-cube:nth-child(3) { bottom: 20%; left: 15%; animation-delay: -10s; }

.shape-pyramid {
    width: 0;
    height: 0;
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-bottom: 70px solid var(--color-spice);
    opacity: 0.12;
    animation: float-pyramid 25s ease-in-out infinite;
}

.shape-pyramid:nth-child(4) { top: 30%; right: 12%; animation-delay: -7s; }
.shape-pyramid:nth-child(5) { bottom: 40%; left: 8%; animation-delay: -12s; }

.shape-arch {
    width: 80px;
    height: 100px;
    border: 3px solid var(--color-olive);
    border-bottom: none;
    border-radius: 40px 40px 0 0;
    opacity: 0.1;
    animation: float-arch 18s ease-in-out infinite;
}

.shape-arch:nth-child(6) { top: 20%; left: 25%; animation-delay: -3s; }
.shape-arch:nth-child(7) { bottom: 30%; right: 20%; animation-delay: -8s; }

@keyframes float-cube {
    0%, 100% { transform: rotate(45deg) translateY(0) rotate(0deg); }
    50% { transform: rotate(45deg) translateY(-30px) rotate(180deg); }
}

@keyframes float-pyramid {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-25px) scale(1.1); }
}

@keyframes float-arch {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

/* ============================================
   Background & Atmospheric Effects
   ============================================ */

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: 
        radial-gradient(ellipse at 20% 20%, rgba(212, 168, 83, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(199, 91, 58, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(107, 124, 62, 0.08) 0%, transparent 70%),
        url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.4;
    pointer-events: none;
    z-index: 0;
}

/* Decorative Corner Patterns */
.corner {
    position: fixed;
    width: 120px;
    height: 120px;
    border: 2px solid var(--color-gold);
    opacity: 0.3;
    pointer-events: none;
    z-index: 1;
}

.corner-tl {
    top: 2rem;
    left: 2rem;
    border-right: none;
    border-bottom: none;
    border-top-left-radius: 20px;
}

.corner-tr {
    top: 2rem;
    right: 2rem;
    border-left: none;
    border-bottom: none;
    border-top-right-radius: 20px;
}

.corner-bl {
    bottom: 2rem;
    left: 2rem;
    border-right: none;
    border-top: none;
    border-bottom-left-radius: 20px;
}

.corner-br {
    bottom: 2rem;
    right: 2rem;
    border-left: none;
    border-top: none;
    border-bottom-right-radius: 20px;
}

/* ============================================
   SVG Connecting Lines (Monument Valley Style)
   ============================================ */

.svg-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: visible;
}

.svg-lines path {
    fill: none;
    stroke: var(--color-gold);
    stroke-width: 2;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    opacity: 0.2;
}

.svg-lines path.animate {
    animation: draw-line 2s var(--transition-smooth) forwards;
}

@keyframes draw-line {
    to {
        stroke-dashoffset: 0;
    }
}

/* ============================================
   Typography
   ============================================ */

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--color-gold);
    line-height: 1.2;
    letter-spacing: 0.02em;
}

h1 {
    font-size: clamp(2.5rem, 8vw, 4rem);
    text-shadow: 
        0 2px 10px rgba(212, 168, 83, 0.3),
        0 4px 20px rgba(212, 168, 83, 0.2);
}

h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1.5rem;
}

h3 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin-bottom: 1rem;
}

p {
    color: var(--color-cream);
    opacity: 0.9;
    margin-bottom: 1rem;
}

/* ============================================
   Navigation
   ============================================ */

.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.5rem 3rem;
    background: linear-gradient(to bottom, rgba(26, 15, 10, 0.95) 0%, transparent 100%);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--color-gold);
    text-decoration: none;
    font-weight: 700;
    transition: color var(--duration-fast) var(--transition-smooth);
}

.nav-logo:hover {
    color: var(--color-gold-light);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--color-cream);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    position: relative;
    padding: 0.5rem 0;
    transition: color var(--duration-fast) var(--transition-smooth);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-gold);
    transition: width var(--duration-fast) var(--transition-smooth);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--color-gold);
}

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

/* Mobile Navigation */

/* Hamburger Menu Attention Animation */
@keyframes hamburger-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(212, 168, 83, 0.4);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 0 0 8px rgba(212, 168, 83, 0);
    }
}

@keyframes hamburger-bounce {
    0%, 100% {
        transform: translateY(0);
    }
    25% {
        transform: translateY(-3px);
    }
    50% {
        transform: translateY(0);
    }
    75% {
        transform: translateY(-2px);
    }
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--color-gold);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: transform var(--duration-fast) var(--transition-smooth);
    animation: hamburger-pulse 2s ease-in-out 3, hamburger-bounce 3s ease-in-out 6s infinite;
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background: var(--color-bg-light);
        flex-direction: column;
        padding: 6rem 2rem 2rem;
        transition: right var(--duration-medium) var(--transition-smooth);
        gap: 1.5rem;
    }
    
    .nav-links.open {
        right: 0;
    }
    
    .mobile-menu-btn {
        display: block;
        z-index: 101;
        position: relative;
    }
    
    .mobile-menu-btn:hover,
    .mobile-menu-btn:focus {
        transform: scale(1.15);
        color: var(--color-gold-light);
        outline: none;
    }
    
    .mobile-menu-btn:active {
        transform: scale(0.95);
    }
}

/* ============================================
   Layout Components
   ============================================ */

.container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 8rem 2rem 4rem;
}

.section {
    margin-bottom: 6rem;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    display: inline-block;
    position: relative;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
}

/* ============================================
   Cards & Content Boxes
   ============================================ */

.card {
    background: var(--color-bg-light);
    border: 1px solid rgba(212, 168, 83, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    transition: 
        transform var(--duration-fast) var(--transition-smooth),
        box-shadow var(--duration-fast) var(--transition-smooth);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.card h3 {
    color: var(--color-gold-light);
    margin-bottom: 1rem;
}

/* ============================================
   Menu Specific Styles
   ============================================ */

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.menu-category {
    margin-bottom: 4rem;
}

.menu-category-title {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--color-gold);
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-gold);
    display: inline-block;
}

.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 1.25rem;
    border-bottom: 1px dashed rgba(212, 168, 83, 0.3);
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-item-info {
    flex: 1;
}

.menu-item-name {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--color-cream);
    margin-bottom: 0.25rem;
}

.menu-item-description {
    font-size: 0.9rem;
    color: var(--color-cream);
    opacity: 0.7;
}

.menu-item-price {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--color-gold);
    font-weight: 700;
    min-width: 80px; /* Reserve space for price */
    text-align: right;
    align-self: flex-end;
    margin-top: 0.75rem;
    margin-bottom: 0.5rem;
}

/* Price Skeleton Loading Animation */
.price-skeleton {
    background: linear-gradient(
        90deg,
        rgba(212, 175, 55, 0.1) 25%,
        rgba(212, 175, 55, 0.2) 50%,
        rgba(212, 175, 55, 0.1) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 9999px;
    color: transparent !important;
    user-select: none;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Price Error State */
.price-error {
    color: var(--color-spice) !important;
    font-size: 0.9rem !important;
    font-style: italic;
    opacity: 0.8;
}

.dietary-tags {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.dietary-tag {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tag-veg { background: var(--color-olive); color: var(--color-bg); }
.tag-vegan { background: var(--color-olive-light); color: var(--color-bg); }
.tag-gf { background: var(--color-gold); color: var(--color-bg); }
.tag-spicy { background: var(--color-spice); color: var(--color-cream); }
.tag-nonveg { background: var(--color-spice); color: var(--color-cream); }
.tag-highprotein { background: var(--color-gold); color: var(--color-bg); }
.tag-lowcal { background: var(--color-olive-light); color: var(--color-bg); }
.tag-bestseller { background: linear-gradient(135deg, var(--color-spice) 0%, var(--color-gold) 100%); color: var(--color-cream); }

/* Badges */
.badge-bestseller {
    background: linear-gradient(135deg, var(--color-spice) 0%, var(--color-gold) 100%);
    color: var(--color-cream);
    font-size: 0.6rem;
    padding: 0.15rem 0.4rem;
    border-radius: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-left: 0.5rem;
}

.badge-highprotein {
    background: var(--color-gold);
    color: var(--color-bg);
    font-size: 0.6rem;
    padding: 0.15rem 0.4rem;
    border-radius: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-left: 0.5rem;
}

.badge-lowcal {
    background: var(--color-olive);
    color: var(--color-bg);
    font-size: 0.6rem;
    padding: 0.15rem 0.4rem;
    border-radius: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-left: 0.5rem;
}

/* Nutrition Info */
.nutrition-info {
    font-size: 0.8rem;
    color: var(--color-gold-light);
    margin-top: 0.5rem;
    opacity: 0.9;
}

/* ============================================
   About & Story Page Styles
   ============================================ */

.content-section {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.content-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 4rem auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, var(--color-gold), var(--color-spice), var(--color-olive));
    opacity: 0.3;
}

.timeline-item {
    position: relative;
    margin-bottom: 4rem;
    width: 45%;
}

.timeline-item:nth-child(odd) {
    margin-left: 55%;
    text-align: left;
}

.timeline-item:nth-child(even) {
    margin-right: 55%;
    text-align: right;
}

.timeline-dot {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--color-gold);
    border-radius: 50%;
    top: 0;
}

.timeline-item:nth-child(odd) .timeline-dot {
    left: -12.5%;
}

.timeline-item:nth-child(even) .timeline-dot {
    right: -12.5%;
}

.timeline-year {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--color-gold);
    margin-bottom: 0.5rem;
}

/* ============================================
   Legal Pages Styles
   ============================================ */

.legal-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}

.legal-content h2 {
    margin-top: 3rem;
    margin-bottom: 1rem;
}

.legal-content h3 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: var(--color-gold-light);
}

.legal-content ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
    color: var(--color-cream);
    opacity: 0.9;
}

.legal-date {
    text-align: center;
    color: var(--color-gold);
    font-style: italic;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(212, 168, 83, 0.3);
}

/* ============================================
   Buttons
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-light) 100%);
    color: var(--color-bg);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.05em;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: 
        transform var(--duration-fast) var(--transition-smooth),
        box-shadow var(--duration-fast) var(--transition-smooth);
    box-shadow: 
        0 4px 15px rgba(212, 168, 83, 0.4),
        0 0 0 0 rgba(212, 168, 83, 0);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 25px rgba(212, 168, 83, 0.5),
        0 0 0 4px rgba(212, 168, 83, 0.1);
}

.btn-outline {
    background: transparent;
    color: var(--color-gold);
    border: 2px solid var(--color-gold);
    box-shadow: none;
}

.btn-outline:hover {
    background: var(--color-gold);
    color: var(--color-bg);
}

/* ============================================
   Footer
   ============================================ */

footer {
    background: var(--color-bg-light);
    padding: 3rem 2rem;
    text-align: center;
    border-top: 1px solid rgba(212, 168, 83, 0.2);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--color-cream);
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.8;
    transition: opacity var(--duration-fast);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--color-gold);
}

.copyright {
    color: var(--color-cream);
    opacity: 0.6;
    font-size: 0.85rem;
}

/* ============================================
   Scroll Reveal Animations
   ============================================ */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: 
        opacity var(--duration-medium) var(--transition-smooth),
        transform var(--duration-medium) var(--transition-smooth);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: 
        opacity var(--duration-medium) var(--transition-smooth),
        transform var(--duration-medium) var(--transition-smooth);
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: 
        opacity var(--duration-medium) var(--transition-smooth),
        transform var(--duration-medium) var(--transition-smooth);
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* Staggered delays */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }

/* ============================================
   Page Transitions
   ============================================ */

.page-transition {
    animation: fadeInUp 1s var(--transition-smooth);
}

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

/* ============================================
   Loading States
   ============================================ */

.skeleton {
    background: linear-gradient(
        90deg,
        var(--color-bg-light) 25%,
        var(--color-bg-lighter) 50%,
        var(--color-bg-light) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ============================================
   Utility Classes
   ============================================ */

.text-center { text-align: center; }
.text-gold { color: var(--color-gold); }
.text-cream { color: var(--color-cream); }
.mt-2 { margin-top: 2rem; }
.mt-4 { margin-top: 4rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-4 { margin-bottom: 4rem; }

/* ============================================
   Reduced Motion Support
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .geometric-shape,
    .shape-cube,
    .shape-pyramid,
    .shape-arch {
        animation: none !important;
    }
    
    .reveal,
    .reveal-left,
    .reveal-right {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ============================================
   Print Styles
   ============================================ */

@media print {
    .main-nav,
    .geometric-shape,
    .corner,
    .svg-lines {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .container {
        padding: 1rem;
    }
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 768px) {
    .container {
        padding: 6rem 2rem 3rem;
    }
    
    .menu-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        width: calc(100% - 50px);
        margin-left: 50px !important;
        margin-right: 0 !important;
        text-align: left !important;
    }
    
    .timeline-dot {
        left: -35px !important;
        right: auto !important;
    }
    
    .menu-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        padding: 7rem 2rem 3rem;
    }
    
    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   PRETEXT SCROLL ANIMATIONS - v0.2.0
   ============================================ */

/* Core Scroll Container */
[data-scroll-container] {
    position: relative;
}

/* Scroll-Tracked Elements Base Styles */
[data-scroll-track] {
    will-change: transform, opacity;
    contain: layout style paint;
    transition: opacity 0.6s cubic-bezier(0.25, 0.1, 0.25, 1),
                transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* Scroll States - Entering Viewport */
[data-scroll-track].entering {
    opacity: 0;
    transform: translateY(8px);
}

/* Scroll States - In Viewport */
[data-scroll-track].in-viewport {
    opacity: 1;
    transform: translateY(var(--parallax-offset, 0));
}

/* Scroll States - Exiting Viewport */
[data-scroll-track].exiting {
    opacity: 0.7;
    transform: scale(0.98) translateY(var(--parallax-offset, 0));
}

/* Timeline Specific Styles */
.timeline {
    position: relative;
}

.timeline-track {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 3rem;
    cursor: pointer;
}

.timeline-track:hover .story-highlight {
    transform: scale(1.01);
    transition: transform 0.3s ease;
}

.timeline-text {
    transition: transform 0.8s ease-out;
}

.timeline-track.in-viewport .timeline-text {
    transform: translateY(var(--parallax-offset, 0));
}

/* Story Highlights */
.story-highlight {
    transition: all 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
    transform-origin: left center;
    background: linear-gradient(90deg, transparent, rgba(212, 168, 83, 0.1), transparent);
    padding: 2rem;
    margin: 2rem 0;
    border-left: 3px solid var(--color-gold);
}

.timeline-track.in-viewport .story-highlight {
    transform: scale(1);
    opacity: 1;
}

/* Philosophy Cards */
.philosophy-card {
    text-align: center;
    padding: 2rem;
    will-change: transform;
    transition: transform 0.8s ease-out, opacity 0.6s ease-out;
}

.philosophy-card.parallax-1 { --parallax-speed: 0.05; }
.philosophy-card.parallax-2 { --parallax-speed: 0.08; }
.philosophy-card.parallax-3 { --parallax-speed: 0.10; }

.philosophy-card.entering {
    opacity: 0;
    transform: translateY(10px);
}

.philosophy-card.in-viewport {
    opacity: 1;
    transform: translateY(calc(var(--parallax-speed, 0.08) * -20px));
}

.philosophy-card.exiting {
    opacity: 0.8;
    transform: scale(0.98);
}

.philosophy-card:hover {
    transform: translateY(calc(var(--parallax-speed, 0.08) * -25px)) scale(1.02);
}

.philosophy-card .icon {
    transition: transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.philosophy-card.in-viewport .icon {
    transform: scale(1.05);
}

.philosophy-card:hover .icon {
    transform: scale(1.15);
}

/* Visit Section */
.visit-section {
    transition: transform 0.8s ease-out, opacity 0.6s ease-out;
}

.visit-section.entering {
    opacity: 0;
    transform: translateX(-20px);
}

.visit-section.in-viewport {
    opacity: 1;
    transform: translateX(0);
}

.visit-section.exiting {
    opacity: 0.7;
    transform: translateX(10px);
}

/* Floating Year Indicator */
.year-indicator {
    position: fixed;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(26, 15, 10, 0.5);
    border: 1px solid var(--color-gold);
    border-radius: 8px;
    padding: 1rem 0.5rem;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.year-indicator .year {
    font-family: var(--font-display);
    font-size: 0.85rem;
    color: rgba(212, 168, 83, 0.4);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    transition: all 0.4s ease;
    cursor: pointer;
    padding: 0.4rem 0.75rem;
    border-radius: 4px;
    background: transparent;
    border: none;
    text-align: left;
    white-space: nowrap;
}

.year-indicator .year:hover {
    color: var(--color-gold-light);
    background: rgba(212, 168, 83, 0.15);
}

.year-indicator .year.active {
    color: var(--color-gold);
    font-size: 1.1rem;
    background: rgba(212, 168, 83, 0.1);
    font-weight: 700;
}

.year-indicator .year:focus {
    outline: 2px solid var(--color-gold);
    outline-offset: 2px;
}

/* Active Year Display (for single-year indicator) */
.year-indicator .active-year {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--color-gold);
    padding: 0.5rem;
    border-bottom: 1px solid rgba(212, 168, 83, 0.2);
    margin-bottom: 0.5rem;
    text-align: center;
}

/* Scroll Pause State */
body.scroll-paused [data-scroll-track],
body.scroll-paused .philosophy-card,
body.scroll-paused .visit-section,
body.scroll-paused .story-highlight {
    transition-duration: 0.3s;
    transition-timing-function: ease-out;
}

/* Fallback Mode */
body.fallback-mode [data-scroll-track] {
    transition: opacity 0.5s ease-out;
    transform: none !important;
}

body.fallback-mode .year-indicator {
    display: none;
}

body.fallback-mode .philosophy-card,
body.fallback-mode .visit-section {
    transform: none !important;
    opacity: 1;
}

/* Mobile Styles - Year Indicator */
@media (max-width: 768px) {
    .year-indicator {
        right: 0.5rem;
        padding: 0.75rem 0.4rem;
    }
    
    .year-indicator .year {
        font-size: 0.75rem;
        padding: 0.3rem 0.5rem;
    }
    
    .year-indicator .year.active {
        font-size: 0.9rem;
    }
    
    .year-indicator .active-year {
        font-size: 1rem;
    }
    
    .timeline-track {
        padding-left: 2rem;
    }
    
    .philosophy-card {
        padding: 1.5rem;
    }
}

/* Tablet Styles */
@media (min-width: 769px) and (max-width: 1024px) {
    .year-indicator {
        right: 1rem;
    }
}

/* Large Screens */
@media (min-width: 1400px) {
    .year-indicator {
        right: 3rem;
    }
}

/* Reduced Motion - Respect User Preferences */
@media (prefers-reduced-motion: reduce) {
    [data-scroll-track],
    .philosophy-card,
    .visit-section,
    .story-highlight,
    .timeline-track {
        transition: none !important;
        transform: none !important;
        opacity: 1 !important;
        animation: none !important;
    }
    
    .year-indicator {
        display: none;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .year-indicator {
        border-width: 2px;
    }
    
    .year-indicator .year.active {
        background: var(--color-gold);
        color: var(--color-bg);
    }
}

/* ============================================
   Menu Item Images & Lightbox Styles
   ============================================ */

/* Menu Item Layout with Images */
.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1.25rem;
    border-bottom: 1px dashed rgba(212, 168, 83, 0.3);
    gap: 1.5rem;
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-item-content {
    flex: 1;
    min-width: 0; /* Allow text truncation */
    display: flex;
    flex-direction: column;
}

/* Menu Item Image Container */
.menu-item-image-container {
    position: relative;
    width: 200px;
    height: 150px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid var(--color-gold);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s var(--transition-smooth);
}

.menu-item-image-container:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(212, 168, 83, 0.3);
    border-color: var(--color-gold-light);
}

.menu-item-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s var(--transition-smooth);
}

.menu-item-image-container:hover .menu-item-image {
    transform: scale(1.05);
}

/* Click to View Overlay */
.click-to-view {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.5rem;
    background: linear-gradient(to top, rgba(26, 15, 10, 0.9), transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    color: var(--color-cream);
    font-size: 0.8rem;
    opacity: 0;
    transition: opacity 0.3s var(--transition-smooth);
}

.menu-item-image-container:hover .click-to-view {
    opacity: 1;
}

.click-to-view svg {
    width: 16px;
    height: 16px;
    stroke: var(--color-gold);
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 15, 10, 0.95);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s var(--transition-smooth);
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    transform: scale(0.9);
    transition: transform 0.3s var(--transition-bounce);
}

.lightbox.active .lightbox-content {
    transform: scale(1);
}

.lightbox-image {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 12px;
    border: 3px solid var(--color-gold);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: var(--color-cream);
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
    transition: color 0.2s;
}

.lightbox-close:hover {
    color: var(--color-gold);
}

/* Mobile Responsive for Menu Items */
@media (max-width: 768px) {
    .menu-item {
        flex-direction: column;
        gap: 1rem;
    }
    
    .menu-item-image-container {
        width: 100%;
        height: 180px;
        order: -1; /* Image appears first on mobile */
    }
    
    .click-to-view {
        opacity: 1; /* Always show on mobile */
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    .click-to-view svg {
        width: 18px;
        height: 18px;
    }
}

/* Desktop Layout - Stacked Vertical */
@media (min-width: 1025px) {
    .menu-item {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .menu-item-content {
        width: 100%;
    }
    
    .menu-item-image-container {
        width: 100%;
        height: 180px;
        flex-shrink: 0;
        order: -1; /* Image on top */
    }
    
    .click-to-view {
        opacity: 1; /* Always visible on desktop */
        padding: 0.75rem;
        font-size: 0.9rem;
        background: linear-gradient(to top, rgba(26, 15, 10, 0.95), rgba(26, 15, 10, 0.7));
    }
    
    .click-to-view svg {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 480px) {
    .menu-item-image-container {
        height: 160px;
    }
    
    .lightbox-image {
        max-height: 70vh;
    }
    
    .lightbox-close {
        top: -35px;
        font-size: 1.5rem;
    }
}

/* Print Styles */
@media print {
    .year-indicator {
        display: none;
    }
    
    [data-scroll-track] {
        opacity: 1 !important;
        transform: none !important;
    }
    
    .menu-item-image-container {
        display: none;
    }
}