/* --- BASE STYLES & VARIABLES --- */
:root {
    --bg-color: #f9f9f9;
    --text-color: #333;
    --card-bg: #fff;
    --nav-bg: #fff;
    --border-color: #eee;
    --subtitle-color: #666;
}

body.dark-mode {
    --bg-color: #111827;
    --text-color: #f3f4f6;
    --card-bg: #1f2937;
    --nav-bg: #1f2937; /* Warna Navbar Dark Mode */
    --border-color: #374151;
    --subtitle-color: #9ca3af;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }
html { scroll-behavior: smooth; }
body { background-color: var(--bg-color); color: var(--text-color); overflow-x: hidden; transition: background-color 0.3s, color 0.3s; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
#hero-section, #menu, #addon, #gallery, #testimoni, #about, #contact { scroll-margin-top: 80px; }
.bg-light { background-color: var(--card-bg); }

/* --- NAVBAR --- */
.navbar { background: var(--nav-bg); padding: 15px 20px; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 2px 4px rgba(0,0,0,0.1); position: sticky; top: 0; z-index: 100; transition: 0.3s; }
.nav-left { display: flex; align-items: center; gap: 15px; }
.nav-right { display: flex; align-items: center; gap: 15px; }

/* PERBAIKAN WARNA IKON & LOGO DI DARK MODE */
.menu-btn { font-size: 1.5rem; color: #b91c1c; cursor: pointer; }
body.dark-mode .menu-btn, body.dark-mode .dark-mode-btn { color: #fca5a5; } /* Warna pink terang di dark mode */
.dark-mode-btn { font-size: 1.3rem; color: #b91c1c; cursor: pointer; transition: 0.3s; }
.logo { font-weight: bold; color: #b91c1c; font-size: 1.2rem; }
body.dark-mode .logo { color: #f87171; } /* Warna logo di dark mode */
.cart-btn { background: #fee2e2; color: #b91c1c; padding: 8px 15px; border-radius: 20px; cursor: pointer; font-weight: bold; font-size: 0.9rem;}

/* Status Buka/Tutup */
.status-badge { font-size: 0.75rem; padding: 3px 8px; border-radius: 10px; font-weight: bold; margin-left: 10px; }
.status-open { background: #dcfce7; color: #16a34a; border: 1px solid #16a34a; }
.status-closed { background: #fee2e2; color: #dc2626; border: 1px solid #dc2626; }

/* --- PROMO BANNER --- */
.promo-banner { background: #dc2626; color: #fff; text-align: center; padding: 12px 20px; font-size: 0.9rem; position: relative; z-index: 99; }
.promo-banner strong { font-weight: 700; }

/* --- SIDEBAR --- */
.sidebar { height: 100%; width: 0; position: fixed; z-index: 300; top: 0; left: 0; background-color: #1f2937; overflow-x: hidden; transition: 0.4s; padding-top: 60px; }
.sidebar a { padding: 15px 25px; text-decoration: none; font-size: 1.1rem; color: #d1d5db; display: block; transition: 0.2s; border-bottom: 1px solid #374151; }
.sidebar a:hover { background-color: #374151; color: #fff; padding-left: 35px; }
.sidebar .close-btn { position: absolute; top: 10px; right: 20px; font-size: 2rem; color: #fff; cursor: pointer; }
.sidebar-logo { color: #fff; font-weight: bold; font-size: 1.5rem; text-align: center; margin-bottom: 20px; }

/* --- HERO (PERBAIKAN GAMBAR TERPOTONG) --- */
.hero { 
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.7)), url('img/foto1.jpg'); 
    background-size: cover; 
    background-position: center;
    background-repeat: no-repeat;
    height: 60vh; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    text-align: center; 
    color: #fff; 
    padding: 20px; 
}
.hero-content h1 { font-size: 2.2rem; margin-bottom: 10px; text-shadow: 2px 2px 4px rgba(0,0,0,0.5); }
.btn-primary { background: #dc2626; color: #fff; padding: 10px 20px; text-decoration: none; border-radius: 5px; font-weight: bold; margin-top: 20px; display: inline-block;}

/* --- MENU & CARDS --- */
.menu-section { padding: 60px 20px; text-align: center; max-width: 1200px; margin: auto; }
.subtitle { color: var(--subtitle-color); margin-bottom: 40px; font-size: 0.95rem; }
.menu-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; }
.card { background: var(--card-bg); border-radius: 12px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.05); text-align: left; display: flex; flex-direction: column; border: 1px solid var(--border-color); transition: 0.3s; }
.card:hover { transform: translateY(-5px); }
.card.popular { border: 2px solid #dc2626; }
.badge { position: absolute; top: 15px; right: 15px; background: #dc2626; color: #fff; padding: 5px 12px; font-size: 0.75rem; border-radius: 20px; font-weight: bold; z-index: 10; }
.card img { width: 100%; height: 220px; object-fit: cover; }
.card-body { padding: 20px; display: flex; flex-direction: column; flex-grow: 1; }
.price { float: right; background: #fee2e2; color: #b91c1c; padding: 4px 10px; border-radius: 15px; font-size: 0.85rem; }
.features { list-style: none; margin: 10px 0 20px; font-size: 0.9rem; color: var(--text-color); flex-grow: 1; }
.features li { margin-bottom: 8px; }
.features li::before { content: '✓'; color: #16a34a; margin-right: 8px; font-weight: bold; }
.btn-add { width: 100%; background: #dc2626; color: #fff; border: none; padding: 12px; border-radius: 8px; cursor: pointer; font-weight: bold; transition: 0.3s; }
.btn-add:hover { background: #b91c1c; }

/* --- ADDON & GALLERY --- */
.addon-card { border: 1px solid var(--border-color); background: var(--bg-color); }
.gallery-section { padding: 60px 20px; text-align: center; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 15px; max-width: 1200px; margin: 30px auto 0; }
.gallery-grid img { width: 100%; height: 180px; object-fit: cover; border-radius: 10px; cursor: pointer; transition: transform 0.3s; }
.gallery-grid img:hover { transform: scale(1.05); }

/* --- TESTIMONI --- */
.testimoni-section { padding: 60px 20px; text-align: center; background: var(--bg-color); }
.testimoni-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; max-width: 1100px; margin: 0 auto; }
.testimoni-card { background: var(--card-bg); padding: 30px; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); border: 1px solid var(--border-color); text-align: left; position: relative; }
.testimoni-card::before { content: '"'; position: absolute; top: 10px; right: 20px; font-size: 5rem; color: #dc2626; opacity: 0.1; font-family: serif; line-height: 1; }
.stars { color: #fbbf24; margin-bottom: 15px; font-size: 1.2rem; }
.testimoni-card p { font-style: italic; color: var(--subtitle-color); margin-bottom: 20px; line-height: 1.6; }
.testimoni-card h4 { color: var(--text-color); font-weight: bold; }

/* --- ABOUT & CONTACT --- */
.about-section { padding: 80px 20px; background: var(--card-bg); text-align: center; }
.section-title h2 { font-size: 2rem; margin-bottom: 15px; }
.divider { width: 60px; height: 4px; background: #dc2626; margin: 0 auto 30px; border-radius: 2px; }
.about-content { max-width: 800px; margin: 0 auto; text-align: left; line-height: 1.8; }
.about-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-top: 30px; }
.feature-item { display: flex; align-items: center; gap: 10px; background: var(--bg-color); padding: 15px 20px; border-radius: 8px; font-weight: 600; }
.contact-section { padding: 80px 20px; text-align: center; }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; margin-top: 40px; }
.contact-card { background: var(--card-bg); padding: 40px 20px; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); transition: 0.3s; border: 1px solid var(--border-color); text-decoration: none; color: inherit; display: block; }
.contact-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.1); }
.icon-box { width: 60px; height: 60px; background: #fee2e2; color: #dc2626; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 1.8rem; margin: 0 auto 20px; }
.contact-link { display: inline-block; color: #dc2626; font-weight: bold; padding: 8px 15px; border-radius: 5px; background: #fef2f2; }

/* --- CART & MODAL --- */
.cart-modal { display: none; position: fixed; z-index: 200; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); pointer-events: none; }
.cart-modal.active { display: block; pointer-events: auto; }
.cart-content { background: var(--card-bg); margin: 5% auto; padding: 25px; border-radius: 12px; width: 90%; max-width: 450px; position: relative; max-height: 90vh; overflow-y: auto;}
.close { position: absolute; right: 20px; top: 15px; font-size: 1.5rem; cursor: pointer; color: var(--text-color); }
#cart-items-list { list-style: none; margin: 20px 0; max-height: 150px; overflow-y: auto; }
#cart-items-list li { display: flex; justify-content: space-between; border-bottom: 1px solid var(--border-color); padding: 10px 0; font-size: 0.9rem; }
.cart-total { font-weight: bold; font-size: 1.1rem; text-align: right; margin-bottom: 15px; border-top: 2px solid var(--border-color); padding-top: 10px; }
.checkout-form { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.checkout-form input, .checkout-form textarea, .checkout-form select { width: 100%; padding: 10px; border: 1px solid var(--border-color); border-radius: 5px; background: var(--bg-color); color: var(--text-color); font-family: inherit; }
.btn-checkout { width: 100%; background: #25D366; color: white; border: none; padding: 14px; border-radius: 8px; font-weight: bold; cursor: pointer; font-size: 1rem; }
.btn-checkout:hover { background: #128C7E; }

/* --- LIGHTBOX & TOAST --- */
.lightbox { display: none; position: fixed; z-index: 500; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.9); justify-content: center; align-items: center; pointer-events: none; }
.lightbox.active { display: flex; pointer-events: auto; }
.lightbox img { max-width: 90%; max-height: 85%; border-radius: 8px; }
.lightbox-close { position: absolute; top: 20px; right: 30px; color: #fff; font-size: 3rem; cursor: pointer; }
.toast { visibility: hidden; min-width: 250px; background-color: #16a34a; color: #fff; text-align: center; border-radius: 8px; padding: 15px; position: fixed; z-index: 1000; left: 50%; bottom: 30px; transform: translateX(-50%); font-size: 1rem; opacity: 0; transition: opacity 0.3s, bottom 0.3s; }
.toast.show { visibility: visible; opacity: 1; bottom: 50px; }

/* --- FLOATING WA --- */
.floating-wa { position: fixed; width: 60px; height: 60px; bottom: 30px; right: 30px; background-color: #25D366; color: #FFF; border-radius: 50px; text-align: center; font-size: 35px; box-shadow: 2px 2px 10px rgba(0,0,0,0.2); z-index: 1000; display: flex; align-items: center; justify-content: center; transition: all 0.3s ease; animation: pulse 2s infinite; }
.floating-wa:hover { background-color: #128C7E; transform: scale(1.1); color: #fff; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); } 70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } }

/* --- FOOTER --- */
footer { background: #1f2937; color: #9ca3af; text-align: center; padding: 25px; font-size: 0.9rem; }

/* --- NEW: KALKULATOR PORSI --- */
.calc-section { padding: 40px 20px; background: var(--bg-color); text-align: center; }
.calc-box { background: var(--card-bg); padding: 30px; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); border: 1px solid var(--border-color); max-width: 600px; margin: 0 auto; }
.calc-box h2 { font-size: 1.5rem; margin-bottom: 10px; color: var(--text-color); }
.calc-box p { color: var(--subtitle-color); margin-bottom: 20px; font-size: 0.95rem; }
.calc-input-group { display: flex; justify-content: center; gap: 10px; margin-bottom: 20px; }
.calc-input-group input { padding: 12px 20px; border: 2px solid var(--border-color); border-radius: 8px; font-size: 1rem; width: 100%; max-width: 300px; background: var(--bg-color); color: var(--text-color); text-align: center; }
.calc-input-group input:focus { outline: none; border-color: #dc2626; }
.calc-result { margin-top: 20px; }
.rekomendasi-box { background: var(--bg-color); padding: 20px; border-radius: 8px; border-left: 5px solid #dc2626; text-align: left; }
.rekomendasi-box.best { border-left: 5px solid #16a34a; background: #f0fdf4; position: relative; }
body.dark-mode .rekomendasi-box.best { background: #064e3b; }
.badge-best { position: absolute; top: -10px; right: 15px; background: #16a34a; color: #fff; font-size: 0.7rem; padding: 3px 8px; border-radius: 10px; font-weight: bold; }
.rekomendasi-box h4 { margin-bottom: 5px; color: var(--text-color); }
.rekomendasi-box p { font-size: 0.9rem; color: var(--subtitle-color); margin-bottom: 15px; }
.btn-small { background: #dc2626; color: #fff; padding: 8px 15px; text-decoration: none; border-radius: 5px; font-size: 0.9rem; font-weight: bold; display: inline-block; }
