/*
 * SIHAKI V3 — PATCH 07 | Penyegaran Tampilan Guest
 * Ruang lingkup: root / Guest; tidak diimpor pada apps/ ataupun admin/.
 * CSS sengaja tidak diminifikasi agar mudah dipelihara.
 *
 * Tujuan:
 * - Tipografi dan jarak huruf alami, tidak terlalu bold / display-oriented.
 * - Hero dan heading internal konsisten dengan situs layanan institusi.
 * - Warna identitas hijau SIHAKI, struktur dan seluruh fungsi dipertahankan.
 */

:root {
    /* Nilai warna tema eksisting tidak diganti. */
    --guest-text: #26342e;
    --guest-body-muted: #63736b;
    --guest-heading-weight: 650;
    --guest-radius: 9px;
}

/* 1. Tipografi dan ritme global */
html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    color: var(--guest-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.55;
    letter-spacing: normal;
    -webkit-font-smoothing: auto;
}

h1, h2, h3, h4, h5, h6 {
    color: inherit;
    font-family: inherit;
    font-weight: var(--guest-heading-weight);
    letter-spacing: -0.014em;
    line-height: 1.3;
}

p, li, label, input, button, select, textarea, a {
    letter-spacing: normal;
}

p {
    line-height: 1.65;
}

/* 2. Navigasi dan identitas */
.sihaki-navbar {
    min-height: 70px;
    box-shadow: 0 1px 3px rgba(17, 39, 29, 0.045);
    backdrop-filter: none;
}

.sihaki-brand-symbol {
    border-radius: 8px;
}

.sihaki-brand-copy strong,
.footer-brand strong {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: normal;
}

.sihaki-brand-copy small {
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: normal;
}

.sihaki-navbar .nav-link,
.sihaki-navbar .dropdown-item {
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 7px;
}

.sihaki-navbar .dropdown-menu {
    border-radius: 9px;
    box-shadow: 0 5px 22px rgba(17, 39, 29, 0.085);
}

.navbar-search-shortcut {
    border-radius: 8px;
    font-size: 0.85rem;
}

/* 3. Tombol dan form (semua halaman Guest) */
.btn, .btn-sm, .btn-lg {
    border-radius: 7px;
    font-weight: 600;
    letter-spacing: normal;
    box-shadow: none;
}

.btn-primary, .btn-success {
    background: var(--sihaki-primary);
    border-color: var(--sihaki-primary);
}

.btn-primary:hover, .btn-primary:focus,
.btn-success:hover, .btn-success:focus {
    background: var(--sihaki-primary-dark);
    border-color: var(--sihaki-primary-dark);
    box-shadow: none;
}

.btn:hover {
    transform: none;
}

.form-label {
    color: #3b5046;
    font-size: 0.88rem;
    font-weight: 600;
}

.form-control, .form-select {
    min-height: 44px;
    font-size: 0.93rem;
    border-radius: 7px;
}

.form-control::placeholder {
    color: #818f87;
}

/* 4. Hero halaman beranda */
.home-hero {
    /* Hijau utama dan gelap asli SIHAKI; hilangkan aksen gradient berlebihan. */
    background: linear-gradient(115deg, var(--sihaki-primary-dark) 0%, var(--sihaki-primary) 80%);
}

.home-hero-orb {
    display: none;
}

.home-hero .row.py-lg-6 {
    padding-top: 4.5rem !important;
    padding-bottom: 4.5rem !important;
}

.hero-kicker, .section-eyebrow, .eyebrow,
.page-header-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.83rem;
    font-weight: 600;
    line-height: 1.45;
    letter-spacing: normal;
    text-transform: none;
}

.hero-kicker i {
    font-size: 0.9rem;
}

.home-hero h1 {
    max-width: 730px;
    margin: 17px 0 17px;
    font-size: clamp(2.25rem, 4.1vw, 3.7rem);
    font-weight: 680;
    line-height: 1.16;
    letter-spacing: -0.024em;
    text-wrap: balance;
}

.home-hero h1 span {
    color: #f4df96;
}

.hero-lead {
    max-width: 610px;
    margin-bottom: 26px;
    color: rgba(255, 255, 255, 0.87);
    font-size: 1rem;
    line-height: 1.7;
}

.hero-search {
    border-radius: 9px;
    box-shadow: 0 4px 16px rgba(0, 29, 20, 0.09);
}

.hero-search input {
    font-size: 0.91rem;
}

.hero-trust-row {
    margin-top: 17px;
    gap: 11px 20px;
    font-size: 0.83rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.82);
}

.hero-trust-row i {
    color: #e9d27e;
}

/* Area ilustrasi tetap ada, tetapi dibuat lebih tertib. */
.hero-visual-sheet {
    transform: none;
    border-width: 3px;
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(2, 44, 31, 0.14);
}

.sheet-block {
    border-radius: 8px;
}

.hero-float {
    border-radius: 8px;
    padding: 10px 12px;
    box-shadow: 0 5px 16px rgba(3, 48, 34, 0.11);
}

.hero-float strong {
    font-weight: 700;
}

.hero-float span {
    font-size: 0.77rem;
}

.hero-visual-badge {
    display: none;
}

/* 5. Section heading dan kartu konten Beranda */
.home-section {
    padding-top: 64px;
    padding-bottom: 64px;
}

.section-title-row {
    align-items: flex-end;
    margin-bottom: 24px;
}

.section-title-row h2, .process-title, .home-cta h2 {
    margin: 9px 0 9px;
    font-size: clamp(1.65rem, 2.7vw, 2.1rem);
    font-weight: 650;
    line-height: 1.28;
    letter-spacing: -0.016em;
}

.section-title-row p, .process-description {
    max-width: 700px;
    color: var(--guest-body-muted);
    font-size: 0.97rem;
    line-height: 1.65;
}

.section-link {
    font-size: 0.9rem;
    font-weight: 600;
}

.category-tile, .process-card, .record-card {
    border-radius: 10px;
    box-shadow: none;
}

.category-tile:hover, .process-card:hover, .record-card:hover {
    transform: none;
    box-shadow: 0 4px 16px rgba(21, 34, 30, 0.055);
}

.category-copy strong, .record-content h3,
.process-card h3 {
    font-size: 0.98rem;
    font-weight: 650;
    line-height: 1.45;
}

.category-copy small, .record-owner,
.record-content p, .process-card p {
    font-size: 0.86rem;
    line-height: 1.55;
}

.category-icon, .category-arrow {
    border-radius: 8px;
}

.process-card {
    min-height: 166px;
    padding: 20px;
}

.process-card h3 {
    margin-top: 20px;
}

.process-number {
    font-size: 0.85rem;
    font-weight: 600;
}

.home-cta {
    padding: 32px 36px;
    background: linear-gradient(115deg, var(--sihaki-primary-dark), var(--sihaki-primary));
    border-radius: 11px;
}

.home-cta h2 {
    color: #fff;
}

.home-cta p {
    color: rgba(255, 255, 255, 0.86);
}

/* 6. Headline halaman internal: Produk KI dan Panduan */
.page-header {
    background: linear-gradient(115deg, var(--sihaki-primary-dark), var(--sihaki-primary));
}

.page-header-inner,
.page-header > .container.py-5 {
    padding-top: 46px !important;
    padding-bottom: 46px !important;
}

.page-header-label,
.page-header .hero-kicker {
    color: #e9e7be;
}

.page-header-title,
.page-header h1.h2 {
    max-width: 850px;
    margin: 11px 0 10px;
    color: #fff;
    font-size: clamp(1.85rem, 3vw, 2.6rem);
    font-weight: 650;
    line-height: 1.24;
    letter-spacing: -0.016em;
}

.page-header-description,
.page-header p.mb-0 {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.98rem;
    line-height: 1.65;
}

/* 7. Katalog, panduan, dan formulir akses */
.catalog-toolbar, .content-card, .guide-menu, .auth-card {
    border-radius: 10px;
    box-shadow: none;
}

.content-card h2 {
    margin-bottom: 10px;
    font-size: 1.3rem;
    font-weight: 650;
}

.content-card h3, .content-card .h6 {
    font-weight: 650;
}

.guide-link {
    border-radius: 7px;
    font-size: 0.94rem;
    font-weight: 500;
}

.guide-link.active {
    font-weight: 600;
}

.guide-body, .content-card p, .content-card li {
    font-size: 0.95rem;
    line-height: 1.7;
}

.table-responsive.bg-white,
.table-responsive.border {
    border-radius: 9px !important;
    box-shadow: none;
}

.table thead th {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: normal;
    text-transform: none;
}

.table tbody td {
    font-size: 0.92rem;
    line-height: 1.5;
}

.badge {
    border-radius: 6px;
    font-weight: 500;
}

.auth-section {
    background: #f8faf9;
}

.auth-card {
    padding: 30px;
}

.auth-heading,
.auth-card > .mb-4,
.auth-card > .text-center.mb-4 {
    margin-bottom: 24px !important;
}

.auth-title,
.auth-card h1.h3 {
    margin: 8px 0 10px;
    font-size: clamp(1.45rem, 2.4vw, 1.75rem);
    font-weight: 650;
    letter-spacing: -0.01em;
}

.auth-description,
.auth-card .text-secondary {
    color: var(--guest-body-muted) !important;
    font-size: 0.95rem;
    line-height: 1.65;
}

.auth-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
    background: var(--sihaki-primary-soft);
    border-radius: 9px;
    color: var(--sihaki-primary-dark);
    box-shadow: none;
    font-size: 1.3rem;
}

.choice-card {
    border-radius: 9px;
}

.choice-card strong {
    font-weight: 600;
}

.choice-card small {
    font-size: 0.84rem;
}

/* 8. Footer dan dialog */
.sihaki-footer h6, .footer-brand strong {
    font-weight: 650;
    letter-spacing: normal;
}

.footer-brand small, .footer-description,
.sihaki-footer a:not(.btn), .footer-bottom {
    font-size: 0.85rem;
    letter-spacing: normal;
}

.swal2-popup {
    border-radius: 10px !important;
}

.swal2-title {
    font-weight: 650 !important;
    letter-spacing: normal;
}

/* 9. Statistik AJAX PATCH 06: hanya presentasi teks, bukan logika grafik. */
.ki-statistics-heading h2 {
    font-weight: 650;
    letter-spacing: -0.016em;
}

.ki-stat-card-title h3, .ki-stat-card-total strong,
.ki-stat-summary-item strong {
    font-weight: 650;
    letter-spacing: normal;
}

.ki-stat-filter-title,
.ki-stat-unit-label,
.ki-stat-count-label {
    font-weight: 500;
}

.ki-stat-card, .ki-stat-filter-panel, .ki-stat-summary {
    border-radius: 9px;
}

/* 10. Responsif */
@media (max-width: 991.98px) {
    .sihaki-navbar {
        min-height: 68px;
    }

    .home-hero .row.py-lg-6 {
        padding-top: 3.5rem !important;
        padding-bottom: 3.5rem !important;
    }

    .home-hero h1 {
        font-size: clamp(2.15rem, 5.3vw, 3rem);
    }
}

@media (max-width: 767.98px) {
    .home-hero h1 {
        font-size: clamp(2.05rem, 8vw, 2.65rem);
        line-height: 1.2;
        text-wrap: pretty;
    }

    .home-hero .row.py-lg-6 {
        padding-top: 2.75rem !important;
        padding-bottom: 3rem !important;
    }

    .hero-visual {
        min-height: 255px;
    }

    .home-section {
        padding-top: 48px;
        padding-bottom: 48px;
    }

    .page-header-inner,
    .page-header > .container.py-5 {
        padding-top: 32px !important;
        padding-bottom: 34px !important;
    }

    .section-title-row {
        align-items: flex-start;
    }

    .home-cta {
        padding: 25px;
    }

    .auth-card {
        padding: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .btn, .category-tile, .record-card, .process-card {
        transition: none;
    }
}
