:root {
    --primary: #6F4E37;
    /* Coffee Brown */
    --primary-dark: #4e342e;
    --secondary: #8D6E63;
    --accent: #D2691E;
    /* Chocolate/Cinnamon */
    --bg-body: #FDFBF7;
    /* Warm Cream */
    --bg-surface: #ffffff;
    --text-main: #2c1810;
    /* Dark Roast */
    --text-muted: #8d7b75;
    --border-color: #e7e0da;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --shadow-sm: 0 1px 3px 0 rgba(79, 70, 229, 0.05);
    /* slightly warm shadow if possible, else generic */
    --shadow-lg: 0 10px 15px -3px rgba(44, 24, 16, 0.05), 0 4px 6px -2px rgba(44, 24, 16, 0.025);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Outfit', sans-serif;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.75rem;
}

/* Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
}

.navbar-brand {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary) !important;
}

.nav-link {
    font-weight: 500;
    color: var(--text-main) !important;
    transition: color 0.2s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary) !important;
}

/* Mobile App Experience */
.app-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px -5px rgba(0, 0, 0, 0.1);
    padding-top: 1rem;
    padding-bottom: 0.5rem;
}

.search-container {
    position: relative;
    margin-bottom: 1rem;
}

.search-input {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 2.8rem;
    border: none;
    background: #f3f4f6;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s;
}

.search-input:focus {
    background: #fff;
    box-shadow: 0 0 0 2px var(--primary);
    outline: none;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
}

/* Horizontal Scrollable Category Nav */
.category-nav-scroll {
    display: flex;
    overflow-x: auto;
    gap: 0.75rem;
    padding-bottom: 0.5rem;
    /* Hide scrollbar */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.category-nav-scroll::-webkit-scrollbar {
    display: none;
}

.category-nav-link {
    white-space: nowrap;
    padding: 0.5rem 1.25rem;
    border-radius: 99px;
    background: #f3f4f6;
    color: #4b5563;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.category-nav-link.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 10px -3px rgba(79, 70, 229, 0.4);
}

/* Menu Grid */
.menu-grid {
    display: grid;
    /* On mobile, 1fr. On md+, 2 cols. On lg+, 3 cols */
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    /* Increased from 0.5rem for better separation */
}

/* Enhanced Menu Card for Mobile */
.menu-item-card {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-color);
    border-radius: 0;
    padding: 16px 8px;
    /* Slightly more padding */
    box-shadow: none;
    display: flex;
    align-items: flex-start;
    /* Align top for better text flow */
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 0px;
    transition: none;
    height: auto;
}

.menu-item-card:hover {
    box-shadow: none;
    background: rgba(111, 78, 55, 0.03);
    /* Subtle primary hover tint */
    border-color: var(--primary);
}

.menu-item-info {
    flex: 1;
    min-width: 0;
    /* Prevent flex overflow */
}

.menu-item-title {
    font-weight: 600;
    font-size: 1rem;
    color: #111;
    margin-bottom: 4px;
    line-height: 1.4;
}

.menu-item-desc {
    font-size: 0.85rem;
    color: #6b7280;
    line-height: 1.4;
    margin-bottom: 0px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.menu-item-price {
    font-weight: 700;
    color: var(--primary);
    font-size: 1rem;
    white-space: nowrap;
}

.menu-img-wrapper {
    flex-shrink: 0;
}

.menu-img {
    width: 72px;
    height: 72px;
    /* Square and small */
    object-fit: cover;
    border-radius: 8px;
    background: #f3f4f6;
}


/* Hero Section */
.hero {
    position: relative;
    padding: 8rem 0 6rem;
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    background: var(--primary);
    filter: blur(100px);
    opacity: 0.1;
    border-radius: 50%;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, var(--primary), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-lead {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 600px;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 9999px;
    /* Pill shape */
    transition: all 0.3s;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

/* Cards */
.feature-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 2rem;
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: #eef2ff;
    color: var(--primary);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

/* Footer */
footer {
    background: #1e293b;
    color: white;
    padding: 4rem 0;
    margin-top: auto;
}

footer a {
    color: #94a3b8;
    text-decoration: none;
}

footer a:hover {
    color: white;
}

/* Utilities */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title span {
    color: var(--primary);
    text-transform: uppercase;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 0.5rem;
}

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