/* =========================================
   Sistem Desain - Sumber Rachmat
   ========================================= */

:root {
    /* Colors: B2B Blue & Vibrant Orange */
    --primary-color: #0b4b8a; /* Deep Trust Blue */
    --primary-hover: #083766;
    --accent-color: #ff6b00;  /* Action Orange */
    --accent-hover: #e66000;
    
    /* WhatsApp Green */
    --wa-color: #25d366;
    --wa-hover: #128c7e;

    /* Neutrals */
    --text-main: #333333;
    --text-muted: #666666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --border-color: #eaeaea;

    /* Typography */
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Roboto', sans-serif;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 24px rgba(0,0,0,0.12);
    
    /* Transitions */
    --transition: all 0.3s ease;
}

/* =========================================
   Reset & Global Styles
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    line-height: 1.2;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* =========================================
   Buttons
   ========================================= */
.btn-primary {
    background-color: var(--accent-color);
    color: var(--white);
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--primary-color);
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 600;
    border: 2px solid var(--primary-color);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary:hover {
    background-color: var(--primary-hover);
    color: var(--white);
}

/* =========================================
   Header & Navigation
   ========================================= */
.header {
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 45px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 16px;
    line-height: 1.1;
    color: var(--primary-color);
}

.search-bar {
    flex: 1;
    max-width: 500px;
    display: flex;
    border: 2px solid var(--primary-color);
    border-radius: 6px;
    overflow: hidden;
}

.search-bar input {
    flex: 1;
    padding: 10px 16px;
    border: none;
    outline: none;
    font-size: 14px;
}

.search-bar button {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0 20px;
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition);
}

.search-bar button:hover {
    background-color: var(--primary-hover);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-link {
    font-weight: 500;
    color: var(--text-muted);
}

.nav-link:hover {
    color: var(--accent-color);
}

.mobile-toggle {
    display: none;
    font-size: 28px;
    color: var(--primary-color);
    cursor: pointer;
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    flex-direction: column;
    background-color: var(--white);
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    box-shadow: var(--shadow-md);
    padding: 16px 24px;
    gap: 16px;
    z-index: 99;
}

.mobile-menu.active {
    display: flex;
}

.mobile-link {
    font-weight: 500;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.btn-primary-mobile {
    background-color: var(--accent-color);
    color: var(--white);
    padding: 12px;
    text-align: center;
    border-radius: 6px;
    font-weight: 600;
}

/* =========================================
   Hero Section
   ========================================= */
.hero {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-content .badge {
    display: inline-block;
    background-color: rgba(11, 75, 138, 0.1);
    color: var(--primary-color);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
}

.hero-content h1 {
    font-size: 42px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.hero-content p {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 30px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
}

.hero-stats {
    display: flex;
    gap: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-muted);
}

.stat-item i {
    font-size: 20px;
    color: var(--accent-color);
}

.stat-item strong {
    color: var(--text-main);
}

.hero-image-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.hero-graphic {
    height: 400px;
    background-color: var(--primary-color);
}

.hero-graphic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
}

/* =========================================
   Video Section
   ========================================= */
.video-section {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 24px;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    margin-top: 32px;
}

.promo-card {
    background-color: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.promo-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.video-container {
    width: 100%;
    /* Mengubah ke rasio horizontal agar ukurannya lebih kecil dan sepadan dengan Kategori Pilihan */
    aspect-ratio: 4 / 3;
    background-color: var(--bg-light); /* Latar belakang terang yang menyatu dengan tema */
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.video-container video {
    width: 100%;
    height: 100%;
    /* Tetap maintain proporsi video tanpa memotong (uncropped) */
    object-fit: contain;
    outline: none;
    pointer-events: none; /* Mencegah user tidak sengaja mem-pause/klik video autoplay */
}

.promo-info {
    padding: 20px;
    text-align: center;
    background: var(--white);
}

.promo-info h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.promo-info p {
    font-size: 14px;
    color: var(--text-muted);
}

/* =========================================
   Animations
   ========================================= */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   Categories Section
   ========================================= */
.categories-section {
    max-width: 1200px;
    margin: 60px auto;
    padding: 40px 24px;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 32px;
    margin-bottom: 12px;
}

.section-header p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.category-card {
    background: var(--white);
    padding: 32px 24px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-hover);
}

.card-icon {
    width: 64px;
    height: 64px;
    background-color: rgba(11, 75, 138, 0.05);
    color: var(--primary-color);
    font-size: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 20px;
    transition: var(--transition);
}

.category-card:hover .card-icon {
    background-color: var(--primary-color);
    color: var(--white);
}

.category-card h3 {
    margin-bottom: 12px;
    font-size: 20px;
}

.category-card p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 24px;
}

.card-link {
    color: var(--accent-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.card-link i {
    transition: var(--transition);
}

.card-link:hover i {
    transform: translateX(4px);
}

/* =========================================
   Store Info Section
   ========================================= */
.store-info-section {
    background-color: var(--white);
    padding: 60px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.info-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.info-text h2 {
    font-size: 32px;
    margin-bottom: 16px;
}

.info-text p {
    color: var(--text-muted);
    margin-bottom: 32px;
}

.info-list {
    list-style: none;
}

.info-list li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.info-list i {
    font-size: 24px;
    color: var(--primary-color);
    background-color: rgba(11, 75, 138, 0.1);
    padding: 12px;
    border-radius: 8px;
}

.info-list strong {
    display: block;
    margin-bottom: 4px;
    font-family: var(--font-heading);
}

.info-list span {
    color: var(--text-muted);
    font-size: 15px;
}

.rating-stars {
    color: #fbbc04; /* Google yellow star color */
    letter-spacing: 2px;
}

.info-map {
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

/* =========================================
   Footer
   ========================================= */
.footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 60px 24px 20px;
}

.footer-top {
    max-width: 1200px;
    margin: 0 auto 40px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
}

.footer-brand h3 {
    color: var(--white);
    font-size: 24px;
    margin: 16px 0 8px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
}

.footer-logo-img {
    height: 60px;
    margin-bottom: 12px;
    /* Memberikan efek cerah jika logonya gelap, tapi object-fit cukup */
}

.footer-links h4, .footer-contact h4 {
    color: var(--white);
    font-size: 18px;
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links a:hover {
    color: var(--accent-color);
    padding-left: 4px;
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

/* =========================================
   Floating WhatsApp Button
   ========================================= */
.floating-wa {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--wa-color);
    color: var(--white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    transition: var(--transition);
}

.floating-wa:hover {
    background-color: var(--wa-hover);
    transform: scale(1.1);
}

/* =========================================
   Responsive Design
   ========================================= */
@media (max-width: 992px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content p {
        margin: 0 auto 30px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .info-container {
        grid-template-columns: 1fr;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-logo {
        margin: 0 auto;
    }
    
    .footer-contact p {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .header-actions {
        display: none;
    }
    
    .search-bar {
        display: none;
    }
    
    .mobile-toggle {
        display: block;
    }
    
    .hero-content h1 {
        font-size: 32px;
    }
}
