/* =====================================================================
   LSP KLINING SERVIS PRIMA INDONESIA
   Token: Navy #16324F (dasar), Ocean #1F5C7A (sekunder),
          Signal Orange #E8792E (aksen, dari warna logo asli),
          Mist #EEF3F6 (latar), Ink #1A2027 (teks)
   Tipografi: "Poppins" (display, tegas - dunia kerja lapangan/servis),
              "Inter" (body, mudah dibaca di form panjang)
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
    --navy: #16324F;
    --ocean: #1F5C7A;
    --orange: #E8792E;
    --orange-dark: #C7621F;
    --mist: #EEF3F6;
    --ink: #1A2027;
    --ink-soft: #55636F;
    --white: #FFFFFF;
    --success: #1E8A5A;
    --warning: #C7861F;
    --danger: #C1382E;
    --info: #1F5C7A;
    --radius: 10px;
    --shadow: 0 4px 16px rgba(22, 50, 79, 0.08);
    --shadow-lg: 0 12px 32px rgba(22, 50, 79, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: 'Inter', system-ui, sans-serif;
    color: var(--ink);
    background: var(--mist);
    line-height: 1.6;
}
h1, h2, h3, h4, .display {
    font-family: 'Poppins', system-ui, sans-serif;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.25;
    margin: 0 0 .5em;
}
a { color: var(--ocean); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

.container {
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- NAVBAR ---------- */
.navbar {
    background: var(--navy);
    color: var(--white);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}
.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
}
.navbar-brand .logo-dot {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: var(--orange);
    display: flex; align-items: center; justify-content: center;
    color: var(--navy); font-weight: 800; flex-shrink: 0;
}
.navbar-links {
    display: flex;
    gap: 6px;
    align-items: center;
}
.navbar-links a {
    color: rgba(255,255,255,.85);
    padding: 10px 14px;
    border-radius: 8px;
    font-weight: 500;
    font-size: .94rem;
}
.navbar-links a:hover, .navbar-links a.active {
    background: rgba(255,255,255,.1);
    color: var(--white);
    text-decoration: none;
}
.navbar-toggle {
    display: none;
    background: none; border: none; color: var(--white);
    font-size: 1.6rem; cursor: pointer;
}
.btn-cta {
    background: var(--orange) !important;
    color: var(--navy) !important;
    font-weight: 700 !important;
}

@media (max-width: 860px) {
    .navbar-toggle { display: block; }
    .navbar-links {
        position: absolute;
        top: 68px; left: 0; right: 0;
        background: var(--navy);
        flex-direction: column;
        align-items: stretch;
        padding: 8px 16px 16px;
        display: none;
    }
    .navbar-links.open { display: flex; }
    .navbar-links a { padding: 12px 14px; }
}

/* ---------- HERO ---------- */
.hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--ocean) 100%);
    color: var(--white);
    padding: 64px 0 80px;
    position: relative;
    overflow: hidden;
}
.hero::after {
    content: '';
    position: absolute;
    right: -80px; bottom: -80px;
    width: 320px; height: 320px;
    border-radius: 50%;
    background: rgba(232,121,46,.18);
}
.hero .eyebrow {
    color: var(--orange);
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    font-size: .82rem;
}
.hero h1 {
    color: var(--white);
    font-size: clamp(1.8rem, 4vw, 2.7rem);
    max-width: 720px;
}
.hero p {
    max-width: 600px;
    color: rgba(255,255,255,.88);
    font-size: 1.05rem;
}
.hero-stats {
    display: flex;
    gap: 28px;
    margin-top: 32px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}
.hero-stats .stat b {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 1.7rem;
    color: var(--orange);
}
.hero-stats .stat span {
    font-size: .85rem;
    color: rgba(255,255,255,.75);
}

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: 8px;
    font-weight: 600;
    font-size: .95rem;
    border: 2px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--orange); color: var(--navy); }
.btn-primary:hover { background: var(--orange-dark); }
.btn-outline { background: transparent; border-color: var(--white); color: var(--white); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: #0f2338; }
.btn-sm { padding: 7px 14px; font-size: .85rem; }
.btn-danger { background: var(--danger); color: var(--white); }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* ---------- SECTIONS / CARDS ---------- */
.section { padding: 56px 0; }
.section-title { text-align: center; margin-bottom: 8px; }
.section-sub { text-align: center; color: var(--ink-soft); margin-bottom: 36px; }

.card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
}
.grid {
    display: grid;
    gap: 20px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 860px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.scheme-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 26px;
    border-top: 4px solid var(--orange);
    transition: box-shadow .15s ease;
}
.scheme-card:hover { box-shadow: var(--shadow-lg); }
.scheme-card .unit-count {
    display: inline-block;
    background: var(--mist);
    color: var(--navy);
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: .82rem;
    margin-top: 10px;
}

/* ---------- FOOTER ---------- */
footer {
    background: var(--navy);
    color: rgba(255,255,255,.75);
    padding: 40px 0 24px;
    margin-top: 40px;
}
footer h4 { color: var(--white); font-size: 1rem; }
footer a { color: rgba(255,255,255,.75); }
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 28px;
    margin-bottom: 24px;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.12);
    padding-top: 18px;
    font-size: .85rem;
    text-align: center;
}

/* ---------- FORMS ---------- */
.form-group { margin-bottom: 18px; }
label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .92rem; }
input[type=text], input[type=email], input[type=password], input[type=date],
input[type=tel], input[type=number], select, textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #D7E0E7;
    border-radius: 8px;
    font-size: .95rem;
    font-family: inherit;
    background: var(--white);
    color: var(--ink);
}
input:focus, select:focus, textarea:focus {
    border-color: var(--ocean);
    outline: none;
}
.form-hint { font-size: .82rem; color: var(--ink-soft); margin-top: 4px; }
.form-card {
    max-width: 460px;
    margin: 48px auto;
}
.auth-wrapper {
    min-height: calc(100vh - 68px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--mist);
    padding: 20px;
}

/* ---------- ALERTS ---------- */
.alert {
    padding: 13px 18px;
    border-radius: 8px;
    margin-bottom: 18px;
    font-size: .92rem;
}
.alert-success { background: #E4F5EC; color: var(--success); }
.alert-error { background: #FBEAE8; color: var(--danger); }
.alert-info { background: #E6F0F5; color: var(--ocean); }

/* ---------- BADGES ---------- */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: .78rem;
    font-weight: 700;
}
.badge-warning { background: #FBF0DD; color: var(--warning); }
.badge-danger { background: #FBEAE8; color: var(--danger); }
.badge-success { background: #E4F5EC; color: var(--success); }
.badge-info { background: #E6F0F5; color: var(--info); }
.badge-secondary { background: #E9ECEF; color: var(--ink-soft); }

/* ---------- TABLES ---------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; }
th, td { padding: 12px 14px; text-align: left; font-size: .9rem; border-bottom: 1px solid #EEF1F4; white-space: nowrap; }
th { background: var(--navy); color: var(--white); font-weight: 600; }
tr:last-child td { border-bottom: none; }

/* ---------- DASHBOARD LAYOUT ---------- */
.dash-layout { display: flex; min-height: calc(100vh - 68px); }
.dash-sidebar {
    width: 240px;
    background: var(--navy);
    color: rgba(255,255,255,.85);
    flex-shrink: 0;
    padding: 20px 0;
}
.dash-sidebar a {
    display: block;
    color: rgba(255,255,255,.75);
    padding: 12px 22px;
    font-size: .92rem;
    font-weight: 500;
    border-left: 3px solid transparent;
}
.dash-sidebar a:hover, .dash-sidebar a.active {
    background: rgba(255,255,255,.06);
    color: var(--white);
    border-left-color: var(--orange);
    text-decoration: none;
}
.dash-sidebar .sidebar-label {
    padding: 16px 22px 6px;
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: rgba(255,255,255,.4);
}
.dash-main { flex: 1; padding: 28px; min-width: 0; }
.dash-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}
.dash-sidebar-toggle { display: none; }

@media (max-width: 900px) {
    .dash-layout { flex-direction: column; }
    .dash-sidebar {
        width: 100%;
        display: none;
        padding: 10px 0;
    }
    .dash-sidebar.open { display: block; }
    .dash-sidebar-toggle {
        display: inline-flex;
        margin-bottom: 8px;
    }
    .dash-main { padding: 18px; }
}

.stat-box {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
    border-left: 4px solid var(--orange);
}
.stat-box b { font-family: 'Poppins', sans-serif; font-size: 1.6rem; color: var(--navy); display: block; }
.stat-box span { color: var(--ink-soft); font-size: .88rem; }

.checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid #EEF1F4;
}
.checklist-item:last-child { border-bottom: none; }
.checklist-item input[type=checkbox] { width: 20px; height: 20px; margin-top: 2px; }

.steps-nav {
    display: flex;
    gap: 8px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}
.steps-nav .step {
    background: var(--white);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: .85rem;
    font-weight: 600;
    color: var(--ink-soft);
    box-shadow: var(--shadow);
}
.steps-nav .step.active { background: var(--orange); color: var(--navy); }
.steps-nav .step.done { background: var(--success); color: var(--white); }

.certificate-frame {
    background: var(--white);
    border: 6px solid var(--navy);
    border-radius: 14px;
    padding: 48px;
    text-align: center;
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}
.certificate-frame::before {
    content: '';
    position: absolute; inset: 12px;
    border: 2px solid var(--orange);
    border-radius: 8px;
    pointer-events: none;
}

@media print {
    .navbar, footer, .no-print { display: none !important; }
}

/* =====================================================================
   BERANDA V2 — motif "sapuan bersih" (diagonal clean-sweep)
   Signature: panel gelap dipotong diagonal, melambangkan transformasi
   dari "belum terverifikasi" ke "kompeten bersertifikat".
   ===================================================================== */

.nav-v2 {
    position: fixed; top: 0; left: 0; right: 0; z-index: 200;
    background: rgba(255,255,255,.7);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(22,50,79,.08);
    transition: background .25s ease, box-shadow .25s ease;
}
.nav-v2.scrolled { background: rgba(255,255,255,.92); box-shadow: 0 2px 20px rgba(22,50,79,.08); }
.nav-v2 .container { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav-v2 .navbar-brand { color: var(--navy); }
.nav-v2 .navbar-brand .logo-dot { background: var(--navy); color: var(--white); }
.nav-v2 .navbar-links a { color: var(--ink-soft); }
.nav-v2 .navbar-links a:hover, .nav-v2 .navbar-links a.active { background: rgba(22,50,79,.06); color: var(--navy); }
.nav-v2 .navbar-toggle { color: var(--navy); }
@media (max-width: 860px) {
    .nav-v2 .navbar-links { background: var(--white); box-shadow: 0 8px 24px rgba(22,50,79,.1); border-radius: 0 0 14px 14px; }
}

.hero-v2 {
    position: relative;
    padding: 152px 0 0;
    background: var(--white);
    overflow: hidden;
}
.hero-v2-grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
    min-height: 640px;
}
.hero-v2-copy { padding: 20px 0 80px; position: relative; z-index: 2; }
.eyebrow-pill {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(232,121,46,.1);
    color: var(--orange-dark);
    font-weight: 700; font-size: .78rem;
    letter-spacing: .04em; text-transform: uppercase;
    padding: 7px 16px; border-radius: 30px;
    margin-bottom: 22px;
}
.eyebrow-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }
.hero-v2 h1 {
    font-size: clamp(2.1rem, 5vw, 3.4rem);
    letter-spacing: -.02em;
    max-width: 560px;
}
.hero-v2 h1 .accent { color: var(--orange); position: relative; white-space: nowrap; }
.hero-v2 p.lead {
    max-width: 480px;
    color: var(--ink-soft);
    font-size: 1.08rem;
    margin-top: 18px;
}
.hero-v2-cta { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.btn-pill {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 15px 28px; border-radius: 999px;
    font-weight: 700; font-size: .96rem;
    transition: transform .15s ease, box-shadow .15s ease;
}
.btn-pill.btn-primary { box-shadow: 0 10px 24px rgba(232,121,46,.35); }
.btn-pill.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(232,121,46,.42); }
.btn-pill.btn-ghost { background: transparent; color: var(--navy); border: 1.5px solid rgba(22,50,79,.18); }
.btn-pill.btn-ghost:hover { background: rgba(22,50,79,.05); transform: translateY(-2px); }

/* diagonal panel */
.hero-v2-panel {
    position: relative;
    height: 100%;
    min-height: 560px;
    background: linear-gradient(150deg, var(--navy) 10%, var(--ocean) 100%);
    clip-path: polygon(14% 0, 100% 0, 100% 100%, 0% 100%);
}
.hero-v2-panel::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(560px 340px at 80% 15%, rgba(232,121,46,.28), transparent 70%);
}
.hero-v2-panel .sweep-line {
    position: absolute; top: 0; bottom: 0; left: 14%;
    width: 3px;
    background: linear-gradient(var(--orange), transparent 85%);
    transform: translateX(-50%) skewX(-14deg);
    opacity: .85;
}
.float-cards { position: absolute; inset: 0; z-index: 2; }
.float-card {
    position: absolute;
    background: rgba(255,255,255,.97);
    border-radius: 14px;
    box-shadow: 0 20px 50px rgba(0,0,0,.25);
    padding: 16px 18px;
    min-width: 190px;
}
.float-card b { display: block; font-family: 'Poppins', sans-serif; color: var(--navy); font-size: 1.5rem; }
.float-card span { font-size: .78rem; color: var(--ink-soft); }
.float-card.card-1 { top: 14%; right: 8%; animation: floatY 5s ease-in-out infinite; }
.float-card.card-2 { top: 44%; right: 26%; animation: floatY 6s ease-in-out infinite 1s; }
.float-card.card-3 { top: 70%; right: 6%; animation: floatY 5.5s ease-in-out infinite .5s; }
.float-card .badge-mini {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: .72rem; font-weight: 700; color: var(--success);
    margin-top: 4px;
}
.float-card .badge-mini svg { width: 13px; height: 13px; }
@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

@media (max-width: 980px) {
    .hero-v2-grid { grid-template-columns: 1fr; }
    .hero-v2-panel { clip-path: none; border-radius: 24px; min-height: 380px; margin-bottom: 20px; }
    .float-card { position: static; margin: 10px; display: inline-block; animation: none !important; }
    .float-cards { position: static; display: flex; flex-wrap: wrap; padding: 20px; }
    .hero-v2-copy { padding-bottom: 40px; text-align: left; }
}

/* trust marquee */
.trust-strip { background: var(--navy); overflow: hidden; padding: 14px 0; }
.trust-track {
    display: flex; gap: 48px; white-space: nowrap;
    animation: marquee 22s linear infinite;
    width: max-content;
}
.trust-track span {
    color: rgba(255,255,255,.72);
    font-size: .85rem; font-weight: 600;
    display: inline-flex; align-items: center; gap: 8px;
}
.trust-track span::before { content: '✓'; color: var(--orange); font-weight: 800; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* bento skema grid — mobile-first: default 1 kolom biasa (aman, tak mungkin
   tumpang tindih), baru di layar tablet/desktop dinaikkan jadi bento-grid. */
.bento-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}
.bento-grid .bento-item { grid-column: auto; grid-row: auto; }

@media (min-width: 641px) {
    .bento-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: minmax(170px, auto); }
    .bento-grid .bento-item:nth-child(1) { grid-column: span 2; }
}
@media (min-width: 981px) {
    .bento-grid { grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(190px, auto); }
    .bento-grid .bento-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
    .bento-grid .bento-item:nth-child(2) { grid-column: span 2; }
    .bento-grid .bento-item:nth-child(3) { grid-column: span 1; }
    .bento-grid .bento-item:nth-child(4) { grid-column: span 1; }
}
.bento-item {
    min-height: 170px;
    position: relative;
    border-radius: 18px;
    padding: 24px;
    display: flex; flex-direction: column; justify-content: flex-end;
    background: var(--white);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
}
.bento-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.bento-item.dark { background: linear-gradient(145deg, var(--navy), var(--ocean)); color: var(--white); }
.bento-item.dark h3 { color: var(--white); }
.bento-item.dark .unit-count { background: rgba(255,255,255,.15); color: var(--white); }
.bento-item .icon-wrap {
    width: 46px; height: 46px; border-radius: 12px;
    background: rgba(232,121,46,.12);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: auto;
}
.bento-item.dark .icon-wrap { background: rgba(255,255,255,.14); }
.bento-item .icon-wrap svg { width: 24px; height: 24px; stroke: var(--orange); }
.bento-item.dark .icon-wrap svg { stroke: var(--orange); }
.bento-item h3 { font-size: 1.15rem; margin: 14px 0 4px; }

/* alur timeline */
.flow-line {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    position: relative;
}
.flow-line::before {
    content: '';
    position: absolute; top: 26px; left: 8%; right: 8%; height: 2px;
    background: repeating-linear-gradient(90deg, rgba(22,50,79,.18) 0 10px, transparent 10px 20px);
    z-index: 0;
}
@media (max-width: 860px) { .flow-line { grid-template-columns: 1fr; } .flow-line::before { display: none; } }
.flow-step { position: relative; z-index: 1; text-align: left; }
.flow-num {
    width: 52px; height: 52px; border-radius: 50%;
    background: var(--navy); color: var(--white);
    display: flex; align-items: center; justify-content: center;
    font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1.1rem;
    margin-bottom: 14px;
    box-shadow: 0 8px 20px rgba(22,50,79,.25);
}
.flow-step:nth-child(1) .flow-num { background: var(--orange); }
.flow-step h4 { font-size: 1rem; margin-bottom: 6px; }
.flow-step p { font-size: .88rem; color: var(--ink-soft); margin: 0; }

/* scroll reveal */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
[data-reveal].in-view { opacity: 1; transform: translateY(0); }

.cta-band {
    background: linear-gradient(120deg, var(--navy), var(--ocean));
    border-radius: 24px;
    padding: 56px 40px;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}
.cta-band::after {
    content: '';
    position: absolute; left: -60px; top: -60px;
    width: 220px; height: 220px; border-radius: 50%;
    background: rgba(232,121,46,.22);
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255,255,255,.8); max-width: 480px; margin: 10px auto 26px; }

/* =====================================================================
   REFRESH VISUAL — logo asli, menu mobile modern, galeri, micro-interaksi
   ===================================================================== */

/* Logo asli di navbar */
.navbar-brand .logo-img {
    width: 42px; height: 42px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 0 0 2px rgba(255,255,255,.35);
}
.nav-v2 .navbar-brand .logo-img { box-shadow: 0 0 0 2px rgba(22,50,79,.12); }

/* ---------- MENU MOBILE ala drawer modern ---------- */
.nav-overlay {
    position: fixed; inset: 0;
    background: rgba(15,25,35,.45);
    backdrop-filter: blur(2px);
    z-index: 190;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
}
.nav-overlay.show { opacity: 1; pointer-events: auto; }

@media (max-width: 860px) {
    .navbar-links {
        transition: transform .32s cubic-bezier(.4,0,.2,1), opacity .25s ease;
        transform: translateY(-12px);
        opacity: 0;
        pointer-events: none;
        box-shadow: 0 16px 40px rgba(22,50,79,.18);
    }
    .navbar-links.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
        display: flex;
    }
    .navbar-links a {
        opacity: 0;
        transform: translateX(-8px);
        transition: opacity .3s ease, transform .3s ease;
    }
    .navbar-links.open a { opacity: 1; transform: translateX(0); }
    .navbar-links.open a:nth-child(1) { transition-delay: .03s; }
    .navbar-links.open a:nth-child(2) { transition-delay: .06s; }
    .navbar-links.open a:nth-child(3) { transition-delay: .09s; }
    .navbar-links.open a:nth-child(4) { transition-delay: .12s; }
    .navbar-links.open a:nth-child(5) { transition-delay: .15s; }
    .navbar-links.open a:nth-child(6) { transition-delay: .18s; }
    .navbar-links.open a:nth-child(7) { transition-delay: .21s; }
}
.navbar-toggle {
    position: relative;
    width: 34px; height: 34px;
    display: none;
}
@media (max-width: 860px) { .navbar-toggle { display: inline-flex; align-items: center; justify-content: center; } }
.navbar-toggle span {
    position: absolute; left: 6px; right: 6px; height: 2.5px;
    background: currentColor; border-radius: 2px;
    transition: transform .28s ease, opacity .2s ease, top .28s ease;
}
.navbar-toggle span:nth-child(1) { top: 10px; }
.navbar-toggle span:nth-child(2) { top: 16px; }
.navbar-toggle span:nth-child(3) { top: 22px; }
.navbar-toggle.open span:nth-child(1) { top: 16px; transform: rotate(45deg); }
.navbar-toggle.open span:nth-child(2) { opacity: 0; }
.navbar-toggle.open span:nth-child(3) { top: 16px; transform: rotate(-45deg); }

/* Underline animasi pada link nav desktop */
@media (min-width: 861px) {
    .navbar-links a:not(.btn) { position: relative; }
    .navbar-links a:not(.btn)::after {
        content: ''; position: absolute; left: 14px; right: 14px; bottom: 4px;
        height: 2px; background: var(--orange);
        transform: scaleX(0); transform-origin: left;
        transition: transform .25s ease;
    }
    .navbar-links a:not(.btn):hover::after,
    .navbar-links a:not(.btn).active::after { transform: scaleX(1); }
}

/* ---------- Tombol ripple micro-interaction ---------- */
.btn { position: relative; overflow: hidden; }
.btn .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,.55);
    transform: scale(0);
    animation: rippleAnim .55s ease-out forwards;
    pointer-events: none;
}
@keyframes rippleAnim { to { transform: scale(3.2); opacity: 0; } }

/* ---------- GALERI KEGIATAN ---------- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
@media (max-width: 780px) { .gallery-grid { grid-template-columns: 1fr; } }
.gallery-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    cursor: zoom-in;
    aspect-ratio: 4 / 5;
    background: var(--navy);
}
.gallery-card img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .5s cubic-bezier(.4,0,.2,1);
}
.gallery-card:hover img { transform: scale(1.08); }
.gallery-caption {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 18px 16px 14px;
    background: linear-gradient(0deg, rgba(15,30,45,.88), transparent);
    color: #fff;
    font-size: .85rem;
    font-weight: 600;
    transform: translateY(6px);
    opacity: .92;
    transition: transform .3s ease;
}
.gallery-card:hover .gallery-caption { transform: translateY(0); }

/* Lightbox */
.lightbox {
    position: fixed; inset: 0; z-index: 300;
    background: rgba(10,18,26,.92);
    display: none;
    align-items: center; justify-content: center;
    padding: 30px;
}
.lightbox.show { display: flex; }
.lightbox img {
    max-width: min(92vw, 620px);
    max-height: 86vh;
    border-radius: 12px;
    box-shadow: 0 30px 80px rgba(0,0,0,.5);
    animation: lightboxIn .25s ease;
}
@keyframes lightboxIn { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: scale(1); } }
.lightbox-close {
    position: absolute; top: 22px; right: 26px;
    width: 42px; height: 42px; border-radius: 50%;
    background: rgba(255,255,255,.12);
    color: #fff; font-size: 1.4rem; border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}
.lightbox-close:hover { background: rgba(255,255,255,.22); }

/* ---------- Back to top ---------- */
.back-to-top {
    position: fixed; right: 20px; bottom: 20px; z-index: 150;
    width: 46px; height: 46px; border-radius: 50%;
    background: var(--navy); color: #fff;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 10px 24px rgba(22,50,79,.35);
    opacity: 0; pointer-events: none;
    transform: translateY(10px);
    transition: opacity .25s ease, transform .25s ease, background .2s ease;
    border: none; cursor: pointer;
}
.back-to-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top:hover { background: var(--orange); color: var(--navy); }

/* Fade-in halus untuk seluruh section saat load pertama */
@media (prefers-reduced-motion: no-preference) {
    body { animation: pageFadeIn .4s ease; }
}
@keyframes pageFadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Grid struktur organisasi (foto pejabat) - responsif */
.struktur-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
}
@media (max-width: 860px) { .struktur-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .struktur-grid { grid-template-columns: repeat(2, 1fr); } }

/* Tombol WhatsApp mengambang */
.wa-float {
    position: fixed; left: 20px; bottom: 20px; z-index: 150;
    width: 54px; height: 54px; border-radius: 50%;
    background: #25D366; color: #fff;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 10px 24px rgba(37,211,102,.4);
    transition: transform .2s ease;
}
.wa-float:hover { transform: scale(1.08); text-decoration: none; }
@media (max-width: 560px) { .wa-float { width: 48px; height: 48px; left: 16px; bottom: 16px; } }

/* Info user + tombol keluar di dashboard - SELALU tampil, tidak ikut animasi menu mobile */
.navbar-user-info {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}
.navbar-user-info a {
    color: rgba(255,255,255,.85);
    padding: 10px 14px;
    border-radius: 8px;
    font-weight: 500;
    font-size: .94rem;
}
.navbar-user-info a:hover { background: rgba(255,255,255,.1); color: #fff; text-decoration: none; }
@media (max-width: 480px) {
    .navbar-user-info span { display: none; } /* sembunyikan nama di layar sangat kecil, tombol Keluar tetap tampil */
}

/* Section "Foto Petugas Terpercaya" - meniru komposisi foto+bentuk brand ala landing page B2B */
.trust-staff-section {
    background: var(--white);
    padding: 64px 0;
    overflow: hidden;
}
.trust-staff-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}
@media (max-width: 860px) {
    .trust-staff-grid { grid-template-columns: 1fr; }
}
.trust-staff-copy h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    max-width: 480px;
}
.trust-staff-copy .accent-text { color: var(--orange); }
.trust-staff-copy p {
    color: var(--ink-soft);
    max-width: 480px;
    font-size: 1.02rem;
    margin-top: 14px;
}
.trust-staff-photo-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 420px;
}
.trust-staff-shape {
    position: absolute;
    width: 340px; height: 340px;
    background: linear-gradient(140deg, var(--navy), var(--ocean));
    border-radius: 42% 58% 60% 40% / 45% 40% 60% 55%;
    z-index: 1;
}
.trust-staff-shape::after {
    content: '';
    position: absolute; inset: -14px;
    border: 3px solid var(--orange);
    border-radius: inherit;
    opacity: .5;
}
.trust-staff-photo {
    position: relative;
    z-index: 2;
    max-width: 320px;
    max-height: 420px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(22,50,79,.25));
}
.trust-staff-badge {
    position: absolute;
    z-index: 3;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    border-radius: 12px;
    padding: 12px 18px;
    font-size: .85rem;
    font-weight: 700;
    color: var(--navy);
    display: flex;
    align-items: center;
    gap: 8px;
}
.trust-staff-badge.badge-top { top: 10px; right: 0; }
.trust-staff-badge.badge-bottom { bottom: 20px; left: -10px; }
.trust-staff-badge .dot-check {
    width: 22px; height: 22px; border-radius: 50%;
    background: var(--success); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: .75rem; flex-shrink: 0;
}

/* Section Tim Profesional Bersertifikat - grid badge foto tim */
.tim-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}
@media (max-width: 980px) { .tim-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .tim-grid { grid-template-columns: repeat(2, 1fr); } }
.tim-card {
    text-align: center;
    transition: transform .2s ease;
}
.tim-card:hover { transform: translateY(-6px); }
.tim-card img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: var(--shadow-lg);
}
.tim-card .tim-label {
    margin-top: 12px;
    font-size: .82rem;
    font-weight: 700;
    color: var(--navy);
}

/* Widget tanda tangan digital */
.signature-pad-wrap {
    border: 2px dashed var(--mist);
    border-radius: 10px;
    background: #fff;
    margin-bottom: 8px;
}
.signature-pad-canvas {
    width: 100%;
    height: 180px;
    display: block;
    touch-action: none;
    cursor: crosshair;
}
.signature-preview {
    max-width: 260px;
    max-height: 100px;
    border: 1px solid var(--mist);
    border-radius: 8px;
    padding: 6px;
    background: #fff;
}

/* FR.APL.02 - checkbox K/BK persegi mengikuti format cetak resmi BNSP */
.bnsp-check-square {
    appearance: none;
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border: 2px solid var(--navy);
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    display: block;
    margin: 0 auto;
    background: #fff;
}
.bnsp-check-square:checked { background: var(--navy); }
.bnsp-check-square:checked::after {
    content: '\2713';
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -55%);
}
.bnsp-apl02-table th, .bnsp-apl02-table td { white-space: normal; vertical-align: top; }
.bnsp-apl02-table td.bnsp-check-col { text-align: center; width: 60px; }
.bnsp-apl02-table td.bnsp-bukti-col { width: 260px; }
.bnsp-kuk-list { margin: 6px 0 0 0; padding-left: 18px; font-size: .88rem; color: var(--ink-soft); }
.bnsp-kuk-list li { margin-bottom: 4px; }
