/* --- Global Styles --- */
/* --- Frontend Styles --- */
/* Import global styles */
@import url("global.css");

/* Update variables to use the new global ones */
body {
    color: var(--text-dark);
    background-color: var(--background-light-front);
}

h1,
h2,
h3 {
    color: var(--secondary-color-front);
}

a {
    color: var(--primary-color-front);
}

.btn-primary {
    background-color: var(--primary-color-front);
    color: var(--text-light) !important;
}

.btn-primary:hover {
    background-color: #927e4e; /* A darker shade of primary */
    text-decoration: none;
}

.btn-secondary {
    background-color: var(--secondary-color-front);
    color: var(--background-light-front) !important;
    border: 1px solid var(--secondary-color-front);
}

.btn-secondary:hover {
    background-color: #3b5082; /* A darker shade of secondary */
    text-decoration: none;
}

/* --- Hero Section --- */
.hero-section {
    background:
        linear-gradient(rgba(47, 61, 101, 0.6), rgba(47, 61, 101, 0.6)),
        url("../images/BANNER.png") no-repeat center center/cover;
    color: var(--text-light);
    text-align: center;
    padding: 120px 20px;
    min-height: 550px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    position: relative;
}

/* ... (Kode CSS frontend lainnya) ... */
@import url("https://fonts.cdnfonts.com/css/bolton-sans");
:root {
    --primary-color: #b1935b; /* Merah Bakso */
    --secondary-color: #2f3d65; /* Kuning Cerah */
    --text-dark: #fffff;
    --text-light: #fff;
    --bg-light: #f9f9f9;
    --bg-dark: #2c3e50; /* Dark blue for footer */
    --shadow-light: rgba(0, 0, 0, 0.1);
}

body {
    font-family: "Bolton Sans", sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    line-height: 1.6;
    color: var(--text-dark);
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1,
h2,
h3 {
    color: var(--text-dark);
    font-weight: 700;
    margin-bottom: 20px;
}

h1 {
    font-size: 3em;
}

h2 {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 40px;
}

h3 {
    font-size: 1.8em;
}

p {
    margin-bottom: 15px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

a:hover {
    text-decoration: underline;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    transition:
        background-color 0.3s ease,
        color 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light) !important;
}

.btn-primary:hover {
    background-color: #b1935b; /* Darker red */
    text-decoration: none;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: #faf9f2 !important;
    border: 1px solid var(--secondary-color);
}

.btn-secondary:hover {
    background-color: #b1935b; /* Darker yellow */
    text-decoration: none;
}

/* --- Hero Section --- */
.hero-section {
    background: url("../images/BANNER.png") no-repeat center center/cover;
    color: var(--text-light);
    text-align: center;
    padding: 120px 20px;
    min-height: 550px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    position: relative;
}

.hero-section::before {
    /* Bayangan transparan untuk teks lebih jelas */
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Efek linear gradient baru untuk bayangan transparan */
    background-image: linear-gradient(
        to top,
        rgba(47, 61, 101, 0.7) 0%,
        rgba(47, 61, 101, 0.2) 200%,
        rgba(47, 61, 101, 0) 200%
    );
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    font-size: 3.8em;
    margin-bottom: 20px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
    color: var(--text-light);
}

.hero-section p {
    font-size: 1.3em;
    margin-bottom: 40px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    color: var(--text-light);
}

.btn-hero {
    background-color: var(--secondary-color);
    color: var(--text-dark) !important;
    padding: 18px 40px;
    font-size: 1.2em;
    font-weight: bold;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-hero:hover {
    background-color: B1935B;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    text-decoration: none;
}

/* --- About Us Section --- */
.about-us-section {
    background-color: var(--bg-light);
    padding: 80px 0;
    text-align: center;
}

.about-us-section p {
    max-width: 800px;
    margin: 0 auto 50px auto;
    font-size: 1.1em;
    color: #555;
}

.features-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 50px;
}

.feature-item {
    background-color: var(--text-light);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px var(--shadow-light);
    flex: 1 1 300px; /* Fleksibel dengan lebar dasar 300px */
    max-width: 350px;
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-10px);
}

.feature-item i {
    font-size: 3em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.feature-item h3 {
    margin-top: 0;
    color: var(--primary-color);
    font-size: 1.5em;
}

.feature-item p {
    font-size: 0.95em;
    color: #666;
    margin-bottom: 0;
}

/* --- Menu Preview Section --- */
.menu-preview-section {
    padding: 80px 0;
    text-align: center;
}

.menu-items-grid {
    display: grid;
    grid-template-columns: repeat(
        auto-fit,
        minmax(280px, 1fr)
    ); /* Responsif grid */
    gap: 30px;
    margin-top: 50px;
    margin-bottom: 50px;
}

.menu-item {
    background-color: var(--text-light);
    border-radius: 10px;
    box-shadow: 0 4px 10px var(--shadow-light);
    overflow: hidden;
    text-align: left;
    transition: transform 0.3s ease;
}

.menu-item:hover {
    transform: translateY(-5px);
}

.menu-item img {
    width: 100%;
    height: 200px;
    object-fit: cover; /* Pastikan gambar mengisi kotak */
    display: block;
}

.menu-item h3 {
    margin: 15px 15px 10px 15px;
    color: var(--primary-color);
    font-size: 1.6em;
}

.menu-item p {
    margin: 0 15px 15px 15px;
    font-size: 0.95em;
    color: #666;
}

.menu-item .price {
    display: block;
    font-weight: 700;
    font-size: 1.3em;
    color: var(--primary-color);
    margin: 0 15px 15px 15px;
}

/* --- Testimonials Section --- */
.testimonials-section {
    background-color: var(--bg-light);
    padding: 80px 0;
    text-align: center;
}

.testimonials-slider {
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /* Agar card bisa ke baris baru di mobile */
    gap: 30px;
    margin-top: 50px;
}

.testimonial-card {
    background-color: var(--text-light);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px var(--shadow-light);
    max-width: 400px;
    text-align: center;
    flex: 1 1 300px; /* Fleksibel untuk ukuran berbeda */
}

.testimonial-card p {
    font-style: italic;
    font-size: 1.1em;
    color: #555;
    margin-bottom: 20px;
}

.testimonial-card cite {
    display: block;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1em;
}

/* --- CTA Final Section --- */
.cta-final-section {
    background:
        linear-gradient(rgba(47, 61, 101, 0.6), rgba(47, 61, 101, 0.6)),
        url("../images/MENU.png") no-repeat center center/cover;
    color: var(--text-light);
    text-align: center;
    padding: 100px 20px;
}

.cta-final-section h2 {
    color: var(--text-light);
    font-size: 3em;
    margin-bottom: 25px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.cta-final-section p {
    font-size: 1.2em;
    margin-bottom: 40px;
    color: var(--text-light);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.btn-cta-final {
    background-color: var(--secondary-color);
    color: var(--text-dark) !important;
    padding: 18px 40px;
    font-size: 1.3em;
    font-weight: bold;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin-bottom: 30px;
}

.btn-cta-final:hover {
    background-color: B1935B;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    text-decoration: none;
}

.contact-info-footer {
    font-size: 1em;
    margin: 5px 0;
    color: rgba(255, 255, 255, 0.8);
}

.contact-info-footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: underline;
}

.contact-info-footer a:hover {
    color: var(--secondary-color);
}

/* --- Footer --- */
footer {
    background-color: var(--bg-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 60px 0 30px 0;
    font-size: 0.95em;
}

.footer-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-col h3 {
    color: #b1935b;
    margin-bottom: 20px;
    font-size: 1.3em;
}

.footer-col p,
.footer-col ul {
    margin-bottom: 10px;
    color: #faf9f2;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    color: #faf9f2;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.social-links {
    margin-top: 15px;
}

.social-links a {
    display: inline-block;
    color: var(--text-light);
    font-size: 1.8em;
    margin-right: 15px;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--secondary-color);
}

.copyright {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* =========================================
   1. GLOBAL VARIABLES & RESET
   ========================================= */
@import url("https://fonts.cdnfonts.com/css/bolton-sans");

:root {
    --primary-color: #b1935b; /* Emas/Coklat Mewah */
    --secondary-color: #2f3d65; /* Navy Blue Premium */
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-light: #f8f9fa;
    --bg-dark: #1a1f2e;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-card: 0 8px 20px rgba(0, 0, 0, 0.08);
}

body {
    font-family: "Bolton Sans", sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--text-light);
    overflow-x: hidden; /* Mencegah scroll horizontal halaman */
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography Global */
h1,
h2,
h3 {
    color: var(--secondary-color);
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
}

a {
    text-decoration: none;
    transition: 0.3s;
}
ul {
    list-style: none;
    padding: 0;
}

/* =========================================
   2. BUTTONS (PILL SHAPE MODERN)
   ========================================= */
.btn {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 50px; /* Bentuk kapsul modern */
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(177, 147, 91, 0.4);
}

.btn-primary:hover {
    background-color: #967d4d;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--secondary-color) !important;
    border: 2px solid var(--secondary-color);
}

.btn-secondary:hover {
    background-color: var(--secondary-color);
    color: #fff !important;
}

/* =========================================
   3. HERO SECTION (CINEMATIC)
   ========================================= */
.hero-section {
    background:
        linear-gradient(
            to top,
            rgba(47, 61, 101, 0.9) 0%,
            rgba(47, 61, 101, 0.4) 100%
        ),
        url("../images/BANNER.png") no-repeat center center/cover;
    color: var(--text-light);
    text-align: center;
    padding: 160px 20px 80px;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero-section h1 {
    font-size: 3.5em;
    color: #fff;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    margin-bottom: 20px;
}

.hero-section p {
    font-size: 1.25em;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    max-width: 1125px;
}

.btn-hero {
    background-color: var(--primary-color);
    color: #fff !important;
    padding: 16px 45px;
    font-size: 1.1em;
    border-radius: 50px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* =========================================
   4. SECTIONS (ABOUT, MENU, ETC)
   ========================================= */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
    width: 100%;
}

/* About Us Grid */
.about-us-section {
    background-color: #fff;
}
.features-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.feature-item {
    background: #fff;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    flex: 1 1 300px;
    text-align: center;
    border: 1px solid #f0f0f0;
}

.feature-item i {
    font-size: 3em;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* Menu Grid (Desktop Default) */
.menu-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.menu-item {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: transform 0.3s;
}

.menu-item:hover {
    transform: translateY(-5px);
}

.menu-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.menu-item h3 {
    margin: 20px 20px 5px;
    font-size: 1.4em;
}
.menu-item p {
    margin: 0 20px 15px;
    color: #666;
    font-size: 0.95em;
}
.menu-item .price {
    display: inline-block;
    margin: 0 20px 20px;
    font-size: 1.2em;
    font-weight: 700;
    color: var(--primary-color);
}

/* Testimonials */
.testimonials-section {
    background-color: var(--bg-light);
}
.testimonials-slider {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.testimonial-card {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    flex: 1 1 300px;
    text-align: center;
}

/* CTA & Footer */
.cta-final-section {
    background:
        linear-gradient(rgba(47, 61, 101, 0.8), rgba(47, 61, 101, 0.8)),
        url("../images/MENU.png") center/cover;
    color: #fff;
    text-align: center;
}

.cta-final-section h2 {
    color: #fff;
}
.cta-final-section p {
    color: rgba(255, 255, 255, 0.9);
}

footer {
    background: var(--bg-dark);
    color: #ccc;
    padding: 60px 0 20px;
}
.footer-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}
.footer-col h3 {
    color: #fff;
    font-size: 1.2em;
    margin-bottom: 20px;
}
.footer-col a {
    color: #ccc;
}
.footer-col a:hover {
    color: var(--primary-color);
}
.social-links a {
    margin-right: 15px;
    font-size: 1.5em;
}
.copyright {
    text-align: center;
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===============================================================
   🔥🔥🔥 MOBILE & RESPONSIVE MAGIC STARTS HERE 🔥🔥🔥
   =============================================================== */

@media (max-width: 768px) {
    /* 1. Global Layout Mobile */
    .container {
        padding: 0 20px;
        overflow: visible;
    }
    section {
        padding: 50px 0;
    }

    h2 {
        font-size: 1.8rem;
        text-align: left; /* Judul rata kiri agar modern */
        margin-bottom: 20px;
        padding-left: 15px;
        border-left: 5px solid var(--primary-color);
    }

    p {
        font-size: 1rem;
    }

    /* 2. Hero Section Mobile */
    /* 2. Hero Section Mobile (SUDAH DIPERBAIKI: RATA TENGAH) */
    .hero-section {
        min-height: 80vh; /* Tinggi layar hampir penuh */
        padding: 120px 20px 60px; /* Padding atas besar biar ga ketabrak navbar */

        /* Flexbox untuk Center */
        display: flex;
        flex-direction: column;
        justify-content: center; /* Tengah secara vertikal */
        align-items: center; /* Tengah secara horizontal */
        text-align: center; /* Teks rata tengah */

        background-position: center center; /* Fokus gambar di tengah */
    }

    .hero-section h1 {
        font-size: 2.8rem; /* Ukuran font besar tapi pas di HP */
        line-height: 1.2;
        margin-bottom: 15px;
        width: 100%; /* Memastikan lebar penuh */
    }

    .hero-section p {
        font-size: 1.1rem;
        margin-bottom: 30px;
        max-width: 90%; /* Supaya teks tidak terlalu mepet pinggir */
        margin-left: auto;
        margin-right: auto;
        color: rgba(255, 255, 255, 0.95);
    }

    .btn-hero {
        width: auto; /* Tombol menyesuaikan teks, jangan full width */
        min-width: 200px; /* Tapi minimal segini biar enak ditekan */
        text-align: center;
        margin-top: 10px;
    }

    /* 3. MENU SLIDER (SWIPE MODE - NETFLIX STYLE) */
    .menu-preview-section .container {
        padding-right: 0; /* Biarkan menu mentok kanan layar */
    }

    .menu-items-grid {
        display: flex; /* Ubah grid jadi flex horizontal */
        flex-wrap: nowrap;
        overflow-x: auto; /* Scroll samping */
        gap: 20px;
        padding-bottom: 30px; /* Ruang untuk shadow */
        padding-right: 20px; /* Padding kanan agar item terakhir tidak kepotong */

        /* Efek Magnet */
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    /* Sembunyikan scrollbar */
    .menu-items-grid::-webkit-scrollbar {
        display: none;
    }

    .menu-item {
        min-width: 280px; /* Lebar tetap kartu */
        max-width: 280px;
        scroll-snap-align: center; /* Magnet di tengah saat stop */
        margin: 0;
        border-radius: 16px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    }

    .menu-item img {
        height: 180px;
    }

    /* 4. TESTIMONIALS (MANUAL SCROLL FIX) */
    .testimonials-section {
        padding: 40px 0;
        /* Hapus overflow: hidden, ganti jadi visible atau default */
    }

    /* Container Slider */
    .testimonials-slider {
        display: flex;
        flex-wrap: nowrap;
        gap: 20px;

        /* --- FITUR SCROLL MANUAL --- */
        overflow-x: auto; /* Izinkan scroll samping */
        scroll-snap-type: x mandatory; /* Efek magnet */
        -webkit-overflow-scrolling: touch; /* Agar licin di iPhone */

        padding-bottom: 30px; /* Ruang untuk shadow kartu */
        padding-right: 20px; /* Jarak aman di kanan */

        /* --- HAPUS BAGIAN INI (INI PENYEBAB MASALAHNYA) --- */
        /* animation: scrollLoop 25s linear infinite; */
        /* width: max-content; */
    }

    /* Sembunyikan Scrollbar tapi tetap bisa discroll */
    .testimonials-slider::-webkit-scrollbar {
        display: none;
    }

    .testimonial-card {
        min-width: 300px;
        max-width: 300px;
        flex-shrink: 0;
        background: #fff;
        border: 1px solid #eee;
        text-align: left;
        padding: 25px;

        /* Agar kartu pas berhenti di tengah layar */
        scroll-snap-align: center;
    }

    /* --- HAPUS KEYFRAMES INI JUGA BIAR BERSIH --- */
    /* @keyframes scrollLoop {
        0% { transform: translateX(0); }
        100% { transform: translateX(-50%); } 
    } 
    */

    /* 5. Footer Mobile */
    .footer-cols {
        display: flex;
        flex-direction: column;
        gap: 30px;
    }

    .social-links {
        display: flex;
        gap: 15px;
        justify-content: flex-start;
    }

    .social-links a {
        background: rgba(255, 255, 255, 0.1);
        width: 45px;
        height: 45px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        margin: 0;
    }
}
