/* =========================================================
   Skala tipografi global — semua halaman hanya memakai ukuran ini
   supaya ukuran font konsisten di setiap halaman.
   ========================================================= */
:root {
    --th-fs-xs: 12px;   /* badge, label kecil */
    --th-fs-sm: 14px;   /* meta, keterangan, breadcrumb */
    --th-fs-base: 16px; /* teks isi, tombol, input */
    --th-fs-md: 18px;   /* judul kartu, lead */
    --th-fs-lg: 22px;   /* harga, judul blok */
    --th-fs-xl: 28px;   /* angka besar */
    --th-fs-h2: clamp(24px, 5.6vw, 34px); /* judul section */
    --th-fs-h1: clamp(30px, 7.6vw, 48px); /* judul hero */
}

/* main.css lama memasang body 20px, sehingga teks tanpa ukuran eksplisit tampil terlalu besar */
body {
    font-size: var(--th-fs-base);
}

/* =========================================================
   Layout global frontend (header mobile + footer) — mobile first
   ========================================================= */
.th-footer {
    background: #063743;
    background: linear-gradient(180deg, #094e5d 0%, #063743 100%);
    color: rgba(255, 255, 255, .78);
    font-size: var(--th-fs-base);
    line-height: 1.6;
}

.th-footer a {
    color: rgba(255, 255, 255, .86);
    transition: color .2s ease;
}

.th-footer a:hover,
.th-footer a:focus-visible {
    color: #ff8a3d;
    text-decoration: none;
}

.th-footer-top {
    display: grid;
    gap: 32px;
    padding: 40px 0 28px;
}

.th-footer-logo {
    display: inline-block;
}

.th-footer-logo img {
    display: block;
    width: 168px;
    max-width: 100%;
    height: auto;
    margin: 0;
}

.th-footer-tagline {
    margin: 14px 0 0;
    max-width: 380px;
    color: rgba(255, 255, 255, .72);
    font-size: var(--th-fs-base);
    line-height: 1.6;
}

.th-footer-contact {
    display: grid;
    gap: 10px;
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
}

.th-footer-contact li {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    font-size: var(--th-fs-sm);
    line-height: 1.5;
}

.th-footer-contact .fa {
    margin-top: 3px;
    color: #ff8a3d;
    text-align: center;
}

.th-footer-contact a,
.th-footer-contact span {
    overflow-wrap: anywhere;
}

.th-footer-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 20px;
}

.th-footer-col h4 {
    margin: 0 0 12px;
    color: #fff;
    font-family: poppins, sans-serif;
    font-size: var(--th-fs-sm);
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.th-footer-col ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.th-footer-col li a {
    display: inline-block;
    padding: 6px 0;
    font-size: var(--th-fs-base);
    line-height: 1.4;
}

.th-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .12);
    padding: 16px 0 calc(16px + env(safe-area-inset-bottom));
}

.th-footer-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, .6);
    font-size: var(--th-fs-sm);
    line-height: 1.5;
    text-align: center;
}

/* Sticky CTA mobile disembunyikan saat footer terlihat (kelas di-set custom.js) */
.th-footer-in .th-sticky-cta.is-visible,
.th-footer-in .th-pd-bar.is-visible {
    transform: translateY(110%);
}

@media (max-width: 767.98px) {
}

@media (min-width: 576px) {
    .th-footer-nav {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 992px) {
    .th-footer-top {
        grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
        gap: 48px;
        padding: 56px 0 40px;
    }

    .th-footer-logo img {
        width: 190px;
    }

    .th-footer-bottom p {
        text-align: left;
    }
}

/* Halaman pendek / overscroll: area di bawah footer ikut warna footer, bukan putih */
html {
    background-color: #063743;
}

/* ---------- Header: menu mobile ---------- */
@media (max-width: 992px) {
    /* area tap burger 44px (handler klik ada di .burger-menu) */
    .primary-header .burger-menu {
        box-sizing: content-box;
        padding: 13px 12px;
        margin-right: -12px;
    }

    .header-right .mobile-menu-icon {
        margin-left: 8px;
    }

    .primary-header .header-menu-wrap {
        top: calc(100% + 10px);
        left: -15px;
        right: -15px;
        width: auto;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        padding: 6px 16px 14px;
        border-top: 1px solid #e1eaec;
        border-radius: 0 0 16px 16px;
        background: #fff;
        box-shadow: 0 18px 40px rgba(9, 78, 93, .18);
    }

    .primary-header .header-menu-wrap ul li,
    .primary-header .header-menu-wrap ul li:first-child {
        border-top: 0;
        border-bottom: 1px solid #eef3f4;
    }

    .primary-header .header-menu-wrap > ul > li:last-child {
        border-bottom: 0;
    }

    .primary-header .header-menu-wrap ul li > a {
        display: flex;
        align-items: center;
        gap: 8px;
        min-height: 48px;
        padding: 0 4px;
        color: #1d2b30;
        font-family: poppins, sans-serif;
        font-size: var(--th-fs-base);
        font-weight: 600;
        letter-spacing: 0;
        text-transform: none;
    }

    .primary-header .header-menu-wrap ul li > a:hover,
    .primary-header .header-menu-wrap ul li > a:focus-visible {
        color: #e8650a;
    }

    .primary-header .header-menu-wrap li li {
        padding-left: 12px;
        border-bottom: 0;
    }

    .primary-header .header-menu-wrap li li > a {
        min-height: 44px;
        color: #55666c;
        font-size: var(--th-fs-sm);
    }

    .primary-header .header-menu-wrap .dropdown-plus {
        width: 48px;
        height: 48px;
    }
}

/* ---------- Target sentuh minimal (WCAG 2.5.8) ---------- */
/* Logo header: gambar cuma setinggi ~20px, area klik dibuat 44px */
.primary-header .header-logo > a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}

/* Breadcrumb di hero halaman posisi & training */
.th-crumb a {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
}

/* Link kontak & menu footer */
.th-footer-contact a,
.th-footer-col ul a {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
}

/* ---------- Keterbacaan ---------- */
/* Placeholder kotak cari cukup kontras (CSS lama memakai abu-abu sangat pucat) */
.th-home input::placeholder {
    color: #6b7b80 !important;
    opacity: 1;
}

.th-home input::-webkit-input-placeholder {
    color: #6b7b80 !important;
}

/* Judul tidak menyisakan 1 kata di baris terakhir; paragraf menghindari kata yatim.
   Teks dibiarkan rata kiri: di layar sempit, rata kanan-kiri (justify) membuat jarak antar kata
   melebar tidak beraturan dan justru lebih sulit dibaca. */
.th-home h1,
.th-home h2,
.th-home h3 {
    text-wrap: balance;
}

.th-home p,
.th-home li {
    text-wrap: pretty;
}

/* ---------- WhatsApp sekunder: kecil & putih, tidak bersaing dengan tombol checkout ---------- */
.th-wa-mini {
    position: fixed;
    left: 20px;
    bottom: calc(20px + env(safe-area-inset-bottom));
    z-index: 980;
    display: none;
    align-items: center;
    gap: 8px;
    height: 44px;
    padding: 0 16px 0 12px;
    border: 1px solid #d6e5e8;
    border-radius: 999px;
    background: #fff;
    color: var(--th-text, #1d2b30) !important;
    font-family: poppins, sans-serif;
    font-size: var(--th-fs-sm);
    font-weight: 600;
    text-decoration: none !important;
    box-shadow: 0 6px 18px rgba(9, 78, 93, .14);
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease, border-color .2s;
}

.th-wa-mini i {
    color: #25d366;
    font-size: 20px;
}

.th-wa-mini.is-shown {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

.th-wa-mini:hover,
.th-wa-mini:focus-visible {
    border-color: #25d366;
}

/* ikon WA kecil di sticky bar HP (di samping tombol utama) */
.th-btn--wa-mini {
    width: 48px;
    min-height: 48px;
    padding: 0;
    border: 1px solid #bfe9cf;
    background: #effbf3;
    color: #25d366 !important;
    font-size: 22px;
    box-shadow: none !important;
}

.th-btn--wa-mini:hover {
    border-color: #25d366;
    background: #effbf3;
}

@media (min-width: 768px) {
    .th-wa-mini {
        display: inline-flex;
    }
}

/* Tombol/link WhatsApp di dalam isi halaman: di HP disembunyikan supaya fokus ke OJT.
   WA di HP cukup lewat ikon kecil di sticky bar & footer. */
@media (max-width: 767.98px) {
    .th-wa-body {
        display: none !important;
    }
}
