/* ==========================================================================
   1. RESET & DASAR
   ========================================================================== */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: 'Inter', sans-serif; 
}

body { 
    line-height: 1.6; 
    color: #333; 
    background: #fff;
}

.container { 
    width: 90%; 
    max-width: 1200px; 
    margin: 0 auto; 
}

/* ==========================================================================
   2. HEADER & NAVIGATION
   ========================================================================== */
header {
    background: #fff;
    padding: 10px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img { 
    height: 60px; 
    width: auto; 
    display: block; 
}

nav ul { 
    list-style: none; 
    display: flex; 
    align-items: center; 
    gap: 25px; 
}

/* KUNCI PERBAIKAN: Agar dropdown menempel ke menu induk */
nav ul li {
    position: relative;
    padding: 15px 0; /* Memberi ruang agar hover lebih stabil */
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 15px;
    transition: 0.3s;
}

nav ul li a:hover {
    color: #007bff;
}

/* ==========================================================================
   3. DROPDOWN MENU (PERBAIKAN TOTAL)
   ========================================================================== */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%; /* Pas di bawah tulisan Produk */
    left: 0;
    background: #fff;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
    border-radius: 4px;
    padding: 10px 0;
    border-top: 3px solid #007bff;
    z-index: 2000; /* Pastikan di atas elemen lain */
    list-style: none;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    padding: 0; /* Reset padding li di dalam dropdown */
    width: 100%;
}

.dropdown-menu li a {
    padding: 12px 20px;
    display: block !important;
    font-weight: 500;
    font-size: 14px;
    color: #333;
    width: 100%;
}

.dropdown-menu li a:hover {
    background: #f8f9fa;
    color: #007bff;
}

/* ==========================================================================
   4. HERO SECTION
   ========================================================================== */
.hero {
    position: relative;
    min-height: 550px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    background: #222 url('banner-bg.jpg') no-repeat center center/cover;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero .container { position: relative; z-index: 2; }

.hero h2 { font-size: 3rem; margin-bottom: 20px; font-weight: 700; }

.btn {
    display: inline-block;
    background: #007bff;
    color: #fff;
    padding: 15px 35px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: 0.3s;
}

.btn:hover { background: #0056b3; transform: scale(1.05); }

/* ==========================================================================
   5. FORM KONSULTASI (REVISI TIMBUL & CENTER)
   ========================================================================== */

.consultation {
    padding: 80px 20px;
    background-color: #f4f7fa; /* Warna latar agak kontras agar kotak putih menonjol */
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Judul & Deskripsi di Tengah */
.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h3 {
    font-size: 32px;
    color: #003d82;
    margin-bottom: 12px;
    font-weight: 700;
}

.section-header p {
    color: #666;
    font-size: 16px;
}

/* KOTAKAN TIMBUL (Card Look) */
#clarionForm {
    max-width: 800px;
    width: 100%;
    background: #ffffff;
    padding: 45px;
    border-radius: 25px; /* Sudut membulat modern */
    
    /* Efek Bayangan Timbul */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08), 
                0 5px 15px rgba(0, 0, 0, 0.04);
    
    border: 1px solid rgba(0, 0, 0, 0.02);
    margin: 0 auto;
}

/* Baris Input */
.form-row {
    display: flex;
    gap: 25px;
    margin-bottom: 25px;
}

.input-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.input-group label {
    font-weight: 600;
    margin-bottom: 10px;
    color: #444;
    font-size: 14px;
}

/* Styling Input & Select */
.input-group input, 
.input-group select, 
.input-group textarea {
    padding: 14px 18px;
    border: 1.5px solid #e1e8ef;
    border-radius: 12px;
    font-size: 15px;
    background-color: #fdfdfd;
    transition: all 0.3s ease;
}

.input-group input:focus, 
.input-group select:focus, 
.input-group textarea:focus {
    border-color: #007bff;
    outline: none;
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.1);
}

/* Tombol WhatsApp Premium */
.btn-submit {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.5px;
    cursor: pointer;
    margin-top: 15px;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
    transition: all 0.3s ease;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    filter: brightness(1.1);
}

/* Perbaikan Mobile Form */
@media (max-width: 600px) {
    .form-row {
        flex-direction: column;
        gap: 20px;
    }
    #clarionForm {
        padding: 25px;
    }
}

/* ==========================================================================
   6. FOOTER & WA FLOAT
   ========================================================================== */
footer { background: #222; color: white; padding: 50px 0; text-align: center; }

.wa-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25d366;
    color: #fff;
    padding: 15px 25px;
    border-radius: 50px;
    text-decoration: none;
    z-index: 3000;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: 0.3s;
}

.wa-float:hover { transform: translateY(-5px); background: #20b858; }

/* ==========================================================================
   7. RESPONSIVE (MOBILE)
   ========================================================================== */
@media (max-width: 768px) {
    header .container { flex-direction: column; padding: 10px 0; }
    nav ul { gap: 10px; padding-top: 10px; flex-wrap: wrap; justify-content: center; }
    
    .form-row, .about-grid { grid-template-columns: 1fr; }
    
    .hero h2 { font-size: 2rem; }
    
    /* Dropdown di mobile agar tidak menutupi menu lain */
    .dropdown-menu { position: static; width: 100%; box-shadow: none; border: 1px solid #eee; }
}
/* ==========================================================================
   8. HALAMAN KONTAK
   ========================================================================== */
.contact-section { 
    padding: 80px 0; 
    background: #f9f9f9; 
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    align-items: start;
}

.contact-info h2 { 
    font-size: 2.5rem; 
    color: #333; 
    margin-bottom: 15px; 
}

.contact-info p { 
    color: #666; 
    margin-bottom: 30px; 
}

.info-card {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.info-item:last-child { margin-bottom: 0; }

.info-item .icon {
    font-size: 1.5rem;
    background: #e7f3ff;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #007bff;
}

.info-item h4 {
    margin-bottom: 5px;
    color: #333;
    font-size: 1.1rem;
}

.info-item p {
    margin-bottom: 0;
    color: #666;
    font-size: 0.95rem;
}

.contact-map iframe {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Responsif Kontak */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-info h2 { font-size: 2rem; text-align: center; }
    .contact-info p { text-align: center; }
}
/* ==========================================================================
   9. HALAMAN CUSTOMER
   ========================================================================== */
.customer-hero { padding: 80px 0; text-align: center; background: #f0f7ff; }
.customer-hero h1 { font-size: 2.5rem; color: #007bff; margin-bottom: 15px; }
.customer-hero p { max-width: 800px; margin: 0 auto; color: #555; }

.section-title { text-align: center; margin-bottom: 40px; font-size: 2rem; }

/* Stats */
.stats-section { padding: 50px 0; background: #007bff; color: white; text-align: center; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.stat-item h2 { font-size: 3rem; margin-bottom: 5px; }

/* Testimonials */
.testimonials { padding: 80px 0; }
.testimonial-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.testi-card { background: #fff; padding: 30px; border-radius: 15px; border-left: 5px solid #007bff; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }

/* Galeri Pemasangan */
.pemasangan { padding: 80px 0; background: #fff; }
.category-block { margin-bottom: 50px; }
.category-block h3 { margin-bottom: 20px; color: #333; border-bottom: 2px solid #eee; padding-bottom: 10px; }
.image-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.image-grid img { width: 100%; border-radius: 10px; transition: 0.3s; cursor: pointer; }
.image-grid img:hover { transform: scale(1.03); }

/* LOGO SLIDER (Scrolling) */
.logo-slider { padding: 80px 0; background: #f9f9f9; overflow: hidden; }
.slider-container { width: 100%; overflow: hidden; position: relative; }
.logo-track {
    display: flex;
    width: calc(250px * 10); /* Sesuaikan jumlah logo */
    animation: scroll 20s linear infinite;
    gap: 50px;
    align-items: center;
}
.logo-track img { width: 150px; height: auto; transition: 0.3s; }
.logo-track img:hover { filter: grayscale(0%); opacity: 1; }

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-250px * 5)); }
}

/* Responsive */
@media (max-width: 768px) {
    .stats-grid, .testimonial-grid, .image-grid { grid-template-columns: 1fr; }
    .logo-track img { width: 120px; }
}
