/* style.css - FINAL FIXED VERSION */

:root {
    /* Brand Colors from Logo */
    --primary-blue: #0f3460;
    --secondary-teal: #0097a7;
    --accent-orange: #f0a500;
    
    /* Neutral Colors */
    --text-dark: #1a1a1a;
    --text-light: #555555;
    --white: #ffffff;
    --bg-light: #f8f9fa;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

/* --- Utilities --- */
.container { width: 90%; max-width: 1200px; margin: 0 auto; }
.section-padding { padding: 80px 0; }
.text-center { text-align: center; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

/* --- Buttons --- */
.btn-nav {
    background: linear-gradient(90deg, var(--secondary-teal), var(--primary-blue));
    color: white !important;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 151, 167, 0.2);
}

.btn-primary, .btn-card {
    display: inline-block;
    background-color: var(--primary-blue);
    color: white;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}
.btn-primary:hover, .btn-card:hover {
    background-color: var(--secondary-teal);
    transform: translateY(-3px);
}
.btn-card { width: 100%; margin-top: 20px; }

.btn-outline {
    display: inline-block;
    border: 2px solid var(--white);
    color: var(--white);
    padding: 10px 28px;
    border-radius: 8px;
    font-weight: 600;
    margin-left: 10px;
}
.btn-outline:hover { background: var(--white); color: var(--primary-blue); }

.btn-back {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.4);
}
.btn-back:hover { background: rgba(255,255,255,0.4); }

/* --- Header & Nav --- */
header {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 10px 0;
    backdrop-filter: blur(10px);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img { height: 75px; transition: transform 0.3s; }
.logo img:hover { transform: scale(1.05); }

.nav-links { display: flex; align-items: center; gap: 25px; }
.nav-links a { font-weight: 600; color: var(--primary-blue); font-size: 0.95rem; }
.nav-links a:hover, .nav-links a.active { color: var(--secondary-teal); }

/* --- HERO SECTION (BAGIAN YANG DIPERBAIKI) --- */
.hero {
    position: relative;
    height: 85vh; /* Tinggi banner */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    /* Inilah yang membuat background gambar muncul dengan lapisan warna biru/teal */
    background: linear-gradient(rgba(15, 52, 96, 0.85), rgba(0, 151, 167, 0.75)), url('images/hero-bg.jpg') no-repeat center center/cover;
    margin-top: -95px; /* Menarik ke atas agar berada di belakang header transparan */
    padding-top: 95px;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

/* --- Page Header (Untuk halaman lain) --- */
.page-header {
    background: linear-gradient(rgba(15, 52, 96, 0.9), rgba(0, 151, 167, 0.8)), url('images/hero-bg.jpg') no-repeat center center/cover;
    color: white;
    padding: 120px 0 80px;
    text-align: center;
}
.page-header h1 { font-size: 2.8rem; margin-bottom: 10px; }

/* --- Grids & Cards --- */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-box, .fleet-box {
    background: white;
    padding: 35px 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    border-top: 5px solid var(--secondary-teal);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.service-box:hover, .fleet-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.service-box h3, .fleet-box h3 {
    color: var(--primary-blue);
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.fleet-box img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    margin-bottom: 20px;
    filter: drop-shadow(0 5px 10px rgba(0,0,0,0.1));
}

/* --- Tables --- */
.rate-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: white;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 30px;
}
.rate-table th { background: var(--primary-blue); color: white; padding: 18px; text-align: left; font-weight: 600; }
.rate-table td { padding: 18px; border-bottom: 1px solid #eee; color: var(--text-dark); }
.rate-table tr:last-child td { border-bottom: none; }

/* --- Booking Form --- */
.booking-form-container {
    background: white;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    max-width: 900px;
    margin: -100px auto 80px;
    position: relative;
    z-index: 10;
}
.form-control {
    width: 100%; padding: 15px; border: 2px solid #eee; border-radius: 10px;
    font-family: 'Poppins', sans-serif; transition: 0.3s;
}
.form-control:focus { border-color: var(--secondary-teal); outline: none; }

/* --- Footer --- */
footer { background-color: var(--primary-blue); color: rgba(255,255,255,0.8); padding: 50px 0 30px; margin-top: 80px; }
.footer-logo { height: 50px; background-color: white; padding: 5px 15px; border-radius: 8px; margin-bottom: 25px; }

/* --- link footer --- */
.footer-links a {
    color: rgba(255, 255, 255, 0.8); /* Warna awal (Putih agak transparan) */
    margin: 0 15px;                  /* Jarak antar teks */
    text-decoration: none;           /* Hilangkan garis bawah */
    font-weight: 500;
    transition: color 0.3s ease;     /* Efek transisi halus saat berubah warna */
}

/* hover footer text */
.footer-links a:hover {
    color: #45a0ef;      /* Ganti jadi Kuning (atau warna lain yang kamu suka) */
    text-shadow: 0 0 10px rgba(68, 186, 228, 0.5); /* Efek glow/cahaya sedikit */
}

/* --- Mobile --- */
.hamburger { display: none; font-size: 1.8rem; color: var(--primary-blue); cursor: pointer; }
@media (max-width: 768px) {
    .nav-links { display: none; position: absolute; top: 100%; left: 0; width: 100%; background: white; flex-direction: column; padding: 30px; box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
    .nav-links.active { display: flex; }
    .hamburger { display: block; }
    .hero-content h1 { font-size: 2.2rem; }
    .booking-form-container { width: 95%; padding: 30px; margin-top: -50px; }
    .btn-outline { margin-left: 0; margin-top: 15px; display: block; text-align: center;}
}

.btn-yellow {
    display: inline-block;
    background-color: #FFC107; /* Warna Kuning */
    color: #333; /* Warna Teks Hitam agar kontras */
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 20px;
    transition: background 0.3s;
}

.btn-yellow:hover {
    background-color: #e0a800; /* Kuning lebih gelap saat di-hover */
    color: #000;
}

/* --- Floating Button (Kiri Bawah) --- */
.wa-float-btn {
    position: fixed;
    bottom: 20px;
    left: 20px; /* Posisi di Kiri */
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 9999;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.wa-float-btn:hover {
    transform: scale(1.1);
}

/* --- Container Widget (Popup) --- */
.wa-widget-container {
    display: none; /* Tersembunyi saat awal */
    position: fixed;
    bottom: 90px; /* Di atas tombol float */
    left: 20px; /* Sejajar dengan tombol float */
    width: 300px;
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
    z-index: 10000;
    overflow: hidden;
    font-family: 'Poppins', sans-serif;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Header Widget --- */
.wa-header {
    background-color: #1a4a80e6; /* Warna Kuning seperti contoh */
    color: white; /* Bisa diganti hitam jika ingin kontras */
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wa-header-title {
    font-weight: bold;
    font-size: 16px;
    color: #ffffff; /* Warna Teks Header */
}

.wa-close {
    cursor: pointer;
    color: #ffffff;
    font-size: 18px;
}

/* --- Body Widget --- */
.wa-body {
    padding: 20px;
    background-color: #f9f9f9;
}

.wa-message-bubble {
    background-color: white;
    padding: 15px;
    border-radius: 10px;
    font-size: 14px;
    color: #444;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    line-height: 1.5;
}

/* --- Footer Widget (Tombol Pesan) --- */
.wa-footer {
    padding: 15px;
    background-color: white;
    text-align: center;
    border-top: 1px solid #eee;
}

.btn-wa-send {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: #1a4a80e6; /* Warna Kuning Tombol */
    color: #fbfbfb;
    font-weight: bold;
    text-decoration: none;
    border-radius: 25px; /* Membuat tombol bulat lonjong */
    transition: background 0.3s;
}

.btn-wa-send:hover {
    background-color: #2978d2e6;
}

/* --- LAYOUT FITUR BARU (MOBIL DITENGAH) --- */

.features-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin-top: 30px;
}

.feature-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px; /* Jarak antar kotak atas-bawah */
}

.feature-image {
    flex: 1.2; /* Bagian tengah lebih lebar dikit */
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.feature-image img {
    width: 100%;
    max-width: 500px; /* Batasi besar mobil */
    filter: drop-shadow(0 15px 20px rgba(0,0,0,0.25)); /* Bayangan mobil agar nyata */
    transition: transform 0.3s;
}
.feature-image img:hover {
    transform: scale(1.05); /* Efek zoom dikit pas mobil disorot */
}

/* Kotak Teks */
.feature-item {
    background-color: #f8f9fa;
    padding: 25px 20px;
    border-radius: 12px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-left: 4px solid #0f3460; /* Garis pinggir pink */
    transition: transform 0.3s;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.feature-item h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

.feature-item p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

/* Ikon Centang Bulat */
.icon-check {
    min-width: 32px;
    height: 32px;
    background-color: #fff;
    border: 2px solid #0f3460;
    color: #0f3460;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* --- Responsive Layout (Untuk HP) --- */
@media (max-width: 900px) {
    .features-wrapper {
        flex-direction: column;
    }
    
    .feature-image {
        order: -1; /* Mobil pindah ke paling atas di HP */
        margin-bottom: 30px;
    }

    .feature-image img {
        max-width: 300px;
    }
}
