/* =========================================================================
   HWI Modern — design system Portal HRD PT Hwaseung Indonesia
   Semua class diawali "hx-" supaya aman dipakai berdampingan dengan
   Bootstrap / CSS lama di halaman lain.
   ========================================================================= */

:root {
    /* Warna brand */
    --hx-blue: #1560bd;          /* biru logo HWASEUNG */
    --hx-blue-600: #0f4f9e;
    --hx-blue-50: #e8f1fb;
    --hx-navy: #0b2e5c;          /* biru atap pabrik, untuk panel gelap */
    --hx-navy-900: #071d3b;
    --hx-sun: #f2b705;           /* aksen untuk tenggat / penting */
    --hx-red: #d93a3a;

    /* Netral */
    --hx-ink: #1a2433;
    --hx-ink-2: #4a5768;
    --hx-ink-3: #7a8798;
    --hx-line: #dfe6ef;
    --hx-paper: #f6f8fb;
    --hx-white: #ffffff;
    --hx-surface: #ffffff;       /* latar kartu/panel — berubah di mode gelap */
    --hx-nav-bg: rgba(246, 248, 251, .72);
    --hx-nav-bg-scrolled: rgba(255, 255, 255, .9);

    /* Tipografi */
    --hx-font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

    /* Bentuk & bayangan */
    --hx-r-lg: 28px;
    --hx-r-md: 18px;
    --hx-r-sm: 12px;
    --hx-shadow-1: 0 1px 2px rgba(11, 46, 92, .06), 0 4px 14px rgba(11, 46, 92, .06);
    --hx-shadow-2: 0 2px 4px rgba(11, 46, 92, .06), 0 18px 40px -12px rgba(11, 46, 92, .22);
    --hx-ease: cubic-bezier(.22, 1, .36, 1);
    --hx-ease-spring: cubic-bezier(.34, 1.56, .64, 1);

    --hx-wrap: 1200px;
    --hx-gutter: clamp(16px, 4vw, 32px);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body.hx-body {
    margin: 0;
    font-family: var(--hx-font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--hx-ink);
    background: var(--hx-paper);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.hx-body img { max-width: 100%; display: block; }
.hx-body a { color: inherit; }
.hx-body h1, .hx-body h2, .hx-body h3, .hx-body h4 { margin: 0; line-height: 1.15; color: var(--hx-ink); }
.hx-body p { margin: 0; }

.hx-wrap {
    width: 100%;
    max-width: calc(var(--hx-wrap) + var(--hx-gutter) * 2);
    margin: 0 auto;
    padding: 0 var(--hx-gutter);
}

.hx-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

:focus-visible { outline: 3px solid var(--hx-sun); outline-offset: 3px; border-radius: 6px; }

/* ---------- Scroll progress ---------- */
.hx-progress {
    position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 1100;
    background: linear-gradient(90deg, var(--hx-blue), var(--hx-sun));
    transform-origin: 0 50%; transform: scaleX(0);
}

/* =========================================================================
   NAVBAR
   ========================================================================= */
.hx-nav {
    position: sticky; top: 0; z-index: 1000;
    transition: background .35s var(--hx-ease), box-shadow .35s var(--hx-ease);
    background: var(--hx-nav-bg);
    backdrop-filter: saturate(1.6) blur(14px);
    -webkit-backdrop-filter: saturate(1.6) blur(14px);
}
.hx-nav.is-scrolled { background: var(--hx-nav-bg-scrolled); box-shadow: 0 1px 0 var(--hx-line), 0 10px 30px -18px rgba(11, 46, 92, .35); }

.hx-nav__inner { display: flex; align-items: center; gap: 24px; height: 76px; transition: height .35s var(--hx-ease); }
.hx-nav.is-scrolled .hx-nav__inner { height: 64px; }

.hx-brand { display: flex; align-items: center; gap: 14px; text-decoration: none; flex-shrink: 0; }
.hx-brand img { height: 44px; width: auto; transition: height .35s var(--hx-ease); }
.hx-nav.is-scrolled .hx-brand img { height: 38px; }
.hx-brand__text { border-left: 1px solid var(--hx-line); padding-left: 14px; font-size: 13px; line-height: 1.3; color: var(--hx-ink-2); }
.hx-brand__text strong { display: block; color: var(--hx-ink); font-weight: 700; font-size: 14px; }

.hx-nav__links { display: flex; gap: 4px; margin-left: auto; }
.hx-nav__links a {
    position: relative; text-decoration: none; font-weight: 600; font-size: 14px; color: var(--hx-ink-2);
    padding: 8px 14px; border-radius: 999px; transition: color .2s, background .2s;
}
.hx-nav__links a:hover { color: var(--hx-blue); background: var(--hx-blue-50); }

.hx-nav__search { display: none; }

@media (max-width: 860px) {
    .hx-nav__links { display: none; }
    .hx-brand__text { display: none; }
    .hx-nav__inner { height: 64px; }
    .hx-brand img { height: 36px; }
    .hx-nav__search {
        display: flex; margin-left: auto; width: 42px; height: 42px; border-radius: 50%;
        align-items: center; justify-content: center; background: var(--hx-blue-50); color: var(--hx-blue);
        text-decoration: none; font-size: 18px;
    }
}

/* =========================================================================
   HERO
   ========================================================================= */
.hx-hero { padding-top: 8px; }

.hx-hero__frame {
    position: relative;
    border-radius: var(--hx-r-lg);
    overflow: hidden;
    min-height: clamp(460px, 62vh, 600px);
    background: var(--hx-navy);
    isolation: isolate;
    display: flex;
    align-items: flex-end;
}

.hx-hero__slides { position: absolute; inset: 0; z-index: -2; }
.hx-hero__slide {
    position: absolute; inset: 0;
    opacity: 0;
    transition: opacity 1.4s var(--hx-ease);
}
.hx-hero__slide img {
    width: 100%; height: 100%; object-fit: cover;
    transform: scale(1.14);
    transition: transform 7s linear;
}
.hx-hero__slide.is-active { opacity: 1; }
.hx-hero__slide.is-active img { transform: scale(1.04); }

.hx-hero__frame::after {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background:
        linear-gradient(90deg, rgba(7, 29, 59, .88) 0%, rgba(7, 29, 59, .55) 45%, rgba(7, 29, 59, 0) 80%),
        linear-gradient(0deg, rgba(7, 29, 59, .7) 0%, rgba(7, 29, 59, 0) 50%);
}

.hx-hero__content {
    position: relative;
    width: 100%;
    padding: clamp(28px, 5vw, 64px);
    padding-bottom: clamp(96px, 12vw, 132px);
    color: #fff;
}

.hx-hero__chip {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 7px 14px 7px 8px; border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .22);
    backdrop-filter: blur(8px);
    color: #fff; text-decoration: none; font-size: 14px; font-weight: 600;
    transition: background .25s;
}
.hx-hero__chip:hover { background: rgba(255, 255, 255, .2); }
.hx-hero__chip .hx-dot {
    width: 22px; height: 22px; border-radius: 50%;
    background: var(--hx-sun); position: relative; flex-shrink: 0;
}
.hx-hero__chip .hx-dot::after {
    content: ""; position: absolute; inset: 0; border-radius: 50%;
    border: 2px solid var(--hx-sun); animation: hx-ping 2s var(--hx-ease) infinite;
}
@keyframes hx-ping { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(2.1); opacity: 0; } }

.hx-hero__title {
    margin-top: 22px !important;
    color: #fff !important;
    font-weight: 800;
    font-size: clamp(38px, 6.4vw, 76px);
    letter-spacing: -0.035em;
    line-height: 1.02 !important;
    max-width: 13ch;
}
.hx-hero__title .hx-line { display: block; overflow: hidden; padding-bottom: .06em; }
.hx-hero__title .hx-line > span { display: inline-block; }

.hx-hero__lead { margin-top: 18px !important; max-width: 46ch; font-size: clamp(15px, 1.6vw, 18px); color: rgba(255, 255, 255, .82); }

/* Search */
.hx-search {
    margin-top: 28px; max-width: 560px;
    display: flex; align-items: center; gap: 6px;
    background: var(--hx-surface); border-radius: 999px; padding: 6px 6px 6px 20px;
    box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .55);
    transition: box-shadow .3s var(--hx-ease), transform .3s var(--hx-ease);
}
.hx-search:focus-within { box-shadow: 0 0 0 4px rgba(242, 183, 5, .55), 0 20px 50px -20px rgba(0, 0, 0, .55); transform: translateY(-2px); }
.hx-search i { color: var(--hx-ink-3); font-size: 18px; }
.hx-search input {
    flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
    font: inherit; font-size: 16px; color: var(--hx-ink); padding: 10px 4px;
}
.hx-search input::placeholder { color: var(--hx-ink-3); }

/* =========================================================================
   BUTTONS
   ========================================================================= */
.hx-btn {
    position: relative; overflow: hidden;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    border: 0; cursor: pointer; text-decoration: none;
    font: inherit; font-weight: 700; font-size: 15px;
    padding: 12px 22px; border-radius: 999px;
    background: var(--hx-blue); color: #fff !important;
    transition: background .2s, transform .2s var(--hx-ease), box-shadow .2s;
}
.hx-btn:hover { background: var(--hx-blue-600); box-shadow: 0 10px 24px -10px rgba(21, 96, 189, .7); }
.hx-btn:active { transform: scale(.97); }
.hx-btn--ghost { background: transparent; color: var(--hx-ink-2) !important; border: 1px solid var(--hx-line); }
.hx-btn--ghost:hover { background: var(--hx-paper); color: var(--hx-ink) !important; box-shadow: none; }
.hx-btn--light { background: #fff; color: var(--hx-navy) !important; }
.hx-btn--light:hover { background: var(--hx-blue-50); }
.hx-btn--block { width: 100%; }
.hx-btn .hx-ripple {
    position: absolute; border-radius: 50%; pointer-events: none;
    background: rgba(255, 255, 255, .45); transform: scale(0);
    animation: hx-ripple .6s var(--hx-ease) forwards;
}
@keyframes hx-ripple { to { transform: scale(4); opacity: 0; } }

/* =========================================================================
   SERVICES DOCK (menimpa bagian bawah hero)
   ========================================================================= */
.hx-dock {
    position: relative; z-index: 2;
    margin-top: calc(-1 * clamp(64px, 8vw, 88px));
    padding: 0 calc(var(--hx-gutter) + clamp(0px, 2.5vw, 32px));
}
.hx-dock__panel {
    background: var(--hx-surface); border-radius: var(--hx-r-lg);
    box-shadow: var(--hx-shadow-2);
    padding: clamp(18px, 3vw, 32px);
}
.hx-dock__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 20px; }
.hx-dock__head h2 { font-size: clamp(20px, 2.4vw, 26px); font-weight: 800; letter-spacing: -0.02em; }

/* Filter (segmented control) */
.hx-seg { position: relative; display: inline-flex; padding: 4px; border-radius: 999px; background: var(--hx-paper); border: 1px solid var(--hx-line); }
.hx-seg button {
    position: relative; z-index: 1; border: 0; background: transparent; cursor: pointer;
    font: inherit; font-size: 14px; font-weight: 600; color: var(--hx-ink-2);
    padding: 8px 16px; border-radius: 999px; transition: color .25s;
}
.hx-seg button[aria-pressed="true"] { color: #fff; }
.hx-seg__pill {
    position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 0; width: 0;
    border-radius: 999px; background: var(--hx-blue);
    transition: transform .45s var(--hx-ease-spring), width .45s var(--hx-ease-spring);
}

.hx-services {
    display: grid; gap: 10px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 980px) { .hx-services { grid-template-columns: repeat(2, minmax(0, 1fr)); } }


.hx-service {
    --tone: var(--hx-blue);
    display: flex; align-items: center; gap: 14px;
    padding: 14px; border-radius: var(--hx-r-md);
    text-decoration: none; color: var(--hx-ink);
    border: 1px solid transparent; background: transparent;
    font: inherit; text-align: left; cursor: pointer; width: 100%;
    transition: background .25s, border-color .25s, transform .35s var(--hx-ease), opacity .35s var(--hx-ease);
}
.hx-service:hover { background: var(--hx-paper); border-color: var(--hx-line); }
.hx-service:hover .hx-service__icon { transform: translateY(-3px) rotate(-4deg); box-shadow: 0 12px 22px -12px rgba(11, 46, 92, .5); }
.hx-service:hover .hx-service__go { opacity: 1; transform: translateX(0); }

.hx-service.is-hidden { display: none; }
.hx-service.is-entering { animation: hx-pop .45s var(--hx-ease) both; }
@keyframes hx-pop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }

.hx-service__icon {
    width: 52px; height: 52px; flex-shrink: 0; border-radius: 16px;
    display: grid; place-items: center; background: var(--hx-blue-50);
    transition: transform .4s var(--hx-ease-spring), box-shadow .3s;
}
.hx-service__icon img { width: 30px; height: 30px; object-fit: contain; border-radius: 6px; }
.hx-service__body { min-width: 0; flex: 1; }
.hx-service__title { display: block; font-weight: 700; font-size: 15px; line-height: 1.3; }
.hx-service__desc { display: block; font-size: 13px; color: var(--hx-ink-3); line-height: 1.4; margin-top: 2px; }
.hx-service__badge {
    display: inline-block; margin-left: 6px; vertical-align: 1px;
    font-size: 11px; font-weight: 700; color: var(--hx-blue);
    background: var(--hx-blue-50); padding: 1px 8px; border-radius: 999px;
}
.hx-service__go { color: var(--hx-blue); font-size: 18px; opacity: 0; transform: translateX(-6px); transition: opacity .25s, transform .3s var(--hx-ease); }
@media (hover: none) { .hx-service__go { opacity: .5; transform: none; } }

/* =========================================================================
   SECTIONS
   ========================================================================= */
.hx-section { padding: clamp(56px, 8vw, 104px) 0 0; }
/* Judul bagian: label kecil → judul (1 kata beraksen) → deskripsi; tombol "lihat semua" sejajar di kanan */
.hx-section__head {
    position: relative; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
    gap: 18px 32px; margin-bottom: 32px; padding-bottom: 22px; border-bottom: 1px solid var(--hx-line);
}
.hx-section__head::after { /* aksen biru-kuning di garis pemisah */
    content: ""; position: absolute; left: 0; bottom: -1px; width: 72px; height: 3px; border-radius: 3px;
    background: linear-gradient(90deg, var(--hx-blue), var(--hx-sun));
}
.hx-section__intro { flex: 1 1 420px; min-width: 0; max-width: 680px; }
.hx-eyebrow {
    display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px;
    padding: 6px 12px 6px 10px; border-radius: 999px; background: var(--hx-blue-50); color: var(--hx-blue);
    font-size: 12.5px; font-weight: 700; letter-spacing: .02em;
}
.hx-eyebrow i { font-size: 14px; }
.hx-eyebrow b { margin-left: 2px; padding: 2px 8px; border-radius: 999px; background: var(--hx-surface); color: var(--hx-navy); font-weight: 700; font-size: 12px; }
.hx-section__title { font-size: clamp(28px, 3.2vw, 38px); font-weight: 800; letter-spacing: -0.025em; line-height: 1.15; color: var(--hx-ink); }
.hx-accent { position: relative; color: var(--hx-blue); white-space: nowrap; }
.hx-accent::after { /* sapuan kuning tipis di bawah kata beraksen */
    content: ""; position: absolute; left: -2px; right: -2px; bottom: .06em; height: .26em; z-index: -1;
    border-radius: 4px; background: rgba(242, 183, 5, .35);
    transform: scaleX(0); transform-origin: 0 50%; transition: transform .9s var(--hx-ease) .25s;
}
.hx-section__title { position: relative; z-index: 0; }
.hx-js .hx-section__head.is-in .hx-accent::after, html:not(.hx-js) .hx-accent::after { transform: none; }
.hx-section__sub { margin-top: 10px !important; color: var(--hx-ink-2); font-size: 16px; line-height: 1.6; max-width: 58ch; }
.hx-section__more {
    flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px;
    padding: 11px 18px; border-radius: 999px; border: 1.5px solid var(--hx-line); background: var(--hx-surface);
    color: var(--hx-blue) !important; font-weight: 700; font-size: 14.5px; text-decoration: none !important;
    box-shadow: var(--hx-shadow-1); transition: background .25s, color .25s, border-color .25s, transform .3s var(--hx-ease);
}
.hx-section__more i { transition: transform .3s var(--hx-ease); }
.hx-section__more:hover { background: var(--hx-blue); border-color: var(--hx-blue); color: #fff !important; transform: translateY(-2px); }
.hx-section__more:hover i { transform: translateX(4px); }
@media (max-width: 640px) {
    .hx-section__head { padding-bottom: 18px; margin-bottom: 24px; }
    .hx-section__more { width: 100%; justify-content: center; }
    .hx-section__sub { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) { .hx-accent::after { transition: none; transform: none; } }

.hx-link {
    display: inline-flex; align-items: center; gap: 6px;
    font-weight: 700; color: var(--hx-blue) !important; text-decoration: none;
}
.hx-link i { transition: transform .3s var(--hx-ease); }
.hx-link:hover i { transform: translateX(4px); }

/* ---------- Jobs ---------- */
.hx-jobs {
    display: grid; gap: 18px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 1080px) { .hx-jobs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) {
    .hx-jobs {
        grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 82%;
        overflow-x: auto; scroll-snap-type: x mandatory;
        margin: 0 calc(-1 * var(--hx-gutter)); padding: 4px var(--hx-gutter) 16px;
        scrollbar-width: none;
    }
    .hx-jobs::-webkit-scrollbar { display: none; }
    .hx-jobs > * { scroll-snap-align: start; }
}

.hx-job {
    --accent: var(--hx-blue);
    position: relative; display: flex; flex-direction: column;
    min-height: 260px; padding: 22px;
    background: var(--hx-surface); border-radius: var(--hx-r-md);
    border: 1px solid var(--hx-line);
    text-decoration: none; color: var(--hx-ink);
    overflow: hidden;
    transition: transform .45s var(--hx-ease), box-shadow .45s var(--hx-ease), border-color .3s;
}
.hx-job::before {
    content: ""; position: absolute; left: 0; top: 0; right: 0; height: 5px; background: var(--accent);
    transform-origin: 0 50%; transform: scaleX(.18); transition: transform .6s var(--hx-ease);
}
.hx-job:hover { transform: translateY(-6px); box-shadow: var(--hx-shadow-2); border-color: transparent; }
.hx-job:hover::before { transform: scaleX(1); }
.hx-job--sun { --accent: var(--hx-sun); }
.hx-job--red { --accent: var(--hx-red); }

.hx-job__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.hx-job__logo { height: 26px; width: auto; }
.hx-job__kind { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--hx-paper); color: var(--hx-ink-2); white-space: nowrap; }
.hx-job--sun .hx-job__kind { background: #fdf3cf; color: #7a5b00; }
.hx-job--red .hx-job__kind { background: #fde4e4; color: #9b1f1f; }

.hx-job__title { margin-top: 18px !important; font-size: 19px; font-weight: 800; letter-spacing: -0.015em; line-height: 1.25; }
.hx-job__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.hx-tag { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 8px; background: var(--hx-blue-50); color: var(--hx-blue-600); }

.hx-job__foot {
    margin-top: auto; padding-top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 8px;
    border-top: 1px dashed var(--hx-line); font-size: 13px; color: var(--hx-ink-2);
}
.hx-job__foot strong { color: var(--hx-ink); }
.hx-job__arrow {
    width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
    display: grid; place-items: center; background: var(--hx-paper); color: var(--hx-ink);
    transition: background .3s, color .3s, transform .45s var(--hx-ease);
}
.hx-job:hover .hx-job__arrow { background: var(--accent); color: #fff; transform: rotate(-45deg); }
.hx-job--sun:hover .hx-job__arrow { color: var(--hx-navy); }

.hx-empty {
    grid-column: 1 / -1; text-align: center; padding: 40px 20px;
    background: var(--hx-surface); border: 1px dashed var(--hx-line); border-radius: var(--hx-r-md); color: var(--hx-ink-2);
}
.hx-empty i { font-size: 32px; color: var(--hx-ink-3); display: block; margin-bottom: 8px; }

/* ---------- News ---------- */
.hx-news {
    display: grid; gap: 18px;
    grid-template-columns: 1.4fr 1fr 1fr;
    grid-template-rows: repeat(2, minmax(200px, 1fr));
}
.hx-news > :first-child { grid-row: span 2; }
.hx-news > :nth-child(4) { grid-column: span 2; }
@media (max-width: 900px) {
    .hx-news { grid-template-columns: 1fr 1fr; grid-template-rows: none; grid-auto-rows: 220px; }
    .hx-news > :first-child { grid-column: span 2; grid-row: auto; }
    .hx-news > :nth-child(4) { grid-column: auto; }
}
@media (max-width: 560px) {
    .hx-news { grid-template-columns: 1fr; }
    .hx-news > :first-child, .hx-news > :nth-child(4) { grid-column: auto; }
}

.hx-post {
    position: relative; display: block; overflow: hidden;
    border-radius: var(--hx-r-md); background: var(--hx-navy);
    text-decoration: none; min-height: 200px;
}
.hx-post img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--hx-ease), opacity .4s; }
.hx-post::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7, 29, 59, .92) 0%, rgba(7, 29, 59, .1) 60%); }
.hx-post:hover img { transform: scale(1.07); }
.hx-post__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 20px; color: #fff; }
.hx-post__date { font-size: 13px; color: rgba(255, 255, 255, .75); }
.hx-post__title { margin-top: 4px; font-weight: 700; font-size: 17px; line-height: 1.3; color: #fff; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hx-news > :first-child .hx-post__title { font-size: clamp(19px, 2vw, 24px); }

/* ---------- Contact ---------- */
.hx-contact {
    display: grid; grid-template-columns: 1fr 1.3fr; gap: 0;
    background: var(--hx-surface); border-radius: var(--hx-r-lg); overflow: hidden; box-shadow: var(--hx-shadow-1);
}
@media (max-width: 860px) { .hx-contact { grid-template-columns: 1fr; } }

.hx-contact__info {
    position: relative; overflow: hidden;
    background: var(--hx-navy); color: #fff; padding: clamp(28px, 4vw, 44px);
}
.hx-contact__info::before {
    content: ""; position: absolute; width: 360px; height: 360px; right: -140px; bottom: -160px;
    border-radius: 50%; background: radial-gradient(circle, rgba(21, 96, 189, .9), rgba(21, 96, 189, 0) 70%);
}
.hx-contact__info h2 { color: #fff; font-size: clamp(24px, 3vw, 32px); font-weight: 800; letter-spacing: -0.02em; }
.hx-contact__info > p { margin-top: 10px; color: rgba(255, 255, 255, .78); }
.hx-contact__list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 18px; position: relative; }
.hx-contact__list li { display: flex; gap: 14px; }
.hx-contact__list i {
    flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
    background: rgba(255, 255, 255, .1); color: var(--hx-sun); font-size: 18px;
}
.hx-contact__list span { display: block; font-size: 13px; color: rgba(255, 255, 255, .65); }
.hx-contact__list a, .hx-contact__list strong { color: #fff; font-weight: 600; text-decoration: none; }
.hx-contact__list a:hover { text-decoration: underline; }
.hx-social { display: flex; gap: 10px; margin-top: 28px; position: relative; }
.hx-social a {
    width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
    background: rgba(255, 255, 255, .1); color: #fff; font-size: 18px; text-decoration: none;
    transition: background .25s, transform .35s var(--hx-ease-spring);
}
.hx-social a:hover { background: var(--hx-blue); transform: translateY(-3px); }

.hx-contact__form { padding: clamp(28px, 4vw, 44px); }
.hx-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hx-form-grid .hx-span-2 { grid-column: span 2; }
@media (max-width: 560px) { .hx-form-grid { grid-template-columns: 1fr; } .hx-form-grid .hx-span-2 { grid-column: auto; } }

/* Floating label input */
.hx-field { position: relative; }
.hx-field input, .hx-field textarea {
    width: 100%; font: inherit; font-size: 16px; color: var(--hx-ink);
    background: var(--hx-paper); border: 1.5px solid var(--hx-line); border-radius: var(--hx-r-sm);
    padding: 24px 14px 8px; outline: 0; resize: vertical;
    transition: border-color .2s, background .2s, box-shadow .2s;
}
.hx-field textarea { min-height: 132px; }
.hx-field label {
    position: absolute; left: 15px; top: 16px; pointer-events: none;
    color: var(--hx-ink-3); font-size: 15px;
    transform-origin: 0 0; transition: transform .25s var(--hx-ease), color .2s;
}
.hx-field input:focus, .hx-field textarea:focus { border-color: var(--hx-blue); background: var(--hx-surface); box-shadow: 0 0 0 4px rgba(21, 96, 189, .12); }
.hx-field input:focus + label, .hx-field input:not(:placeholder-shown) + label,
.hx-field textarea:focus + label, .hx-field textarea:not(:placeholder-shown) + label {
    transform: translateY(-10px) scale(.78); color: var(--hx-blue);
}
.hx-field.has-error input, .hx-field.has-error textarea { border-color: var(--hx-red); }
.hx-error { display: block; margin-top: 6px; font-size: 13px; color: var(--hx-red); }

.hx-form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; }
.hx-form-foot small { color: var(--hx-ink-3); }

/* =========================================================================
   FOOTER
   ========================================================================= */
.hx-footer { margin-top: clamp(56px, 8vw, 104px); background: var(--hx-navy-900); color: rgba(255, 255, 255, .7); }
.hx-footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-top: 32px; padding-bottom: 32px; }
.hx-footer__brand { display: flex; align-items: center; gap: 14px; color: #fff; text-decoration: none; }
.hx-footer__brand img { width: 52px; height: 52px; background: #fff; border-radius: 14px; padding: 4px; }
.hx-footer__brand strong { display: block; font-size: 15px; }
.hx-footer__brand span { font-size: 13px; color: rgba(255, 255, 255, .6); }
.hx-footer p { font-size: 13px; }

.hx-top {
    position: fixed; right: 18px; bottom: 18px; z-index: 900;
    width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
    background: var(--hx-blue); color: #fff; font-size: 20px;
    box-shadow: 0 12px 26px -10px rgba(21, 96, 189, .8);
    opacity: 0; transform: translateY(16px) scale(.8); pointer-events: none;
    transition: opacity .3s, transform .4s var(--hx-ease-spring);
}
.hx-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }

/* =========================================================================
   MODAL (pop-up layanan)
   ========================================================================= */
.hx-modal {
    position: fixed; inset: 0; z-index: 1200;
    display: flex; align-items: center; justify-content: center; padding: 16px;
    visibility: hidden; pointer-events: none;
}
.hx-modal.is-open { visibility: visible; pointer-events: auto; }
.hx-modal__backdrop {
    position: absolute; inset: 0; background: rgba(7, 29, 59, .55);
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    opacity: 0; transition: opacity .35s var(--hx-ease);
}
.hx-modal.is-open .hx-modal__backdrop { opacity: 1; }
.hx-modal__card {
    position: relative; width: 100%; max-width: 480px; max-height: calc(100vh - 32px); overflow: auto;
    background: var(--hx-surface); border-radius: var(--hx-r-lg); padding: 28px;
    box-shadow: 0 40px 80px -30px rgba(7, 29, 59, .6);
    opacity: 0; transform: translateY(24px) scale(.94);
    transition: opacity .3s var(--hx-ease), transform .45s var(--hx-ease-spring);
}
.hx-modal--wide .hx-modal__card { max-width: 620px; }
.hx-modal.is-open .hx-modal__card { opacity: 1; transform: none; }
.hx-modal__close {
    position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 50%;
    border: 0; background: var(--hx-paper); color: var(--hx-ink-2); cursor: pointer; font-size: 20px;
    display: grid; place-items: center; transition: background .2s, transform .3s var(--hx-ease);
}
.hx-modal__close:hover { background: var(--hx-line); transform: rotate(90deg); }
.hx-modal__icon {
    width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center;
    background: var(--hx-blue-50); color: var(--hx-blue); font-size: 26px; margin-bottom: 16px;
}
.hx-modal__icon img { width: 34px; height: 34px; object-fit: contain; border-radius: 6px; }
.hx-modal__icon--sun { background: #fdf3cf; color: #9a7300; }
.hx-modal h3 { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; padding-right: 40px; }
.hx-modal__text { margin-top: 10px !important; color: var(--hx-ink-2); }
.hx-modal__actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 24px; }

.hx-steps { list-style: none; margin: 16px 0 0; padding: 0; display: flex; gap: 10px; flex-wrap: wrap; }
.hx-steps li { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--hx-ink-2); }
.hx-steps b { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--hx-blue); color: #fff; font-size: 12px; }

.hx-bpjs-form { margin-top: 20px; }
.hx-bpjs-row { display: flex; gap: 10px; align-items: stretch; }
.hx-bpjs-row .hx-field { flex: 1; }
.hx-bpjs-row .hx-btn { flex-shrink: 0; }
@media (max-width: 460px) { .hx-bpjs-row { flex-direction: column; } }
.hx-counter { display: block; text-align: right; font-size: 12px; color: var(--hx-ink-3); margin-top: 4px; }

.hx-result { margin-top: 18px; border: 1px solid var(--hx-line); border-radius: var(--hx-r-sm); overflow: hidden; animation: hx-pop .5s var(--hx-ease) both; }
.hx-result table { width: 100%; border-collapse: collapse; font-size: 14px; }
.hx-result th { text-align: left; font-size: 12px; font-weight: 700; color: var(--hx-ink-2); background: var(--hx-paper); padding: 10px 12px; }
.hx-result td { padding: 12px; border-top: 1px solid var(--hx-line); font-weight: 600; font-variant-numeric: tabular-nums; word-break: break-all; }
@media (max-width: 460px) {
    .hx-result thead { display: none; }
    .hx-result tr { display: block; padding: 6px 0; border-top: 1px solid var(--hx-line); }
    .hx-result tr:first-child { border-top: 0; }
    .hx-result td { display: flex; justify-content: space-between; gap: 12px; border: 0; padding: 6px 12px; }
    .hx-result td::before { content: attr(data-label); font-weight: 500; color: var(--hx-ink-3); }
}
.hx-alert {
    margin-top: 18px; display: flex; gap: 10px; align-items: flex-start;
    padding: 12px 14px; border-radius: var(--hx-r-sm); font-size: 14px;
    background: #fdecec; color: #8f1d1d; animation: hx-shake .5s var(--hx-ease);
}
.hx-alert--ok { background: #e7f6ee; color: #135c34; animation: none; }
@keyframes hx-shake { 0%, 100% { transform: none; } 20% { transform: translateX(-6px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(3px); } }

body.hx-lock { overflow: hidden; }

/* =========================================================================
   REVEAL ON SCROLL
   (hanya aktif kalau JS jalan → class .hx-js di <html>)
   ========================================================================= */
.hx-js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--hx-ease), transform .8s var(--hx-ease); transition-delay: var(--d, 0s); }
.hx-js [data-reveal].is-in { opacity: 1; transform: none; }

/* Urutan animasi hero saat halaman dibuka */
.hx-js .hx-hero [data-intro] { opacity: 0; transform: translateY(18px); }
.hx-js .hx-hero .hx-line > span { transform: translateY(110%); }
.hx-js .hx-dock[data-intro] { opacity: 0; transform: translateY(40px); }
.hx-ready .hx-hero [data-intro],
.hx-ready .hx-dock[data-intro] { opacity: 1; transform: none; transition: opacity .9s var(--hx-ease), transform .9s var(--hx-ease); transition-delay: var(--d, 0s); }
.hx-ready .hx-hero .hx-line > span { transform: none; transition: transform 1s var(--hx-ease); transition-delay: var(--d, 0s); }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
    .hx-js [data-reveal], .hx-js .hx-hero [data-intro], .hx-js .hx-dock[data-intro], .hx-js .hx-hero .hx-line > span { opacity: 1 !important; transform: none !important; }
}

/* ---------- Layanan versi mobile (diletakkan di akhir agar menang urutan) ---------- */
@media (max-width: 560px) {
    /* Mobile: grid ikon 3 kolom ala super-app, deskripsi disembunyikan */
    .hx-services { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
    .hx-service { flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 12px 4px; }
    .hx-service__desc, .hx-service__go { display: none; }
    .hx-service__title { font-size: 12.5px; font-weight: 600; }
    .hx-service__badge { display: block; width: max-content; margin: 4px auto 0; font-size: 10px; }
    .hx-service__icon { width: 56px; height: 56px; }
}

/* ---------- Tombol bahasa ID / EN ---------- */
.hx-nav__end { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.hx-nav__end > .hx-nav__search, .hx-nav__end > .hx-nav__toggle { margin-left: 0 !important; }
.hx-lang { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 999px; background: var(--hx-surface); border: 1px solid var(--hx-line); box-shadow: var(--hx-shadow-1); }
.hx-lang > i { font-size: 14px; color: var(--hx-ink-3); padding: 0 4px 0 7px; }
.hx-lang a { min-width: 34px; padding: 6px 9px; border-radius: 999px; text-align: center; font-size: 12.5px; font-weight: 800; letter-spacing: .04em; color: var(--hx-ink-2) !important; text-decoration: none !important; transition: background .25s, color .25s; }
.hx-lang a:hover { color: var(--hx-blue) !important; }
.hx-lang a.is-on { background: var(--hx-blue); color: #fff !important; box-shadow: 0 4px 10px -4px rgba(21, 96, 189, .6); }
@media (max-width: 960px) { .hx-nav--pages .hx-nav__end { margin-left: auto; } }
@media (max-width: 860px) { .hx-nav__end { margin-left: auto; } .hx-lang > i { display: none; } .hx-lang a { min-width: 30px; padding: 6px 8px; } }

/* =========================================================================
   MODE TERANG / GELAP
   - <html data-theme="light|dark"> diset oleh partials/hwi/theme-head (sebelum halaman tampil)
   - Pilihan pengunjung disimpan di localStorage "hx_theme"; bila belum memilih ikut setelan HP/laptop
   ========================================================================= */
.hx-theme {
    width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--hx-line); cursor: pointer;
    background: var(--hx-surface); color: var(--hx-ink-2); box-shadow: var(--hx-shadow-1);
    display: inline-grid; place-items: center; font-size: 17px; flex-shrink: 0; padding: 0;
    transition: color .25s, background .25s, transform .4s var(--hx-ease-spring);
}
.hx-theme:hover { color: var(--hx-blue); transform: rotate(-14deg); }
.hx-theme i { grid-area: 1 / 1; transition: opacity .3s, transform .45s var(--hx-ease-spring); }
.hx-theme .hx-theme__sun { opacity: 0; transform: rotate(-90deg) scale(.5); }
[data-theme="dark"] .hx-theme .hx-theme__moon { opacity: 0; transform: rotate(90deg) scale(.5); }
[data-theme="dark"] .hx-theme .hx-theme__sun { opacity: 1; transform: none; }
@media (max-width: 860px) { .hx-theme { width: 38px; height: 38px; font-size: 16px; } }
@media (max-width: 380px) { .hx-nav__end { gap: 6px; } }

/* transisi warna halus hanya saat tombol ditekan (bukan saat halaman dimuat) */
.hx-theme-anim, .hx-theme-anim *, .hx-theme-anim *::before, .hx-theme-anim *::after {
    transition: background-color .35s ease, border-color .35s ease, color .35s ease, fill .35s ease !important;
}

.hx-modal__icon--red { background: #fde4e4; color: var(--hx-red); }

:root[data-theme="dark"] {
    color-scheme: dark;
    --hx-blue: #3b82e0;
    --hx-blue-600: #5b9bea;
    --hx-blue-50: #172d4a;
    --hx-navy: #0f2a4d;
    --hx-navy-900: #08172c;
    --hx-ink: #e7edf5;
    --hx-ink-2: #b2bfd0;
    --hx-ink-3: #8593a7;
    --hx-line: #253347;
    --hx-paper: #0c1420;
    --hx-surface: #131e2d;
    --hx-nav-bg: rgba(12, 20, 32, .74);
    --hx-nav-bg-scrolled: rgba(16, 26, 40, .92);
    --hx-shadow-1: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 14px rgba(0, 0, 0, .25);
    --hx-shadow-2: 0 2px 4px rgba(0, 0, 0, .3), 0 18px 40px -12px rgba(0, 0, 0, .6);
}
[data-theme="dark"] .hx-body { background: var(--hx-paper); }

/* logo berwarna gelap → diberi alas terang agar tetap terbaca */
[data-theme="dark"] .hx-brand img,
[data-theme="dark"] .hx-job__logo,
[data-theme="dark"] .hx-sheet__head img { background: #fff; border-radius: 10px; padding: 3px 7px; box-sizing: content-box; }
[data-theme="dark"] .hx-job__logo { border-radius: 7px; padding: 2px 5px; }

/* warna lembut (badge, notifikasi) versi gelap */
[data-theme="dark"] .hx-job--sun .hx-job__kind,
[data-theme="dark"] .hx-badge--warn,
[data-theme="dark"] .hx-modal__icon--sun { background: rgba(242, 183, 5, .16); color: #f6cf5a; }
[data-theme="dark"] .hx-job--red .hx-job__kind,
[data-theme="dark"] .hx-badge--bad,
[data-theme="dark"] .hx-modal__icon--red { background: rgba(217, 58, 58, .2); color: #ff9d9d; }
[data-theme="dark"] .hx-badge--ok { background: rgba(46, 157, 91, .2); color: #8fe0b0; }
[data-theme="dark"] .hx-alert { background: rgba(217, 58, 58, .16); color: #ffb4b4; }
[data-theme="dark"] .hx-alert--ok { background: rgba(46, 157, 91, .18); color: #9be5b9; }
[data-theme="dark"] .hx-notice { color: #cfe0f5; }
[data-theme="dark"] .hx-notice > i { color: #6aa6ef; }
[data-theme="dark"] .hx-notice--ok { background: rgba(46, 157, 91, .16); color: #9be5b9; }
[data-theme="dark"] .hx-notice--ok > i { color: #4cc483; }
[data-theme="dark"] .hx-notice--warn { background: rgba(242, 183, 5, .14); color: #f3d681; }
[data-theme="dark"] .hx-notice--warn > i { color: #f2b705; }
[data-theme="dark"] .hx-notice--bad { background: rgba(217, 58, 58, .16); color: #ffb4b4; }
[data-theme="dark"] .hx-eyebrow b { background: var(--hx-surface); color: #cfe0f5; }
[data-theme="dark"] .hx-accent { color: #6aa6ef; }
[data-theme="dark"] .hx-link, [data-theme="dark"] .hx-section__more { color: #6aa6ef; }

/* komponen halaman dalam */
[data-theme="dark"] .hx-prose { color: var(--hx-ink-2); }
[data-theme="dark"] .hx-prose h2, [data-theme="dark"] .hx-prose h3, [data-theme="dark"] .hx-prose strong { color: var(--hx-ink); }
[data-theme="dark"] .hx-table tbody tr:hover { background: #18253a; }
[data-theme="dark"] .hx-btn--soft:hover { background: #1f3a5f; }
[data-theme="dark"] .hx-file { border-color: #33445c; }
[data-theme="dark"] .hx-file.is-filled { background: rgba(46, 157, 91, .12); }
[data-theme="dark"] .hx-file.is-too-big { background: rgba(217, 58, 58, .12); }
[data-theme="dark"] .hx-action.is-off .hx-action__icon { background: #1d2939; }
[data-theme="dark"] .hx-success__mark .hx-fill { fill: rgba(46, 157, 91, .22); }
[data-theme="dark"] .hx-declare__box { border-color: #4a5a70 !important; }
[data-theme="dark"] .hx-declare.is-missing { background: rgba(217, 58, 58, .12) !important; }
[data-theme="dark"] .hx-rw__del:hover { background: rgba(217, 58, 58, .18) !important; color: #ff9d9d !important; }
[data-theme="dark"] .hx-btn--light { background: #e7edf5; }
[data-theme="dark"] input, [data-theme="dark"] select, [data-theme="dark"] textarea { color: var(--hx-ink); }
[data-theme="dark"] ::placeholder { color: var(--hx-ink-3); }

/* plugin pihak ketiga (SweetAlert2, Select2, Flatpickr) */
[data-theme="dark"] .swal2-popup { background: var(--hx-surface); color: var(--hx-ink-2); }
[data-theme="dark"] .swal2-title { color: var(--hx-ink); }
[data-theme="dark"] .swal2-html-container { color: var(--hx-ink-2); }
[data-theme="dark"] .select2-container--default .select2-selection--single,
[data-theme="dark"] .select2-dropdown { background: var(--hx-surface) !important; border-color: var(--hx-line) !important; color: var(--hx-ink); }
[data-theme="dark"] .select2-container--default .select2-selection--single .select2-selection__rendered { color: var(--hx-ink) !important; }
[data-theme="dark"] .select2-search--dropdown .select2-search__field { background: var(--hx-paper); border-color: var(--hx-line); color: var(--hx-ink); }
[data-theme="dark"] .select2-results__option[aria-selected="true"] { background: var(--hx-blue-50); }
[data-theme="dark"] .flatpickr-calendar { background: var(--hx-surface); box-shadow: var(--hx-shadow-2); }
[data-theme="dark"] .flatpickr-day, [data-theme="dark"] .flatpickr-weekday, [data-theme="dark"] .flatpickr-current-month { color: var(--hx-ink) !important; }
[data-theme="dark"] .flatpickr-day.flatpickr-disabled { color: #4a586c !important; }
[data-theme="dark"] .flatpickr-day:hover { background: var(--hx-blue-50); }
