/* Casa Kava — Main Stylesheet */
:root {
    --primary: #A06E4E;
    --primary-light: #BB9C80;
    --primary-dark: #8B5E3C;
    --primary-glow: rgba(160, 110, 78, 0.3);
    --accent: #D4A574;
    --accent-gold: #C9A96E;
    --bg-deep: #080604;
    --bg: #0C0A08;
    --bg-card: #151210;
    --bg-card-hover: #1C1814;
    --bg-surface: #18140F;
    --bg-elevated: #201A14;
    --border: #1C1C1C;
    --border-light: #252525;
    --text: #F5F5F7;
    --text-secondary: #86868B;
    --text-muted: #48484A;
    --text-white: #FFFFFF;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 30px rgba(160, 110, 78, 0.15);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3);
    --radius: 16px;
    --radius-sm: 10px;
    --radius-full: 50px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Cairo', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.8;
    overflow-x: hidden;
}
a { text-decoration: none; color: inherit; transition: var(--transition-fast); }
::selection { background: var(--primary); color: #fff; }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: var(--primary-dark); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

.navbar {
    background: rgba(12, 10, 8, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 0 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(160, 110, 78, 0.15);
    height: 72px;
    transition: var(--transition);
}
.navbar.scrolled {
    background: rgba(12, 10, 8, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}
.navbar .logo { font-size: 1.6rem; font-weight: 900; color: var(--primary); letter-spacing: -0.5px; }
.navbar .logo span { color: var(--text-white); font-weight: 700; }
.navbar .logo .dot { color: var(--accent-gold); }
.nav-links { display: flex; gap: 0.3rem; list-style: none; align-items: center; }
.nav-links a {
    color: var(--text-secondary);
    padding: 0.5rem 1.1rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}
.nav-links a:hover { color: var(--text-white); background: rgba(160, 110, 78, 0.1); }
.nav-links a.active { color: var(--primary); background: rgba(160, 110, 78, 0.12); }
.nav-cta {
    background: var(--primary) !important;
    color: var(--bg-deep) !important;
    padding: 0.5rem 1.5rem !important;
    border-radius: var(--radius-full) !important;
    font-weight: 700 !important;
}
.nav-cta:hover { background: var(--primary-light) !important; transform: translateY(-1px); box-shadow: 0 4px 15px var(--primary-glow); }
.menu-toggle { display: none; color: var(--text); font-size: 1.4rem; cursor: pointer; background: none; border: none; }

.hero {
    background: linear-gradient(160deg, var(--bg-deep) 0%, #0F0A07 50%, #1A0F08 100%);
    color: var(--text-white);
    text-align: center;
    padding: 6rem 2rem 5rem;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -50%; right: -30%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(160, 110, 78, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse-glow 6s ease-in-out infinite;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: -30%; left: -20%;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(187, 156, 128, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse-glow 8s ease-in-out infinite reverse;
}
@keyframes pulse-glow {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.15); opacity: 1; }
}
.hero-content { position: relative; z-index: 2; }
.hero-badge {
    display: inline-block;
    padding: 0.4rem 1.2rem;
    background: rgba(160, 110, 78, 0.15);
    border: 1px solid rgba(160, 110, 78, 0.3);
    border-radius: var(--radius-full);
    color: var(--primary-light);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}
.hero h1 { font-size: 3.2rem; font-weight: 900; margin-bottom: 1.2rem; line-height: 1.3; }
.hero h1 span {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero p { font-size: 1.15rem; color: var(--text-secondary); max-width: 600px; margin: 0 auto 2.5rem; line-height: 1.9; }
.hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.85rem 2rem; border-radius: var(--radius-full);
    font-weight: 700; font-size: 1rem; font-family: 'Cairo', sans-serif;
    transition: var(--transition); border: none; cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff; box-shadow: 0 4px 15px var(--primary-glow);
}
.btn-primary:hover { background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%); box-shadow: 0 8px 25px var(--primary-glow); }
.btn-outline { background: transparent; color: var(--text-white); border: 2px solid var(--border-light); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-whatsapp { background: linear-gradient(135deg, #25D366 0%, #128C7E 100%); color: #fff; box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3); }
.btn-whatsapp:hover { box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4); }
.btn-accent { background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%); color: #fff; box-shadow: 0 4px 15px var(--primary-glow); }

.section { padding: 5rem 2rem; max-width: 1200px; margin: 0 auto; }
.section-title {
    text-align: center; font-size: 2.2rem; font-weight: 900; margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.section-subtitle { text-align: center; color: var(--text-secondary); margin-bottom: 3rem; font-size: 1.05rem; }

.grid { display: grid; gap: 1.5rem; }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

.card {
    background: var(--bg-card); border-radius: var(--radius);
    border: 1px solid var(--border); overflow: hidden;
    transition: var(--transition); position: relative;
}
.card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0; transition: var(--transition);
}
.card:hover { transform: translateY(-6px); border-color: rgba(160, 110, 78, 0.3); box-shadow: var(--shadow-card), var(--shadow-glow); }
.card:hover::before { opacity: 1; }
.card-img {
    width: 100%; height: 200px;
    background: linear-gradient(135deg, var(--bg-surface) 0%, var(--bg-elevated) 100%);
    display: flex; align-items: center; justify-content: center;
    color: var(--primary); font-size: 3.5rem;
}
.card-body { padding: 1.5rem; }
.card-body h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.4rem; color: var(--text-white); }
.card-body .category { color: var(--primary); font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.card-body .price {
    font-size: 1.4rem; font-weight: 900; margin: 0.5rem 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.card-body .price small { font-size: 0.75rem; font-weight: 500; -webkit-text-fill-color: var(--text-muted); }
.card-body .desc { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.7; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; }
.feature {
    text-align: center; padding: 2.5rem 1.5rem; border-radius: var(--radius);
    background: var(--bg-card); border: 1px solid var(--border); transition: var(--transition);
}
.feature:hover { border-color: rgba(160, 110, 78, 0.3); transform: translateY(-4px); box-shadow: var(--shadow-glow); }
.feature-icon {
    width: 64px; height: 64px; background: rgba(160, 110, 78, 0.1);
    border-radius: 16px; display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.2rem; transition: var(--transition);
}
.feature:hover .feature-icon { background: rgba(160, 110, 78, 0.2); transform: scale(1.05); }
.feature i { font-size: 1.6rem; color: var(--primary); }
.feature h3 { font-size: 1.05rem; margin-bottom: 0.5rem; color: var(--text-white); }
.feature p { color: var(--text-secondary); font-size: 0.9rem; }

.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; padding: 3rem 0; }
.stat { text-align: center; padding: 1.5rem; }
.stat-number {
    font-size: 2.8rem; font-weight: 900; line-height: 1.2;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.stat-label { color: var(--text-secondary); font-size: 0.95rem; font-weight: 600; }

.recipe-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 2rem; transition: var(--transition);
}
.recipe-card:hover { border-color: rgba(160, 110, 78, 0.3); box-shadow: var(--shadow-glow); transform: translateY(-4px); }
.recipe-card h3 { color: var(--primary); font-size: 1.2rem; margin-bottom: 1.2rem; }
.recipe-card .ingredients {
    background: var(--bg-surface); padding: 1.2rem; border-radius: var(--radius-sm);
    margin-bottom: 1.2rem; border: 1px solid var(--border);
}
.recipe-card .ingredients li { margin-bottom: 0.4rem; list-style: none; color: var(--text-secondary); }
.recipe-card .ingredients li::before { content: "☕ "; }
.recipe-card .steps { color: var(--text-secondary); line-height: 1.9; }

.filter-btn {
    background: var(--bg-card); border: 1px solid var(--border); color: var(--text-secondary);
    padding: 0.5rem 1.2rem; border-radius: var(--radius-full);
    font-family: 'Cairo', sans-serif; font-weight: 600; font-size: 0.9rem;
    cursor: pointer; margin: 0.3rem; transition: var(--transition);
}
.filter-btn:hover { border-color: var(--primary); color: var(--primary); }
.filter-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); box-shadow: 0 4px 15px var(--primary-glow); }

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

footer {
    background: var(--bg-deep); border-top: 1px solid var(--border); padding: 3rem 2rem 1.5rem;
}
.footer-content {
    max-width: 1200px; margin: 0 auto;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem; margin-bottom: 2rem;
}
.footer-brand .logo { font-size: 1.4rem; font-weight: 900; color: var(--primary); margin-bottom: 0.8rem; }
.footer-brand .logo span { color: var(--text-white); }
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.8; }
.footer-section h4 { color: var(--text-white); font-size: 1rem; margin-bottom: 1rem; font-weight: 700; }
.footer-section a { display: block; color: var(--text-muted); padding: 0.3rem 0; font-size: 0.9rem; transition: var(--transition-fast); }
.footer-section a:hover { color: var(--primary); padding-right: 0.5rem; }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 1.5rem; text-align: center; max-width: 1200px; margin: 0 auto; }
.footer-bottom p { color: var(--text-muted); font-size: 0.85rem; }
.footer-social { display: flex; gap: 1rem; margin-top: 1rem; justify-content: center; }
.footer-social a {
    width: 40px; height: 40px; border-radius: 10px;
    background: var(--bg-card); border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-secondary); font-size: 1.1rem; transition: var(--transition);
}
.footer-social a:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }

/* ── Chat Widget ───────────────────────────────────────── */
.chat-fab {
    position: fixed; bottom: 2rem; left: 2rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff; width: 60px; height: 60px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; box-shadow: 0 4px 20px var(--primary-glow);
    z-index: 999; cursor: pointer; border: none;
    transition: var(--transition); animation: chat-pulse 2s ease-in-out infinite;
}
.chat-fab:hover { transform: scale(1.1); }
.chat-fab .badge {
    position: absolute; top: -2px; right: -2px;
    background: #e74c3c; color: #fff; font-size: 0.65rem;
    width: 20px; height: 20px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
}
@keyframes chat-pulse {
    0%, 100% { box-shadow: 0 4px 20px var(--primary-glow); }
    50% { box-shadow: 0 4px 30px rgba(160, 110, 78, 0.5); }
}

.chat-window {
    position: fixed; bottom: 6.5rem; left: 2rem;
    width: 380px; max-height: 520px; height: 70vh;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); box-shadow: var(--shadow-card);
    z-index: 998; display: none; flex-direction: column;
    overflow: hidden;
}
.chat-window.open { display: flex; }

.chat-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff; padding: 1rem 1.2rem;
    display: flex; align-items: center; justify-content: space-between;
    flex-shrink: 0;
}
.chat-header-info { display: flex; align-items: center; gap: 0.7rem; }
.chat-header-info .avatar {
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
}
.chat-header-info .name { font-weight: 700; font-size: 0.95rem; }
.chat-header-info .status { font-size: 0.75rem; opacity: 0.8; }
.chat-close {
    background: none; border: none; color: #fff;
    cursor: pointer; font-size: 1.2rem; padding: 0.3rem;
    opacity: 0.8; transition: var(--transition-fast);
}
.chat-close:hover { opacity: 1; }

.chat-limit-bar {
    background: var(--bg-surface); padding: 0.4rem 1rem;
    font-size: 0.75rem; color: var(--text-muted);
    text-align: center; border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}
.chat-limit-bar .limit-count { color: var(--primary); font-weight: 700; }

.chat-messages {
    flex: 1; overflow-y: auto; padding: 1rem;
    display: flex; flex-direction: column; gap: 0.6rem;
    scrollbar-width: thin;
}
.chat-msg {
    max-width: 82%; padding: 0.65rem 1rem;
    border-radius: 14px; font-size: 0.9rem;
    line-height: 1.7; word-wrap: break-word;
}
.chat-msg.bot {
    align-self: flex-start;
    background: var(--bg-surface); color: var(--text);
    border-bottom-right: 4px;
}
.chat-msg.user {
    align-self: flex-end;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
}
.chat-msg.system {
    align-self: center; text-align: center;
    background: transparent; color: var(--text-muted);
    font-size: 0.8rem; padding: 0.3rem;
}
.chat-typing {
    align-self: flex-start; padding: 0.5rem 1rem;
    background: var(--bg-surface); border-radius: 14px;
    display: none; gap: 4px; align-items: center;
}
.chat-typing.show { display: flex; }
.chat-typing span {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--text-muted); animation: typing 1.4s infinite;
}
.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-4px); opacity: 1; }
}

.chat-input-area {
    padding: 0.8rem; border-top: 1px solid var(--border);
    display: flex; gap: 0.5rem; flex-shrink: 0;
    background: var(--bg-card);
}
.chat-input {
    flex: 1; background: var(--bg-surface); border: 1px solid var(--border);
    border-radius: var(--radius-full); padding: 0.6rem 1rem;
    color: var(--text); font-family: 'Cairo', sans-serif;
    font-size: 0.9rem; outline: none; direction: rtl;
    transition: var(--transition-fast);
}
.chat-input:focus { border-color: var(--primary); }
.chat-input::placeholder { color: var(--text-muted); }
.chat-send {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none; color: #fff; width: 40px; height: 40px;
    border-radius: 50%; cursor: pointer; display: flex;
    align-items: center; justify-content: center;
    font-size: 1rem; transition: var(--transition);
    flex-shrink: 0;
}
.chat-send:hover { transform: scale(1.05); }
.chat-send:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

.chat-wa-link {
    padding: 0.5rem 1rem; background: var(--bg-surface);
    border-top: 1px solid var(--border); text-align: center;
    flex-shrink: 0;
}
.chat-wa-link a {
    color: #25D366; font-size: 0.8rem; font-weight: 600;
}
.chat-wa-link a:hover { text-decoration: underline; }

@media (max-width: 480px) {
    .chat-window {
        left: 0; right: 0; bottom: 0;
        width: 100%; max-height: 100%; height: 100vh;
        border-radius: 0;
    }
    .chat-fab { bottom: 1.2rem; left: 1.2rem; }
}

.fade-up { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 768px) {
    .navbar { padding: 0 1.5rem; }
    .hero { padding: 4rem 1.5rem 3rem; }
    .hero h1 { font-size: 2rem; }
    .section { padding: 3rem 1.5rem; }
    .section-title { font-size: 1.7rem; }
    .nav-links {
        display: none; flex-direction: column; position: absolute;
        top: 72px; right: 0; left: 0;
        background: rgba(12, 10, 8, 0.98); backdrop-filter: blur(20px);
        padding: 1rem; border-bottom: 1px solid var(--border);
    }
    .nav-links.open { display: flex; }
    .menu-toggle { display: block; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .stats-row { grid-template-columns: repeat(2, 1fr); }
    .stat-number { font-size: 2rem; }
    .footer-content { grid-template-columns: 1fr; text-align: center; }
}
@media (max-width: 480px) {
    .hero h1 { font-size: 1.7rem; }
    .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ── Toast Notifications ── */
.toast-container {
    position: fixed; top: 1.5rem; left: 50%; transform: translateX(-50%);
    z-index: 10000; display: flex; flex-direction: column; gap: 0.6rem;
    align-items: center; pointer-events: none;
}
.toast {
    background: var(--bg-elevated); border: 1px solid var(--primary);
    color: var(--text-white); padding: 0.8rem 1.5rem;
    border-radius: var(--radius-sm); font-family: 'Cairo', sans-serif;
    font-size: 0.9rem; font-weight: 600; box-shadow: var(--shadow-card);
    display: flex; align-items: center; gap: 0.5rem;
    animation: toast-in 0.35s ease, toast-out 0.35s ease 2.65s forwards;
    pointer-events: auto;
}
.toast i { color: var(--primary); }
@keyframes toast-in { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes toast-out { from { opacity: 1; } to { opacity: 0; transform: translateY(-20px); } }

/* ── FAQ Page ── */
.faq-section { max-width: 800px; margin: 0 auto; padding: 3rem 2rem; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
    width: 100%; background: none; border: none; color: var(--text-white);
    font-family: 'Cairo', sans-serif; font-size: 1.05rem; font-weight: 700;
    padding: 1.2rem 0; text-align: right; cursor: pointer;
    display: flex; justify-content: space-between; align-items: center;
    transition: var(--transition-fast);
}
.faq-question:hover { color: var(--primary); }
.faq-question i { transition: transform 0.3s ease; color: var(--primary); }
.faq-item.open .faq-question i { transform: rotate(180deg); }
.faq-answer {
    max-height: 0; overflow: hidden; transition: max-height 0.35s ease;
    color: var(--text-secondary); font-size: 0.95rem; line-height: 1.9;
}
.faq-item.open .faq-answer { max-height: 500px; }
.faq-answer-inner { padding: 0 0 1.2rem; }
