/* =========================
   RESET & BODY
========================= */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Playfair Display', serif;
    background: #f8f6f1;
}

/* =========================
   SPLASH SCREEN
========================= */
.splash {
    position: fixed;
    inset: 0;
    background: #FFFCF5;
    z-index: 999;
    display: none;
}

.splash.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

#splash-logo img {
    width: 280px;
    max-width: 75%;
    height: auto;
}

#splash-header.active {
    align-items: flex-start;
    justify-content: center;
}

.splash.scrollable {
    overflow-y: auto;
    padding: 40px 20px 90px;
    cursor: pointer;
    width: 100%;
}

#splash-header > * {
    pointer-events: none;
}

/* =========================
   HEADER & INTRO STYLE
========================= */
.welcome-header {
    max-width: 900px;
    margin: auto;
    text-align: center;
}

.welcome-header h1 {
    font-size: 2.2rem;
    letter-spacing: 6px;
    color: #7f6216;
    margin-bottom: 15px;
}

.welcome-header h2 {
    font-size: 1.8rem;
    font-style: italic;
    color: #a48b2a;
    margin-bottom: 25px;
}

.welcome-header p {
    font-family: Tahoma, sans-serif;
    font-size: 1.4rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 30px;
}

/* =========================
   INFO GRID
========================= */
.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.info-card {
    background: white;
    padding: 22px;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.info-card h3 {
    font-size: 1rem;
    letter-spacing: 3px;
    color: #7f6216;
    margin-bottom: 12px;
}

.info-card p {
    font-size: 1.3rem;
    margin: 6px 0;
}

.tap-hint {
    position: fixed;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    font-family: Tahoma, sans-serif;
    font-size: 0.85rem;
    color: #8B7500;
    opacity: 0.7;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 0.4; }
    50% { opacity: 1; }
    100% { opacity: 0.4; }
}

/* =========================
   MAIN CONTENT
========================= */
#main-content {
    display: none;
}

#main-content.show {
    display: block;
}

/* =========================
   MENU LIST STYLING (ZIG ZAG)
========================= */

/* Container Utama */
.menu-section {
    width: 100%;
    max-width: 800px;
    margin: 0 auto 60px;
    /* Padding Kanan-Kiri diseimbangkan agar tidak mepet */
    padding: 0 20px; 
}

.menu-list { 
    display: flex; 
    flex-direction: column; 
    gap: 40px; /* Jarak antar item */
    margin-top: 20px;
}

/* Wrapper Item */
.menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px; /* Jarak teks ke gambar */
    padding-bottom: 30px;
    border-bottom: 1px dashed #e0e0e0;
}

/* --- LOGIKA ZIG-ZAG (Desktop & Mobile) --- */

/* Item Ganjil: Teks Kiri - Gambar Kanan */
.menu-item:nth-child(odd) { 
    flex-direction: row; 
    text-align: left; 
}

/* Item Genap: Gambar Kiri - Teks Kanan */
.menu-item:nth-child(even) { 
    flex-direction: row-reverse; 
    text-align: right; 
}

/* Header Harga dibalik saat layout genap */
.menu-item:nth-child(even) .item-header { 
    flex-direction: row-reverse; 
}

/* --- GAMBAR KOTAK BESAR --- */
.thumb-img {
    width: 150px;           /* Ukuran Desktop: Besar */
    height: 150px;          /* Kotak */
    object-fit: cover;      
    border-radius: 12px;    /* Rounded dikit (Bukan Bulat 50%) */
    border: 3px solid #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    flex-shrink: 0;         /* Jangan mengecil */
}

/* --- TEXT STYLING --- */
.text-content { 
    flex: 1; 
    min-width: 0; /* Mencegah teks overlap */
}

.item-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: baseline; 
    margin-bottom: 8px; 
}

.item-name { 
    font-family: 'Playfair Display', serif;
    font-weight: bold; 
    color: #333; 
    font-size: 1.1rem; 
    text-transform: uppercase; 
    line-height: 1.2;
}

.item-price { 
    font-family: Tahoma, sans-serif;
    font-weight: bold; 
    color: #c5a47e; 
    font-size: 1rem; 
    margin-left: 10px; 
    white-space: nowrap;
}

/* Margin harga dibalik saat genap */
.menu-item:nth-child(even) .item-price { 
    margin-left: 0; 
    margin-right: 10px; 
} 

.item-desc { 
    font-family: Tahoma, sans-serif;
    font-size: 0.9rem; 
    color: #666; 
    font-style: italic; 
    line-height: 1.6; 
}

/* =========================
   JUDUL & LOGO
========================= */
.section-title {
    display: block;
    text-align: center;
    font-size: 2rem;
    color: #7f6216;
    margin: 40px auto 30px;
    letter-spacing: 4px;
    border-bottom: 2px solid #FFE8A3;
    width: fit-content;
    padding-bottom: 5px;
}

.category-title {
    text-align: center; color: #a48b2a; font-size: 1.4rem;
    margin: 30px 0 20px; font-style: italic; text-decoration: underline;
}

.divider-icon {
    text-align: center; font-size: 24px; color: #c5a47e;
    margin: 40px 0; opacity: 0.6;
}

/* Animasi Fade In */
.fade-in { opacity: 0; transform: translateY(30px); transition: 0.8s; }
.fade-in.visible { opacity: 1; transform: translateY(0); }


/* =========================
   MOBILE OPTIMIZATION (HP)
========================= */
@media (max-width: 600px) {

    /* Splash Adjust */
    #splash-logo img { width: 320px; }

    /* Header Adjust */
    .welcome-header h1 { font-size: 1.9rem; }
    .welcome-header h2 { font-size: 1.05rem; }
    .welcome-header p { font-size: 1rem; }
    .info-grid { grid-template-columns: 1fr; }

    /* --- PERBAIKAN ZIG-ZAG DI HP --- */
    
    /* 1. Pastikan Container punya padding yang pas */
    .menu-section {
        padding: 0 20px !important;
    }

    /* 2. MENU ITEM: PAKSA ZIG-ZAG (Row) BUKAN TUMPUK (Column) */
    .menu-item:nth-child(odd) {
        flex-direction: row !important;
        text-align: left !important;
    }
    
    .menu-item:nth-child(even) {
        flex-direction: row-reverse !important;
        text-align: right !important;
    }

    /* 3. Header Item mengikuti arah Zig-Zag */
    .menu-item:nth-child(even) .item-header {
        flex-direction: row-reverse !important;
    }

    /* 4. PERKECIL GAMBAR AGAR MUAT */
    .thumb-img {
        width: 110px !important;  /* Ukuran pas di HP */
        height: 110px !important; /* Tetap Kotak */
        margin-bottom: 0 !important;
    }

    /* 5. Atur Jarak antar elemen flex agar tidak terlalu jauh/dekat */
    .menu-item {
        gap: 15px !important;
    }

    /* 6. Font Size Penyesuaian */
    .item-name { font-size: 1rem !important; }
    .item-desc { font-size: 0.85rem !important; }
    .item-price { font-size: 0.9rem !important; }
}