/* =========================================================
   HRS BP EMPLOYEE SERVICE PORTAL
   PT. Hasnur Riung Sinergi – Site Borneo Prima
   Mobile-first. Vanilla CSS, tanpa framework.
   ========================================================= */

:root {
  --navy: #073B7A;
  --navy-800: #05306A;
  --royal: #1261C9;
  --gold: #F5B800;
  --gold-dark: #D9A200;

  --bg: #F5F7FA;
  --white: #FFFFFF;
  --text: #172033;
  --muted: #64748B;
  --line: #E3E8F0;
  --soft: #EEF2F8;

  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;

  --shadow-sm: 0 1px 2px rgba(7, 59, 122, .06), 0 4px 12px rgba(7, 59, 122, .05);
  --shadow-md: 0 6px 16px rgba(7, 59, 122, .10), 0 2px 4px rgba(7, 59, 122, .06);

  --wrap: 1120px;
  --nav-h: 62px;

  --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
          Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

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

img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 20px;
}

/* Ikon: satu style garis untuk semua */
.ico {
  width: 24px; height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.ico--sm { width: 17px; height: 17px; stroke-width: 2; }
.ico--xs { width: 14px; height: 14px; stroke-width: 2; }

/* Fokus keyboard terlihat jelas di seluruh portal */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--royal);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

/* =========================================================
   NAVBAR
   ========================================================= */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 220ms ease;
}
.navbar.is-scrolled { box-shadow: 0 2px 12px rgba(7, 59, 122, .08); }

.navbar__inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand__logo { height: 34px; width: auto; }

.brand__text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand__name {
  font-weight: 800;
  font-size: 15px;
  letter-spacing: .06em;
  color: var(--navy);
}
.brand__sub {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav__link {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  transition: color 200ms ease, background-color 200ms ease;
}
.nav__link:hover { color: var(--navy); background: var(--soft); }
.nav__link.is-active { color: var(--navy); background: var(--soft); }

/* =========================================================
   TOMBOL
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;              /* nyaman ditekan dari HP */
  padding: 12px 20px;
  border: 0;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .01em;
  cursor: pointer;
  text-align: center;
  transition: background-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.btn--gold {
  background: var(--gold);
  color: #12233D;
  box-shadow: 0 4px 14px rgba(245, 184, 0, .32);
}
.btn--gold:hover { background: var(--gold-dark); }

.btn--navy {
  background: var(--navy);
  color: #fff;
}
.btn--navy:hover { background: var(--royal); }

.btn--disabled {
  background: #DDE4EE;
  color: #7A8699;
  cursor: not-allowed;
  box-shadow: none;
}

.btn:active:not(.btn--disabled) { transform: translateY(1px); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, #FFFFFF 0%, #F7F9FC 100%);
  border-bottom: 1px solid var(--line);
}

/* Aksen diagonal halus di latar hero */
.hero::before {
  content: "";
  position: absolute;
  inset: auto -20% -55% 45%;
  height: 90%;
  background: linear-gradient(135deg, rgba(18, 97, 201, .07), rgba(7, 59, 122, 0));
  transform: skewY(-8deg);
  pointer-events: none;
}

/*  FOTO TAMBANG (opsional)
    Simpan foto open pit / hauling road sebagai assets/mining-bg.jpg,
    lalu hapus tanda komentar blok di bawah ini. Overlay putih sudah disiapkan
    supaya teks tetap terbaca.

.hero {
  background-image:
    linear-gradient(180deg, rgba(255,255,255,.94) 0%, rgba(247,249,252,.97) 100%),
    url("assets/mining-bg.jpg");
  background-size: cover;
  background-position: center;
}
*/

.hero__inner {
  position: relative;
  padding-block: 40px 44px;
}

.hero__site {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--navy);
  background: #E7EFFB;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.hero__title { margin-bottom: 14px; }
.hero__title-lead {
  display: block;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .28em;
  color: var(--royal);
  margin-bottom: 6px;
}
.hero__title-main {
  display: block;
  font-size: clamp(30px, 8.6vw, 46px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.02em;
  color: var(--navy);
}

.hero__company {
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
  padding-left: 12px;
  border-left: 3px solid var(--gold);
  margin-bottom: 8px;
}
.hero__tagline {
  color: var(--muted);
  font-size: 15px;
  max-width: 44ch;
  margin-bottom: 24px;
}

.hero__cta { width: 100%; }

.hero__art { display: none; }

/* =========================================================
   SECTION HEADING
   ========================================================= */
.section-head { margin-bottom: 22px; }
.section-title {
  font-size: clamp(21px, 5.6vw, 27px);
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--navy);
}
.section-sub { color: var(--muted); font-size: 15px; margin-top: 4px; }

/* =========================================================
   LAYANAN
   ========================================================= */
.services { padding-block: 40px 8px; }

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  box-shadow: var(--shadow-sm);
  transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease;
}
.card:not(.card--soon):hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #CFDCEF;
}

.card__icon {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: var(--radius-md);
  background: linear-gradient(140deg, var(--navy), var(--royal));
  color: #fff;
  margin-bottom: 16px;
}
.card__icon--soon {
  background: #DCE4F0;
  color: var(--navy);
}

.card__title {
  font-size: 18px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -.01em;
}
.card__subtitle {
  font-size: 13px;
  font-weight: 600;
  color: var(--royal);
  margin-top: 3px;
}
.card__desc {
  font-size: 14.5px;
  color: var(--muted);
  margin-top: 10px;
}
.card__note {
  font-size: 12.5px;
  color: #8593A8;
  margin-top: 8px;
  font-style: italic;
}

.card__btn { margin-top: 20px; width: 100%; }

/* Card layanan yang belum aktif */
.card--soon { background: #F2F5FA; border-style: dashed; }

.badge {
  position: absolute;
  top: 20px; right: 18px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--gold);
  color: #12233D;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
}

/* =========================================================
   BUTUH BANTUAN
   ========================================================= */
.help { padding-block: 32px 44px; }

.help__box {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-md);
  padding: 18px 18px;
  box-shadow: var(--shadow-sm);
}
.help__icon { color: var(--navy); padding-top: 2px; }
.help__title { font-size: 16px; font-weight: 800; color: var(--navy); }
.help__text { font-size: 14.5px; color: var(--muted); margin-top: 2px; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  background: var(--navy);
  color: #D9E3F2;
  padding-block: 30px 22px;
}
.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.footer__portal { font-weight: 800; color: #fff; font-size: 15px; letter-spacing: .01em; }
.footer__company { font-size: 14px; margin-top: 6px; color: #B9CBE4; line-height: 1.5; }

.footer__logos {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  background: #fff;
  border-radius: var(--radius-md);
  padding: 14px 18px;
}
.footer__logos img { height: 40px; width: auto; }

.footer__bottom {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .16);
  font-size: 12.5px;
  color: #A9BFDD;
}

/* =========================================================
   TABLET
   ========================================================= */
@media (min-width: 640px) {
  .hero__inner { padding-block: 56px 60px; }
  .hero__cta { width: auto; padding-inline: 28px; }
  .hero__tagline { font-size: 16px; }

  .services { padding-block: 56px 8px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .card { padding: 24px 22px; }

  .help__box { padding: 20px 22px; }

  .footer__inner { flex-direction: row; align-items: center; justify-content: space-between; }
  .footer__bottom { flex-direction: row; justify-content: space-between; }
}

/* =========================================================
   DESKTOP
   ========================================================= */
@media (min-width: 960px) {
  :root { --nav-h: 70px; }

  .brand__logo { height: 40px; }
  .brand__name { font-size: 17px; }
  .brand__sub { font-size: 11px; }
  .nav__link { font-size: 15px; padding: 9px 14px; }

  .hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
    align-items: center;
    gap: 40px;
    padding-block: 68px 72px;
  }
  .hero__art { display: block; }
  .hero__art svg { width: 100%; height: auto; }

  .grid { grid-template-columns: repeat(3, 1fr); gap: 22px; }
  .card { padding: 26px 24px; }

  .help { padding-block: 40px 60px; }
  .footer__logos img { height: 46px; }
}

/* =========================================================
   AKSESIBILITAS: kurangi gerak
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .card:not(.card--soon):hover { transform: none; }
}

/* =========================================================
   CETAK
   ========================================================= */
@media print {
  .navbar, .hero__art, .hero__cta { display: none; }
  body { background: #fff; }
}
