/* --- CSS RESET & ROOT VARIABLES --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --rich-gold: #B38B59; /* New premium accent color */
    --slate-grey: #3D4852;
    --parchment: #F9F6F1;
    --text-dark: #3D4852;
    --text-light: #FFFFFF;
    --font-display: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition-fast: 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    --transition-slow: 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background-color: var(--parchment);
    color: var(--text-dark);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    opacity: 0;
    transition: opacity 0.5s ease;
}

body.loaded { opacity: 1; }

/* --- PRELOADER --- */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--slate-grey);
    display: grid;
    place-items: center;
    z-index: 2000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
.preloader-grid {
    width: 60px;
    height: 60px;
    background-color: var(--rich-gold);
    animation: waffle-load 1.2s infinite ease-in-out;
    background-image:
        linear-gradient(rgba(255,255,255,0.2) 2px, transparent 2px),
        linear-gradient(90deg, rgba(255,255,255,0.2) 2px, transparent 2px);
    background-size: 15px 15px;
}
@keyframes waffle-load {
    0% { transform: scale(1) rotate(0deg); border-radius: 15%; }
    50% { transform: scale(0.8) rotate(180deg); border-radius: 50%; }
    100% { transform: scale(1) rotate(360deg); border-radius: 15%; }
}
.preloader.hidden { opacity: 0; visibility: hidden; }

/* --- GLOBAL TYPOGRAPHY & BUTTONS --- */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    line-height: 1.2;
    font-weight: 700;
}
h2 { font-size: clamp(2.5rem, 6vw, 3.5rem); }
.section-title { margin-bottom: 2rem; text-align: center; }
.section-intro { max-width: 700px; margin: 0 auto 4rem auto; text-align: center; font-size: 1.15rem; line-height: 1.8; }
.subtitle {
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--rich-gold);
    margin-bottom: 0.5rem;
    display: block;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.cta-button, .cta-button-large {
    display: inline-block;
    background: var(--rich-gold);
    color: var(--text-light);
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    text-decoration: none;
    font-family: var(--font-body);
    font-weight: 600;
    transition: var(--transition-fast);
    border: 2px solid var(--rich-gold);
}
.cta-button-large { padding: 1rem 2.5rem; font-size: 1.1rem; }
.cta-button:hover, .cta-button-large:hover {
    background-color: transparent;
    color: var(--rich-gold);
    transform: translateY(-4px);
}
#header .cta-button {
    background: transparent;
    color: var(--rich-gold);
}
#header .cta-button:hover {
    background: var(--rich-gold);
    color: var(--text-light);
}

/* --- HEADER --- */
#header {
    position: fixed;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition-fast);
}
#header.scrolled {
    background: rgba(249, 246, 241, 0.85);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
nav.container { display: flex; justify-content: space-between; align-items: center; }
.brand-name { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; }

/* --- HERO SECTION --- */
#hero {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    background-color: var(--parchment);
    overflow: hidden;
}
#hero::before { /* Subtle background grid */
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image:
        linear-gradient(rgba(61, 72, 82, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(61, 72, 82, 0.05) 1px, transparent 1px);
    background-size: 100px 100px;
    opacity: 0.5;
    z-index: 0;
}
.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 2rem;
}
.hero-text .line { overflow: hidden; }
.hero-text .word {
    display: inline-block;
    transform: translateY(110%);
    transition: transform var(--transition-slow);
    transition-delay: calc(0.1s * var(--word-index));
}
body.loaded .hero-text .word { transform: translateY(0); }
.hero-text h1, .hero-text h2 { font-size: clamp(3rem, 7vw, 5.5rem); font-weight: 900; }
.hero-text h2 { color: var(--rich-gold); margin-bottom: 1.5rem; }
.hero-text p, .hero-text .cta-button-large {
    opacity: 0;
    transition: opacity 0.8s ease 0.8s;
    max-width: 500px;
}
body.loaded .hero-text p, body.loaded .hero-text .cta-button-large { opacity: 1; }

.hero-image {
    perspective: 1500px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease 1s, transform 0.8s ease 1s;
}
body.loaded .hero-image { opacity: 1; transform: translateY(0); }
.hero-image img {
    width: 100%;
    max-width: 500px;
    display: block;
    margin: 0 auto;
    transform: rotateY(-15deg) rotateX(5deg);
    filter: drop-shadow(40px 30px 30px rgba(0,0,0,0.15));
}

/* --- SECTIONS --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.content-section { padding: 8rem 0; }
.content-section-dark {
    padding: 8rem 0;
    background-color: var(--slate-grey);
    color: var(--parchment);
}
.content-section-dark h2 { color: var(--text-light); }
.content-section-dark .subtitle { color: var(--rich-gold); }
.subtitle-dark { color: var(--rich-gold); }

/* --- CANVASES SECTION --- */
.canvas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}
.canvas-card {
    background: var(--slate-grey);
    color: var(--parchment);
    border: 1px solid #5a6875;
    padding: 2rem;
    border-radius: 8px;
    transition: var(--transition-fast);
}
.canvas-card:hover {
    transform: translateY(-8px);
    background-color: #4a5864;
}
.canvas-card h4 {
    font-size: 1.5rem;
    color: var(--rich-gold);
    margin-bottom: 0.5rem;
}

/* --- MENU SHOWCASE --- */
.menu-showcase-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: flex-start;
}
.menu-gallery {
    position: sticky;
    top: 120px;
    height: calc(100vh - 160px);
    max-height: 500px;
}
.menu-image-container {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.menu-image-container.is-visible { opacity: 1; transform: scale(1); }
.menu-image-container img {
    width: 100%; height: 100%;
    object-fit: cover;
    border-radius: 8px;
}
.menu-description-item {
    min-height: 300px;
    padding: 2rem 0;
    margin-bottom: 4rem;
}
.menu-description-item:last-child { margin-bottom: 0; }
.menu-description-item h4 { font-size: 2rem; margin-bottom: 1rem; color: var(--rich-gold); }
.menu-footer { text-align: center; margin-top: 4rem; }

/* --- EXPERIENCE SECTION --- */
#experience {
    background-color: #fff;
}
.experience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.experience-card {
    padding: 2.5rem;
    text-align: center;
}
.experience-card h3 { font-size: 1.5rem; margin-bottom: 1rem; }

/* --- CTA SECTION --- */
.cta-section {
    padding: 6rem 0;
    text-align: center;
    background: var(--slate-grey);
    color: var(--text-light);
}
.cta-section h2 { color: var(--text-light); font-size: 2.8rem; }
.cta-section p { max-width: 600px; margin: 1rem auto 2rem auto; }
.cta-section .cta-button-large {
    background: var(--rich-gold);
    color: var(--text-light);
    border-color: var(--rich-gold);
}
.cta-section .cta-button-large:hover {
    background: transparent;
    color: var(--rich-gold);
}

/* --- FOOTER --- */
#footer {
    background: var(--slate-grey);
    color: var(--parchment);
    text-align: center;
    padding: 4rem 0;
    border-top: 1px solid #5a6875;
}
#footer h3 { font-size: 1.8rem; color: var(--text-light); margin-bottom: 1.5rem; }
.footer-socials {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 2rem;
    margin-bottom: 2rem;
}
.footer-socials a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer-socials a:hover { color: var(--rich-gold); }
.copyright { font-size: 0.9rem; color: #888; }

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 900px) {
    .hero-content { grid-template-columns: 1fr; text-align: center; }
    .hero-image { grid-row: 1; margin-bottom: 2rem; }
    .hero-image img { max-width: 350px; transform: rotateY(0) rotateX(0); filter: drop-shadow(20px 20px 20px rgba(0,0,0,0.1)); }
    .hero-text p { margin: 0 auto 1.5rem auto; }
    .menu-showcase-wrapper { grid-template-columns: 1fr; }
    .menu-gallery {
        position: relative;
        top: 0;
        height: auto;
        max-height: none;
    }
    .menu-image-container {
        position: relative;
        opacity: 1;
        transform: scale(1);
        height: 400px;
        margin-bottom: 2rem;
        display: none;
    }
    .menu-image-container.is-visible-mobile { display: block; }
    .menu-description-item {
        min-height: auto;
        padding: 0;
        margin-bottom: 3rem;
        text-align: center;
    }
}
@media (max-width: 768px) {
    #hero { min-height: auto; padding: 10rem 0 4rem 0; }
}