/* =================================================================
   0. VARS & BASE STYLES
   ================================================================= */
:root {
    --color-primary: #581845;      /* Deep Maroon/Ungu Tua Elegan */
    --color-secondary: #FFC300;    /* Soft Gold/Mustard (Aksen) */
    --color-text-dark: #2c2c2c;    /* Teks gelap halus */
    --color-text-light: #f9f9f9;   /* Teks putih gading */
    --color-bg-light: #FFFFFF;     /* Latar belakang bersih */
    --color-bg-alt: #f1f1f1;       /* Latar belakang abu muda untuk section */
    --color-accent: #460f38;       /* Aksen gelap untuk footer */

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--color-text-dark);
    line-height: 1.7;
    background-color: var(--color-bg-light);
}

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

h1, h2, h3 {
    font-family: var(--font-heading);
    margin-bottom: 1rem;
    color: var(--color-primary);
    font-weight: 700;
}
h2 {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}
h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--color-secondary);
    margin: 10px auto 0;
    border-radius: 2px;
}

.section-padding { padding: 80px 5%; }
.text-center { text-align: center; }
.section-dark-bg { background-color: var(--color-bg-alt); }
.section-darkest-bg {
    background-color: var(--color-accent);
    color: var(--color-text-light);
}
.section-darkest-bg h4 { color: var(--color-secondary); }


/* =================================================================
   1. BUTTONS (CTA)
   ================================================================= */
.cta-button-primary, .cta-button-secondary, .cta-button-outline, 
.cta-button-primary-inverted, .cta-nav-desktop {
    display: inline-block;
    padding: 15px 25px;
    border-radius: 8px;
    text-transform: uppercase;
    font-weight: 700;
    transition: all 0.3s ease-in-out;
    margin-top: 20px;
    text-align: center;
    border: 2px solid transparent;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    letter-spacing: 1px;
}

.cta-button-primary, .cta-nav-desktop {
    background-color: var(--color-secondary);
    color: var(--color-text-dark);
    font-size: 1.2rem;
}
.cta-button-primary:hover, .cta-nav-desktop:hover {
    background-color: #ffb800;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.cta-button-secondary {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    padding: 10px 20px;
    box-shadow: none;
}
.cta-button-secondary:hover { background-color: #460f38; }

.cta-button-outline {
    background: none;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    margin-top: 40px;
    box-shadow: none;
}
.cta-button-outline:hover {
    background-color: var(--color-primary);
    color: var(--color-text-light);
}

.cta-button-primary-inverted {
    background-color: var(--color-bg-light);
    color: var(--color-primary);
    font-size: 1.2rem;
}
.cta-button-primary-inverted:hover { background-color: #e0e0e0; }


/* =================================================================
   2. HEADER & NAVIGATION
   ================================================================= */
.sticky-header {
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--color-primary);
}

.nav-links {
    list-style: none;
}
.nav-links li {
    display: inline;
    margin-left: 30px;
}
.nav-links a {
    color: var(--color-text-dark);
    font-weight: 600;
    position: relative;
}
.nav-links a::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: var(--color-secondary);
    transition: width 0.3s;
    position: absolute;
    bottom: -5px;
    left: 0;
}
.nav-links a:hover::after { width: 100%; }

.nav-cta-group { display: flex; align-items: center; }

.hamburger-icon {
    font-size: 2rem;
    cursor: pointer;
    color: var(--color-primary);
    transition: transform 0.3s;
    margin-left: 15px; 
}
.hamburger-icon:hover { transform: scale(1.1); }

.desktop-only { display: none; }


/* =================================================================
   3. HERO SECTION
   ================================================================= */
.hero-section {
    position: relative;
    height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-image-overlay img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(50%) contrast(1.1);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--color-text-light);
    max-width: 90%;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

.hero-content .headline {
    font-size: 2.8rem;
    color: var(--color-secondary); 
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}


/* Floating CTA Mobile */
.floating-cta-mobile {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 900;
    padding: 12px 10px;
    background-color: var(--color-primary);
    text-align: center;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease-in-out;
}
.cta-button-sticky {
    display: block;
    background-color: var(--color-secondary);
    color: var(--color-text-dark);
    font-weight: 700;
    padding: 15px 0;
    border-radius: 6px;
    text-transform: uppercase;
    font-size: 1.1rem;
    transition: transform 0.3s;
}
.cta-button-sticky:active { transform: scale(0.98); }


/* =================================================================
   4. KEUNGGULAN & MENU SECTION
   ================================================================= */
.features-grid {
    display: grid;
    gap: 30px;
    grid-template-columns: 1fr;
    text-align: center;
}

.feature-card {
    padding: 30px;
    border-radius: 12px;
    background-color: var(--color-bg-light);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
    border: 1px solid #eee;
}
.feature-card .icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 10px;
    transform: rotate(-10deg);
}

.menu-grid {
    display: grid;
    gap: 40px;
    grid-template-columns: 1fr; 
}

.menu-item-card {
    background-color: var(--color-bg-light);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    position: relative;
    padding-bottom: 25px;
    
    /* Efek 3D */
    perspective: 1000px; 
    transform-style: preserve-3d;
    transition: transform 0.5s ease-in-out;
}

.menu-item-card:hover {
    transform: scale(1.05) rotateY(5deg);
}

.menu-item-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.5s;
}

.menu-item-card:hover img { transform: scale(1.05); }

.menu-item-card h3 {
    margin-top: 20px;
    font-size: 1.5rem;
}

.menu-item-card .harga {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--color-secondary);
    margin: 5px 0 20px;
}

.badge.best-seller {
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--color-secondary);
    color: var(--color-text-dark);
    padding: 8px 15px;
    border-bottom-left-radius: 12px;
    border-top-right-radius: 12px;
    font-size: 0.9rem;
    font-weight: 700;
}


/* =================================================================
   5. TESTIMONI SECTION
   ================================================================= */
.testimonial-slider-container {
    display: flex;
    overflow-x: auto;
    gap: 30px;
    padding-bottom: 20px;
    scroll-snap-type: x mandatory;
    margin: 0 -5%;
    padding-left: 5%;
    padding-right: 5%;
}

.testimonial-card {
    min-width: 85%;
    scroll-snap-align: center;
    background-color: var(--color-bg-light);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    border: 1px solid rgba(255, 195, 0, 0.5);
}

.client-photo {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 4px solid var(--color-primary);
}

.quote {
    font-style: italic;
    margin-bottom: 20px;
    font-size: 1.15rem;
    color: var(--color-text-dark);
}

.client-info strong {
    color: var(--color-primary);
    font-size: 1.1rem;
}

.social-proof-rating {
    text-align: center;
    margin-top: 30px;
    font-size: 1.1rem;
}


/* =================================================================
   6. PROMO SECTION
   ================================================================= */
.promo-banner {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    padding: 50px 5%;
    text-align: center;
    border-top: 10px solid var(--color-secondary);
}

.promo-banner h3 {
    color: var(--color-secondary);
    font-size: 2.5rem;
}

.countdown-timer {
    font-size: 3.5rem;
    font-weight: 900;
    margin: 20px 0 30px;
    letter-spacing: 5px;
}


/* =================================================================
   7. FOOTER
   ================================================================= */
.footer-section { padding-top: 80px; }

.footer-grid {
    display: grid;
    gap: 40px;
    grid-template-columns: 1fr;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-column h4 {
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.social-links a, .delivery-links a {
    display: inline-block;
    font-size: 1.8rem;
    margin-right: 20px;
    transition: color 0.3s;
    color: var(--color-text-light); /* Override default link color */
    opacity: 0.8;
}
.social-links a:hover, .delivery-links a:hover {
    color: var(--color-secondary);
    opacity: 1;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    font-size: 0.8rem;
    opacity: 0.7;
}


/* =================================================================
   8. SCROLL REVEAL (JS Animation Hooks)
   ================================================================= */
.fade-in {
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.6s ease-out;
}
.fade-in.visible { opacity: 1; transform: translate(0) !important; }

/* Transform Initial State */
.fade-in.left { transform: translateX(-50px); }
.fade-in.right { transform: translateX(50px); }
.fade-in.top { transform: translateY(-50px); }
.fade-in.bottom { transform: translateY(50px); }

/* =================================================================
   7. FOOTER (Revisi Warna Link)
   ================================================================= */
/* ... kode footer lainnya (yang sudah ada) ... */

/* Link Warna Aksesori (Soft Gold) di Footer */
.footer-column a.footer-link-accent {
    color: var(--color-secondary); /* Soft Gold */
    text-decoration: underline; /* Agar terlihat clickable */
    text-decoration-color: transparent; /* Awalnya transparan */
    transition: all 0.3s ease;
}

.footer-column a.footer-link-accent:hover {
    color: #fff; /* Teks putih saat hover */
    text-decoration-color: var(--color-secondary); /* Garis bawah Soft Gold saat hover */
    opacity: 1;
}

/* Teks alamat yang tadinya hanya paragraf, sekarang menjadi tautan */
.footer-column p.alamat-link {
    margin-bottom: 10px;
}


/* =================================================================
   9. MEDIA QUERIES (RESPONSIVENESS)
   ================================================================= */

/* --- MOBILE STYLES (Max 767px) --- */
@media (max-width: 767px) {
    
    /* Navigation */
    .nav-links { display: none; } /* Default state */
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 60px; /* Di bawah header */
        left: 0;
        width: 100%;
        background-color: var(--color-bg-light);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.15);
        padding: 10px 0;
        z-index: 999;
    }
    .nav-links.active li {
        margin: 10px 0;
        text-align: center;
        border-bottom: 1px solid #eee;
        padding-bottom: 5px;
        width: 100%;
    }
    .nav-links.active li:last-child {
        border-bottom: none;
    }
    
    /* Floating CTA - Dikelola oleh JS, tapi perlu dipastikan tampil */
    .floating-cta-mobile {
        /* Ensure it's not hidden by mistake */
        display: block; 
    }
}

/* Styling untuk Bagian Distributor */
#distributor {
    background-color: #f8f9fa;
}

.distributor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.distributor-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.distributor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.distributor-image {
    height: 200px;
    overflow: hidden;
}

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

.distributor-card:hover .distributor-image img {
    transform: scale(1.1);
}

.distributor-info {
    padding: 1.5rem;
    text-align: center;
}

.distributor-info p {
    margin: 0;
    font-weight: 500;
    color: #333;
    line-height: 1.4;
}

.distributor-cta {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.distributor-cta h3 {
    color: #2c5530;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.distributor-cta p {
    margin-bottom: 1.5rem;
    color: #666;
}

/* Styling untuk Bagian Galeri */
.section-subtitle {
    text-align: center;
    margin-bottom: 3rem;
    color: #6c757d;
    font-size: 1.1rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

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

/* Responsif untuk bagian distributor */
@media (max-width: 768px) {
    .distributor-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .distributor-image {
        height: 180px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .distributor-cta {
        padding: 1.5rem;
    }
    
    .distributor-cta h3 {
        font-size: 1.3rem;
    }
}

/* Styling untuk Bagian Galeri */
.section-subtitle {
    text-align: center;
    margin-bottom: 3rem;
    color: #6c757d;
    font-size: 1.1rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 1.5rem 1rem 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

/* Responsif untuk bagian baru */
@media (max-width: 768px) {
    .distributor-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .gallery-caption {
        transform: translateY(0);
        background: rgba(0,0,0,0.7);
        position: relative;
        padding: 1rem;
    }
}


/* --- DESKTOP/TABLET STYLES (Min 768px) --- */
@media (min-width: 768px) {
    
    /* Navigation */
    .mobile-only { display: none; }
    .desktop-only { display: block; } 
    .nav-links { display: flex !important; } /* Tampilkan di desktop */
    .hamburger-icon { display: none; }
    .floating-cta-mobile { display: none !important; } /* Sembunyikan floating CTA di desktop */

    /* Hero */
    .hero-section { height: 90vh; } 
    .hero-content .headline { font-size: 4.5rem; }
    .hero-content .sub-headline { font-size: 1.3rem; }
    
    /* Grids */
    .features-grid { grid-template-columns: repeat(4, 1fr); }
    .menu-grid { grid-template-columns: repeat(3, 1fr); }
    .testimonial-card { min-width: 30%; }

    /* Footer */
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr; 
        text-align: left;
    }
}

/* Styling untuk Halal Proof Strip */
.halal-proof-strip {
    background-color: var(--color-bg-light); /* Latar belakang cerah */
    padding: 20px 5%;
    text-align: center;
    border-bottom: 1px solid var(--color-bg-alt);
}
.halal-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    max-width: 800px;
    margin: 0 auto;
}
.halal-logo {
    /* DEFAULT (Desktop) */
    height: 100px; 
    width: auto;
}
.halal-content p {
    font-weight: 600;
    color: var(--color-primary);
    font-size: 1rem;
    margin: 0;
}

/* Media Query untuk Mobile */
@media (max-width: 600px) {
    .halal-content {
        /* Tetap atur ke column, ini bagus */
        flex-direction: column; 
    }
    .halal-logo {
        /* Hapus baris ini: height: 30px; */
        /* Atau ganti dengan ukuran yang lebih masuk akal untuk mobile, misal: */
        height: 60px; /* Logo masih terlihat jelas, tapi tidak terlalu besar */
    }
    /* Pastikan paragraf tidak terlalu besar di mobile */
    .halal-content p {
        font-size: 0.9rem;
    }
}

/* Styling untuk Bagian Video Horizontal */
.video-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    text-align: center;
}

.video-container {
    max-width: 800px;
    margin: 0 auto;
}

.video-wrapper-horizontal {
    margin: 2rem auto;
    max-width: 600px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    background: #000;
    position: relative;
    aspect-ratio: 9/16; /* Rasio vertikal seperti HP */
    height: 70vh; /* Tinggi 70% dari viewport */
    max-height: 700px;
}

.video-wrapper-horizontal video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Untuk desktop - sedikit lebih lebar */
@media (min-width: 768px) {
    .video-wrapper-horizontal {
        max-width: 400px;
        height: 70vh;
        max-height: 700px;
    }
}

/* Untuk mobile - full height dengan batas maksimal */
@media (max-width: 767px) {
    .video-wrapper-horizontal {
        max-width: 350px;
        height: 75vh;
        max-height: 600px;
        margin: 1.5rem auto;
    }
    
    .video-section h2 {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
}

/* Efek hover untuk desktop */
@media (hover: hover) {
    .video-wrapper-horizontal {
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    
    .video-wrapper-horizontal:hover {
        transform: translateY(-5px);
        box-shadow: 0 25px 50px rgba(0,0,0,0.2);
    }
}
