/* =====================================================================
   BOJANA SERVICE INDONESIA - DESIGN SYSTEM
   Palet: hitam-putih minimal + aksen Royal Blue (#1D4ED8), dipakai
   terbatas (~5-10%) hanya untuk CTA/link aktif.
   Font: Inter. Tombol: radius 10px, tinggi 48px, tanpa rounded-pill.
   Prinsip: Consistency is more important than creativity.
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=IBM+Plex+Sans:wght@500;600;700&family=IBM+Plex+Mono:wght@500;600&display=swap');

:root {
    --color-black: #0A0A0A;
    --color-ink: #1A1D22;
    --color-gray-700: #43494F;
    --color-gray-500: #75808B;
    --color-gray-300: #D6DBE0;
    --color-gray-100: #F3F4F1;
    --color-white: #FFFFFF;
    --color-paper: #FBFAF7;
    --color-accent: #14509B;
    --color-accent-hover: #0E3E7C;
    --color-accent-soft: #EEF3F9;
    --color-signal: #C4622D;

    --font-display: 'IBM Plex Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-base: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

    --radius-btn: 8px;
    --radius-card: 4px;
    --btn-height: 48px;

    --container-width: 1200px;
    --space-1: 8px;
    --space-2: 16px;
    --space-3: 24px;
    --space-4: 40px;
    --space-5: 64px;
    --space-6: 96px;

    --shadow-card: 0 1px 2px rgba(10,10,10,0.04), 0 10px 24px rgba(10,10,10,0.05);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-base);
    color: var(--color-ink);
    background: var(--color-paper);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--space-3);
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 var(--space-2);
    letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 2.6vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 var(--space-2); color: var(--color-gray-700); }
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: var(--color-accent);
    margin-bottom: var(--space-2);
}
.eyebrow::before {
    content: '';
    display: inline-block;
    width: 22px;
    height: 2px;
    background: var(--color-signal);
    flex-shrink: 0;
}
.lede { font-size: 1.15rem; color: var(--color-gray-700); max-width: 640px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: var(--btn-height);
    padding: 0 28px;
    border-radius: var(--radius-btn);
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .15s ease, box-shadow .15s ease;
    white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
    background: var(--color-accent);
    color: var(--color-white);
}
.btn-primary:hover { background: var(--color-accent-hover); box-shadow: 0 6px 18px rgba(29,78,216,0.25); transform: translateY(-1px); }
.btn-secondary {
    background: transparent;
    color: var(--color-black);
    border-color: var(--color-gray-300);
}
.btn-secondary:hover { border-color: var(--color-black); transform: translateY(-1px); }

/* ---------- Header / Nav ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255,255,255,0.92);
    backdrop-filter: saturate(180%) blur(8px);
    border-bottom: 1px solid var(--color-gray-100);
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
}
.site-header { transition: box-shadow .2s ease, background-color .2s ease; }
.site-header.is-scrolled { box-shadow: 0 2px 20px rgba(10,10,10,0.06); }
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--color-black);
    transition: opacity .15s ease;
}
.brand:hover { opacity: 0.75; }
.brand img { height: 34px; width: auto; }
.brand-mark {
    width: 34px; height: 34px;
    border-radius: 9px;
    background: var(--color-accent);
    color: var(--color-white);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.brand-mark svg { width: 19px; height: 19px; min-width: 0; }
.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    list-style: none;
    margin: 0; padding: 0;
}
.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--color-gray-700);
    padding: 8px 2px;
    border-bottom: 2px solid transparent;
}
.nav-links a:hover, .nav-links a.active {
    color: var(--color-black);
    border-bottom-color: var(--color-accent);
}
.nav-right { display: flex; align-items: center; gap: var(--space-3); }
.lang-switch {
    display: flex;
    gap: 4px;
    border: 1px solid var(--color-gray-300);
    border-radius: var(--radius-btn);
    overflow: hidden;
    font-size: 0.8rem;
    font-weight: 600;
}
.lang-switch a { padding: 6px 10px; color: var(--color-gray-500); }
.lang-switch a.active { background: var(--color-black); color: var(--color-white); }
.nav-toggle { display: none; }

@media (max-width: 860px) {
    .nav-links { display: none; }
    .nav-toggle {
        display: inline-flex;
        width: 40px; height: 40px;
        align-items: center; justify-content: center;
        border: 1px solid var(--color-gray-300);
        border-radius: var(--radius-btn);
        background: none; cursor: pointer;
    }
    .site-header.nav-open .nav-links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 76px; left: 0; right: 0;
        background: var(--color-white);
        padding: var(--space-3);
        border-bottom: 1px solid var(--color-gray-100);
        gap: var(--space-2);
    }
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    padding: var(--space-6) 0 var(--space-5);
    border-bottom: 1px solid var(--color-gray-100);
    overflow: hidden;
    background: var(--color-paper);
}
.hero-dotgrid {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: radial-gradient(var(--color-gray-300) 1px, transparent 1px);
    background-size: 26px 26px;
    -webkit-mask-image: radial-gradient(ellipse 60% 70% at 78% 30%, #000 0%, transparent 72%);
            mask-image: radial-gradient(ellipse 60% 70% at 78% 30%, #000 0%, transparent 72%);
    opacity: 0.6;
}
.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: var(--space-5);
}
.hero-inner { max-width: 560px; }
.hero .cta-row { display: flex; gap: var(--space-2); margin-top: var(--space-4); flex-wrap: wrap; }

/* Hero visual: kartu ringkasan statistik nyata (bukan ilustrasi generik) */
.hero-visual { position: relative; justify-self: center; width: 100%; max-width: 360px; }
.hv-panel {
    background: var(--color-white);
    border: 1px solid var(--color-gray-100);
    border-top: 3px solid var(--color-accent);
    border-radius: 6px;
    padding: var(--space-3) var(--space-3) var(--space-2);
    box-shadow: 0 1px 2px rgba(10,10,10,0.04), 0 20px 40px rgba(10,10,10,0.08);
}
.hv-panel-head {
    display: flex; align-items: center; gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-gray-500);
    margin-bottom: var(--space-2);
}
.hv-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--color-signal);
    box-shadow: 0 0 0 0 rgba(196,98,45,0.5);
    animation: hv-dot-pulse 2.4s ease-in-out infinite;
    flex-shrink: 0;
}
@keyframes hv-dot-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(196,98,45,0.35); }
    50% { box-shadow: 0 0 0 5px rgba(196,98,45,0); }
}
.hv-stat-row { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-2); padding: 10px 0; }
.hv-stat-num { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; color: var(--color-ink); }
.hv-stat-label { font-size: 0.85rem; color: var(--color-gray-500); text-align: right; }
.hv-divider { height: 1px; background: var(--color-gray-100); }
.hv-badge {
    position: absolute;
    left: -10px; bottom: -18px;
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--color-ink);
    color: var(--color-white);
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    box-shadow: 0 14px 30px rgba(10,10,10,0.18);
}
.hv-badge svg { width: 16px; height: 16px; min-width: 0; color: #7FB2E8; flex-shrink: 0; }
@media (max-width: 960px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-visual { justify-self: stretch; max-width: 420px; margin-top: var(--space-3); }
    .hv-badge { position: static; margin-top: var(--space-3); }
}
@media (prefers-reduced-motion: reduce) {
    .hv-dot { animation: none; }
}

.page-hero {
    padding: var(--space-5) 0 var(--space-4);
    border-bottom: 1px solid var(--color-gray-100);
}

/* ---------- Sections ---------- */
.section { padding: var(--space-6) 0; }
.section-tight { padding: var(--space-5) 0; }
.section-alt { background: var(--color-gray-100); }
.section-head { max-width: 640px; margin-bottom: var(--space-4); padding-left: 18px; border-left: 2px solid var(--color-gray-300); }
.text-center .section-head, .section-head.text-center { padding-left: 0; border-left: none; }

/* ---------- Grids & Cards ---------- */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-3);
}
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
}
@media (max-width: 860px) {
    .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.card {
    position: relative;
    background: var(--color-white);
    border: 1px solid var(--color-gray-100);
    border-top: 2px solid var(--color-gray-100);
    border-radius: var(--radius-card);
    padding: var(--space-3);
    box-shadow: var(--shadow-card);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(10,10,10,0.08);
    border-top-color: var(--color-accent);
}
.card-icon {
    width: 42px; height: 42px;
    border-radius: 3px;
    background: var(--color-accent-soft);
    color: var(--color-accent);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    margin-bottom: var(--space-2);
    transition: background-color .2s ease, color .2s ease;
}
.card-icon svg { width: 21px; height: 21px; min-width: 0; }
.card:hover .card-icon { background: var(--color-accent); color: var(--color-white); }
.card h3 { margin-bottom: 6px; }
.card p { margin-bottom: 0; font-size: 0.95rem; }

/* icon-card: varian dengan icon, judul & deskripsi disusun center-align
   dan simetris satu sama lain (dipakai untuk kartu ringkasan singkat). */
.card.icon-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-4) var(--space-3) var(--space-3);
}
.card.icon-card .card-icon {
    width: 48px; height: 48px;
    border-radius: 10px;
    margin: 0 auto var(--space-2);
    flex-shrink: 0;
}
.card.icon-card .card-icon svg { width: 22px; height: 22px; min-width: 0; }
.card.icon-card h3 { width: 100%; }
.card.icon-card p { max-width: 32ch; margin: 0 auto; }
.stat-num {
    font-size: clamp(2rem, 4vw, 2.6rem);
    font-weight: 800;
    color: var(--color-accent);
    margin-bottom: 4px;
    line-height: 1;
}

/* ---------- Network Map ---------- */
.map-panel {
    position: relative;
    background: var(--color-white);
    border: 1px solid var(--color-gray-100);
    border-radius: 10px;
    padding: var(--space-3);
    box-shadow: var(--shadow-card);
}
.map-panel svg { width: 100%; height: auto; display: block; overflow: visible; }
.map-land {
    fill: var(--color-gray-100);
    stroke: var(--color-gray-300);
    stroke-width: 0.6;
    stroke-linejoin: round;
    transition: fill .2s ease;
}
.map-panel:hover .map-land { fill: #ECEFF3; }
.map-marker-dot { fill: var(--color-accent); stroke: var(--color-white); stroke-width: 0.8; }
.map-marker-ping { fill: var(--color-accent); opacity: 0.22; animation: map-ping 2.6s ease-in-out infinite; transform-origin: center; }
.map-marker { cursor: pointer; }
.map-marker:hover .map-marker-dot, .map-marker:focus .map-marker-dot { fill: var(--color-signal); }
@keyframes map-ping {
    0% { transform: scale(0.6); opacity: 0.4; }
    70%, 100% { transform: scale(2.6); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .map-marker-ping { animation: none; opacity: 0.15; }
}
.map-credit {
    margin: 10px 2px 0;
    font-size: 0.72rem;
    color: var(--color-gray-500);
    text-align: right;
}
.map-credit a { color: var(--color-gray-500); text-decoration: underline; text-underline-offset: 2px; }
.map-credit a:hover { color: var(--color-accent); }

/* ---------- Location list ---------- */
.location-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-2);
}
@media (max-width: 860px) { .location-list { grid-template-columns: repeat(2, 1fr); } }
.location-item {
    border: 1px solid var(--color-gray-100);
    border-radius: var(--radius-card);
    padding: var(--space-2);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.location-item:hover {
    transform: translateY(-2px);
    border-color: rgba(29,78,216,0.3);
    box-shadow: var(--shadow-card);
}
.location-item .city { font-weight: 700; }
.location-item .region { font-size: 0.85rem; color: var(--color-gray-500); }
.region-label {
    display: flex; align-items: center; gap: 8px;
    color: var(--color-gray-500);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: .06em;
    margin-bottom: var(--space-2);
}
.region-icon { width: 18px; height: 18px; min-width: 18px; color: var(--color-accent); display: flex; flex-shrink: 0; }
.region-icon svg { width: 100%; height: 100%; min-width: 0; }

/* ---------- Partner Brands ---------- */
.partner-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: stretch;
    gap: var(--space-2);
}
.partner-card {
    background: var(--color-white);
    border: 1px solid var(--color-gray-100);
    border-radius: var(--radius-card);
    flex: 0 1 156px;
    width: 156px;
    height: 76px;
    overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    padding: 12px 18px;
    filter: grayscale(1);
    opacity: 0.7;
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease, opacity .2s ease, border-color .2s ease;
}
.partner-card:hover {
    filter: grayscale(0);
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: var(--shadow-card);
    border-color: rgba(20,80,155,0.25);
}
.partner-card img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 34px;
    object-fit: contain;
}
.partner-placeholder {
    font-weight: 700;
    color: var(--color-gray-500);
    font-size: 0.82rem;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
@media (max-width: 640px) {
    .partner-card { flex: 0 1 45%; width: auto; height: 64px; padding: 8px 12px; }
    .partner-card img { max-height: 26px; }
}

/* ---------- Contact ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-5);
    align-items: start;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.form-group { margin-bottom: var(--space-2); }
label { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 6px; }
input, textarea, select {
    width: 100%;
    font-family: var(--font-base);
    font-size: 0.95rem;
    padding: 12px 14px;
    border: 1px solid var(--color-gray-300);
    border-radius: var(--radius-btn);
    background: var(--color-white);
    color: var(--color-ink);
}
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(29,78,216,0.12);
}
textarea { resize: vertical; min-height: 130px; }

.alert {
    padding: 14px 16px;
    border-radius: var(--radius-btn);
    font-size: 0.9rem;
    margin-bottom: var(--space-2);
}
.alert-success { background: #ECFDF5; color: #065F46; border: 1px solid #A7F3D0; }
.alert-error { background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; }

/* ---------- Footer ---------- */
.site-footer {
    border-top: 1px solid var(--color-gray-100);
    padding: var(--space-5) 0 var(--space-4);
    color: var(--color-gray-500);
    font-size: 0.9rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-4);
    margin-bottom: var(--space-4);
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-black); }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-bottom {
    border-top: 1px solid var(--color-gray-100);
    padding-top: var(--space-3);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

/* ---------- Scroll Reveal ---------- */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
}
.grid-3 .reveal:nth-child(2), .partner-grid .reveal:nth-child(2) { transition-delay: .08s; }
.grid-3 .reveal:nth-child(3), .partner-grid .reveal:nth-child(3) { transition-delay: .16s; }
.grid-3 .reveal:nth-child(4), .partner-grid .reveal:nth-child(4) { transition-delay: .24s; }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--color-accent);
    background: rgba(29,78,216,0.08);
    padding: 6px 12px;
    border-radius: 20px;
}
