/* ============================================================
   SIM TIRTA LESTARI - Gaya website publik (ringan, mobile-first)
   ============================================================ */

:root {
    --biru: #0b5fa5;
    --biru-tua: #084a82;
    --biru-muda: #e8f2fb;
    --hijau: #1a7f37;
    --hijau-muda: #e6f4ea;
    --merah: #c62828;
    --merah-muda: #fdecea;
    --kuning: #9a6700;
    --kuning-muda: #fff8e1;
    --abu: #57606a;
    --abu-muda: #f2f4f7;
    --teks: #1a1a1a;
    --putih: #fff;
    --radius: 12px;
    --tinggi-tombol: 52px;
    --tinggi-input: 52px;
}

* { box-sizing: border-box; }

body.site-body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 17px;
    line-height: 1.6;
    color: var(--teks);
    background: var(--putih);
}

h1 { font-size: 28px; margin: 0 0 12px; }
h2 { font-size: 24px; margin: 0 0 10px; }
h3 { font-size: 19px; margin: 0 0 8px; }
p { margin: 0 0 12px; }
a { color: var(--biru); }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 3px solid #1f7ac4;
    outline-offset: 2px;
}

.site-container { max-width: 980px; margin: 0 auto; padding: 0 16px; }

/* ---------- Header ---------- */
.site-header {
    background: var(--biru-tua);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 60;
}
.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 64px;
}
.site-brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.site-logo { font-size: 30px; line-height: 1; display: inline-flex; align-items: center; }
.site-name { font-weight: 800; font-size: 17px; display: block; line-height: 1.2; }
.site-sub { font-size: 12.5px; opacity: .85; display: block; }

.site-nav { display: none; }
.site-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: var(--biru-tua);
    padding: 6px 16px 16px;
    border-top: 1px solid rgba(255,255,255,.15);
    box-shadow: 0 12px 24px rgba(0,0,0,.25);
}
.site-nav a {
    color: #fff;
    text-decoration: none;
    padding: 13px 6px;
    font-size: 17px;
    border-bottom: 1px solid rgba(255,255,255,.12);
}
.site-nav a.active { font-weight: 800; color: #ffd76e; }
.site-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.15);
    color: #fff;
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 8px;
    font-size: 22px;
    line-height: 1;
    width: 48px;
    height: 48px;
    cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
    background: linear-gradient(165deg, var(--biru-tua) 0%, var(--biru) 55%, #1787c9 100%);
    color: #fff;
    text-align: center;
    padding: 44px 16px 48px;
}
.hero-icon { font-size: 54px; line-height: 1; }
.hero-title { font-size: 30px; font-weight: 800; margin: 8px 0 4px; }
.hero-address { font-size: 16px; opacity: .92; margin-bottom: 14px; }
.hero-tagline { font-size: 19px; font-weight: 600; margin-bottom: 22px; opacity: .96; }
.hero-cta { display: flex; flex-direction: column; gap: 10px; max-width: 380px; margin: 0 auto; }
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: var(--tinggi-tombol);
    padding: 12px 22px;
    border-radius: 10px;
    border: 1px solid transparent;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    line-height: 1.3;
}
.btn:hover { filter: brightness(.95); }
.btn-putih { background: #fff; color: var(--biru-tua); }
.btn-biru { background: var(--biru); color: #fff; }
.btn-hijau { background: var(--hijau); color: #fff; }
.btn-outline-putih { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-block { width: 100%; }
.btn-light { background: var(--abu-muda); color: var(--teks); border-color: #d8dee6; }
.btn-lg { min-height: 58px; font-size: 18px; }

/* ---------- Section ---------- */
.section { padding: 34px 0; }
.section-alt { background: var(--abu-muda); }
.section-title { text-align: center; margin-bottom: 4px; }
.section-sub { text-align: center; color: var(--abu); margin-bottom: 22px; }

.card {
    background: var(--putih);
    border: 1px solid #e3e8ef;
    border-radius: var(--radius);
    padding: 18px;
    margin-bottom: 14px;
    box-shadow: 0 1px 3px rgba(0,0,0,.05);
}
.card-title { font-size: 18px; font-weight: 800; margin-bottom: 8px; }

/* ---------- Statistik ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.stat-card { background: var(--putih); border: 1px solid #e7ecf2; border-radius: var(--radius); padding: 16px 12px; text-align: center; box-shadow: 0 1px 3px rgba(16,24,40,.07); }
.stat-value { font-size: 26px; font-weight: 800; color: var(--biru-tua); }
.stat-label { font-size: 14px; color: var(--abu); font-weight: 600; }

/* ---------- Form ---------- */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-weight: 700; margin-bottom: 6px; font-size: 16px; }
.form-hint { font-size: 14px; color: var(--abu); margin-top: 4px; }
.form-control {
    width: 100%;
    min-height: var(--tinggi-input);
    padding: 12px 14px;
    font-size: 17px;
    border: 2px solid #cfd8e3;
    border-radius: 10px;
    background: var(--putih);
    color: var(--teks);
    -webkit-appearance: none;
    appearance: none;
}
.form-control:focus { outline: none; border-color: var(--biru); }
textarea.form-control { min-height: 120px; resize: vertical; }
select.form-control {
    padding-right: 38px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2357606a' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}
.input-group { display: flex; gap: 10px; }
.input-group .form-control { flex: 1; }

/* ---------- Alert ---------- */
.site-alert {
    display: flex; align-items: flex-start; gap: 10px;
    border-radius: 10px; padding: 14px 16px; margin: 16px 0;
    font-size: 16px; border: 1px solid transparent;
}
.site-alert i.bi { line-height: 1.35; }
.site-alert-success { background: var(--hijau-muda); border-color: #b7dfc2; color: #0f5c26; }
.site-alert-danger { background: var(--merah-muda); border-color: #f5c6c6; color: #8f1d1d; }
.site-alert-warning { background: var(--kuning-muda); border-color: #f0e0b0; color: #6d4c00; }
.site-alert-info { background: var(--biru-muda); border-color: #c4dcf2; color: #0b4a7a; }

/* ---------- Badge ---------- */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
}
.badge-hijau { background: var(--hijau-muda); color: #0f5c26; }
.badge-merah { background: var(--merah-muda); color: #8f1d1d; }
.badge-kuning { background: var(--kuning-muda); color: #6d4c00; }
.badge-biru { background: var(--biru-muda); color: #0b4a7a; }
.badge-abu { background: var(--abu-muda); color: var(--abu); }

/* ---------- Detail ---------- */
.detail-list { margin: 0; }
.detail-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed #e3e8ef; font-size: 16px; }
.detail-row .lbl { color: var(--abu); }
.detail-row .val { font-weight: 700; text-align: right; }
.detail-row.total { border-bottom: none; border-top: 2px solid var(--teks); margin-top: 4px; padding-top: 12px; font-size: 18px; }

/* ---------- Timeline ---------- */
.timeline { position: relative; padding-left: 32px; }
.timeline::before { content: ""; position: absolute; left: 12px; top: 8px; bottom: 8px; width: 3px; background: #d8dee6; border-radius: 2px; }
.timeline-item { position: relative; margin-bottom: 16px; }
.timeline-dot {
    position: absolute; left: -32px; top: 3px;
    width: 26px; height: 26px; border-radius: 50%;
    background: var(--biru); border: 6px solid var(--biru-muda);
}
.timeline-item.done .timeline-dot { background: var(--hijau); border-color: var(--hijau-muda); }
.timeline-status { font-weight: 700; }
.timeline-meta { font-size: 14px; color: var(--abu); }

/* ---------- Footer ---------- */
.site-footer {
    background: var(--biru-tua);
    color: #fff;
    text-align: center;
    padding: 28px 16px;
    margin-top: 20px;
    font-size: 15px;
}
.site-footer p { margin-bottom: 6px; }
.site-footer-name { font-weight: 800; font-size: 17px; }
.site-footer-links a { color: #ffd76e; }

/* ---------- Nominal ---------- */
.nominal-besar { font-size: 32px; font-weight: 800; text-align: center; margin: 8px 0; }

/* ---------- Pagination ---------- */
.pagination { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; justify-content: center; }
.pagination a, .pagination span {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 46px; min-height: 46px; padding: 6px 12px;
    border: 2px solid #d8dee6; border-radius: 10px;
    font-size: 16px; font-weight: 700; text-decoration: none;
    background: var(--putih); color: var(--biru);
}
.pagination .active { background: var(--biru); color: #fff; border-color: var(--biru); }
.pagination .disabled { opacity: .5; color: var(--abu); }

/* ---------- Offline ---------- */
.offline-banner {
    position: fixed; top: 0; left: 0; right: 0;
    background: var(--merah); color: #fff;
    text-align: center; padding: 10px 16px; font-weight: 700; font-size: 15px;
    z-index: 100;
}

/* ---------- Utilitas ---------- */
.text-center { text-align: center; }
.text-muted { color: var(--abu); }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.flex { display: flex; } .items-center { align-items: center; } .justify-between { justify-content: space-between; }
.gap-1 { gap: 8px; } .gap-2 { gap: 16px; }
.w-full { width: 100%; }

/* ---------- Desktop ---------- */
@media (min-width: 900px) {
    .site-menu-toggle { display: none; }
    .site-nav { display: flex; gap: 4px; }
    .site-nav a { border-bottom: none; padding: 8px 12px; font-size: 15.5px; }
    .site-nav a.active { color: #ffd76e; }
    .hero-title { font-size: 38px; }
    .hero-cta { flex-direction: row; max-width: none; justify-content: center; }
    .stat-grid { grid-template-columns: repeat(4, 1fr); }
}
