
/* -----------------------------------------------------------
    1. CORE VARIABLES & RESET
    ----------------------------------------------------------- */
:root {
    /* Palette */
    --color-cream: #F4F1EA;
    --color-cream-dark: #E6E2D6;
    --color-charcoal: #121212;
    --color-charcoal-light: #1E1E1E;
    --color-gold: #BFA06D;
    --color-gold-hover: #D4B88C;
    --color-text-body: #4A4A4A;
    --color-white: #FFFFFF;
    
    /* Typography */
    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'Montserrat', sans-serif;
    --font-script: 'Pinyon Script', cursive;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;
    --container-width: 1440px;
    
    /* Transitions */
    --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
    --transition-slow: 0.8s var(--ease-out-expo);
    --transition-fast: 0.3s ease;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-cream);
    color: var(--color-charcoal);
    font-family: var(--font-sans);
    line-height: 1.7;
    overflow-x: hidden;
}

/* -----------------------------------------------------------
    2. TYPOGRAPHY SYSTEM
    ----------------------------------------------------------- */
h1, h2, h3, h4, h5 {
    font-family: var(--font-serif);
    font-weight: 400;
    line-height: 1.1;
    color: var(--color-charcoal);
}

.display-text {
    font-size: clamp(2.5rem, 5vw, 6rem);
    letter-spacing: -1px;
    line-height: 1.05;
}

.script-text {
    font-family: var(--font-script);
    color: var(--color-gold);
    font-weight: 400;
    font-size: clamp(3rem, 6vw, 7rem);
    display: block;
}

.subtitle {
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-gold);
    display: block;
    margin-bottom: var(--spacing-sm);
}

p {
    color: var(--color-text-body);
    font-weight: 300;
    margin-bottom: var(--spacing-sm);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

/* -----------------------------------------------------------
    3. UI COMPONENTS
    ----------------------------------------------------------- */

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.2rem 3rem;
    border: 1px solid var(--color-charcoal);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    transition: color 0.4s ease;
    cursor: pointer;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-charcoal);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s var(--ease-out-expo);
    z-index: -1;
}

.btn:hover {
    color: var(--color-cream);
}

.btn:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.btn-gold {
    border-color: var(--color-gold);
    color: var(--color-gold);
}
.btn-gold::before { background-color: var(--color-gold); }
.btn-gold:hover { color: var(--color-white); }

/* Loader */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--color-cream);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    transition: opacity 0.8s ease;
}

.loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader-logo {
    font-family: var(--font-serif);
    font-size: 2rem;
    overflow: hidden;
}

.loader-line {
    width: 0;
    height: 2px;
    background: var(--color-gold);
    margin-top: 20px;
    animation: loadLine 1.5s ease forwards;
}

@keyframes loadLine {
    to { width: 100px; }
}

/* -----------------------------------------------------------
    4. LAYOUT & SECTIONS
    ----------------------------------------------------------- */

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: var(--spacing-md) var(--spacing-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 500;
    transition: all 0.4s ease;
    background: var(--color-white);
    color: var(--color-charcoal);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.navbar.scrolled {
    background: var(--color-white);
    padding: 1rem var(--spacing-lg);
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.logo {
        font-family: var(--font-serif);
        font-size: 2rem;
        line-height: 1;
        color: var(--color-charcoal);
        z-index: 1001;
    }
    .logo span {
        display: block;
        font-family: var(--font-sans);
        font-size: 0.5rem;
        letter-spacing: 2px;
        margin-top: 5px;
        color: var(--color-text-body);
        display: flex;
        align-items: center;
        gap: 8px;
    }
    .logo-sub {
        display: inline-flex;
        gap: 4px;
    }
    .logo .logo-secondary {
        display: block;
        font-family: var(--font-script);
        font-size: 1.1rem;
        letter-spacing: 2px;
        margin-top: 5px;
        color: var(--color-text-body);
    }

.nav-links {
    display: flex;
    gap: 3rem;
    align-items: center;
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--color-white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transform: translateX(100%);
        transition: transform 0.4s var(--ease-out-expo);
        z-index: 1000;
    }
    
    .nav-links.active {
        transform: translateX(0);
    }
}

.nav-link {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    font-weight: 500;
    position: relative;
    color: var(--color-charcoal);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-gold);
    transition: width 0.3s ease;
}

.nav-link:hover::after { width: 100%; }

/* Burger Menu */
.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.burger-menu span {
    display: block;
    height: 3px;
    width: 100%;
    background: var(--color-charcoal);
    transition: all 0.3s ease;
}

.burger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
}

.burger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

@media (max-width: 768px) {
    .burger-menu {
        display: flex;
    }
}

/* Menu Hero Section */
.menu-hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
                url('https://images.unsplash.com/photo-1509440159596-0249088772ff?q=80&w=2072&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    color: var(--color-white);
    text-align: center;
    padding: 120px 5% 5%;
    margin-top: 80px;
}

@media (max-width: 768px) {
    .menu-hero {
        min-height: 40vh;
        padding: 100px 5% 5%;
    }
}

.menu-hero-content h1 {
    color: var(--color-white);
    margin-bottom: 1rem;
}

.menu-hero-content p {
    color: var(--color-cream);
    max-width: 600px;
    margin: 0 auto;
}

/* -----------------------------------------------------------
    5. MENU TABS SECTION
    ----------------------------------------------------------- */
.menu-tabs-section {
    padding: var(--spacing-xl) 5%;
    background: var(--color-white);
    min-height: 80vh;
}

.menu-header {
    text-align: center;
    margin-bottom: 3rem;
}

.menu-header p {
    max-width: 600px;
    margin: 0 auto;
    color: var(--color-text-body);
}

/* Tab Controls */
.tab-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    padding: 0 5%;
}

@media (max-width: 768px) {
    .tab-controls {
        gap: 0.5rem;
        justify-content: space-around;
    }
    
    .tab-btn {
        flex: 1;
        min-width: 140px;
        padding: 0.8rem 0.5rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .tab-btn {
        min-width: 120px;
        font-size: 0.7rem;
        padding: 0.7rem 0.3rem;
    }
}

.tab-btn {
    background: none;
    border: none;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-text-body);
    cursor: pointer;
    padding: 1rem 1.5rem;
    position: relative;
    transition: color 0.3s;
    border-radius: 30px;
    background: var(--color-cream);
}

.tab-btn:hover {
    color: var(--color-charcoal);
    background: var(--color-cream-dark);
}

.tab-btn.active {
    color: var(--color-white);
    background: var(--color-charcoal);
    font-weight: 600;
}

/* Tab Content Area */
.tab-content {
    display: none;
    animation: fadeIn 0.6s ease;
    max-width: var(--container-width);
    margin: 0 auto;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Grid for Menu Items */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
    padding: 0 5%;
}

@media (max-width: 768px) {
    .menu-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .menu-grid {
        grid-template-columns: 1fr;
    }
}

.menu-item {
    background: var(--color-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--color-cream-dark);
}

.menu-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.menu-img-wrap {
    height: 220px;
    overflow: hidden;
    position: relative;
}

@media (max-width: 768px) {
    .menu-img-wrap {
        height: 200px;
    }
}

.menu-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.menu-item:hover .menu-img-wrap img {
    transform: scale(1.05);
}

.item-details {
    padding: 1.5rem;
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.8rem;
}

.item-details h4 {
    font-size: 1.4rem;
    margin: 0;
    flex: 1;
}

.item-price {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--color-gold);
    font-weight: 600;
    margin-left: 1rem;
    white-space: nowrap;
}

.item-details p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--color-text-body);
    margin-bottom: 0;
}

.dietary-info {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.dietary-badge {
    background: var(--color-cream);
    color: var(--color-text-body);
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dietary-badge.vegan {
    background: #E8F5E9;
    color: #2E7D32;
}

.dietary-badge.gluten-free {
    background: #FFF3E0;
    color: #EF6C00;
}

/* Menu Category Header */
.category-header {
    text-align: center;
    margin: 3rem 0 2rem;
    padding: 0 5%;
}

.category-header h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--color-charcoal);
}

.category-header p {
    color: var(--color-text-body);
    max-width: 700px;
    margin: 0 auto;
}

/* Allergen Note */
.allergen-note {
    text-align: center;
    padding: 2rem 5% 0;
    margin-top: 3rem;
    border-top: 1px solid var(--color-cream-dark);
    color: var(--color-text-body);
    font-size: 0.8rem;
}

/* -----------------------------------------------------------
    6. ORDER CTA SECTION
    ----------------------------------------------------------- */
.order-cta {
    background: var(--color-charcoal);
    color: var(--color-white);
    padding: var(--spacing-xl) 5%;
    text-align: center;
}

.order-content {
    max-width: 800px;
    margin: 0 auto;
}

.order-content h2 {
    color: var(--color-white);
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
}

.order-content p {
    color: #aaa;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.order-options {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

/* -----------------------------------------------------------
    7. FOOTER
    ----------------------------------------------------------- */
footer {
    background-color: #000;
    color: #888;
    padding: 5rem 5%;
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    footer {
        padding: 3rem 5%;
    }
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    max-width: var(--container-width);
    margin: 0 auto;
    border-bottom: 1px solid #222;
    padding-bottom: 4rem;
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
        padding-bottom: 3rem;
    }
}

.footer-brand h2 { color: var(--color-white); margin-bottom: 1rem; }
.footer-col h4 { color: var(--color-white); text-transform: uppercase; margin-bottom: 1.5rem; letter-spacing: 1px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.8rem; }
.footer-col a:hover { color: var(--color-gold); }

.newsletter-form {
    display: flex;
    border-bottom: 1px solid #444;
    padding-bottom: 0.5rem;
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .newsletter-form {
        justify-content: center;
    }
}

.newsletter-form input {
    background: none;
    border: none;
    color: white;
    width: 100%;
    outline: none;
    font-family: var(--font-sans);
    padding: 0.5rem 0;
}

.newsletter-form button {
    background: none;
    border: none;
    color: var(--color-gold);
    text-transform: uppercase;
    font-size: 0.7rem;
    cursor: pointer;
    white-space: nowrap;
}

.footer-bottom {
    max-width: var(--container-width);
    margin: 2rem auto 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* -----------------------------------------------------------
    8. UTILITY CLASSES
    ----------------------------------------------------------- */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s var(--ease-out-expo);
}

.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}
