/* ================= VARIABLE & RESET ================= */
:root {
    --color-deep-blue: #002855;
    --color-bright-cyan: #40A8E0;
    --color-light-gray: #F4F7F9;
    --color-charcoal: #333333;
    --color-white: #FFFFFF;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; color: var(--color-charcoal); line-height: 1.6; font-size: 16px; overflow-x: hidden; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; height: auto; }

/* Utility */
.container { width: 90%; max-width: 1200px; margin: 0 auto; }
.section-padding { padding: 60px 0; }
.bg-light { background-color: var(--color-light-gray); }
.bg-deep-blue { background-color: var(--color-deep-blue); }
.text-white { color: var(--color-white); }
.text-center { text-align: center; }
.mt-3 { margin-top: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }

/* Typography & Button */
h1, h2, h3, h4 { color: var(--color-deep-blue); font-weight: 700; margin-bottom: 15px; }
.btn { display: inline-block; padding: 12px 25px; border-radius: 6px; font-weight: 600; text-align: center; border: 2px solid transparent; }
.btn-primary { background-color: var(--color-bright-cyan); color: white; }
.btn-primary:hover { background-color: #2b91c7; transform: translateY(-2px); }
.btn-outline-white { border-color: white; color: white; }
.btn-outline-white:hover { background: white; color: var(--color-deep-blue); }
.btn-large { padding: 15px 35px; font-size: 1.1rem; margin: 5px; }

/* ================= HEADER & NAVIGASI (UPDATED) ================= */
.header { 
    background: #fff; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
    padding: 10px 0; 
}

.header-container { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

/* ================= LOGO MODERN & RESPONSIF ================= */
.logo-img { 
    height: 100px; /* Ukuran optimal desktop agar header tidak terlalu raksasa */
    width: auto;
    display: block;
    transition: var(--transition);
    object-fit: contain;
}

/* Memastikan Header mengikuti tinggi logo tanpa berantakan */
.header-container { 
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    padding: 10px 0; /* Memberi ruang napas atas-bawah */
}

/* RESPONSIF UNTUK MOBILE */
@media (max-width: 991px) {
    .logo-img { 
        height: 70px; /* Logo tetap terlihat besar di HP, tapi tidak memenuhi layar */
    }
    
    .header-container {
        padding: 5px 0;
    }

    /* Mengatur agar tombol hamburger sejajar dengan tengah logo */
    .hamburger {
        height: 100%;
        display: flex;
        align-items: center;
    }
}

/* MENU DESKTOP */
.nav-menu { display: flex; align-items: center; }
.menu-list { display: flex; align-items: center; gap: 25px; }

.nav-link { 
    font-weight: 500; 
    color: var(--color-deep-blue); 
    position: relative; 
    padding: 10px 0;
}
.nav-link:hover, .nav-link.active { color: var(--color-bright-cyan); }

/* DROPDOWN MENU */
.dropdown { position: relative; }
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    width: 220px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 5px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: 0.3s;
    z-index: 99;
}
.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown-menu li a {
    display: block;
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
    font-size: 0.95rem;
}
.dropdown-menu li a:hover { background: var(--color-light-gray); color: var(--color-bright-cyan); }

/* HAMBURGER BUTTON (MOBILE) */
.hamburger { display: none; cursor: pointer; flex-direction: column; gap: 5px; }
.hamburger span { width: 30px; height: 3px; background: var(--color-deep-blue); border-radius: 2px; }
.mobile-cta { display: none; } /* Tombol Chat di menu mobile */

/* ================= HERO & SECTIONS ================= */
.hero {
    background: linear-gradient(rgba(0, 40, 85, 0.8), rgba(0, 40, 85, 0.7)), url('/assets/images/hero.webp');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 140px 0 100px;
    text-align: center;
}
.hero h1 { color: white; font-size: 2.8rem; line-height: 1.2; }
.hero p { font-size: 1.2rem; opacity: 0.9; margin-bottom: 30px; }

.partners-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; opacity: 0.8; }
.partners-grid img { height: 35px; width: auto; filter: grayscale(100%); transition: 0.3s; }
.partners-grid img:hover { filter: grayscale(0); opacity: 1; }

.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.service-card { background: white; padding: 30px; border-radius: 10px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); text-align: center; transition: 0.3s; }
.service-card:hover { transform: translateY(-5px); }

/* ================= TESTIMONI GRID ================= */
.testi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 25px; }
.testi-card { background: white; padding: 25px; border-radius: 10px; box-shadow: 0 3px 10px rgba(0,0,0,0.05); }
.stars { color: #FFD700; margin-bottom: 10px; }
.user { margin-top: 15px; font-size: 0.9rem; color: var(--color-deep-blue); }

/* ================= FAQ ACCORDION ================= */
.faq-wrapper { max-width: 800px; margin: 0 auto; }
.faq-item { background: white; margin-bottom: 15px; border-radius: 8px; border: 1px solid #eee; overflow: hidden; }
.faq-item summary { 
    padding: 15px 20px; 
    cursor: pointer; 
    font-weight: 600; 
    color: var(--color-deep-blue);
    list-style: none;
    position: relative;
}
.faq-item summary::after { content: '+'; position: absolute; right: 20px; font-weight: bold; }
.faq-item[open] summary::after { content: '-'; }
.faq-content { padding: 0 20px 20px; color: #555; font-size: 0.95rem; border-top: 1px solid #eee; margin-top: 10px;}

/* ================= FOOTER ================= */
.footer { background: white; border-top: 5px solid var(--color-bright-cyan); padding-top: 60px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-logo { height: 50px; margin-bottom: 15px; }
.footer-menu li { margin-bottom: 10px; }
.footer-menu li a:hover { color: var(--color-bright-cyan); padding-left: 5px; }
.footer-bottom { background: var(--color-deep-blue); color: white; padding: 20px 0; font-size: 0.9rem; }

/* ================= RESPONSIVE MOBILE (PENTING) ================= */
@media (max-width: 991px) {
    .header-cta.desktop-only { display: none; }
    .hamburger { display: flex; } /* Munculkan hamburger */
    
    .nav-menu {
        position: fixed;
        top: 80px; /* Sesuaikan tinggi header */
        right: -100%; /* Sembunyikan di kanan layar */
        width: 80%;
        height: 100vh;
        background: white;
        flex-direction: column;
        align-items: flex-start;
        padding: 30px;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transition: 0.4s ease-in-out;
    }

    .nav-menu.active { right: 0; } /* Munculkan saat active */
    
    .menu-list { flex-direction: column; width: 100%; gap: 0; }
    .menu-list li { width: 100%; border-bottom: 1px solid #f0f0f0; }
    .nav-link { display: block; padding: 15px 0; width: 100%; }
    
    /* Mobile Dropdown */
    .dropdown-menu { 
        position: static; 
        opacity: 1; 
        visibility: visible; 
        box-shadow: none; 
        transform: none; 
        width: 100%; 
        padding-left: 20px;
        background: #f9f9f9;
        display: none; /* Default hidden di mobile */
    }
    .dropdown.active .dropdown-menu { display: block; } /* Muncul jika diklik */
    
    .mobile-cta { display: block; margin-top: 20px; width: 100%; }
    .mobile-cta .btn { width: 100%; }

    .hero h1 { font-size: 2rem; }
    .logo-img { height: 50px; }
}
/* ================= PAGE HEADER ================= */
.page-header {
    padding: 80px 0;
    margin-bottom: 20px;
    background: linear-gradient(rgba(0, 40, 85, 0.9), rgba(0, 40, 85, 0.8)), url('/assets/images/hero.webp');
    background-size: cover;
    background-position: center;
}
.page-header h1 { color: white; margin-bottom: 10px; font-size: 2.5rem; }
.page-header p { opacity: 0.9; font-size: 1.1rem; }

/* ================= SERVICE DETAIL LAYOUT ================= */
.service-detail {
    display: flex;
    align-items: center;
    gap: 50px;
    justify-content: space-between;
}

/* Membalik posisi gambar dan teks (Zig Zag) */
.service-detail.reverse {
    flex-direction: row-reverse;
}

.service-content { flex: 1; }
.service-image { flex: 1; text-align: center; }

.service-image img {
    max-width: 80%;
    border-radius: 10px;
    /* Memberikan efek bayangan pada gambar */
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.1)); 
}

.check-list { margin-top: 15px; margin-bottom: 25px; }
.check-list li { margin-bottom: 8px; display: flex; align-items: center; gap: 8px; font-weight: 500; }

/* RESPONSIF UNTUK HP (Layanan) */
@media (max-width: 768px) {
    .service-detail, .service-detail.reverse {
        flex-direction: column-reverse; /* Gambar di atas, Teks di bawah */
        text-align: center;
    }
    
    .service-image img { max-width: 60%; margin-bottom: 20px; }
    
    .check-list { 
        text-align: left; 
        display: inline-block; /* Agar list tetap rapi di tengah */
    }
}
/* ================= CONTACT PAGE ================= */
.contact-wrapper {
    display: flex;
    gap: 50px;
    justify-content: space-between;
    align-items: flex-start;
}

.contact-info { flex: 1; }
.contact-form-box { 
    flex: 1; 
    background: white; 
    padding: 30px; 
    border-radius: 10px; 
    box-shadow: 0 5px 20px rgba(0,0,0,0.05); 
    border-top: 4px solid var(--color-bright-cyan);
}

.info-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.info-item .icon {
    font-size: 1.5rem;
    background: var(--color-light-gray);
    width: 50px; height: 50px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
}

.map-container iframe { border-radius: 10px; }

/* Form Styles */
.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: 500; font-size: 0.9rem; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
}
.w-100 { width: 100%; }

/* RESPONSIF HP (Kontak) */
@media (max-width: 768px) {
    .contact-wrapper { flex-direction: column; gap: 30px; }
    .contact-form-box { width: 100%; }
}
/* ================= CALCULATOR STYLES ================= */
.calculator-wrapper {
    display: flex;
    gap: 40px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    overflow: hidden;
    padding: 40px;
    border: 1px solid #eee;
}

.calc-form {
    flex: 1;
    border-right: 1px solid #eee;
    padding-right: 40px;
}

.calc-result, .calc-placeholder {
    flex: 1;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.calc-placeholder {
    text-align: center;
    color: #888;
    align-items: center;
}

.result-display {
    background: var(--color-light-gray);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    margin: 20px 0;
}

.result-display .label {
    display: block;
    font-size: 0.9rem;
    color: var(--color-charcoal);
    margin-bottom: 5px;
}

.result-display .amount {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-deep-blue);
}

.detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-weight: 500;
    color: #555;
}

.result-note {
    background: #fff8e1;
    padding: 10px;
    border-radius: 5px;
    font-size: 0.85rem;
    margin-top: 15px;
    color: #d48806;
    border-left: 3px solid #d48806;
}

.text-small { font-size: 0.9rem; color: #666; }

/* RESPONSIF HP (Kalkulator) */
@media (max-width: 768px) {
    .calculator-wrapper {
        flex-direction: column;
        padding: 20px;
    }
    .calc-form {
        border-right: none;
        padding-right: 0;
        border-bottom: 1px solid #eee;
        padding-bottom: 30px;
        margin-bottom: 30px;
    }
    .calc-result, .calc-placeholder {
        padding-left: 0;
    }
}
.footer-col p a {
    color: inherit; /* Mengikuti warna teks paragraf */
    text-decoration: none;
    transition: 0.3s;
}

.footer-col p a:hover {
    color: var(--color-secondary);
    text-decoration: underline;
}