/* ==========================================================================
   JUARA ANEKA KULINER GROUP - PREMIUM DESIGN SYSTEM
   ========================================================================== */

/* ==========================================================================
   1. VARIABLES & RESET STYLES
   ========================================================================== */

:root {
    --primary-dark: #0f1216;
    --secondary-dark: #181d24;
    --accent-gold: #d4af37;
    --accent-gold-light: #e6ca65;
    --bg-light: #fafaf9;
    --bg-white: #ffffff;
    --text-primary: #1e232a;
    --text-muted: #64748b;
    --text-light: #f8fafc;
    --border-color: rgba(0, 0, 0, 0.06);
    --border-dark: rgba(255, 255, 255, 0.1);
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Outfit', sans-serif;
    --transition-smooth: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    background-color: var(--bg-light);
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 32px;
}

.text-center {
    text-align: center;
}

.section-badge,
.section-tag {
    font-size: 0.8rem;
    letter-spacing: 3px;
    color: var(--accent-gold);
    font-weight: 600;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 12px;
}

/* ==========================================================================
   2. HEADER & NAVIGATION
   ========================================================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(15, 18, 22, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 18px 0;
    border-bottom: 1px solid var(--border-dark);
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.brand-logo img {
    height: 42px;
    width: auto;
}

.brand-name {
    color: var(--text-light);
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 36px;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    padding: 4px 0;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 1px;
    background-color: var(--accent-gold);
    transition: width 0.3s var(--transition-smooth);
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-gold);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Hamburger Toggle Menu */
.hamburger-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hamburger-toggle .bar {
    display: block;
    width: 26px;
    height: 2px;
    margin: 6px 0;
    background-color: var(--text-light);
    transition: all 0.3s ease-in-out;
    border-radius: 2px;
}

.hamburger-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ==========================================================================
   3. HERO SECTION (HOME)
   ========================================================================== */

.hero-section {
    position: relative;
    height: 100vh;
    min-height: 650px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.8s var(--transition-smooth);
    transform: scale(1.03);
}

.slide.active {
    opacity: 1;
    transform: scale(1);
}

.fallback-bg {
    background-color: var(--primary-dark);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(15, 18, 22, 0.4) 0%, rgba(15, 18, 22, 0.85) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: var(--text-light);
    max-width: 900px;
    padding-top: 60px;
}

.hero-tagline {
    font-size: 0.85rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--accent-gold);
    font-weight: 500;
    display: block;
    margin-bottom: 20px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.8rem;
    font-weight: 400;
    line-height: 1.15;
    margin-bottom: 20px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-style: italic;
    color: var(--text-light);
    letter-spacing: 1px;
    opacity: 0.95;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

/* ==========================================================================
   4. ABOUT & STATS SECTION
   ========================================================================== */

.about-section {
    padding: 140px 0;
    background-color: var(--bg-white);
}

.about-wrapper {
    max-width: 920px;
    margin: 0 auto;
}

.about-headline {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 600;
    line-height: 1.25;
    color: var(--text-primary);
    margin-bottom: 36px;
}

.about-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    font-weight: 300;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 60px;
    padding-top: 20px;
    justify-content: center;
    align-items: stretch;
}

.stat-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 36px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: all 0.4s var(--transition-smooth);
}

.stat-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: rgba(212, 175, 55, 0.4);
}

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 3.2rem;
    font-weight: 600;
    color: var(--accent-gold);
    line-height: 1;
    margin-bottom: 10px;
    text-align: center;
}

.stat-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    font-weight: 500;
    text-align: center;
}

/* ==========================================================================
   5. BRANDS SECTION (PORTFOLIO)
   ========================================================================== */

.brands-section {
    padding: 140px 0;
    background-color: var(--bg-light);
}

.section-header {
    margin-bottom: 64px;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 600;
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.brand-card {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 44px 28px 36px;
    text-align: center;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    transition: all 0.4s var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.brand-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.07);
    border-color: rgba(212, 175, 55, 0.3);
}

.brand-logo-wrapper {
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    width: 100%;
}

.brand-logo-wrapper img {
    max-height: 100%;
    max-width: 130px;
    object-fit: contain;
}

.brand-card h3 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 14px;
    color: var(--text-primary);
}

.brand-card p {
    font-size: 0.93rem;
    color: var(--text-muted);
    font-weight: 300;
    line-height: 1.6;
    margin-bottom: 20px;
}

.btn-see-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-gold);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 18px;
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 30px;
    transition: all 0.3s ease;
}

.btn-see-more:hover {
    background-color: var(--accent-gold);
    color: var(--primary-dark);
    border-color: var(--accent-gold);
    transform: translateY(-2px);
}

/* ==========================================================================
   6. BRAND DETAIL & FULL-WIDTH MOSAIC COLLAGE
   ========================================================================== */

.brand-hero {
    position: relative;
    padding: 160px 0 80px;
    background-color: var(--primary-dark);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--text-light);
}

.brand-hero-title {
    font-family: var(--font-heading);
    font-size: 3.8rem;
    color: var(--accent-gold);
    margin-bottom: 10px;
    line-height: 1.1;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
}

.brand-hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 650px;
    margin: 0 auto;
    font-weight: 300;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.brand-detail-section {
    padding: 0 0 120px; /* Menghilangkan padding-top agar kolase menempel langsung ke Hero */
    background-color: var(--bg-light);
}

/* Full-Width Edge-to-Edge Mosaic Container */
.full-collage-wrapper {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    overflow: hidden;
    margin-bottom: 60px;
}

.full-collage-frame {
    width: 100%;
    height: 480px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    background-color: var(--secondary-dark);
}

.collage-row {
    display: flex;
    width: 100%;
    flex: 1;
    gap: 6px;
    min-height: 0;
}

.collage-row-item {
    height: 100%;
    overflow: hidden;
    position: relative;
    min-width: 0;
}

.collage-row-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.collage-row-item:hover img {
    transform: scale(1.06);
}

.collage-fallback {
    background: var(--secondary-dark);
    padding: 60px 20px;
    text-align: center;
    border-radius: 16px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 40px;
    margin-bottom: 60px;
}

/* Highlights Grid & Story Content */
.brand-info-wrapper {
    max-width: 960px;
    margin: 0 auto;
}

.brand-highlights-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 60px;
}

.highlight-box {
    background: var(--bg-white);
    padding: 28px 20px;
    border-radius: 18px;
    text-align: center;
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.02);
    transition: transform 0.3s ease;
}

.highlight-box:hover {
    transform: translateY(-4px);
}

.highlight-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 12px;
}

.highlight-box h4 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.highlight-box p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    font-weight: 300;
}

.brand-story-content {
    background: var(--bg-white);
    padding: 48px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    margin-bottom: 40px;
}

.brand-story-content h2 {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.brand-story-content p {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.8;
    font-weight: 300;
}

.btn-back {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 40px;
    background-color: var(--primary-dark);
    color: var(--accent-gold);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.btn-back:hover {
    background-color: var(--accent-gold);
    color: var(--primary-dark);
}

/* ==========================================================================
   7. FOOTER
   ========================================================================== */

.footer {
    background-color: var(--primary-dark);
    color: rgba(255, 255, 255, 0.6);
    padding: 60px 0 40px;
    text-align: center;
    border-top: 1px solid var(--border-dark);
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-logo img {
    height: 38px;
}

.footer-logo span {
    font-family: var(--font-heading);
    color: var(--text-light);
    font-size: 1.25rem;
}

.copyright {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.4);
}

/* ==========================================================================
   8. FLOATING WHATSAPP BUTTON
   ========================================================================== */

.wa-float {
    position: fixed;
    bottom: 32px;
    right: 32px;
    background: #25d366;
    color: #ffffff;
    padding: 14px 24px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.35);
    z-index: 999;
    animation: wobble 4.5s infinite ease-in-out;
    transition: transform 0.3s ease;
}

.wa-float:hover {
    transform: scale(1.05);
}

.wa-float i {
    font-size: 1.3rem;
}

@keyframes wobble {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    88% { transform: translateY(0) rotate(0deg); }
    90% { transform: translateY(-6px) rotate(-6deg); }
    92% { transform: translateY(-6px) rotate(6deg); }
    94% { transform: translateY(-3px) rotate(-4deg); }
    96% { transform: translateY(-1px) rotate(2deg); }
}

/* ==========================================================================
   9. RESPONSIVE MOBILE MEDIA QUERIES
   ========================================================================== */

@media (max-width: 1100px) {
    .brands-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .brand-highlights-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 868px) {
    /* Mobile Drawer Navigation */
    .hamburger-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--secondary-dark);
        padding: 100px 40px 40px;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
        transition: right 0.4s var(--transition-smooth);
    }

    .nav-menu.open {
        right: 0;
    }

    .nav-menu ul {
        flex-direction: column;
        gap: 24px;
    }

    .nav-link {
        font-size: 1.1rem;
    }

    /* Content & Grid Scaling */
    .hero-title {
        font-size: 2.6rem;
    }

    .about-headline {
        font-size: 2.1rem;
    }

    .brands-grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 20px;
    }

    .full-collage-frame {
        height: 380px;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 20px;
    }

    .brand-name {
        font-size: 1.05rem;
    }

    .hero-title {
        font-size: 2.1rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .about-section,
    .brands-section {
        padding: 80px 0;
    }

    .brand-hero-title {
        font-size: 2.5rem;
    }

    .brand-highlights-grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .brand-story-content {
        padding: 28px 20px;
    }

    .full-collage-frame {
        height: 300px;
    }

    .wa-float span {
        display: none;
    }

    .wa-float {
        padding: 14px;
        border-radius: 50%;
    }
}

/* ==========================================================================
   10. MENU FLIPBOOK & CTA STYLES
   ========================================================================== */

/* Header Mini untuk Halaman Menu */
.menu-hero-mini {
    padding: 130px 0 50px;
}

.menu-display-section {
    padding: 40px 0 100px;
    background-color: var(--bg-light);
}

/* Container Frame Flipbook (Diperbesar untuk Desktop) */
.menu-flip-wrapper {
    max-width: 880px; /* Diubah dari 580px agar leluasa di layar desktop */
    margin: 0 auto 40px;
}

.menu-frame-border {
    background: var(--primary-dark);
    border: 2px solid var(--accent-gold);
    border-radius: 20px;
    padding: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.menu-swiper {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background-color: #111;
}

.menu-page-item {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #000;
}

.menu-page-item img {
    width: 100%;
    height: auto;
    max-height: 82vh; /* Ditingkatkan dari 72vh agar gambar menu tinggi/A4 bisa proporsional besar */
    object-fit: contain;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
}

/* Custom Swiper Controls (Gold Theme) */
.menu-swiper .swiper-button-next,
.menu-swiper .swiper-button-prev {
    color: var(--accent-gold);
    background: rgba(15, 18, 22, 0.7);
    width: 48px; /* Diperbesar sedikit untuk desktop */
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(212, 175, 55, 0.4);
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}

.menu-swiper .swiper-button-next::after,
.menu-swiper .swiper-button-prev::after {
    font-size: 1.2rem;
    font-weight: bold;
}

.menu-swiper .swiper-button-next:hover,
.menu-swiper .swiper-button-prev:hover {
    background: var(--accent-gold);
    color: var(--primary-dark);
}

.menu-swiper .swiper-pagination-fraction {
    bottom: 14px;
    color: var(--text-light);
    font-family: var(--font-body);
    font-size: 0.85rem;
    letter-spacing: 1px;
    background: rgba(15, 18, 22, 0.8);
    display: inline-block;
    width: auto;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 16px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Tombol Lihat Menu */
.btn-menu {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 30px;
    border-radius: 40px;
    background-color: var(--accent-gold);
    color: var(--primary-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.25);
}

.btn-menu:hover {
    background-color: var(--accent-gold-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.35);
}

/* Tombol WhatsApp Pesan Menu */
.btn-wa-order {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 36px;
    border-radius: 50px;
    background-color: var(--accent-gold);
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
    border: 1px solid var(--accent-gold-light);
}

.btn-wa-order:hover {
    background-color: var(--primary-dark);
    color: var(--accent-gold);
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

/* Penyesuaian Responsif Tablet & Mobile */
@media (max-width: 992px) {
    .menu-flip-wrapper {
        max-width: 700px;
    }
}

@media (max-width: 576px) {
    .menu-flip-wrapper {
        max-width: 100%;
    }

    .menu-frame-border {
        padding: 6px;
        border-radius: 14px;
    }

    .menu-page-item img {
        max-height: 68vh;
    }

    .menu-swiper .swiper-button-next,
    .menu-swiper .swiper-button-prev {
        width: 36px;
        height: 36px;
    }

    .menu-swiper .swiper-button-next::after,
    .menu-swiper .swiper-button-prev::after {
        font-size: 0.9rem;
    }

    .btn-wa-order {
        width: 100%;
        padding: 14px 20px;
        font-size: 0.98rem;
    }
}