/* ==========================================================================
   Rekanusa: gaya bersama (layout, header, footer, tombol, util).
   Gaya khusus halaman ada di public/css/pages/<halaman>.css
   ========================================================================== */
:root {
  --navy: #272660;
  --navy-deep: #1C1B4C;
  --navy-footer: #16153D;
  --green: #39B54A;
  --green-hover: #2E9A3E;
  --green-text: #2A8F3A;
  --green-light: #7EDC8B;
  --green-tint: #EAF7EC;
  --text: #4A4C57;
  --text-strong: #3F4150;
  --muted: #6B6E7A;
  --muted-2: #8A8C96;
  --bg: #FBFBF9;
  --surface: #FFFFFF;
  --surface-2: #F4F7FB;
  --line: #D7D9D2;
  --line-soft: #ECEDE8;
  --font: 'Poppins', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --container: 1320px;
  --gutter: 32px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  font-family: var(--font);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--green); }
button { font-family: inherit; }
h1, h2, h3, h4 { text-wrap: balance; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 6px; }

/* Material Symbols */
.ms {
  font-family: 'Material Symbols Rounded';
  font-weight: normal;
  font-style: normal;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
}
.mono { font-family: var(--mono); }

.rk-container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.rk-skip { position: absolute; left: -9999px; top: 8px; z-index: 200; padding: 10px 16px; background: var(--navy); color: #fff; border-radius: 999px; }
.rk-skip:focus { left: 16px; color: #fff; }
.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; }

/* Progress bar & kursor */
.rk-progress { position: fixed; left: 0; top: 0; height: 3px; width: 0; background: var(--green); z-index: 80; }
.rk-cursor { position: fixed; left: 0; top: 0; z-index: 95; pointer-events: none; opacity: 0; transition: opacity .3s ease; will-change: transform; }
.rk-cursor [data-ring] {
  position: absolute; left: -17px; top: -17px; width: 34px; height: 34px; border-radius: 50%;
  border: 1.5px solid rgba(39,38,96,0.45); display: flex; align-items: center; justify-content: center;
  transition: width .35s var(--ease), height .35s var(--ease), left .35s var(--ease), top .35s var(--ease), background .3s ease, border-color .3s ease;
}
.rk-cursor [data-label] { font-family: var(--mono); font-size: 11px; color: #fff; white-space: nowrap; opacity: 0; transition: opacity .2s ease; }

/* ---------- Header ---------- */
.rk-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(251,251,249,0.86);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent; transition: border-color .3s ease;
}
.rk-header.is-scrolled { border-bottom-color: #E3E5DF; }
.rk-header__bar { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.rk-header__logo { display: flex; align-items: center; flex-shrink: 0; }
.rk-header__logo img { height: 36px; width: auto; display: block; }
.rk-nav { display: flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 500; padding: 5px; border-radius: 999px; background: #F0F1EC; }
.rk-nav__link {
  padding: 9px 16px; border-radius: 999px; color: var(--text); border: 0; background: transparent;
  font: inherit; cursor: pointer; display: flex; align-items: center; gap: 2px; white-space: nowrap;
}
.rk-nav__link:hover { color: var(--navy); background: rgba(255,255,255,0.7); }
.rk-nav__link.is-active { background: #fff; color: var(--navy); box-shadow: 0 1px 2px rgba(39,38,96,0.08); }
.rk-dd { position: relative; }
.rk-dd__toggle { padding-right: 12px; }
.rk-dd__toggle .ms { font-size: 18px; transition: transform .25s ease; }
.rk-dd.is-open .rk-dd__toggle .ms { transform: rotate(180deg); }
.rk-dd__panel { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); padding-top: 12px; z-index: 5; display: none; }
.rk-dd.is-open .rk-dd__panel { display: block; }
.rk-dd__grid { width: 540px; padding: 10px; background: #fff; border-radius: 22px; box-shadow: 0 30px 70px -24px rgba(39,38,96,0.3); border: 1px solid var(--line-soft); display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.rk-dd__list { width: 280px; padding: 8px; background: #fff; border-radius: 20px; box-shadow: 0 30px 70px -24px rgba(39,38,96,0.3); border: 1px solid #E1E7E3; display: flex; flex-direction: column; gap: 2px; }
.rk-dd__item { display: flex; gap: 12px; padding: 12px; border-radius: 16px; align-items: center; }
.rk-dd__item:hover { background: #F3F8F2; }
.rk-dd__item--sm { border-radius: 14px; }
.rk-dd__thumb { width: 52px; height: 52px; border-radius: 12px; background-size: cover; background-position: center; flex-shrink: 0; }
.rk-dd__icon { width: 44px; height: 44px; border-radius: 12px; background: var(--green-tint); color: var(--green-text); display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.rk-dd__text { display: flex; flex-direction: column; gap: 2px; }
.rk-dd__title { font-size: 14px; font-weight: 600; color: var(--navy); }
.rk-dd__blurb { font-size: 12px; line-height: 1.45; color: var(--muted); }
.rk-header__actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.rk-lang { display: flex; padding: 4px; border-radius: 999px; background: #F0F1EC; font-family: var(--mono); font-size: 12px; }
.rk-lang a { padding: 6px 10px; border-radius: 999px; color: var(--muted); }
.rk-lang a:hover { color: var(--navy); }
.rk-lang a.is-active { background: var(--navy); color: #fff; }
.rk-header__cta { display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 20px; border-radius: 999px; background: var(--navy); color: #fff; font-size: 14px; font-weight: 500; flex-shrink: 0; transition: background .2s ease; }
.rk-header__cta:hover { color: #fff; background: var(--navy-deep); }
.rk-header__cta .ms { width: 34px; height: 34px; border-radius: 50%; background: var(--green); display: flex; align-items: center; justify-content: center; font-size: 18px; }
.rk-burger { display: none; width: 46px; height: 46px; border-radius: 50%; border: none; background: var(--navy); color: #fff; align-items: center; justify-content: center; cursor: pointer; }
.rk-burger .ms { font-size: 22px; }
.rk-mobile { display: flex; flex-direction: column; padding: 8px var(--gutter) 28px; background: var(--bg); font-size: 20px; font-weight: 500; max-height: calc(100vh - 78px); overflow-y: auto; }
.rk-mobile[hidden] { display: none; }
.rk-mobile > a { display: flex; justify-content: space-between; align-items: baseline; padding: 13px 0; color: var(--navy); border-bottom: 1px solid #E6E7E1; }
.rk-mobile > a span { font-family: var(--mono); font-size: 11px; color: var(--muted-2); }
.rk-mobile__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 22px; flex-wrap: wrap; }

@media (max-width: 1279px) {
  /* Laptop kecil / iPad landscape: rapatkan menu supaya tombol CTA tetap di dalam layar. */
  .rk-header__bar { gap: 12px; }
  .rk-nav { gap: 0; }
  .rk-nav__link { padding: 9px 10px; font-size: 13.5px; }
  .rk-dd__toggle { padding-right: 6px; }
  .rk-header__actions { gap: 8px; }
  .rk-header__cta { padding-left: 14px; font-size: 13.5px; }
  .rk-header__logo img { height: 32px; }
}
@media (max-width: 1099px) {
  .rk-nav, .rk-header__actions > .rk-lang, .rk-header__cta { display: none; }
  .rk-burger { display: flex; }
}
@media (max-width: 640px) {
  :root { --gutter: 20px; }
  .rk-header__bar { height: 68px; }
  .rk-header__logo img { height: 30px; }
}

/* ---------- Tombol bersama ---------- */
.rk-btn { display: inline-flex; align-items: center; gap: 12px; padding: 7px 7px 7px 24px; border-radius: 999px; font-size: 15px; font-weight: 600; border: 0; cursor: pointer; transition: transform .25s ease, background .2s ease, color .2s ease; }
.rk-btn--green { background: var(--green); color: #fff; box-shadow: 0 16px 30px -14px rgba(57,181,74,0.7); }
.rk-btn--green:hover { color: #fff; background: var(--green-hover); }
.rk-btn--navy { background: var(--navy); color: #fff; font-weight: 500; }
.rk-btn--navy:hover { color: #fff; background: var(--navy-deep); }
.rk-btn--outline { padding: 0 24px; height: 54px; border: 1px solid var(--navy); background: rgba(255,255,255,0.7); color: var(--navy); font-weight: 500; }
.rk-btn--outline:hover { background: var(--navy); color: #fff; }
.rk-btn__dot { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.rk-btn__dot--white { background: #fff; color: var(--navy); }
.rk-btn__dot--green { background: var(--green); color: #fff; }

/* ---------- Footer ---------- */
.rk-footer { background: var(--navy-footer); color: rgba(255,255,255,0.7); }
.rk-footer__inner { max-width: var(--container); margin: 0 auto; padding: 96px var(--gutter) 32px; }
.rk-footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px; padding-bottom: 56px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.rk-footer__brand { display: flex; flex-direction: column; gap: 26px; max-width: 620px; }
.rk-footer__brand img { height: 38px; width: auto; display: block; align-self: flex-start; }
.rk-footer__tagline { margin: 0; font-size: clamp(24px, 2.6vw, 36px); line-height: 1.2; font-weight: 500; letter-spacing: -0.02em; color: #fff; }
.rk-footer__tagline span { color: var(--green); }
.rk-footer__cta { display: flex; align-items: center; gap: 12px; padding: 7px 7px 7px 22px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.25); color: #fff; font-size: 14.5px; font-weight: 500; }
.rk-footer__cta:hover { background: #fff; color: var(--navy-footer); }
.rk-footer__cta .ms { width: 38px; height: 38px; border-radius: 50%; background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.rk-footer__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.rk-footer__col { display: flex; flex-direction: column; gap: 12px; padding: 40px 24px; font-size: 14.5px; line-height: 1.5; border-left: 1px solid rgba(255,255,255,0.1); }
.rk-footer__col:first-child { padding-left: 0; border-left: 0; }
.rk-footer__col a { color: rgba(255,255,255,0.82); }
.rk-footer__col a:hover { color: var(--green-light); }
.rk-footer__label { font-family: var(--mono); font-size: 11px; color: #8E90B8; margin-bottom: 8px; }
.rk-footer__social { display: flex; flex-wrap: wrap; gap: 8px; }
.rk-footer__social a { padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.2); color: rgba(255,255,255,0.85); font-size: 13px; }
.rk-footer__social a:hover { background: var(--green); border-color: var(--green); color: #fff; }
.rk-footer__bottom { padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.1); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; font-family: var(--mono); font-size: 11px; color: #8E90B8; }
.rk-footer__motto { color: var(--green-light); }
.rk-footer__top-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.2); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.rk-footer__top-btn:hover { background: var(--green); border-color: var(--green); color: #fff; }
@media (max-width: 860px) {
  .rk-footer__col { padding: 28px 0; border-left: 0; border-top: 1px solid rgba(255,255,255,0.1); }
  .rk-footer__col:first-child { border-top: 0; }
  .rk-footer__inner { padding-top: 72px; }
}

/* ---------- Tombol WhatsApp melayang ---------- */
.rk-wa { position: fixed; right: 20px; bottom: 24px; z-index: 70; width: 58px; height: 58px; border-radius: 50%; background: #25D366; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 16px 34px -12px rgba(0,0,0,0.45); transition: transform .25s ease; }
.rk-wa:hover { color: #fff; transform: translateY(-3px) scale(1.04); }

/* ---------- Judul hero di HP ----------
   Baris judul dibuat nowrap untuk animasi masuk; di layar sempit izinkan turun baris supaya tidak terpotong,
   dan di HP kecil (<=400px) perkecil sedikit agar kata panjang ("Terintegrasi", "Construction") tetap muat. */
@media (max-width: 640px) {
  main [data-line], main h1 span { white-space: normal !important; overflow-wrap: break-word; }
}
@media (max-width: 400px) {
  main > section:first-child h1,
  main > div > section:first-child h1 { font-size: clamp(30px, 10vw, 40px) !important; }
}

/* ---------- Animasi bersama ---------- */
[data-reveal].rk-pre { opacity: 0; transform: translateY(40px); }
[data-reveal].rk-anim { transition: opacity 1s var(--ease), transform 1s var(--ease); }

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