/* ==========================================================================
   CSS Variables & Reset
   ========================================================================== */
:root {
    --color-bg: #FDFBF7;
    --color-text: #2A2A2A;
    --color-accent: #4A90E2;
    --color-accent-hover: #357ABD;
    --color-light: #FFFFFF;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Montserrat', sans-serif;
    
    --radius: 8px;
    --transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
}

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

/* ==========================================================================
   Typography
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(3rem, 5vw, 5rem);
    font-weight: 700;
}

h1 span {
    color: var(--color-accent);
}

h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
}

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

/* ==========================================================================
   Components
   ========================================================================== */
.btn-primary {
    display: inline-block;
    background-color: var(--color-accent);
    color: var(--color-light);
    padding: 12px 28px;
    border: none;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 14px rgba(74, 144, 226, 0.2);
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
    background-color: var(--color-accent-hover);
}

.w-100 {
    width: 100%;
}

.blur-up {
    filter: blur(10px);
    transition: filter 0.8s ease-out;
}
.blur-up.loaded {
    filter: blur(0);
}

/* ==========================================================================
   Loading Screen
   ========================================================================== */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-bg);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

.loader-logo {
    width: 100px;
    animation: spin 3s linear infinite;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    background-color: rgba(253, 251, 247, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: transform 0.4s ease, padding 0.3s ease, background 0.3s ease;
}

#main-header.scroll-down {
    transform: translateY(-100%);
}

#main-header.scroll-up {
    transform: translateY(0);
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 70px;
}

.desktop-nav {
    display: flex;
    gap: 2rem;
}

.desktop-nav a {
    font-family: var(--font-heading);
    font-weight: 500;
    position: relative;
}

.desktop-nav a:hover {
    color: var(--color-accent);
    transform: translateY(-2px);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: var(--color-text);
    border-radius: 3px;
    transition: var(--transition);
}

.mobile-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    max-width: 100%;
    height: 100vh;
    background-color: var(--color-light);
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    z-index: 1001;
    padding: 4rem 2rem;
    transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    display: flex;
    flex-direction: column;
}

.mobile-drawer.open {
    right: 0;
}

.close-drawer {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--color-text);
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.mobile-nav a {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 500;
}

@media (max-width: 992px) {
    .desktop-nav, .header-container .reserve-btn {
        display: none;
    }
    .mobile-menu-toggle {
        display: flex;
    }
}

/* ==========================================================================
   Layout & Sections
   ========================================================================== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 6rem 2rem;
}

.gs-reveal {
    opacity: 0;
    visibility: hidden;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 6rem 2rem 2rem;
}

.hero-bg {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background-size: cover;
    background-position: center;
    z-index: -1;
    opacity: 0.15;
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

.hero-text {
    flex: 1;
    max-width: 600px;
}

.hero-text p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: #555;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-dish {
    width: 100%;
    max-width: 500px;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.15));
    /* Handled by GSAP, but here's a fallback */
}

@media (max-width: 992px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
        margin-top: 4rem;
    }
    .hero-text {
        max-width: 100%;
    }
}

/* Split Section (Cuisine) */
.split-section {
    display: flex;
    min-height: 80vh;
}

.split-text {
    flex: 1;
    padding: 6rem 10%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: var(--color-light);
}

.split-image {
    flex: 1;
    overflow: hidden;
}

.image-wrapper {
    width: 100%;
    height: 100%;
}

.parallax-img {
    width: 100%;
    height: 120%; /* For parallax */
    object-fit: cover;
}

@media (max-width: 992px) {
    .split-section {
        flex-direction: column;
    }
    .split-image {
        height: 50vh;
    }
}

/* About Section */
.about-section {
    background-color: var(--color-bg);
}

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

.about-content p {
    font-size: 1.25rem;
}

.about-image-container {
    border-radius: var(--radius);
    overflow: hidden;
    height: 60vh;
}

.grayscale-wrapper img {
    filter: grayscale(100%);
    transition: filter 0.5s ease;
}

.grayscale-wrapper:hover img {
    filter: grayscale(0%);
}

/* Menu Section */
.menu-section {
    background-color: var(--color-light);
    position: relative;
    padding-bottom: 8rem;
}

.menu-list {
    margin-top: 4rem;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2.5rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    cursor: pointer;
    transition: var(--transition);
}

.menu-item:hover {
    padding-left: 20px;
    padding-right: 20px;
}

.menu-item-info h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--color-text);
    transition: color 0.3s ease;
}

.menu-item:hover .menu-item-info h3 {
    color: var(--color-accent);
}

.menu-item-info p {
    color: #666;
    max-width: 600px;
}

.price {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
}

/* Hover Image Preview */
#menu-hover-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 350px;
    height: 250px;
    border-radius: var(--radius);
    overflow: hidden;
    pointer-events: none;
    opacity: 0;
    transform: scale(0.9);
    z-index: 100;
    transition: opacity 0.3s ease, transform 0.3s ease;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

#menu-hover-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#menu-hover-image.active {
    opacity: 1;
    transform: scale(1);
}

@media (max-width: 768px) {
    #menu-hover-image {
        display: none;
    }
    .menu-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        -webkit-tap-highlight-color: transparent;
    }
    .menu-item:hover {
        padding-left: 0;
        padding-right: 0;
    }
    .mobile-menu-image {
        width: 100%;
        overflow: hidden;
        height: 0;
        opacity: 0;
        margin-top: 0;
        border-radius: var(--radius);
        box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    }
    .mobile-menu-image img {
        width: 100%;
        height: 220px;
        object-fit: cover;
        border-radius: var(--radius);
        display: block;
    }
}

@media (min-width: 769px) {
    .mobile-menu-image {
        display: none !important;
    }
}

/* Contact Section */
.contact-section {
    background-color: var(--color-bg);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    margin-top: 3rem;
}

.contact-info p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.map-container {
    border-radius: var(--radius);
    overflow: hidden;
    height: 400px;
    background-color: #EFECE6;
}

.mock-map {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #aaa;
    font-family: var(--font-heading);
}

.map-pin {
    width: 24px;
    height: 36px;
    background-color: var(--color-accent);
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    margin-bottom: 10px;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
}

@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* Footer */
.main-footer {
    background-color: #1A1A1A;
    color: var(--color-light);
    padding: 6rem 2rem 2rem;
}

.footer-massive {
    text-align: center;
    margin-bottom: 4rem;
}

.footer-massive h2 {
    font-size: clamp(4rem, 12vw, 12rem);
    line-height: 1;
    margin: 0;
    letter-spacing: -2px;
    color: var(--color-bg);
    opacity: 0.9;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-links a, .social-links a {
    margin-right: 2rem;
    opacity: 0.7;
}

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

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    .footer-links a, .social-links a {
        margin: 0 1rem;
    }
}

/* ==========================================================================
   Modal
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: var(--color-bg);
    padding: 3rem;
    border-radius: var(--radius);
    width: 90%;
    max-width: 500px;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

.close-modal {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--color-text);
}

.reservation-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.reservation-form input {
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 1rem;
    background-color: var(--color-light);
}

.reservation-form input:focus {
    outline: none;
    border-color: var(--color-accent);
}

/* ==========================================================================
   Back to Top
   ========================================================================== */
#back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background-color: var(--color-accent);
    color: var(--color-light);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 14px rgba(74, 144, 226, 0.3);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#back-to-top:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-5px);
}
