/* =========================================
   1. GLOBAL & RESET
   ========================================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html { scroll-behavior: smooth; }

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #f5f5f5;
    color: #111827;
    line-height: 1.5;
}

main {
    max-width: 1500px;
    margin: 0 auto;
    padding: 1.8rem 1.5rem 3rem;
}

/* =========================================
   2. HEADER & NAV
   ========================================= */
header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: .8rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 50;
    color: #111827;
}

.logo img.logo-img {
    height: 32px;
    width: auto;
    display: block;
}

.logo {
    font-weight: 800;
    letter-spacing: .08em;
    font-size: 1rem;
    text-transform: uppercase;
    color: #2563eb;
}

nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .5rem 1.5rem;
}

nav a {
    text-decoration: none;
    color: #4b5563;
    font-size: .9rem;
    position: relative;
    padding-bottom: .15rem;
}

nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: #2563eb;
    transition: width .2s ease;
}

nav a:hover { color: #111827; }
nav a:hover::after { width: 100%; }

.lang-switch {
    display: flex;
    gap: .35rem;
    margin-left: .75rem;
}

.lang-btn {
    padding: .25rem .65rem;
    border-radius: 9999px;
    border: 1px solid #d1d5db;
    background: transparent;
    color: #4b5563;
    font-size: .75rem;
    cursor: pointer;
}
.lang-btn.active {
    background: #2563eb;
    border-color: #2563eb;
    color: #f9fafb;
}

/* =========================================
   3. HERO SLIDER (Overlay Gelap)
   ========================================= */
.hero { margin-bottom: 3rem; }

.hero--full {
    border-radius: 2.5rem 0 2.5rem 2.5rem;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(15,23,42,0.35);
    background: transparent;
}

.hero-slider {
    position: relative;
    height: calc(100vh - 120px);
    min-height: 420px;
    max-height: 620px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}
.hero-slide.active { opacity: 1; }

/* Overlay Gradient Gelap */
.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
    z-index: 1; 
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    left: 3.5rem;
    top: 3.5rem;
    max-width: 460px;
    color: #ffffff;
    z-index: 2;
    text-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.hero-left-eyebrow {
    font-size: .85rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #60a5fa;
    letter-spacing: .16em;
    margin-bottom: .4rem;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: .7rem;
    letter-spacing: .02em;
}
.hero-title span { display: block; }

.hero-subtitle {
    font-size: .95rem;
    color: #e5e7eb;
    margin-bottom: 1.3rem;
}

.hero-dots {
    position: absolute;
    right: 1.4rem;
    bottom: 1.1rem;
    display: flex;
    gap: .35rem;
    z-index: 2;
}

.hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 9999px;
    border: 1px solid #e5e7eb;
    opacity: .7;
    background: transparent;
}
.hero-dot.active {
    background: #f9fafb;
    opacity: 1;
}

.btn-primary {
    display: inline-block;
    padding: .8rem 1.8rem;
    border-radius: 9999px;
    background: #2563eb;
    color: #f9fafb;
    font-weight: 600;
    font-size: .95rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background .2s;
}
.btn-primary:hover { background: #1d4ed8; }

.hero-caption {
    position: absolute;
    left: 1.4rem;
    bottom: 1.2rem;
    background: rgba(15,23,42,0.75);
    padding: .65rem .95rem;
    border-radius: .9rem;
    font-size: .8rem;
    color: #e5e7eb;
    max-width: 420px;
    z-index: 2;
}

/* =========================================
   4. GENERAL SECTIONS
   ========================================= */
.section { margin-bottom: 3rem; scroll-margin-top: 70px; }

.section-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.card {
    background: white;
    border-radius: .9rem;
    padding: 1rem 1.2rem;
    box-shadow: 0 4px 12px rgba(15,23,42,0.08);
    font-size: .9rem;
}

.card-icon {
    font-size: 2rem;
    margin-bottom: .5rem;
}

.card-title {
    font-weight: 700;
    margin-bottom: .35rem;
    color: #f97316;
}

.two-col {
    display: grid;
    grid-template-columns: 1.2fr 1.8fr;
    gap: 1.5rem;
}

/* =========================================
   5. ABOUT SECTION (ASLI)
   ========================================= */
.about-wrapper {
    display: grid;
    /* Ratio Asli */
    grid-template-columns: 1.2fr 1.8fr; 
    gap: 2rem;
    margin-top: 1.5rem;
    align-items: start;
}

.about-photo img {
    width: 100%;
    /* Tinggi bebas mengikuti gambar */
    height: auto; 
    border-radius: 1rem;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    object-fit: cover;
}

.about-text p {
    font-size: .95rem;
    margin-bottom: .9rem;
    color: #374151;
}

.about-subtitle {
    font-weight: 700;
    margin-top: 1rem;
    margin-bottom: .3rem;
    color: #f97316;
}

.about-right { margin-top: 3rem; }
.about-card-icon {
    font-size: 2rem;
    margin-bottom: .5rem;
}

/* =========================================
   6. FLEET SECTION
   ========================================= */
.fleet-section { text-align: center; }

.fleet-category-label {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.2rem;
    font-weight: 600;
    color: #2d2d2d;
}

.fleet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.fleet-card {
    background: white;
    border-radius: 1.2rem;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,0.10);
    transition: .25s ease;
    text-align: center;
}
.fleet-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.15);
}

.fleet-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    /* Zoom effect */
    transform: scale(1.35);
    transform-origin: center center;
    margin-bottom: 10px;
}

.fleet-card-title {
    font-weight: 700;
    padding: .7rem 0 .9rem;
    color: #f97316;
}

/* =========================================
   7. NETWORK / MAP SECTION
   ========================================= */
#network { scroll-margin-top: 50px; }

.network-section {
    padding: 40px 20px;
    position: relative;
    overflow: hidden;
}

.network-wrapper {
    display: flex;
    gap: 25px;
    align-items: flex-start;
    margin-top: 20px;
}

.network-map-container { flex: 2; }
.network-description { 
    flex: 1; 
    font-size: 15px; 
    line-height: 1.55; 
}

#map, .leaflet-container {
    width: 100%;
    height: 420px;
    border-radius: 12px;
    overflow: hidden;
    z-index: 1 !important;
    position: relative !important;
}

.map-wrapper {
    background: #e5e7eb;
    padding: 1rem;
    border-radius: 1.2rem;
    margin-bottom: 2rem;
}

/* =========================================
   8. CONTACT SECTION (POSISI DISESUAIKAN)
   ========================================= */
.contact-grid {
    display: grid;
    /* UBAH DARI 2fr JADI 1.5fr.
       Ini membuat alamat tetap dominan, tapi formulir (Kanan) bergeser lebih ke kiri. */
    grid-template-columns: 1.5fr 1fr; 
    gap: 2rem;
    align-items: start;
}

.contact-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%; 
}

.contact-logo {
    width: 300px;
    height: auto;
    margin-bottom: 5px;
}

.contact-info p { margin: 6px 0; }

.contact-company {
    font-weight: 700;
    color: #f97316;
    font-size: 1rem;
}

/* Cabang Surabaya & Jakarta (Kiri-Kanan) */
.contact-branches {
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 20px;
    margin-top: 15px;
}

.branch { padding: 10px 0; }

.branch-title {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 6px;
    color: #f97316;
}

.branch p {
    font-size: .9rem;
    color: #4b5563;
    line-height: 1.5;
    margin: 4px 0;
}

.contact-email {
    margin-top: 18px;
    font-size: .9rem;
    color: #374151;
}

/* Form Kontak */
.contact-form {
    background: white;
    border-radius: .9rem;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(15,23,42,0.08);
    min-width: 300px; 
    flex: 1;
}

.field { margin-bottom: 1rem; }

.field label {
    font-size: .85rem;
    font-weight: 600;
    margin-bottom: .4rem;
    display: block;
    color: #374151;
}

.field input,
.field textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: .9rem;
    font-family: inherit;
}

.field textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-form .btn-primary {
    width: 100%; 
    margin-top: 8px;
}

/* =========================================
   9. FOOTER & FLOATING
   ========================================= */
footer {
    border-top: 1px solid #e5e7eb;
    padding: 1.2rem 1.5rem;
    font-size: .8rem;
    text-align: center;
    color: #6b7280;
    background: #f9fafb;
    margin-top: 4rem;
}

.whatsapp-float {
    position: fixed;
    right: 18px;
    bottom: 18px;
    background: #25D366;
    color: white;
    padding: .55rem .9rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    gap: .4rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
    z-index: 60;
    text-decoration: none;
}
.whatsapp-float-circle {
    width: 26px;
    height: 26px;
    border-radius: 9999px;
    border: 2px solid #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-top-btn {
    position: fixed;
    left: 18px;
    bottom: 18px;
    width: 38px;
    height: 38px;
    border-radius: 9999px;
    border: none;
    background: #111827;
    color: #f9fafb;
    font-size: 18px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
    z-index: 60;
}
.scroll-top-btn.show { display: flex; }

/* =========================================
   10. RESPONSIVE (MOBILE)
   ========================================= */
@media (max-width: 900px) {
    main { padding-inline: 1rem; }
    .hero-slider { height: 420px; max-height: 420px; }
    .hero-overlay { left: 1.5rem; top: 1.5rem; max-width: 80%; }
    .hero-title { font-size: 2.1rem; }
    
    .about-wrapper { grid-template-columns: 1fr; }
    
    /* Contact stack ke bawah jika layar sedang */
    .contact-grid {
        grid-template-columns: 1fr; 
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    header { flex-wrap: wrap; gap: .75rem; }
    nav { width: 100%; }
    .whatsapp-float span.text { display: none; }
    
    .two-col,
    .contact-grid,
    .contact-branches {
        grid-template-columns: 1fr;
    }

    .network-wrapper { flex-direction: column; }
    .contact-logo { width: 200px; }
}