/* ===== Base ===== */
:root {
  --brand: #0B4AA8;
  --navy: #0B1F3F;
  --navy-900: #07162E;
  --check: #0B7A45;
  --check-bright: #16A35F;
  --paper: #F5F7FB;
  --line: #DDE3EE;
  --ink: #0B1F3F;
  --muted: #4A5873;
  --nav-h: 72px;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Satoshi", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
::selection { background: #cfe0fb; color: var(--navy); }

:focus-visible {
  outline: 3px solid var(--check-bright);
  outline-offset: 3px;
  border-radius: 8px;
}

.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
  line-height: 1;
  user-select: none;
}

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

/* Grain overlay for dark bands (kept subtle, dark sections only) */
.grain::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
}

/* ===== Navigation ===== */
.site-nav {
  position: fixed; inset: 12px 12px auto 12px; z-index: 60;
  transition: transform .4s cubic-bezier(.2,.7,.2,1);
}
.site-nav__bar {
  max-width: 1240px; margin: 0 auto; height: 64px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 0 8px 0 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.82);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border: 1px solid rgba(11,31,63,.08);
  box-shadow: 0 10px 30px -18px rgba(11,31,63,.35);
}
.site-nav.is-hidden { transform: translateY(-120%); }

.brand-lockup { display: flex; align-items: center; gap: 8px; min-width: 0; }
.brand-lockup img {
  height: 44px; width: 44px; object-fit: contain; border-radius: 999px; background: #fff;
}
.brand-lockup__text { line-height: 1.05; }
.brand-lockup__text strong { display: block; font-weight: 900; font-size: 1.05rem; letter-spacing: -.01em; color: var(--navy); }
.brand-lockup__text span { display: block; font-size: .72rem; color: var(--muted); font-weight: 500; }

.nav-links { display: none; align-items: center; gap: 2px; }
.nav-links a {
  position: relative; padding: 10px 16px; border-radius: 999px;
  font-weight: 500; font-size: .95rem; color: var(--muted);
  transition: color .2s, background-color .2s;
}
.nav-links a:hover { color: var(--navy); background: rgba(11,74,168,.06); }
.nav-links a[aria-current="page"] { color: var(--navy); font-weight: 700; background: rgba(11,74,168,.09); }

.site-nav .nav-cta { display: none; }
.menu-btn.menu-btn {
  width: 48px; height: 48px; border-radius: 999px; display: grid; place-items: center;
  background: var(--navy); color: #fff;
}

@media (min-width: 1024px) {
  .nav-links { display: flex; }
  .site-nav .nav-cta { display: inline-flex; }
  .site-nav .menu-btn.menu-btn { display: none; }
}

/* Mobile sheet */
.mobile-sheet {
  position: fixed; inset: 0; z-index: 70;
  background: var(--navy-900); color: #fff;
  display: flex; flex-direction: column;
  padding: 20px 20px calc(24px + env(safe-area-inset-bottom));
  opacity: 0; visibility: hidden;
  transition: opacity .3s ease, visibility 0s linear .3s;
}
.mobile-sheet.is-open { opacity: 1; visibility: visible; transition: opacity .3s ease; }
.mobile-sheet__links { margin-top: 40px; display: flex; flex-direction: column; }
.mobile-sheet__links a {
  font-size: clamp(2rem, 9vw, 2.75rem); font-weight: 700; letter-spacing: -.02em;
  padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.1);
  display: flex; justify-content: space-between; align-items: center;
  transform: translateY(16px); opacity: 0;
  transition: transform .5s cubic-bezier(.2,.7,.2,1), opacity .5s;
}
.mobile-sheet.is-open .mobile-sheet__links a { transform: none; opacity: 1; }
.mobile-sheet.is-open .mobile-sheet__links a:nth-child(2) { transition-delay: .05s; }
.mobile-sheet.is-open .mobile-sheet__links a:nth-child(3) { transition-delay: .1s; }
.mobile-sheet.is-open .mobile-sheet__links a:nth-child(4) { transition-delay: .15s; }
.mobile-sheet__links a[aria-current="page"] { color: #8fd9b2; }
body.menu-open { overflow: hidden; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  font-weight: 700; font-size: 1rem; letter-spacing: -.005em;
  transition: transform .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn.btn--check { background: var(--check); color: #fff; }
.btn.btn--check:hover { background: #096a3c; }
.btn.btn--light { background: #fff; color: var(--navy); }
.btn.btn--light:hover { background: #e9eef8; }
.btn.btn--navy { background: var(--navy); color: #fff; }
.btn.btn--navy:hover { background: #163766; }
.btn.btn--ghost-dark { color: #fff; border: 1.5px solid rgba(255,255,255,.4); }
.btn.btn--ghost-dark:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn.btn--ghost { color: var(--navy); border: 1.5px solid rgba(11,31,63,.2); }
.btn.btn--ghost:hover { border-color: var(--navy); }
.btn.btn--sm { min-height: 44px; padding: 0 20px; font-size: .92rem; }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.link-arrow .material-symbols-outlined { transition: transform .25s ease; font-size: 20px; }
.link-arrow:hover .material-symbols-outlined { transform: translateX(4px); }

/* ===== Typography helpers ===== */
.display {
  font-weight: 900; letter-spacing: -.035em; line-height: .98;
}
.h-section { font-weight: 800; letter-spacing: -.03em; line-height: 1.04; font-size: clamp(2.1rem, 4.6vw, 3.75rem); }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.25rem); line-height: 1.6; color: var(--muted); }

/* Inline pill images inside headings */
.pill-img {
  display: inline-block; vertical-align: middle;
  width: clamp(64px, 9vw, 128px); height: clamp(34px, 4.6vw, 64px);
  border-radius: 999px; background-size: cover; background-position: center;
  margin: 0 .12em; transform: translateY(-.06em);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.35);
}

/* ===== Hero ===== */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  background: var(--navy-900); color: #fff; overflow: hidden; isolation: isolate;
}
.hero__bg {
  position: absolute; inset: -4%; z-index: -2;
  background: url("../img/hero.jpg") center/cover no-repeat;
  filter: saturate(.9) contrast(1.05);
  transform: scale(1.06);
}
.hero__wash {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 70% 60% at 50% 45%, rgba(7,22,46,.55) 0%, rgba(7,22,46,.88) 60%, rgba(7,22,46,.97) 100%),
    linear-gradient(180deg, rgba(7,22,46,.2) 0%, rgba(7,22,46,.9) 100%);
}
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 5.6rem); }
.hero .lead { color: rgba(255,255,255,.78); }

.hero-facts { border-top: 1px solid rgba(255,255,255,.14); }
.hero-facts dt { font-size: .8rem; color: rgba(255,255,255,.6); font-weight: 500; }
.hero-facts dd { font-weight: 700; font-size: 1rem; }

/* ===== Marquee ===== */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: #fff; }
.marquee__track {
  display: flex; width: max-content; gap: 0;
  animation: marquee 38s linear infinite;
}
.marquee:hover .marquee__track, .marquee:focus-within .marquee__track { animation-play-state: paused; }
.marquee__item {
  display: inline-flex; align-items: center; gap: 28px; padding: 26px 28px;
  font-weight: 800; font-size: clamp(1.4rem, 3vw, 2.3rem); letter-spacing: -.02em; color: var(--navy);
  white-space: nowrap; transition: color .2s;
}
.marquee__item:hover { color: var(--brand); }
.marquee__item .material-symbols-outlined { color: var(--check); font-size: 1em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ===== Scrub reveal text ===== */
.reveal-words .w { opacity: .14; transition: opacity .2s linear; }
.no-motion .reveal-words .w { opacity: 1; }

/* ===== Horizontal accordion (schemes) ===== */
.hacc { display: flex; flex-direction: column; gap: 10px; }
.hacc__panel {
  position: relative; overflow: hidden; border-radius: 22px;
  background: var(--navy); color: #fff; isolation: isolate;
  min-height: 84px;
  transition: flex-grow .7s cubic-bezier(.2,.7,.2,1), min-height .6s cubic-bezier(.2,.7,.2,1);
}
.hacc__img {
  position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center;
  filter: grayscale(.35) contrast(1.1); opacity: .5;
  transition: transform 1s cubic-bezier(.2,.7,.2,1), opacity .6s;
}
.hacc__panel::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(7,22,46,.2) 0%, rgba(7,22,46,.92) 75%);
}
.hacc__panel--plain { background: var(--brand); }
.hacc__panel--plain::before { background: linear-gradient(180deg, rgba(7,22,46,0) 0%, rgba(7,22,46,.5) 100%); }

.hacc__head {
  width: 100%; display: flex; align-items: center; gap: 14px; text-align: left;
  padding: 18px 20px; min-height: 84px;
}
.hacc__icon {
  flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18);
}
.hacc__title { font-weight: 800; font-size: 1.3rem; letter-spacing: -.02em; }
.hacc__chev { margin-left: auto; transition: transform .4s ease; }
.hacc__body {
  display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s cubic-bezier(.2,.7,.2,1);
}
.hacc__body > div { overflow: hidden; }
.hacc__inner { padding: 0 20px 22px; }
.hacc__panel.is-open .hacc__body { grid-template-rows: 1fr; }
.hacc__panel.is-open .hacc__chev { transform: rotate(180deg); }
.hacc__panel.is-open .hacc__img { opacity: .62; }

.tag {
  display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 8px;
  font-size: .8rem; font-weight: 700; background: rgba(255,255,255,.12); color: #fff;
}

@media (min-width: 1024px) {
  .hacc { flex-direction: row; height: 560px; gap: 12px; }
  .hacc__panel { flex: 1 1 0; min-height: 0; min-width: 0; cursor: pointer; border-radius: 26px; }
  .hacc__panel.is-open { flex-grow: 4.2; cursor: default; }
  .hacc__panel:hover .hacc__img { transform: scale(1.05); }
  .hacc__head {
    position: absolute; inset: 0; flex-direction: column; align-items: flex-start; justify-content: space-between;
    padding: 26px 22px;
  }
  .hacc__title {
    writing-mode: vertical-rl; transform: rotate(180deg); font-size: 1.6rem; white-space: nowrap;
    transition: opacity .3s ease;
  }
  .hacc__chev { display: none; }
  .hacc__panel.is-open .hacc__title { opacity: 0; }
  .hacc__body {
    position: absolute; left: 0; right: 0; bottom: 0; display: block;
    opacity: 0; transform: translateY(16px); pointer-events: none;
    transition: opacity .35s ease, transform .5s cubic-bezier(.2,.7,.2,1);
  }
  .hacc__panel.is-open .hacc__body { opacity: 1; transform: none; pointer-events: auto; transition-delay: .25s; }
  .hacc__inner { padding: 0 30px 30px; width: min(560px, 100%); }
}

/* ===== Process (pinned split) ===== */
.step-card {
  background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 28px;
}
.step-num {
  font-weight: 900; font-size: 3.5rem; line-height: 1; letter-spacing: -.04em;
  color: transparent; -webkit-text-stroke: 1.5px var(--brand);
}

/* ===== Image scale/fade on scroll ===== */
.scale-media { overflow: hidden; border-radius: 28px; }
.scale-media img { width: 100%; height: 100%; object-fit: cover; }

/* ===== Bento (profil) ===== */
.bento { display: grid; gap: 14px; grid-template-columns: 1fr; grid-auto-flow: dense; }
@media (min-width: 768px) {
  .bento { grid-template-columns: repeat(3, 1fr); grid-auto-rows: minmax(260px, auto); }
  .bento .b-wide { grid-column: span 2; }
  .bento .b-tall { grid-row: span 2; }
}

/* ===== Scheme stack (sertifikasi) ===== */
.stack-card { position: sticky; top: calc(var(--nav-h) + 28px); }
@media (max-width: 767px) { .stack-card { position: relative; top: auto; } }

/* ===== Forms ===== */
.field label { display: block; font-weight: 700; font-size: .92rem; margin-bottom: 8px; color: var(--navy); }
.field input, .field select, .field textarea {
  width: 100%; border-radius: 14px; border: 1.5px solid var(--line); background: #fff;
  padding: 14px 16px; font-size: 1rem; color: var(--navy); font-family: inherit;
  transition: border-color .2s, box-shadow .2s;
}
.field input::placeholder, .field textarea::placeholder { color: #8892a6; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(11,74,168,.14);
}
.field .err { display: none; color: #b42318; font-size: .85rem; margin-top: 6px; font-weight: 500; }
.field.has-error input, .field.has-error textarea { border-color: #b42318; }
.field.has-error .err { display: block; }

.contact-row {
  display: flex; gap: 16px; align-items: flex-start; padding: 20px 0; border-bottom: 1px solid var(--line);
}
.contact-row:last-child { border-bottom: 0; }
.contact-row .ico {
  flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: #E8EFFB; color: var(--brand);
}

/* ===== Footer ===== */
.site-footer a { transition: color .2s; }
.site-footer a:hover { color: #fff; }

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .marquee__track { animation: none; }
}
