/* ==========================================================================
   mobile-fix.css — perbaikan tampilan mobile trukisuzubandung.com
   Dibuat 2026-08-28. Dimuat SETELAH bundle Vite (app-*.css) supaya menang
   tanpa perlu rebuild Vite (Node tidak tersedia di server).
   Diverifikasi pada viewport asli 390px (CDP device emulation), bukan
   headless window-size yang ter-clamp ~500px.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. FOOTER — bug utama.
   Bundle punya aturan .footer-grid{1fr} di @media(width<=480px), TAPI ada
   @media(width<=1024px){.footer-grid{1fr 1fr 1fr}} yang letaknya LEBIH BAWAH
   di file sehingga menang (spesifisitas sama, urutan menentukan). Akibatnya di
   HP footer tetap multi-kolom: paragraf brand pecah 2-3 kata per baris.
   Ditambah .footer-col a{line-height:1} bikin item yang wrap
   ("NLR L B MICROBUS AC") barisnya saling menempel.
   -------------------------------------------------------------------------- */
@media (max-width: 640px) {
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
        padding-bottom: 34px;
    }

    .footer-brand p {
        max-width: none;
        margin-bottom: 22px;
    }

    .footer-col h4,
    .footer-col-heading {
        margin-bottom: 12px;
    }

    /* line-height:1 di bundle bikin baris nabrak saat teks wrap */
    .footer-col p,
    .footer-col a {
        line-height: 1.45;
        margin-bottom: 0;
    }

    /* sekaligus jadikan link footer target sentuh yang layak */
    .footer-col a {
        padding: 9px 0;
    }

    .footer-enterprise {
        padding-top: 56px;
    }
}

/* --------------------------------------------------------------------------
   2. HERO — teks tidak terbaca di atas foto.
   .hero-overlay memakai gradient HORIZONTAL (transparan mulai 72%) yang
   dirancang untuk hero lebar; di layar potret teks memakai lebar penuh
   sehingga subline jatuh di area langit/truk yang terang.
   Di mobile diganti scrim vertikal + horizontal ringan.
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .hero-overlay {
        background:
            linear-gradient(180deg, #050b14e6 0%, #050b1499 30%, #050b14b3 62%, #050b14f2 100%),
            linear-gradient(100deg, #050b14cc 0%, #050b1466 55%, #0000 100%);
    }

    .hero-subline {
        color: #ffffffd9;
        text-shadow: 0 1px 12px #050b1499;
    }
}

/* --------------------------------------------------------------------------
   3. UKURAN FONT — bundle turun sampai 8-11px di mobile (kecil sekali dibaca
   di HP). Dinaikkan ke ambang yang masih nyaman tanpa merusak layout.
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
    .hero-subline { font-size: 15px; }
    .section-description { font-size: 15px; }

    .hero-eyebrow-badge { font-size: 11px; letter-spacing: 1px; padding: 5px 12px; }
    .section-eyebrow { font-size: 11px; letter-spacing: 1px; padding: 6px 12px; }
    .nav-dropdown-tag { font-size: 11px; }
    .footer-tagline { font-size: 12px; letter-spacing: .12em; }

    /* label KPI hero: bundle mengunci nowrap+ellipsis di 8px -> dibiarkan
       wrap 2 baris supaya bisa dibaca */
    .hero-kpi-label {
        font-size: 10px !important;
        letter-spacing: .3px !important;
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
        line-height: 1.25 !important;
    }

    .hero-kpi-card { align-items: center; }
}

/* --------------------------------------------------------------------------
   4. TARGET SENTUH — beberapa elemen jauh di bawah 44px.
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    /* CTA di dalam drawer menu cuma setinggi 23px */
    .mobile-nav-cta {
        min-height: 48px;
        padding: 14px 18px;
        line-height: 1.2;
        display: flex !important;
        align-items: center;
        justify-content: center;
    }

    /* logo navbar tingginya cuma 12px */
    .navbar-logo {
        padding: 12px 0;
    }

    /* judul kendaraan di kartu: link setinggi 20px */
    .truck-card-title-link {
        display: inline-block;
        padding: 4px 0;
    }

    /* chip filter di /trucks: 38px -> 44px */
    .vehicle-filter-btn {
        padding: 11px 20px;
        font-size: 14px;
    }

    /* toggle % / Rp pada kalkulator leasing: 41x26 */
    .calc-mode-btn {
        min-height: 40px;
        padding: 9px 14px;
    }

    /* dot carousel testimoni cuma 10x10 — ukuran visual dipertahankan,
       area sentuhnya yang diperluas lewat pseudo-element */
    .testimonial-dot {
        position: relative;
    }

    .testimonial-dot::after {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        width: 44px;
        height: 44px;
        transform: translate(-50%, -50%);
    }

    .testimonial-dots {
        gap: 14px;
    }
}

/* --------------------------------------------------------------------------
   5. Sapuan kedua (2026-08-28): sisa teks 11px dan tombol tutup drawer.
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
    .calc-v2-hint,
    .calc-v2-result-label,
    .calc-v2-result-sub,
    .calc-v2-breakdown-title,
    .calc-v2-disclaimer,
    .calc-v2-breakdown small,
    .testimonial-company,
    .testimonial-vehicle,
    .cert-sub,
    .dealer-type-badge,
    .comparison-cat-badge,
    .comparison-popular-pill,
    .comparison-scroll-hint,
    .map-legend-item {
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    .mobile-nav-close {
        width: 44px;
        height: 44px;
    }

    .hero-scroll-hint {
        padding: 10px;
    }
}

/* --------------------------------------------------------------------------
   6. Baris copyright di dasar halaman tertutup tombol WhatsApp/back-to-top
      yang position:fixed. Diberi ruang bawah di mobile.
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .footer-enterprise {
        padding-bottom: 84px;
    }
}

/* --------------------------------------------------------------------------
   7. HARGA di kartu kendaraan (BERLAKU SEMUA UKURAN LAYAR, bukan mobile saja).
   Bundle memberi .truck-price-hint warna merah #d71920 pada 13px — di atas
   latar gelap kontrasnya rendah dan terlihat seperti keterangan kecil, bukan
   harga. Diminta Tono: warna putih + ukuran lebih besar.
   -------------------------------------------------------------------------- */
.truck-price-hint,
.truck-price-hint-text {
    color: #ffffff;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -.4px;
    line-height: 1.2;
}

.truck-price-value {
    color: #ffffff;
    font-size: 26px;
    font-weight: 800;
}

@media (max-width: 480px) {
    .truck-price-hint,
    .truck-price-hint-text,
    .truck-price-value {
        font-size: 23px;
    }
}

/* --------------------------------------------------------------------------
   8. HERO TERLALU PADAT DI HP (laporan Tono 2026-08-28, foto layar Android).
   Diukur di 360x740: .hero-subline berakhir di y=383 dan tombol
   "Jelajahi Kendaraan" mulai persis di y=383 juga — JARAKNYA NOL, teks
   menempel ke tombol. Kartu KPI juga berdempetan (gap 6px, padding 12/10).
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .hero-headline-wrap {
        padding-top: 84px;
    }

    /* pemisah utama: teks subline vs tombol CTA */
    .hero-subline {
        margin-bottom: 28px;
    }

    .hero-action {
        gap: 12px;
    }

    .hero-btn-explore,
    .hero-btn-wa {
        min-height: 50px;
    }

    .hero-cta-wrap {
        padding-bottom: 88px;
    }

    .hero-kpi-grid {
        gap: 12px;
    }

    .hero-kpi-card {
        gap: 12px;
        padding: 16px 14px;
    }

    .hero-kpi-row {
        padding-bottom: 32px;
    }
}

/* --------------------------------------------------------------------------
   9. Bilah "Konsultasi via WhatsApp" yang menempel di dasar layar pada
   halaman detail kendaraan (.mobile-wa-button, position:fixed, tinggi 60px)
   — diminta Tono disembunyikan karena mengganggu saat membaca (2026-08-28).
   Kontak WhatsApp tetap tersedia lewat FAB bundar melayang dan tombol
   konsultasi di badan halaman. Untuk mengembalikan: hapus blok ini.
   -------------------------------------------------------------------------- */
.mobile-wa-button {
    display: none !important;
}
