/* =========================================================================
   VARIABLES & SETUP
========================================================================= */
:root {
    /* Colors */
    --color-white: #ffffff;
    --color-white-off: #f8fafc;
    --color-green: #16a34a;
    --color-green-light: rgba(22, 163, 74, 0.1);
    --color-red: #dc2626;
    --color-red-light: rgba(220, 38, 38, 0.1);
    
    --color-text-main: #0f172a;
    --color-text-muted: #64748b;
    --color-border: #e2e8f0;
    
    /* Typography */
    --font-sans: 'Outfit', sans-serif;
    --font-serif: 'Lora', serif;
    
    /* Shadows */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
    
    /* Transitions */
    --transition-fast: 0.2s ease-in-out;
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    background-color: var(--color-white-off);
    color: var(--color-text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

/* =========================================================================
   UTILITIES
========================================================================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
}

.text-green { color: var(--color-green); }
.text-red { color: var(--color-red); }
.bg-green-light { background-color: var(--color-green-light); }
.bg-red-light { background-color: var(--color-red-light); }
.bg-light { background-color: var(--color-white); }


/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 1rem;
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), background-color var(--transition-fast);
    cursor: pointer;
    border: none;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.btn-primary:hover {
    background-color: #15803d;
}

.btn-secondary {
    background-color: var(--color-white);
    color: var(--color-text-main);
    border: 1px solid var(--color-border);
}

.btn-secondary:hover {
    border-color: var(--color-text-main);
}


/* =========================================================================
   HEADER & NAVIGATION
========================================================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    z-index: 1000;
    transition: all var(--transition-smooth);
}

.header.scrolled {
    padding: 0.5rem 0;
    box-shadow: var(--shadow-sm);
}

.header-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1rem 0;
    gap: 1rem;
}

.logo {
    height: 90px;
    width: auto;
    object-fit: contain;
    transition: height var(--transition-smooth);
}

.header.scrolled {
    padding: 0;
}

.header.scrolled .logo {
    height: 60px;
}

.nav-menu ul {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    padding: 0.5rem 0;
}

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

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

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-text-main);
    background: none;
    border: none;
}

/* =========================================================================
   HERO SECTION
========================================================================= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.65); /* Rich dark subtle overlay */
    z-index: 1;
}

.hero-content-centered {
    position: relative;
    z-index: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 50px; /* Offset to center optically considering header */
}

.hero-title {
    font-size: clamp(3.5rem, 7vw, 6rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
    color: var(--color-white);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}


/* =========================================================================
   MENU CAROUSEL SECTION
========================================================================= */
.menu-section {
    background-color: var(--color-white-off);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--color-text-main);
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
}

.section-title p {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

.menu-carousel-container {
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
    max-width: 2400px;
    margin: 0 auto;
}

.menu-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    padding: 3rem 2rem;
    scrollbar-width: none; /* Firefox */
    gap: 2rem;
    cursor: grab;
}

.menu-carousel.active {
    cursor: grabbing;
}

.menu-carousel::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
}

.menu-page {
    flex: 0 0 calc(28.5% - 2rem); /* Desktop: effectively shows ~3.5 pages */
    scroll-snap-align: start;
    display: flex;
    justify-content: center;
    user-select: none;
}

.menu-page:last-child {
    scroll-snap-align: end;
}

.paper-texture {
    position: relative;
    width: 100%;
    margin: 0 auto;
    background: var(--color-white);
    border-radius: 4px 12px 12px 4px;
    box-shadow: -5px 0 15px rgba(0,0,0,0.05), inset 2px 0 5px rgba(0,0,0,0.03), 5px 15px 30px rgba(0,0,0,0.15);
    aspect-ratio: 1 / 1.7;
    /* Removed pointer-events: none so clicks pass through to the lightbox script */
}

.paper-texture img {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 4px 12px 12px 4px;
    object-fit: contain;
    -webkit-user-drag: none;
    user-drag: none;
}

.page-spine {
    position: absolute;
    top: 0;
    left: 0;
    width: 30px;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.02) 40%, transparent 100%);
    border-radius: 4px 0 0 4px;
    pointer-events: none;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--color-white);
    border: 1px solid var(--color-border);
    width: 60px; height: 60px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 1.5rem;
    transition: all var(--transition-fast);
    color: var(--color-text-main);
    z-index: 20;
    box-shadow: var(--shadow-md);
}

.carousel-nav:hover {
    background: var(--color-green);
    color: var(--color-white);
    border-color: var(--color-green);
}

#menu-prev { left: 2rem; }
#menu-next { right: 2rem; }

.menu-dots {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 1rem;
}

.dot {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-border);
    cursor: pointer;
    transition: background var(--transition-fast), transform var(--transition-fast);
    background-clip: content-box;
    padding: 16px;
}

.dot.active {
    background: var(--color-red);
    background-clip: content-box;
    transform: scale(1.3);
}

.book-instructions {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--color-text-muted);
    font-size: 1rem;
    font-style: italic;
}

@media (max-width: 1200px) {
    .menu-page {
        flex: 0 0 calc(35% - 2rem); /* Small Desktop: Shows ~2.8 items */
    }
}

@media (max-width: 1024px) {
    .menu-page {
        flex: 0 0 calc(45% - 2rem); /* Tablet: Shows ~2.2 items */
    }
}

@media (max-width: 768px) {
    .menu-page {
        flex: 0 0 calc(90% - 1rem); /* Mobile: larger page for readability */
        scroll-snap-align: center;
    }
    .menu-carousel {
        padding: 1.5rem 1rem;
        gap: 1rem;
    }
    .carousel-nav {
        display: none; /* Mobile relies on native smooth swipe */
    }
}

/* =========================================================================
   INFO SECTIONS (Hours & Contact)
========================================================================= */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(350px, 100%), 1fr));
    gap: 3rem;
}

.info-card {
    background: var(--color-white);
    border-radius: 2rem;
    padding: 3rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 2rem;
}

.info-card h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--color-text-main);
}

/* Hours List */
.hours-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hour-item {
    display: flex;
    justify-content: space-between;
    padding-bottom: 1rem;
    border-bottom: 1px dashed var(--color-border);
    font-size: 1.1rem;
}

.hour-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.hour-item span:first-child {
    font-weight: 500;
    color: var(--color-text-muted);
}

.hour-item span:last-child {
    font-weight: 700;
    color: var(--color-text-main);
}

/* Contact Details */
.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--color-green);
    margin-top: 0.25rem;
}

.contact-item strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.contact-item p {
    color: var(--color-text-muted);
    font-size: 1.05rem;
    line-height: 1.5;
}

.contact-item a:hover {
    color: var(--color-green);
}

.map-placeholder {
    margin-top: 2.5rem;
    height: 250px;
    border-radius: 1rem;
    background: var(--color-white-off);
    overflow: hidden;
    position: relative;
    border: 1px solid var(--color-border);
    transition: box-shadow var(--transition-fast);
}

.map-placeholder iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.map-placeholder:hover {
    box-shadow: var(--shadow-md);
}


/* =========================================================================
   FOOTER
========================================================================= */
.footer {
    background-color: #0f172a; /* Richer dark slate */
    color: var(--color-white);
    padding: 6rem 0 3rem;
    position: relative;
    overflow: hidden;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 4rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo-large {
    height: 140px; /* Big, prominent logo */
    width: auto;
    filter: brightness(0) invert(1); /* Makes the SVG white */
    margin-bottom: 1.5rem;
    margin-left: -10px; /* Adjust optical alignment for some SVG padding */
}

.footer-slogan {
    color: #94a3b8; /* Slate gray */
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 400px;
}

.footer h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--color-white);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links a {
    color: #94a3b8;
    transition: color var(--transition-fast), padding-left var(--transition-fast);
}

.footer-links a:hover {
    color: var(--color-green);
    padding-left: 6px;
}

.footer-contact p {
    color: #94a3b8;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.05rem;
}

.footer-contact i {
    color: var(--color-green);
    font-size: 1.2rem;
}

.footer-socials {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-link {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.social-link:hover {
    background: var(--color-green);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.95rem;
    position: relative;
    z-index: 2;
}

/* Footer Abstract Green Overlay */
.footer-aesthetic-shape {
    position: absolute;
    bottom: -150px;
    right: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(22, 163, 74, 0.12) 0%, transparent 60%);
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-brand {
        align-items: center;
    }
    
    .logo-large {
        margin-left: 0;
        height: 100px;
    }
    
    .footer-contact p {
        justify-content: center;
    }
    
    .footer-socials {
        justify-content: center;
    }
}


/* =========================================================================
   ANIMATIONS & RESPONSIVE
========================================================================= */

/* Initial Animation States */
.animate-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-up.in-view {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.2s;
}

/* Media Queries */

@media (max-width: 768px) {
    .header-container {
        position: relative;
        justify-content: center;
        padding: 0.5rem 1.5rem;
    }

    .logo-link {
        margin: 0 auto;
    }

    .logo {
        height: 80px; /* Big center logo for mobile */
    }

    .header.scrolled .logo {
        height: 65px; /* Keep it prominent even when scrolling */
    }

    .nav-menu {
        position: absolute;
        top: 100%; /* Always flush below header regardless of height */
        left: -100%;
        width: 100%;
        height: calc(100vh - 100%);
        min-height: 400px;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: left var(--transition-smooth);
        z-index: 990;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu ul {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }
    
    .nav-link {
        font-size: 1.5rem;
    }
    
    .mobile-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 44px;
        height: 44px;
        padding: 10px 7px;
        position: absolute;
        right: 1.5rem;
        top: 50%;
        transform: translateY(-50%);
        cursor: pointer;
        z-index: 1001;
        background: none;
        border: none;
    }

    .mobile-toggle .bar {
        display: block;
        width: 100%;
        height: 3px;
        background-color: var(--color-text-main);
        border-radius: 3px;
        transition: all 0.3s ease-in-out;
    }
    
    .mobile-toggle.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    
    .mobile-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-toggle.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
    
    .hero-title {
        font-size: clamp(2.75rem, 12vw, 6rem);
        line-height: 1.05;
        padding: 0 1rem;
    }

    .hero-subtitle {
        font-size: 1.05rem;
        padding: 0 0.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }

    .hero .btn-secondary {
        background: transparent;
        color: white;
        border: 2px solid rgba(255,255,255,0.6);
    }
    
    .grid-container {
        grid-template-columns: 1fr;
    }
    
    .info-card {
        padding: 2rem;
    }

    .info-card h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .hour-item {
        font-size: 1rem;
    }

    .map-placeholder {
        height: 200px;
    }
    
    .section {
        padding: 3rem 0;
    }

    .footer {
        padding: 3rem 0 2rem;
    }

    .footer-links ul {
        gap: 0.5rem;
    }

    .footer-links a {
        display: inline-block;
        padding: 0.5rem 0;
    }
}

/* =========================================================================
   LIGHTBOX / ZOOM
========================================================================= */
.lightbox {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9); /* Dark overlay */
    align-items: center;
    justify-content: center;
    animation: fadeIn var(--transition-fast) ease-out;
}

.lightbox.active {
    display: flex; /* Active state */
}

.lightbox-content {
    max-width: 95%;
    max-height: 95vh; /* Fits comfortably within viewport */
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
    object-fit: contain;
    animation: zoomIn var(--transition-smooth);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-size: 2.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: color var(--transition-fast);
    z-index: 2010;
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
