/*
    Urban Café - Modern & Minimal Aesthetic
    Design System
*/

@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@100..900&family=Inter:wght@100..900&display=swap');

:root {
    --primary: #4B3621;
    /* Coffee Brown */
    --secondary: #F5F5DC;
    /* Beige */
    --bg: #FAF9F6;
    /* Paper White */
    --dark: #121212;
    --text: #333333;
    --light-text: #777777;
    --white: #FFFFFF;
    --transition: all 0.3s ease;
    --font-header: 'Lexend', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

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

h1,
h2,
h3,
h4 {
    font-family: var(--font-header);
    color: var(--dark);
    font-weight: 700;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 25px;
}

/* Navbar */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(250, 249, 246, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

nav.scrolled {
    padding: 5px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-family: var(--font-header);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo::before {
    content: '';
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-icons {
    display: flex;
    gap: 25px;
    align-items: center;
}

.cart-icon {
    position: relative;
    cursor: pointer;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--dark);
    color: var(--white);
    font-size: 0.65rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: var(--secondary);
    padding: 100px 0;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 50px;
    z-index: 2;
}

.hero-content {
    max-width: 100%;
}

.hero h1 {
    font-size: 5rem;
    line-height: 1;
    margin-bottom: 25px;
    letter-spacing: -2px;
}

.hero p {
    font-size: 1.2rem;
    color: var(--light-text);
    margin-bottom: 40px;
}

.hero-img-box {
    width: 100%;
    height: 600px;
    background: url('https://picsum.photos/1000/800?random=41000') center/cover;
    border-radius: 30px;
    box-shadow: 20px 20px 60px rgba(0, 0, 0, 0.05);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 18px 45px;
    background: var(--dark);
    color: var(--white);
    font-weight: 600;
    font-size: 1rem;
    border-radius: 8px;
    border: 1px solid var(--dark);
    cursor: pointer;
}

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

.btn-outline {
    background: transparent;
    color: var(--dark);
    border: 1px solid var(--dark);
}

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

/* Section Styling */
section {
    padding: 120px 0;
}

.section-title {
    margin-bottom: 70px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.section-tag {
    color: var(--primary);
    text-transform: uppercase;
    font-weight: 800;
    font-size: 0.8rem;
    letter-spacing: 2px;
}

/* Menu Grid */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 50px;
}

.menu-card {
    background: var(--white);
    border-radius: 20px;
    padding: 20px;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
}

.menu-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.menu-image {
    width: 100%;
    height: 240px;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 20px;
}

.menu-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.menu-card:hover .menu-image img {
    transform: scale(1.08);
}

.menu-category {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.menu-name {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.menu-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 15px;
}

.menu-price {
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--dark);
}

.add-btn {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background: var(--secondary);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--primary);
    border: none;
}

.add-btn:hover {
    background: var(--primary);
    color: var(--white);
}

/* Footer */
footer {
    background: var(--dark);
    color: var(--bg);
    padding: 100px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 80px;
    margin-bottom: 80px;
}

.footer-logo {
    color: var(--white) !important;
}

.footer-logo::before {
    background: var(--secondary);
}

.footer-links h3 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 25px;
}

.footer-links ul li {
    margin-bottom: 15px;
    color: #999;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #666;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--dark);
    color: var(--white);
    padding: 12px 25px;
    border-radius: 40px;
    z-index: 2000;
    font-size: 0.9rem;
    font-weight: 500;
    display: none;
    animation: fadeInUp 0.4s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate(-50%, 20px);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

/* Category Filter */
.filter-bar {
    display: flex;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-chip {
    padding: 10px 25px;
    border-radius: 30px;
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.08);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
}

.filter-chip.active {
    background: var(--dark);
    color: var(--white);
    border-color: var(--dark);
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

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

@media (max-width: 992px) {
    .hero h1 {
        font-size: 3rem;
    }

    .hero-img {
        display: none;
    }

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

@media (max-width: 600px) {
    .nav-links {
        display: none;
    }

    .hero {
        text-align: center;
    }
}