/* =========================================
   1. RESET & BASIC SETUP
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    color: #334155; /* Slate 700 */
    line-height: 1.6;
    background-color: #ffffff;
    overflow-x: hidden; /* Anti-geser samping */
}

/* =========================================
   2. VARIABLES (Warna Brand)
   ========================================= */
:root {
    --navy: #0f172a;
    --blue: #2563eb;
    --orange: #f97316;
    --orange-hover: #ea580c;
    --gray-bg: #f8fafc;
    --white: #ffffff;
}

/* =========================================
   3. LAYOUT UTILITIES
   ========================================= */
.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

.max-800 {
    max-width: 800px;
    margin: 0 auto;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.flex-row {
    display: flex;
    gap: 4rem;
    align-items: center;
}

.text-center {
    text-align: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.section {
    padding: 5rem 0;
}

.bg-light { background-color: var(--gray-bg); }
.bg-dark { background-color: var(--navy); color: var(--white); }

.mb-2 { margin-bottom: 2rem; }
.align-end { align-items: flex-end; }

/* =========================================
   4. TOP BAR & NAVBAR
   ========================================= */
.top-bar {
    background: var(--navy);
    color: #fff;
    padding: 8px 0;
    font-size: 0.8rem;
    display: none; /* Default hidden di HP */
}
.contact-info span { margin-right: 20px; }
.contact-info i { color: var(--orange); margin-right: 5px; }

.navbar {
    position: sticky;
    top: 0;
    background: rgba(255,255,255,0.95);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--navy);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}
.logo i { color: var(--blue); }

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #475569;
    font-weight: 600;
    font-size: 0.9rem;
    transition: 0.3s;
}
.nav-links a:hover { color: var(--blue); }

.btn-nav {
    background: var(--navy);
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: 0.3s;
    display: none; /* Default hidden di HP */
}
.btn-nav:hover { background: #1e293b; transform: translateY(-2px); }

/* Tombol Hamburger (HP Only) */
.mobile-toggle {
    display: none; /* Hidden di Laptop */
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--navy);
}

/* Menu Dropdown HP (Hidden Default) */
.mobile-menu { display: none; }

/* =========================================
   5. HERO SECTION
   ========================================= */
.hero {
    padding: 6rem 0;
    background: linear-gradient(to right, #eff6ff, #fff);
    position: relative;
    overflow: hidden;
}

.hero-text { flex: 1; }

.badge {
    background: #dbeafe;
    color: var(--blue);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 1rem;
}

.hero h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--navy);
}

.text-gradient {
    background: -webkit-linear-gradient(left, var(--blue), #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.1rem;
    color: #475569;
    margin-bottom: 2rem;
}

.hero-buttons { display: flex; gap: 1rem; }

.btn-primary {
    background: var(--orange);
    color: white;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(249,115,22,0.3);
}
.btn-primary:hover { background: var(--orange-hover); transform: translateY(-3px); }

.btn-secondary {
    background: white;
    color: var(--navy);
    border: 1px solid #e2e8f0;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: 0.3s;
}
.btn-secondary:hover { background: #f8fafc; transform: translateY(-3px); }

.hero-image { flex: 1; }
.hero-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* =========================================
   6. ABOUT SECTION
   ========================================= */
.about-img { flex: 1; }
.about-img img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.about-text { flex: 1; }

.section-title {
    font-size: 2rem;
    color: var(--navy);
    margin-bottom: 1rem;
    position: relative;
}
.section-title.center::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--orange);
    margin: 10px auto;
    border-radius: 2px;
}

.stats-grid {
    display: flex;
    gap: 3rem;
    margin-top: 2rem;
    border-top: 1px solid #e2e8f0;
    padding-top: 1.5rem;
}
.stat-item strong { display: block; font-size: 2rem; color: var(--blue); }
.stat-item span { font-size: 0.8rem; text-transform: uppercase; color: #64748b; }

/* =========================================
   7. SERVICES SECTION
   ========================================= */
.card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #f1f5f9;
    transition: 0.3s;
}
.card:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0,0,0,0.05); }

.icon-box {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}
.icon-box.blue { background: #eff6ff; color: var(--blue); }
.icon-box.orange { background: #ffedd5; color: var(--orange); }
.icon-box.green { background: #dcfce7; color: #16a34a; }

.card h3 { margin-bottom: 0.5rem; color: var(--navy); }
.card p { font-size: 0.9rem; color: #64748b; }

/* =========================================
   8. KATALOG SECTION
   ========================================= */
.badge-text { color: var(--orange); font-weight: 700; font-size: 0.8rem; letter-spacing: 1px; }
.link-arrow { color: var(--blue); text-decoration: none; font-weight: 600; }
.link-arrow:hover { text-decoration: underline; }

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #f1f5f9;
    transition: 0.3s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}
.product-card:hover { transform: translateY(-5px); box-shadow: 0 20px 25px rgba(0,0,0,0.1); }

.prod-img {
    height: 250px;
    overflow: hidden;
    position: relative;
}
.prod-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}
.product-card:hover .prod-img img { transform: scale(1.1); }

.tag {
    position: absolute;
    top: 15px;
    right: 15px;
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}
.tag.orange { background: var(--orange); }
.tag.green { background: #22c55e; }

.prod-desc { padding: 1.5rem; }
.prod-desc h3 { color: var(--navy); margin-bottom: 0.5rem; }

/* =========================================
   9. CONTACT FORM (FORMULIR)
   ========================================= */
.contact-text { flex: 1; }
.contact-text h2 { font-size: 2.5rem; margin-bottom: 1rem; }
.contact-text p { color: #cbd5e1; margin-bottom: 2rem; font-size: 1.1rem; }

.c-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
    font-weight: 600;
}
.c-item i {
    color: var(--orange);
    background: rgba(255,255,255,0.1);
    padding: 10px;
    border-radius: 8px;
}

.contact-form {
    flex: 1;
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    color: var(--navy);
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}
.contact-form h3 { margin-bottom: 1.5rem; }

.form-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.input-wrap { margin-bottom: 1rem; }
.input-wrap.full { width: 100%; grid-column: 1 / -1; }

.input-wrap label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: #64748b;
    text-transform: uppercase;
}

input, textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.9rem;
    outline: none;
    transition: 0.3s;
}
input:focus, textarea:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px #dbeafe;
}

.btn-submit {
    width: 100%;
    background: linear-gradient(to right, var(--orange), #ef4444);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: 0.3s;
    margin-top: 1rem;
}
.btn-submit:hover { transform: scale(1.02); }

/* =========================================
   10. FAQ / EDUKASI
   ========================================= */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { border: 1px solid #e2e8f0; border-radius: 8px; margin-bottom: 1rem; overflow: hidden; }

.faq-btn {
    width: 100%;
    padding: 1.5rem;
    text-align: left;
    background: #f8fafc;
    border: none;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
    color: var(--navy);
}
.faq-btn:hover { background: #f1f5f9; }

.faq-content {
    padding: 1.5rem;
    background: white;
    border-top: 1px solid #e2e8f0;
    display: none;
    color: #475569;
    font-size: 0.9rem;
}
.faq-content.active { display: block; }

.fa-chevron-down { transition: 0.3s; }
.rotate { transform: rotate(180deg); }

/* =========================================
   11. FOOTER
   ========================================= */
footer { background: #020617; color: #94a3b8; padding: 4rem 0 0; }

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid #1e293b;
}

.footer-col h3 { color: white; margin-bottom: 1.5rem; font-size: 1.3rem; }
.footer-col h4 { color: white; margin-bottom: 1.5rem; font-size: 1.1rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.8rem; font-size: 0.9rem; display: flex; gap: 10px; align-items: center; }
.footer-col i { color: var(--orange); }

.footer-bottom {
    text-align: center;
    padding: 1.5rem 0;
    font-size: 0.8rem;
    color: #64748b;
}

/* =========================================
   12. FLOATING WA
   ========================================= */
.wa-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    box-shadow: 0 4px 10px rgba(37,211,102,0.4);
    animation: bounce 2s infinite;
    z-index: 9999;
}
@keyframes bounce { 
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);} 
    40% {transform: translateY(-10px);} 
    60% {transform: translateY(-5px);} 
}

/* =========================================================
   13. RESPONSIVE / MEDIA QUERIES (HP & TABLET)
   ========================================================= */

/* A. LAYAR BESAR (Laptop) */
@media (min-width: 769px) {
    .top-bar { display: block; }
    .btn-nav { display: inline-block; }
    .mobile-menu { display: none !important; } /* Pastikan menu HP mati */
}

/* B. LAYAR KECIL (HP) - PERUBAHAN UTAMA DISINI */
@media (max-width: 768px) {
    
    /* 1. Reset Flexbox jadi Column (Turun ke bawah) */
    .flex-row { 
        flex-direction: column; 
        text-align: center; 
        gap: 3rem; 
    }
    
    /* 2. Hero Section */
    .hero { padding: 3rem 0; }
    .hero h1 { font-size: 2.2rem; }
    .hero-buttons { justify-content: center; }
    
    /* 3. Grid jadi 1 Kolom */
    .grid-3 { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
    .footer-col li { justify-content: center; }
    
    /* 4. Sembunyikan elemen Desktop */
    .nav-links, .btn-nav, .hide-mobile { display: none; }
    .mobile-toggle { display: block; }
    
    /* 5. Menu Mobile Style */
    .mobile-menu { 
        display: none; 
        background: white; 
        padding: 1rem; 
        border-top: 1px solid #f1f5f9; 
        position: absolute; 
        top: 100%; 
        left: 0; 
        width: 100%; 
        box-shadow: 0 10px 10px rgba(0,0,0,0.05); 
        flex-direction: column; 
    }
    .mobile-menu.active { display: flex; }
    .mobile-menu a { 
        padding: 12px 0; 
        color: #475569; 
        text-decoration: none; 
        font-weight: 600; 
        border-bottom: 1px solid #f8fafc; 
        text-align: center; 
    }
    .mobile-menu a.highlight { 
        color: white; 
        background: var(--navy); 
        border-radius: 8px; 
        margin-top: 10px; 
        border: none; 
    }
    
    /* 6. FIX FORMULIR CILIK (SOLUSI FINAL) */
    .contact-form { 
        width: 100%; /* Paksa lebar penuh 100% container */
        padding: 1.5rem; 
    }
    
    /* Grid input jadi 1 kolom di HP */
    .form-group { grid-template-columns: 1fr; }
    
    /* Inputan digedhekno ben enak dipencet */
    input, textarea { 
        padding: 14px; 
        font-size: 16px; /* Font size 16px ben iPhone gak nge-zoom */
    }
}