/* =======================================================
   1. VARIABEL & RESET
   ======================================================= */
:root {
    --coklat-kopi: #4a2c11; 
    --coklat-prefooter: #5c3415; 
    --latte: #f5ebd9; 
    --coklat-muda: #d4b895; 
    --krem-terang: #fdfbf7; 
    --teks-gelap: #2b1810; 
    --putih-teks: #ffffff; 
    --peach-tombol: #fca079; 
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--latte);
    color: var(--teks-gelap);
    line-height: 1.6;
    overflow-x: hidden;
}

/* =======================================================
   2. GLOBAL LAYOUT (CONTAINER)
   ======================================================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

/* =======================================================
   3. HERO SECTION & NAVBAR (FLEXBOX TERBARU)
   ======================================================= */
.hero {
    background-image: url('assets/cafe.webp');
    background-size: cover;
    background-position: center;
    color: var(--putih-teks);
    height: 100vh;
}

/* Pengaturan Flexbox Vertikal: Atas, Tengah, Bawah */
.hero-overlay {
    background-color: rgba(0, 0, 0, 0.6);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Membuat jarak otomatis ke atas dan bawah */
    padding: 40px 50px; /* Padding tepi layar (Kiri, Kanan, Atas, Bawah) */
}

/* Navbar Flexbox (Kiri Atas) */
.navbar {
    display: flex;
    justify-content: flex-start;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--putih-teks);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

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

/* Hero Center (Tengah) */
.hero-center {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero-center h1 {
    font-size: 4rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-center p {
    font-size: 1.3rem;
    margin-bottom: 35px;
    max-width: 650px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.btn-pesan {
    background-color: var(--coklat-kopi);
    color: var(--putih-teks);
    padding: 15px 35px;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 30px;
    border: 2px solid var(--coklat-kopi);
    transition: all 0.3s ease;
}

.btn-pesan:hover {
    background-color: var(--latte);
    color: var(--coklat-kopi);
    border-color: var(--latte);
}

/* Hero Bottom Info (Kiri & Kanan Bawah) */
.hero-bottom-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.jam-buka {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 300px;
}

.baris-jam {
    display: flex;
    justify-content: space-between;
    padding: 12px 20px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
}

.baris-jam.terang { background-color: var(--krem-terang); color: var(--teks-gelap); }
.baris-jam.gelap { background-color: rgba(0, 0, 0, 0.4); border: 1px solid rgba(255, 255, 255, 0.5); }

.quote-hero {
    max-width: 450px;
    text-align: left;
    font-size: 0.95rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
}

/* =======================================================
   4. GALERI BENTO BOX (FULL WIDTH)
   ======================================================= */
.album-section-full {
    padding: 20px 0; /* Jarak background atas-bawah */
    background-color: var(--krem-terang); /* Bisa disesuaikan dengan warna background web Anda */
    width: 100%;
}

.bento-gallery-full {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 350px); /* Saya tinggikan jadi 350px agar fotonya lebih gagah saat layar lebar */
    gap: 5px; /* Ini dia "garis kecil" pemisahnya (15 pixel) */
    padding: 0 15px; /* Memberi sedikit jarak 15px di ujung paling kiri dan kanan layar agar estetik */
    width: 100%;
    max-width: 1600px; /* Batas maksimal di layar yang sangat besar (seperti TV) agar tidak pecah */
    margin: 0 auto; /* Tetap ke tengah jika dibuka di monitor super lebar */
}

/* Kotak pembungkus gambar */
.bento-item {
    border-radius: 11px; /* Sudut membulat seperti di referensi gambar Anda */
    overflow: hidden; 
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1); /* Bayangan tipis */
}

.bento-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    transition: transform 0.5s ease; 
}

/* Efek zoom saat disentuh kursor */
.bento-item:hover img {
    transform: scale(1.50); /* Zoom diperhalus */
}

/* Mengatur Posisi Asimetris Masing-Masing Foto */
.bento-1 { grid-column: 1 / 3; grid-row: 1 / 3; }
.bento-2 { grid-column: 3 / 5; grid-row: 1 / 2; }
.bento-3 { grid-column: 3 / 4; grid-row: 2 / 3; }
.bento-4 { grid-column: 4 / 5; grid-row: 2 / 3; }

/* CSS Bento untuk Layar HP */
@media (max-width: 768px) {
    .bento-gallery-full {
        grid-template-columns: 1fr; /* Jadi 1 kolom bersusun ke bawah */
        grid-template-rows: auto;
    }
    .bento-item {
        grid-column: 1 / -1 !important; 
        grid-row: auto !important;
        height: 300px; /* Tinggi seragam di HP */
    }
}

/* =======================================================
   5. MENU FAVORIT & MENU LIST
   ======================================================= */
.menu-section {
    padding: 80px 0 40px;
    text-align: center;
}

.menu-section h2 {
    font-size: 2.5rem;
    color: var(--coklat-kopi);
    margin-bottom: 50px;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.menu-card {
    background-color: var(--latte);
    border: 2px solid var(--coklat-muda);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.menu-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(74, 44, 17, 0.15);
    border-color: var(--coklat-kopi);
}

.foto-menu {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
    background-color: var(--coklat-muda);
}

.menu-card h3 { color: var(--coklat-kopi); font-size: 1.5rem; margin-bottom: 10px; }
.menu-card p { font-size: 0.95rem; opacity: 0.8; }

/* Menu Lengkap Layout */
.daftar-menu-section { padding: 40px 0 100px; }

.daftar-menu-container {
    background-color: var(--krem-terang);
    border-radius: 15px;
    padding: 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    display: flex;
    gap: 50px;
}

.kategori-menu { flex: 1; }

.kategori-menu h3 {
    font-size: 1.8rem;
    color: var(--coklat-kopi);
    border-bottom: 2px solid var(--coklat-muda);
    padding-bottom: 10px;
    margin-bottom: 25px;
    text-transform: uppercase;
}

.item-menu {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.nama-item { font-weight: 600; padding-right: 10px; background-color: var(--krem-terang); z-index: 2; }
.garis-titik { flex-grow: 1; border-bottom: 2px dotted var(--coklat-muda); position: relative; top: -5px; }
.harga-item { font-weight: bold; color: var(--coklat-kopi); padding-left: 10px; background-color: var(--krem-terang); z-index: 2; }

/* =======================================================
   6. CTA / PRE-FOOTER (KONTAK BISNIS)
   ======================================================= */
.cta-section {
    /* Background gambar yang Anda tambahkan */
    background-image: url('assets/abstract-blur-cafe-coffee-shop_1339-93361.webp'); 
    background-size: cover;
    background-position: center;
    color: var(--putih-teks);
    padding: 100px 0;
    /* Tambahan agar gambar agak gelap sehingga teks putih mudah dibaca */
    background-color: rgba(0, 0, 0, 0.4);
    background-blend-mode: overlay;
}

/* Membuat Layout Menyamping (Kiri-Kanan) */
.cta-section .container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

/* Kotak Border Teks */
.cta-section h2 { 
    font-size: 2.2rem; 
    margin-bottom: 0; 
    line-height: 1.4; 
    padding: 20px 40px; 
    border-radius: 15px; 
    text-align: center;
}

.btn-contact {
    display: inline-block;
    background-color: var(--peach-tombol);
    color: var(--teks-gelap);
    padding: 15px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.1rem;
    transition: transform 0.3s ease;
    white-space: nowrap; /* Mencegah teks tombol terpotong */
}

.btn-contact:hover { transform: scale(1.05); }

/* =======================================================
   7. FOOTER
   ======================================================= */
.main-footer {
    background-color: var(--krem-terang);
    padding: 50px 0;
    border-top: 1px solid var(--coklat-muda);
}

.footer-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.footer-left .logo-icon { font-size: 2.5rem; margin-bottom: 10px; }
.footer-left .brand-name { font-weight: bold; font-size: 1rem; margin-bottom: 5px; }
.business-info { font-size: 0.95rem; opacity: 0.8; }

.sosmed-links { display: flex; gap: 20px; }
.sosmed-links a { color: var(--teks-gelap); text-decoration: none; font-weight: 700; transition: color 0.3s; }
.sosmed-links a:hover { color: var(--coklat-kopi); }

/* =======================================================
   8. RESPONSIVE (MOBILE)
   ======================================================= */
@media (max-width: 768px) {
    .hero-overlay { padding: 20px; }
    .hero-bottom-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    /* CTA kembali bertumpuk atas-bawah di HP */
    .cta-section .container {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    .cta-section h2 {
        font-size: 1.8rem;
        padding: 15px 20px;
    }

    .footer-flex, .daftar-menu-container {
        flex-direction: column;
    }
}