:root {
    /* Color Palette - Modern Rustic */
    --color-coffee-bean: #231b15;
    --color-cream: #f4f1ea;
    --color-rust: #c96e4c;
    --color-warm-grey: #a8a29e;
    --color-sand: #e6e2dd;
    --color-overlay: rgba(35, 27, 21, 0.85);

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.4s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-cream);
    color: var(--color-coffee-bean);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
    border-radius: var(--radius-md);
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--color-rust);
    color: white;
    font-weight: 500;
    border-radius: var(--radius-sm);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.9rem;
    border: 2px solid var(--color-rust);
}

.btn:hover {
    background-color: transparent;
    color: var(--color-rust);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--color-coffee-bean);
    color: var(--color-coffee-bean);
}

.btn-outline:hover {
    background-color: var(--color-coffee-bean);
    color: white;
}

.section-padding {
    padding: var(--spacing-xl) 0;
}

.text-center {
    text-align: center;
}

.mb-md {
    margin-bottom: var(--spacing-md);
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(244, 241, 234, 0.95);
    backdrop-filter: blur(10px);
    padding: var(--spacing-sm) 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--color-coffee-bean);
}

.nav-links {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
}

.lang-switcher {
    position: relative;
    margin-left: var(--spacing-sm);
}

.lang-btn {
    background: none;
    border: 1px solid var(--color-coffee-bean);
    border-radius: var(--radius-sm);
    padding: 6px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--color-coffee-bean);
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.lang-btn:hover {
    background-color: var(--color-coffee-bean);
    color: var(--color-cream);
}

.globe-icon {
    font-size: 1rem;
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 140px;
    background-color: white;
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition-fast);
    overflow: hidden;
    z-index: 1001;
}

.lang-switcher:hover .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-dropdown a {
    display: block;
    padding: 10px 16px;
    color: var(--color-coffee-bean);
    font-size: 0.9rem;
    border-bottom: 1px solid var(--color-cream);
}

.lang-dropdown a:hover {
    background-color: var(--color-cream);
    color: var(--color-rust);
}

.lang-dropdown a:last-child {
    border-bottom: none;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--color-coffee-bean);
}

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

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    background-image: url('assets/images/hero.png');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-cream);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-overlay);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: var(--spacing-md);
    animation: fadeIn 1s ease-out;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: var(--spacing-md);
    color: var(--color-cream);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-lg);
    opacity: 0.9;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.about-img {
    height: 500px;
    object-fit: cover;
    width: 100%;
}

.about-text h2 {
    font-size: 2.5rem;
    color: var(--color-rust);
}

.about-text p {
    margin-bottom: var(--spacing-md);
    color: var(--color-warm-grey);
}

/* Highlights Section */
.highlights {
    background-color: var(--color-sand);
}

.highlights h2 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-lg);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.card {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: var(--transition-medium);
}

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

.card-img {
    height: 250px;
    width: 100%;
    object-fit: cover;
}

.card-content {
    padding: var(--spacing-md);
}

.card h3 {
    color: var(--color-coffee-bean);
    margin-bottom: var(--spacing-xs);
}

.card p {
    color: var(--color-warm-grey);
    font-size: 0.9rem;
}

/* Menu Page */
.menu-header {
    background-color: var(--color-coffee-bean);
    color: var(--color-cream);
    padding: 160px 0 80px;
    text-align: center;
}

.menu-header h1 {
    font-size: 3.5rem;
}

.menu-section {
    margin-bottom: var(--spacing-xl);
}

.menu-category-title {
    font-size: 2rem;
    color: var(--color-rust);
    margin-bottom: var(--spacing-md);
    border-bottom: 2px solid var(--color-sand);
    padding-bottom: var(--spacing-xs);
    display: inline-block;
}

.menu-items {
    display: grid;
    gap: var(--spacing-md);
}

.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-bottom: 1px dashed var(--color-warm-grey);
    padding-bottom: var(--spacing-xs);
}

.item-info h4 {
    margin-bottom: 0;
    font-size: 1.1rem;
}

.item-desc {
    font-size: 0.85rem;
    color: var(--color-warm-grey);
    margin-top: 4px;
}

.item-price {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--color-rust);
    white-space: nowrap;
    margin-left: var(--spacing-sm);
}

/* Footer */
footer {
    background-color: var(--color-coffee-bean);
    color: var(--color-warm-grey);
    padding: var(--spacing-lg) 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    align-items: center;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--color-cream);
}

.social-links {
    display: flex;
    gap: var(--spacing-md);
}

.social-links a:hover {
    color: var(--color-rust);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

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

/* Staggered Animation Delays */
.delay-100 {
    transition-delay: 0.1s;
}

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

.delay-300 {
    transition-delay: 0.3s;
}

.delay-400 {
    transition-delay: 0.4s;
}

.delay-500 {
    transition-delay: 0.5s;
}

/* Responsive */
@media (min-width: 769px) {
    .hero {
        background-attachment: fixed;
        /* Parallax Effect */
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding: var(--spacing-lg) 0;
    }

    .container {
        padding: 0 var(--spacing-sm);
    }

    .menu-header {
        padding: 100px 0 40px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .card-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .mobile-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 60px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        background: var(--color-cream);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
        /* Enable scrolling */
        padding-top: var(--spacing-lg);
        padding-bottom: var(--spacing-xl);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.25rem;
        /* Larger touch targets */
        margin: 10px 0;
        opacity: 0;
        /* Hidden initially */
        transform: translateX(20px);
        transition: opacity 0.3s ease, transform 0.3s ease, color 0.2s ease;
    }

    /* Reveal menu items when active */
    .nav-links.active a {
        opacity: 1;
        transform: translateX(0);
    }

    /* Stagger menu items */
    .nav-links.active a:nth-child(1) {
        transition-delay: 0.1s;
    }

    .nav-links.active a:nth-child(2) {
        transition-delay: 0.15s;
    }

    .nav-links.active a:nth-child(3) {
        transition-delay: 0.2s;
    }

    .nav-links.active a:nth-child(4) {
        transition-delay: 0.25s;
    }

    .nav-links.active .lang-switcher {
        transition-delay: 0.3s;
        opacity: 1;
        transform: translateX(0);
        transition: 0.3s;
    }

    .nav-links.active .currency-switcher {
        transition-delay: 0.35s;
        opacity: 0;
        /* will be handled by simple delay calc or js, but let's default to visible if inherited */
        animation: slideInRight 0.5s forwards 0.35s;
    }

    /* Mobile Dropdowns */
    .lang-switcher,
    .currency-switcher {
        margin-left: 0;
        margin-top: var(--spacing-sm);
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .lang-dropdown,
    .currency-dropdown {
        position: static;
        /* Stack naturally */
        width: 100%;
        box-shadow: none;
        background-color: rgba(255, 255, 255, 0.5);
        display: none;
        /* Toggled by JS */
        opacity: 1;
        visibility: visible;
        transform: none;
        text-align: center;
    }

    /* Show when active class added by JS */
    .lang-dropdown.active,
    .currency-dropdown.active {
        display: block;
    }

    /* Better Menu Items on Mobile */
    .menu-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .item-price {
        margin-left: 0;
        margin-top: 4px;
        color: var(--color-rust);
        font-weight: 700;
    }
}