* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #160e0a; /* Gelap hangat khas Figma */
    color: #f5f0eb;
    line-height: 1.6;
}

h1, h2, h3, .logo {
    font-family: 'Playfair Display', serif;
}

.section-tag {
    color: #c99a63;
    font-size: 0.8rem;
    letter-spacing: 2px;
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
    text-transform: uppercase;
}

/* --- NAVBAR --- */
header {
    background-color: #160e0a;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(201, 154, 99, 0.05);
}

.navbar {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.logo {
    font-size: 1.5rem;
    color: #c99a63;
    font-weight: 700;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 35px;
}

.nav-links a:hover {
    color: #c99a63;
}
/* Gaya untuk menu yang sedang aktif sesuai posisi halaman */
.nav-links a.active {
    color: #c99a63; /* Warna emas menetap */
}

.nav-links a.active::after {
    transform: scaleX(1); /* Garis bawah tetap muncul penuh */
    background-color: #c99a63;
}

.btn-pesan {
    border: 1px solid #c99a63;
    padding: 8px 22px;
    border-radius: 4px;
    color: #c99a63;
    font-size: 0.9rem;
}

/* --- HERO SECTION --- */
.hero-section {
    padding-top: 80px;
    min-height: 95vh;
    display: flex;
    align-items: center;
    background: linear-gradient(rgba(22, 14, 10, 0.65), rgba(22, 14, 10, 0.88)), url('assets/hero-bg.png') no-repeat center center/cover;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.hero-section h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin: 15px 0;
    font-weight: 700;
}

.hero-section .highlight {
    color: #c99a63;
    font-style: italic;
}

.hero-section p {
    max-width: 520px;
    color: #ccbebe;
    margin-bottom: 35px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.btn-primary {
    background-color: #c99a63;
    color: #160e0a;
    padding: 12px 32px;
    border-radius: 4px;
    font-weight: 500;
}

.btn-secondary {
    border: 1px solid #ffffff;
    padding: 12px 32px;
    border-radius: 4px;
}
/* --- BANNER RUNNING TEXT (INFINTIE TICKER) --- */
.ticker-container {
    background-color: #1c120d; /* Warna cokelat agak terang dikit sesuai gambar */
    border-top: 1px solid rgba(201, 154, 99, 0.15);
    border-bottom: 1px solid rgba(201, 154, 99, 0.15);
    overflow: hidden;
    padding: 18px 0;
    width: 100%;
    display: flex;
}

.ticker-wrap {
    display: flex;
    width: max-content;
    animation: tickerLoop 20s linear infinite; /* Kecepatan jalan teks */
}

.ticker-item {
    color: #c99a63; /* Warna emas khas figma */
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    padding: 0 40px; /* Jarak antar teks */
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Animasi CSS geser otomatis */
@keyframes tickerLoop {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-50%, 0, 0); /* Geser pas setengah track duplikat */
    }
}
/* --- MENU SECTION --- */
.menu-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 20px;
    text-align: center;
}

.menu-section h2 {
    font-size: 2.8rem;
    margin-bottom: 50px;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

.menu-card {
    background-color: #241610;
    border-radius: 12px;
    overflow: hidden;
    text-align: left;
}

.menu-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.menu-info {
    padding: 25px;
}

.menu-info h3 {
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.menu-info p {
    font-size: 0.9rem;
    color: #bfaea2;
    margin-bottom: 20px;
    height: 45px;
}

.menu-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price {
    font-weight: 600;
    color: #c99a63;
    font-size: 1.15rem;
}

.btn-card {
    background-color: #c99a63;
    color: #160e0a;
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* --- SEJARAH SECTION (FLOATING BANNER) --- */
.about-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

.about-banner-box {
    background: linear-gradient(rgba(36, 22, 16, 0.85), rgba(36, 22, 16, 0.85)), url('assets/about-bg.png') no-repeat center center/cover;
    border-radius: 16px;
    padding: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.about-content {
    max-width: 650px;
}

.about-banner-box h2 {
    font-size: 2.6rem;
    margin: 10px 0;
    line-height: 1.2;
}

.about-banner-box p {
    color: #ccbebe;
    font-size: 0.95rem;
}

.btn-about-arrow {
    background-color: #c99a63;
    color: #160e0a;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    white-space: nowrap;
}

/* --- GALERI SECTION (MAGIC PUZZLE GRID) --- */
.gallery-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 20px;
}

.gallery-section h2 {
    font-size: 2.8rem;
    margin-bottom: 40px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 200px;
    gap: 15px;
}

.gallery-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

/* Pengepasan Area Puzzle sesuai Figma */
.g-tall { grid-column: 1 / 3; grid-row: 1 / 3; } 
.g-normal:nth-child(2) { grid-column: 3 / 5; grid-row: 1 / 2; }
.g-normal:nth-child(3) { grid-column: 3 / 5; grid-row: 2 / 3; }
.g-short { grid-column: 1 / 2; grid-row: 3 / 4; }
.g-long { grid-column: 2 / 5; grid-row: 3 / 4; }

/* --- FITUR UNGGULAN SECTION (KENAPA PILIH KAMI) --- */
.features-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
    text-align: center;
}

.features-section h2 {
    font-size: 2.6rem;
    margin-bottom: 40px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.feature-card {
    background-color: #241610;
    padding: 35px 25px;
    border-radius: 12px;
    text-align: left;
}

.feature-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 15px;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 0.9rem;
    color: #bfaea2;
}

/* --- KONTAK SECTION --- */
.contact-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 20px;
}

.contact-section h2 {
    font-size: 2.8rem;
    margin-bottom: 40px;
    text-align: center;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
}

.contact-info-box {
    background-color: #241610;
    padding: 45px;
    border-radius: 12px;
}

.contact-info-box h3 {
    font-size: 1.8rem;
    color: #c99a63;
}

.location-tag {
    font-size: 0.75rem;
    color: #bfaea2;
    letter-spacing: 1px;
    margin-bottom: 30px;
}

.info-item {
    margin-bottom: 25px;
}

.info-item strong {
    font-size: 0.8rem;
    color: #c99a63;
    display: block;
    margin-bottom: 5px;
}

.btn-whatsapp {
    background-color: #25d366;
    color: #ffffff;
    display: block;
    text-align: center;
    padding: 14px;
    border-radius: 6px;
    font-weight: 600;
    margin-top: 30px;
}

.contact-image-box {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}

.contact-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.quote-overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 40px;
    background: linear-gradient(transparent, #160e0a);
}

.quote-overlay p {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.5rem;
}

/* --- FOOTER --- */
footer {
    text-align: center;
    padding: 40px;
    font-size: 0.85rem;
    color: #5e5249;
    border-top: 1px solid rgba(201, 154, 99, 0.02);
}

/* --- RESPONSIVE HP --- */
@media (max-width: 768px) {
    .nav-links, .btn-pesan { display: none; }
    .hero-section h1 { font-size: 2.8rem; }
    .about-banner-box { flex-direction: column; padding: 30px; text-align: center; }
    
    /* --- PERBAIKAN UTAMA GALERI DI HP --- */
    .gallery-grid { 
        grid-template-columns: 1fr; /* Mengubah total grid menjadi hanya 1 kolom lurus ke bawah */
        grid-auto-rows: auto; /* Membebaskan tinggi baris agar mengikuti proporsi aspek gambar */
        gap: 15px; 
    }
    
    /* Menetralkan kembali sistem koordinat puzzle desktop agar tidak merusak layout HP */
    .g-tall, 
    .g-normal:nth-child(2), 
    .g-normal:nth-child(3), 
    .g-short, 
    .g-long { 
        grid-column: unset !important; 
        grid-row: unset !important; 
    }

    /* Memaksa semua gambar galeri mengikuti lebar layar HP dan tidak terpotong */
    .gallery-grid img {
        width: 100% !important;
        height: 250px !important; /* Mengunci tinggi gambar agar seragam dan estetik di HP */
        object-fit: cover;
        border-radius: 8px;
    }
    /* ------------------------------------ */

    .contact-container { grid-template-columns: 1fr; }
}
/* EFEK SAAT KARTU MENU DIKLIK */
.menu-card:active {
    transform: scale(0.97); /* Kartu sedikit mengecil (efek membal) */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); /* Bayangan mengecil karena posisi kartu mendekati dasar */
    transition: transform 0.1s ease; /* Transisinya sengaja dibuat sangat cepat agar responsif */
}
/* EFEK SAAT TOMBOL PESAN DIKLIK */
.btn-card:active {
    transform: scale(0.95) translateY(2px); /* Tombol mengecil dan turun sedikit */
    background-color: #b58653; /* Warnanya sedikit menggelap dari emas aslinya saat ditekan */
    transition: transform 0.05s ease; /* Sangat instan agar terasa 'klik'-nya */
}
/* --- GROUP TOMBOL KONTAK --- */
.contact-buttons-group {
    display: flex;
    flex-direction: column;
    gap: 12px; /* Jarak antara tombol WA dan Instagram */
    margin-top: 30px;
}

/* Override margin bawaan tombol WA lama agar menyatu dengan grup */
.btn-whatsapp {
    margin-top: 0 !important; 
}

/* --- TOMBOL INSTAGRAM PREMIUM --- */
.btn-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); /* Gradasi estetik khas Instagram */
    color: #ffffff;
    display: block;
    text-align: center;
    padding: 14px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn-instagram:hover {
    opacity: 0.9; /* Sedikit meredup halus saat diarahkan kursor */
    color: #ffffff;
}

.btn-instagram:active {
    transform: scale(0.96) translateY(2px); /* Efek membal instan saat diklik */
    transition: transform 0.05s ease;
}
/* --- SECTION ALAMAT KAMI (NEW HALAMAN) --- */
.address-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 20px;
    text-align: center;
}

.address-section h2 {
    font-size: 2.8rem;
    margin-bottom: 40px;
}

.address-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr; /* Kolom teks kiri agak ramping, kolom peta kanan lebih lebar */
    gap: 40px;
    background-color: #241610; /* Cokelat gelap figma biar senada dengan boks menu */
    padding: 40px;
    border-radius: 16px;
    text-align: left;
    align-items: center;
}

.address-text {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.info-item-alamat {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

/* Lingkaran dekorasi di belakang emoji pin 📍 */
.info-item-alamat .pin-icon {
    font-size: 1.8rem;
    background: rgba(201, 154, 99, 0.1);
    padding: 12px;
    border-radius: 50%;
    line-height: 1;
}

.info-item-alamat strong {
    font-size: 1.2rem;
    color: #c99a63; /* Warna emas khas Pak Ali */
    display: block;
    margin-bottom: 5px;
}

.info-item-alamat p {
    color: #bfaea2;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* --- TOMBOL BIRU GOOGLE MAPS --- */
.btn-maps {
    background-color: #4285F4; /* Biru khas Google Maps */
    color: #ffffff !important; /* Memaksa teks tetap putih */
    display: block;
    text-align: center;
    padding: 14px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.btn-maps:hover {
    background-color: #357ae8; /* Sedikit menggelap pas didekati kursor */
}

.btn-maps:active {
    transform: scale(0.96) translateY(2px); /* Efek membal klik yang responsif */
    transition: transform 0.05s ease;
}

/* --- BOKS BINGKAI PETA --- */
.address-map-box {
    height: 380px; /* Tinggi peta di layar laptop/PC */
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(201, 154, 99, 0.15); /* Border tipis keemasan */
}

.address-map-box iframe {
    width: 100%;
    height: 100%;
    display: block;
}

/* --- RESPONSIVE MOBILE (KHUSUS LAYAR HP) --- */
@media (max-width: 768px) {
    .address-section {
        padding: 60px 20px; /* Mengurangi padding luar di HP */
    }
    .address-section h2 {
        font-size: 2.2rem; /* Ukuran judul sedikit mengecil di HP */
    }
    .address-container {
        grid-template-columns: 1fr; /* Memaksa teks dan peta berbaris vertikal (1 kolom) */
        padding: 25px;
        gap: 25px;
    }
    .address-map-box {
        height: 280px; /* Tinggi peta mengecil di HP agar tidak terlalu memakan layar */
    }
}
/* --- KREDIT DUA PEMBUAT WEB --- */
footer p {
    margin: 5px 0; /* Memberikan sedikit jarak vertikal antar baris teks */
}

.developed-by {
    font-size: 0.9rem; /* Ukuran font yang sama halus dengan teks copyright */
    opacity: 0.8; /* Sedikit lebih redup agar tetap elegan */
}

.footer-credit {
    color: #c99a63; /* Warna emas khas figma Roti Canai Pak Ali */
    text-decoration: none; /* Menghilangkan garis bawah bawaan link */
    font-weight: 600;
    transition: color 0.2s ease, text-decoration 0.2s ease;
}

.footer-credit:hover {
    color: #ffffff; /* Berubah menjadi putih bersih saat didekati kursor */
    text-decoration: underline; /* Muncul garis bawah halus saat di-hover */
}
