/* ==========================================================================
   LSP PATRA INDO — Design System
   1. Tokens
   2. Reset & base
   3. Typography
   4. Layout
   5. Buttons, chips, tags
   6. Header & navigation
   7. Footer & floating actions
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  --navy-950: #061a2e;
  --navy-900: #0a2138;
  --navy-800: #0e2b47;
  --navy-700: #16395a;
  --navy-600: #1f4a70;

  --teal-700: #0b6b62;
  --teal-600: #0f8a7e;
  --teal-500: #13a296;
  --teal-100: #d6f1ec;
  --teal-50: #eef9f7;

  --gold-700: #8a6512;
  --gold-600: #b48a1f;
  --gold-500: #c9a227;
  --gold-300: #e4ce93;
  --gold-100: #f8f0d8;
  --gold-50: #fdf9ee;

  --sand: #fbf8f2;
  --sand-200: #f2ece1;

  --ink: #0a1a2a;
  --body: #4c5c6d;
  --muted: #5d6d7e;
  --line: #e4e9ef;
  --line-strong: #d3dbe5;
  --white: #ffffff;
  --bg: #ffffff;

  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 30px;
  --r-pill: 999px;

  --shadow-xs: 0 1px 2px rgba(10, 33, 56, .06);
  --shadow-sm: 0 2px 8px rgba(10, 33, 56, .06), 0 1px 2px rgba(10, 33, 56, .04);
  --shadow-md: 0 12px 30px -12px rgba(10, 33, 56, .18), 0 2px 8px rgba(10, 33, 56, .05);
  --shadow-lg: 0 30px 60px -24px rgba(10, 33, 56, .28), 0 8px 20px rgba(10, 33, 56, .06);

  --container: 1240px;
  --gutter: 24px;
  --header-h: 86px;

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

  --ease: cubic-bezier(.22, .61, .36, 1);
  --dur: .28s;

  --z-header: 90;
  --z-overlay: 100;
}

/* 2. Reset & base ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.72;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }

ul, ol { list-style: none; padding: 0; }

:focus-visible {
  outline: 3px solid var(--teal-500);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--teal-100); color: var(--navy-900); }

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 200;
  padding: 12px 18px;
  background: var(--navy-900);
  color: #fff;
  border-radius: var(--r-sm);
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 16px; }

/* 3. Typography ------------------------------------------------------------ */
h1, h2, h3, h4, h5 {
  color: var(--ink);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -.025em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.15rem, 4.6vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3.1vw, 2.45rem); }
h3 { font-size: clamp(1.1rem, 1.6vw, 1.3rem); letter-spacing: -.02em; }
h4 { font-size: 1.05rem; }

p { text-wrap: pretty; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--teal-700);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--gold-500);
  border-radius: 2px;
}
.eyebrow--light { color: var(--gold-300); }
.eyebrow--light::before { background: var(--gold-300); }

.lead {
  font-size: clamp(1rem, 1.35vw, 1.075rem);
  color: var(--body);
  max-width: 62ch;
}

.ico {
  width: 22px;
  height: 22px;
  flex: none;
}
.ico--xs { width: 16px; height: 16px; }
.ico--sm { width: 18px; height: 18px; }
.ico--lg { width: 26px; height: 26px; }

/* 4. Layout ---------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding: clamp(56px, 7vw, 96px) 0; }
.section--tight { padding: clamp(40px, 5vw, 64px) 0; }
.section--sand { background: var(--sand); }
.section--dark { background: var(--navy-900); color: rgba(255, 255, 255, .72); }
.section--dark h2, .section--dark h3 { color: #fff; }

.section-head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--center .lead { margin-inline: auto; }
.section-head h2 + .lead { margin-top: 16px; }
.section-head__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  opacity: .45;
  flex: none;
}

/* 5. Buttons, chips, tags -------------------------------------------------- */
.btn {
  --btn-bg: var(--navy-900);
  --btn-fg: #fff;
  --btn-bd: transparent;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: var(--r-pill);
  border: 1px solid var(--btn-bd);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: .94rem;
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.2;
  white-space: nowrap;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              background var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
.btn .ico { transition: transform var(--dur) var(--ease); }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:hover .ico { transform: translateX(3px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: linear-gradient(120deg, var(--navy-800), var(--navy-900) 60%);
  box-shadow: 0 10px 24px -14px rgba(10, 33, 56, .8);
}
.btn--primary:hover {
  background: linear-gradient(120deg, var(--teal-700), var(--navy-900) 75%);
  box-shadow: 0 18px 34px -16px rgba(11, 107, 98, .55);
}

.btn--gold {
  --btn-bg: linear-gradient(120deg, var(--gold-500), var(--gold-600));
  --btn-fg: #241b04;
  box-shadow: 0 12px 26px -16px rgba(180, 138, 31, .9);
}

.btn--ghost {
  background: transparent;
  color: var(--navy-900);
  border-color: var(--line-strong);
}
.btn--ghost:hover { border-color: var(--navy-900); background: #fff; }

.btn--ghost-light {
  background: rgba(255, 255, 255, .06);
  color: #fff;
  border-color: rgba(255, 255, 255, .22);
}
.btn--ghost-light:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .4); }

.btn--outline {
  background: transparent;
  color: var(--navy-900);
  border-color: var(--line-strong);
  box-shadow: none;
}
.btn--outline:hover { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }

.btn--sm { padding: 11px 20px; font-size: .86rem; }
.btn--lg { padding: 18px 32px; font-size: 1rem; }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.textlink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--navy-900);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
  transition: gap var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.textlink:hover { gap: 12px; color: var(--teal-700); border-color: var(--teal-600); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  background: var(--gold-50);
  color: var(--gold-700);
  border: 1px solid rgba(201, 162, 39, .28);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  line-height: 1.5;
}
.tag--soft { background: var(--teal-50); color: var(--teal-700); border-color: rgba(15, 138, 126, .2); }
.tag--dark { background: rgba(6, 26, 46, .82); color: #fff; border-color: transparent; backdrop-filter: blur(6px); }
.tag--light { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .2); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--navy-900);
  font-size: .875rem;
  font-weight: 600;
  transition: all var(--dur) var(--ease);
}
.chip:hover { border-color: var(--navy-900); transform: translateY(-1px); }
.chip.is-active {
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: #fff;
  box-shadow: 0 10px 20px -14px rgba(10, 33, 56, .9);
}

/* 6. Header & navigation --------------------------------------------------- */
.topbar {
  background: var(--navy-950);
  color: rgba(255, 255, 255, .68);
  font-size: .79rem;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 42px;
}
.topbar__note,
.topbar__links { display: flex; align-items: center; gap: 8px; }
.topbar__links { gap: 22px; }
.topbar a { display: inline-flex; align-items: center; gap: 7px; transition: color var(--dur) var(--ease); }
.topbar a:hover { color: #fff; }
.topbar__login { color: var(--gold-300); font-weight: 600; }

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 8px 30px -18px rgba(10, 33, 56, .35); }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  min-height: var(--header-h);
}

.brand { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.brand__mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 46px;
  height: 50px;
  color: #fff;
}
.brand__mark::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: linear-gradient(155deg, var(--navy-800), var(--navy-950));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 8px 18px -12px rgba(10, 33, 56, .8);
}
.brand__shield {
  position: relative;
  width: 34px;
  height: 34px;
  color: rgba(255, 255, 255, .9);
  stroke-width: 1.3;
}
.brand__shield path:nth-child(2) { display: none; }
.brand__star { position: absolute; inset: 0; display: grid; place-items: center; }
.brand__star-ico { width: 15px; height: 15px; color: var(--gold-500); fill: var(--gold-500); }

.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__text strong {
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: .02em;
  color: var(--navy-950);
}
.brand__text span {
  margin-top: 3px;
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
}
.brand--light .brand__text strong { color: #fff; }
.brand--light .brand__text span { color: rgba(255, 255, 255, .5); }

.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 2px; }
.nav__item { position: relative; }

.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  font-size: .9rem;
  font-weight: 600;
  color: var(--navy-800);
  letter-spacing: -.01em;
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.nav__link:hover { color: var(--teal-700); background: var(--teal-50); }
.nav__link.is-active { color: var(--teal-700); }
.nav__link.is-active::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold-500);
}
.nav__chev { transition: transform var(--dur) var(--ease); opacity: .6; }
.nav__toggle[aria-expanded="true"] .nav__chev { transform: rotate(180deg); }

.mega {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  width: 380px;
  transform: translate(-50%, 8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
  z-index: 5;
}
.mega__panel {
  padding: 14px;
  border-radius: var(--r-lg);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}
.mega__label {
  padding: 6px 12px 10px;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.mega__list { display: grid; gap: 2px; }
.mega__link {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 12px;
  padding: 11px 12px;
  border-radius: var(--r-sm);
  transition: background var(--dur) var(--ease);
}
.mega__link:hover { background: var(--sand); }
.mega__title { font-size: .9rem; font-weight: 700; color: var(--navy-900); }
.mega__desc { grid-column: 1; font-size: .78rem; color: var(--muted); line-height: 1.5; }
.mega__arrow { grid-row: 1; grid-column: 2; align-self: center; color: var(--teal-600); opacity: 0; transform: translateX(-4px); transition: all var(--dur) var(--ease); }
.mega__link:hover .mega__arrow { opacity: 1; transform: translateX(0); }

.has-mega:hover .mega,
.has-mega:focus-within .mega,
.has-mega.is-open .mega {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.header__actions { display: flex; align-items: center; gap: 12px; }
.header__cta { padding: 12px 20px; }

.nav-toggle {
  display: none;
  position: relative;
  width: 46px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: #fff;
}
.nav-toggle span {
  position: absolute;
  left: 13px;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--navy-900);
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease), top var(--dur) var(--ease);
}
.nav-toggle span:first-child { top: 17px; }
.nav-toggle span:last-child { top: 24px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(6, 26, 46, .48);
  backdrop-filter: blur(2px);
}
.nav__mobile-extra { display: none; }
.nav__mobile-head { display: none; }
body.nav-open { overflow: hidden; }

/* 7. Footer & floating actions --------------------------------------------- */
.site-footer {
  background: var(--navy-950);
  color: rgba(255, 255, 255, .62);
  padding-top: clamp(48px, 6vw, 76px);
  font-size: .9rem;
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: -180px;
  right: -120px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(19, 162, 150, .18), transparent 65%);
  pointer-events: none;
}
.footer__top {
  display: grid;
  grid-template-columns: 1.5fr .9fr .9fr 1.2fr;
  gap: 40px;
  padding-bottom: 48px;
  position: relative;
}
.footer__desc { margin: 20px 0 22px; max-width: 38ch; font-size: .87rem; line-height: 1.75; }
.footer__socials { display: flex; gap: 10px; }
.social {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .16);
  color: rgba(255, 255, 255, .75);
  transition: all var(--dur) var(--ease);
}
.social:hover { background: var(--gold-500); border-color: var(--gold-500); color: var(--navy-950); transform: translateY(-2px); }
.social .ico { width: 18px; height: 18px; }

.footer__col h2,
.footer__col h3 {
  margin-bottom: 18px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #fff;
}
.footer__col ul { display: grid; gap: 11px; }
.footer__col a { transition: color var(--dur) var(--ease); }
.footer__col a:hover { color: var(--gold-300); }
.footer__contact-list li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.6; }
.footer__contact-list .ico { margin-top: 4px; color: var(--gold-300); }
.footer__contact .btn { margin-top: 22px; }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: .8rem;
}
.footer__legal { display: flex; gap: 20px; }

/* Tautan panel admin: sengaja dibuat samar (mode tersembunyi). */
.footer__legal .footer__admin {
  display: inline-flex;
  align-items: center;
  color: inherit;
  opacity: .28;
  transition: opacity var(--dur) var(--ease);
}
.footer__legal .footer__admin:hover,
.footer__legal .footer__admin:focus-visible { opacity: 1; color: var(--gold-300); }
.footer__badge { display: inline-flex; align-items: center; gap: 7px; color: var(--gold-300); font-weight: 600; }

.fab {
  position: fixed;
  right: 22px;
  bottom: 24px;
  z-index: 70;
  display: inline-flex;
  align-items: center;
  gap: 0;
  height: 56px;
  padding: 0 16px;
  border-radius: var(--r-pill);
  background: #25D366;
  color: #07301b;
  font-weight: 700;
  font-size: .88rem;
  box-shadow: 0 16px 32px -12px rgba(37, 211, 102, .6);
  transition: all var(--dur) var(--ease);
}
.fab__ico { width: 28px; height: 28px; }
.fab__label {
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  opacity: 0;
  transition: max-width .35s var(--ease), opacity .25s var(--ease), margin .35s var(--ease);
}
.fab:hover { gap: 8px; transform: translateY(-2px); }
.fab:hover .fab__label { max-width: 140px; opacity: 1; }

.to-top {
  position: fixed;
  right: 24px;
  bottom: 92px;
  z-index: 70;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy-900);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px) rotate(-90deg);
  transition: all var(--dur) var(--ease);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0) rotate(-90deg); }
.to-top:hover { background: var(--teal-700); }

/* Utilities ---------------------------------------------------------------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }

/* Reveal on scroll */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
  transition-delay: var(--delay, 0ms);
}
[data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}
