/* ============================================
   Barista Coffee Menu - Frontend Styles
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
    --coffee-900: #1a0e0a;
    --coffee-800: #2c1810;
    --coffee-700: #3e2518;
    --coffee-600: #5c3a28;
    --coffee-500: #7a5040;
    --coffee-400: #a0745e;
    --coffee-300: #c4a07e;
    --coffee-200: #dcc5a8;
    --coffee-100: #f0e4d4;
    --coffee-50: #faf6f0;
    --cream: #fdf8f2;
    --gold: #c9a84c;
    --gold-light: #e8d48b;
    --dark: #1a1412;
    --text: #2d2016;
    --text-light: #6b5e52;
    --white: #ffffff;
    --shadow: 0 4px 24px rgba(26, 14, 10, 0.08);
    --shadow-lg: 0 12px 40px rgba(26, 14, 10, 0.12);
    --radius: 16px;
    --radius-sm: 10px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    background: var(--cream);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    line-height: 1.2;
}

/* ---- Hero Section ---- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(165deg, var(--coffee-200) 0%, var(--coffee-100) 50%, var(--coffee-50) 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%235c3a28' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 2rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(92, 58, 40, 0.1);
    border: 1px solid rgba(92, 58, 40, 0.2);
    color: var(--coffee-600);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    color: var(--coffee-800);
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero h1 span {
    display: block;
    background: linear-gradient(135deg, var(--coffee-600) 0%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 500px;
    margin: 0 auto 2.5rem;
    font-weight: 300;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--gold);
    color: var(--coffee-900);
    padding: 16px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.hero-btn:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(201, 168, 76, 0.3);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--coffee-300);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* ---- Navbar ---- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 2rem;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    padding: 0.7rem 2rem;
}

.navbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--coffee-800);
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo-img {
    height: 36px;
    width: auto;
    object-fit: contain;
}

.navbar.scrolled .nav-logo { color: var(--coffee-800); }

.nav-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--coffee-700);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.navbar.scrolled .nav-links a { color: var(--text-light); }
.nav-links a:hover { color: var(--gold); }

.nav-links .btn-nav {
    background: var(--coffee-700);
    border: 1px solid var(--coffee-700);
    padding: 8px 20px;
    border-radius: 50px;
    color: var(--white);
}

.navbar.scrolled .nav-links .btn-nav {
    background: var(--coffee-700);
    border-color: var(--coffee-700);
    color: var(--white);
}

/* ---- Info Bar ---- */
.info-bar {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    padding: 3rem 2rem;
    background: var(--white);
    border-bottom: 1px solid var(--coffee-100);
}

.info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-light);
    font-size: 0.95rem;
}

.info-item i {
    color: var(--gold);
    font-size: 1.1rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(201, 168, 76, 0.1);
    border-radius: 50%;
}

/* ---- Section Styles ---- */
.section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--coffee-800);
    margin-bottom: 0.75rem;
}

.section-header p {
    color: var(--text-light);
    font-size: 1.05rem;
    max-width: 500px;
    margin: 0 auto;
}

.section-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    margin: 1rem auto 0;
    border-radius: 2px;
}

/* ---- Category Tabs ---- */
.category-tabs {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 50px;
    border: 2px solid var(--coffee-100);
    background: var(--white);
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
}

.tab-btn:hover {
    border-color: var(--coffee-300);
    color: var(--coffee-600);
}

.tab-btn.active {
    background: var(--coffee-700);
    border-color: var(--coffee-700);
    color: var(--white);
}

.tab-btn i { font-size: 0.85rem; }

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

.menu-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.menu-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.card-image {
    height: 200px;
    background: linear-gradient(135deg, var(--coffee-200), var(--coffee-100));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

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

.card-image .placeholder-icon {
    font-size: 3rem;
    color: var(--coffee-400);
    opacity: 0.5;
}

.card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--gold);
    color: var(--coffee-900);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-body h3 {
    font-size: 1.2rem;
    color: var(--coffee-800);
    margin-bottom: 0.5rem;
}

.card-body p {
    color: var(--text-light);
    font-size: 0.9rem;
    flex: 1;
    margin-bottom: 1rem;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid var(--coffee-100);
}

.card-price {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--coffee-700);
}

.unavailable-badge {
    background: #fee2e2;
    color: #dc2626;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* ---- Featured Section ---- */
.featured-section {
    background: linear-gradient(165deg, var(--coffee-800) 0%, var(--coffee-900) 100%);
    padding: 5rem 2rem;
}

.featured-section .section-header h2 { color: var(--white); }
.featured-section .section-header p { color: rgba(255,255,255,0.6); }

.featured-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.featured-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
}

.featured-card:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-4px);
}

.featured-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.25rem;
    background: rgba(201, 168, 76, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.featured-icon i {
    font-size: 1.5rem;
    color: var(--gold);
}

.featured-card h3 {
    color: var(--white);
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.featured-card .price {
    color: var(--gold-light);
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.featured-card p {
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
}

/* ---- Footer ---- */
.footer {
    background: var(--coffee-900);
    padding: 4rem 2rem 2rem;
    color: rgba(255,255,255,0.6);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer h4 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.footer p, .footer a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1.8;
}

.footer p i {
    margin-right: 6px;
    width: 16px;
    text-align: center;
}

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

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.3);
}

/* ---- Mobile Menu Toggle ---- */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--coffee-800);
    font-size: 1.5rem;
    cursor: pointer;
}

.navbar.scrolled .menu-toggle { color: var(--coffee-800); }

/* ---- Responsive: Tablet & Mobile (768px) ---- */
@media (max-width: 768px) {
    .menu-toggle { display: block; }

    /* Navbar always solid on mobile */
    .navbar {
        background: var(--white);
        box-shadow: 0 2px 12px rgba(0,0,0,0.06);
        padding: 0.75rem 1rem;
        position: fixed;
    }

    .navbar .nav-logo { color: var(--coffee-800); }
    .navbar .nav-links a { color: var(--text) !important; }
    .navbar .menu-toggle { color: var(--coffee-800); }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--white);
        padding: 1rem;
        box-shadow: var(--shadow);
        border-radius: 0 0 var(--radius) var(--radius);
        gap: 0.25rem;
    }

    .nav-links.open { display: flex; }
    .nav-links a {
        padding: 10px 1rem;
        border-radius: 8px;
    }
    .nav-links a:hover { background: var(--coffee-50); }
    .nav-links .btn-nav {
        background: var(--coffee-700) !important;
        color: var(--white) !important;
        text-align: center;
        margin-top: 0.5rem;
    }

    /* Hide hero on mobile */
    .hero { display: none; }

    /* Hide info bar on mobile */
    .info-bar { display: none; }

    /* Content starts below fixed navbar */
    #menu { padding-top: calc(56px + 2rem); }

    /* Sections */
    .section { padding: 2rem 1rem; }
    .section-header h2 { font-size: 1.6rem; }
    .section-header p { font-size: 0.9rem; }

    /* Menu Grid */
    .menu-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .card-image { height: 180px; }
    .card-body { padding: 1.25rem; }
    .card-body h3 { font-size: 1.1rem; }
    .card-price { font-size: 1.2rem; }

    /* Category Tabs - horizontal scroll */
    .category-tabs {
        gap: 0.5rem;
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 0.5rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .category-tabs::-webkit-scrollbar { display: none; }
    .tab-btn {
        flex-shrink: 0;
        padding: 8px 18px;
        font-size: 0.8rem;
    }

    /* Featured */
    .featured-section { padding: 2.5rem 1rem; }
    .featured-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .featured-card { padding: 1.5rem; }

    /* Footer */
    .footer { padding: 2rem 1rem 1.5rem; }
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    .footer h4 { font-size: 1rem; justify-content: center; }
    .footer p { justify-content: center; }
    .footer-bottom { font-size: 0.75rem; }
}

/* ---- Responsive: Small Mobile (480px) ---- */
@media (max-width: 480px) {
    .navbar { padding: 0.6rem 0.75rem; }
    .nav-logo { font-size: 1.1rem; }
    .nav-logo-img { height: 26px; }

    .info-bar { padding: 1.25rem 0.75rem; gap: 0.75rem; }
    .info-item i { width: 32px; height: 32px; font-size: 0.9rem; }
    .info-item { font-size: 0.8rem; }

    .section { padding: 1.75rem 0.75rem; }
    .section-header { margin-bottom: 1.5rem; }
    .section-header h2 { font-size: 1.4rem; }
    .section-header p { font-size: 0.85rem; }

    .menu-grid { gap: 0.75rem; }
    .card-image { height: 160px; }
    .card-body { padding: 1rem; }
    .card-body p { font-size: 0.8rem; }
    .card-footer { padding-top: 0.75rem; }

    .tab-btn { padding: 6px 14px; font-size: 0.75rem; }

    .featured-section { padding: 2rem 0.75rem; }
    .featured-card { padding: 1.25rem; }
    .featured-icon { width: 50px; height: 50px; }
    .featured-card h3 { font-size: 1rem; }
    .featured-card .price { font-size: 1.1rem; }
    .featured-card p { font-size: 0.8rem; }

    .footer { padding: 1.5rem 0.75rem 1rem; }
    .footer-inner { gap: 1rem; }
    .footer h4 { font-size: 0.9rem; margin-bottom: 0.5rem; }
    .footer p { font-size: 0.8rem; }
}

/* ---- Responsive: Very Small (360px) ---- */
@media (max-width: 360px) {
    .nav-logo { font-size: 1rem; }
    .nav-logo-img { height: 22px; }
    .card-image { height: 140px; }
    .section-header h2 { font-size: 1.25rem; }
}

/* ---- Logo Images ---- */
.hero-logo {
    height: 120px;
    width: auto;
    object-fit: contain;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 4px 20px rgba(0,0,0,0.3));
}

.featured-logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.footer-logo-img {
    height: 30px;
    width: auto;
    object-fit: contain;
    vertical-align: middle;
    margin-right: 8px;
}

[dir="rtl"] .footer-logo-img {
    margin-right: 0;
    margin-left: 8px;
}

@media (max-width: 768px) {
    .hero-logo { display: none; }
    .nav-logo-img { height: 28px; }
    .footer-logo-img { height: 22px; }
}

@media (max-width: 480px) {
    .nav-logo-img { height: 24px; }
    .footer-logo-img { height: 20px; }
}

/* ---- Animation ---- */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
