/*
 * Perbaikan layout template yang berlaku lintas halaman (2026-11-12).
 * Dimuat di resources/views/whatscrmhub/layout.blade.php setelah style.min.css.
 */

/* ── Kartu harga Custom & Enterprise (.pricing-card.style-two) ──────────────
   Template memberi .category lebar fix 200px, jadi label panjang
   ("Custom Development & Enterprise") pecah keluar pill. Kolom kanan juga
   tanpa ruang napas: harga + keterangan sejajar dan tombol menempel ke tepi. */
.pricing-card.style-two .inner-box { padding: 44px 48px; }
.pricing-card.style-two .category { width: auto; display: inline-block; white-space: nowrap; padding: 0 22px; }
.pricing-card.style-two .subtitle { margin-top: 18px; }
.pricing-card.style-two .best-offer,
.pricing-card.style-two .price-area { margin: 0 !important; width: 100%; max-width: 100%; }
.pricing-card.style-two .price-area .price { font-size: 52px; line-height: 1.1; }
.pricing-card.style-two .price-area .price span { display: block; margin: 8px 0 0; font-size: 15px; }
.pricing-card.style-two .get-started { width: 100%; box-sizing: border-box; }
@media (max-width: 991.98px) {
    .pricing-card.style-two .inner-box { padding: 28px 22px; }
    .pricing-card.style-two .category { white-space: normal; }
    .pricing-card.style-two .best-offer { margin-top: 24px !important; }
    .pricing-card.style-two .price-area .price { font-size: 40px; }
}

/* ── Daftar fitur kartu harga (.features-list) ─────────────────────────────
   Gaya demo template: item ke-3 dst. dibuat pudar (20% putih) dan semua item
   bergaris bawah — terbaca seolah fitur itu TIDAK termasuk. Semua fitur di
   kartu kita memang termasuk, jadi semuanya tampil penuh tanpa garis bawah. */
.pricing-card .features-list li {
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    line-height: 1.45;
    margin-bottom: 14px;
    position: relative; /* ikon absolute menempel ke tiap li, bukan ke ul */
}
.pricing-card .features-list li .icon { background-color: #fff; color: #04140d; top: 2px; }
.pricing-card .features-list li:hover { text-decoration: none; }
[dir="rtl"] .pricing-card .features-list { text-align: right; }
[dir="rtl"] .pricing-card .features-list li { padding-left: 0; padding-right: 28px; }
[dir="rtl"] .pricing-card .features-list .icon { left: auto; right: 0; }

/* ── Logo header ───────────────────────────────────────────────────────────
   Template mengizinkan logo sampai 170px; logo kita (ikon + teks 2 baris)
   jadi mendominasi header. Dikecilkan; sticky header 48px. */
.main-header .header-lower .logo img { max-height: 58px; width: auto; }
/* Semua <img> logo punya atribut width/height (480x192) untuk CLS; tanpa
   width:auto, rule max-height template bikin logo gepeng (sticky, mobile menu). */
.logo img, .nav-logo img { width: auto; height: auto; }
.sticky-header .logo img { max-height: 48px; }
@media (max-width: 991.98px) {
    .main-header .header-lower .logo img { max-height: 46px; }
}


/* ══ HP (≤767px) — pola LP MDH, 2026-11-18 ═════════════════════════════════
   Audit di layar 390px: tidak ada tombol WA di header (tema menyembunyikan
   .header-btn-main), H1 halaman dalam 50px, jarak bawah judul 130px, logo
   klien satu per layar. Semua aturan di sini hanya untuk HP. */
.sticky-header .sticky-wa { display: none; }

@media (max-width: 767.98px) {
    /* Tombol WA selalu terlihat: header atas & sticky header */
    .main-header.header-style-one .header-lower .header-btn-main {
        display: inline-flex !important; align-items: center; min-height: 40px;
        padding: 8px 14px; font-size: 14px; line-height: 1; white-space: nowrap;
    }
    .sticky-header .sticky-wa {
        display: inline-flex; align-items: center; min-height: 36px; margin-inline-end: 8px;
        padding: 6px 12px; border-radius: 999px; background: #02df82; color: #04140e;
        font-size: 13px; font-weight: 700; line-height: 1; white-space: nowrap; text-decoration: none;
    }
    .sticky-header .sticky-wa:hover, .sticky-header .sticky-wa:focus { color: #04140e; }

    /* Judul */
    .page-title { padding-top: 32px; padding-bottom: 48px; }
    .page-title .title { font-size: 32px; line-height: 1.2; }
    .sec-title .title { font-size: 24px; line-height: 1.3; }
    .sec-title { margin-bottom: 28px; }

    /* Jarak antar-section */
    .clients-section { padding: 40px 0; }
    .testimonial-section-layout1,
    .pricing-table-section-h1,
    .faqs-section-layout1,
    .cta-section-layout1 { padding-bottom: 48px; }

    /* Logo klien: tinggi seragam, bukan satu logo memenuhi layar */
    .clients-section .swiper-slide img { max-height: 44px; width: auto; margin: 0 auto; display: block; }

    /* Kartu harga: padding lebih hemat */
    .pricing-card .inner-box { padding: 28px 20px 22px; border-radius: 24px; }
}

@media (max-width: 380px) {
    .main-header.header-style-one .header-lower .header-btn-main { padding: 8px 10px; font-size: 13px; }
    .page-title .title { font-size: 28px; }
}


/* ══ HP (≤767px) — revisi 2026-11-18 (cek di HP) ═══════════════════════════ */
@media (max-width: 767.98px) {
    /* 1. Jarak pilihan bahasa ↔ tombol Talk To Us di header atas */
    .main-header.header-style-one .header-lower .action-box { display: flex; align-items: center; gap: 10px; }
    .main-header.header-style-one .header-lower .header-btn { margin: 0; }

    /* 2. Logo klien: tiap logo dibatasi lebar slotnya (dulu logo lebar seperti
          CRM.AI melebihi slot dan menabrak tetangganya) */
    .clients-section .swiper-slide { display: flex; align-items: center; justify-content: center; height: 48px; padding: 0 6px; box-sizing: border-box; }
    .clients-section .swiper-slide img { max-width: 100%; max-height: 32px; width: auto; height: auto; object-fit: contain; }

    /* 3. Homepage: kartu jadi 2 kolom supaya tidak perlu scroll panjang.
          Isi diringkas (ikon, judul, teks) tanpa membuang pesan.
          Jumlah ganjil → kartu terakhir selebar penuh. */
    .problem-section .row.g-4,
    .ai-flow.row,
    .package-section .row.g-4,
    .how-section .row.g-4,
    .biz-start ol.row { --bs-gutter-x: 12px; --bs-gutter-y: 12px; }

    .problem-section .row.g-4 > [class*="col-"],
    .ai-flow.row > li,
    .package-section .row.g-4 > [class*="col-"],
    .how-section .row.g-4 > [class*="col-"],
    .biz-start ol.row > li { flex: 0 0 50%; max-width: 50%; }

    .problem-section .row.g-4 > [class*="col-"]:last-child:nth-child(odd),
    .how-section .row.g-4 > [class*="col-"]:last-child:nth-child(odd),
    .biz-start ol.row > li:last-child:nth-child(odd) { flex-basis: 100%; max-width: 100%; }

    /* Kartu masalah ("Hot prospects…") — gaya inline, jadi pakai !important */
    .problem-card { padding: 14px !important; border-radius: 16px !important; }
    .problem-card > .d-flex { margin-bottom: 10px !important; gap: 6px; }
    .problem-card > .d-flex > div:first-child { width: 36px !important; height: 36px !important; border-radius: 10px !important; }
    .problem-card > .d-flex > div:first-child i { font-size: 15px !important; }
    .problem-card > .d-flex > span { font-size: 9px !important; padding: 2px 8px !important; letter-spacing: .3px !important; }
    .problem-card .title { font-size: 15px !important; line-height: 1.3; }
    .problem-card .text { font-size: 12.5px !important; line-height: 1.5; }

    /* Alur AI ("Capture every lead…"). Diawali .ai-flow-section karena CSS
       inline index.blade dimuat SETELAH file ini dan memakai selector setara. */
    .ai-flow-section .ai-flow__card { padding: 14px; border-radius: 16px; }
    .ai-flow-section .ai-flow__card > .d-flex { margin-bottom: 10px !important; }
    .ai-flow-section .ai-flow__icon { width: 36px; height: 36px; border-radius: 10px; font-size: 15px; }
    .ai-flow-section .ai-flow__num { font-size: 20px; }
    .ai-flow-section .ai-flow__title { font-size: 15px; line-height: 1.3; margin-bottom: 6px; }
    .ai-flow-section .ai-flow__desc { font-size: 12.5px; line-height: 1.5; margin-bottom: 10px; }
    .ai-flow-section .ai-flow__chips { gap: 4px; }
    .ai-flow-section .ai-flow__chips li { font-size: 10px; padding: 2px 7px; }

    /* Paket agency */
    .package-card { padding: 14px !important; border-radius: 16px !important; }
    .package-card > .d-flex { margin-bottom: 10px !important; }
    .package-card .icon-wrap { width: 36px !important; height: 36px !important; border-radius: 10px !important; margin-inline-end: 8px !important; }
    .package-card .icon-wrap i { font-size: 15px !important; }
    .package-card .package-number { font-size: 20px !important; }
    .package-card .title { font-size: 15px !important; line-height: 1.3; }
    .package-card .text { font-size: 12.5px !important; line-height: 1.5 !important; }

    /* Langkah "How it works" */
    .step-card { padding: 14px !important; border-radius: 16px !important; }
    .step-card .step-number { font-size: 28px !important; margin-bottom: 8px !important; }
    .step-card .step-time { font-size: 10.5px !important; padding: 2px 8px !important; }
    .step-card .title { font-size: 15px !important; line-height: 1.3; margin-bottom: 6px !important; }
    .step-card .text { font-size: 12.5px !important; line-height: 1.5 !important; }

    /* Langkah mulai (bagian bisnis) */
    .biz-section .biz-start__title { font-size: 19px; }
    .biz-section .biz-start__step { font-size: 15px; }
    .biz-section .biz-start__desc { font-size: 12.5px; line-height: 1.5; }
}
@media (max-width: 767.98px) {
    .biz-section .biz-start { padding: 20px 16px; border-radius: 18px; }
    .biz-section .biz-start__num { width: 28px; height: 28px; font-size: 13px; margin-bottom: 6px; }
}
