/* ==========================================================================
   PT OKE TOK WES — Company Profile
   Gaya: Editorial Korporat dengan aksen section gelap
   Warna brand diambil dari logo: oranye #FD6602 + hitam
   ========================================================================== */

/* ---------- 1. Token ---------- */
:root {
  --paper:      #FAF8F5;
  --paper-2:    #F3EFEA;
  --ink:        #141414;
  --ink-deep:   #0B0B0B;
  --muted:      rgba(20, 20, 20, .64);
  --muted-dark: rgba(255, 255, 255, .58);
  --line:       rgba(20, 20, 20, .12);
  --line-dark:  rgba(255, 255, 255, .15);

  --brand:      #FD6602;  /* aksen, latar gelap, elemen besar */
  --brand-deep: #C24A00;  /* teks kecil di latar terang (kontras AA) */
  --wa:         #25D366;

  --wrap:  1180px;
  --gut:   clamp(1.25rem, 4vw, 2.5rem);
  --sec-y: clamp(4.5rem, 9vw, 8rem);

  --font: "Plus Jakarta Sans", ui-sans-serif, -apple-system, BlinkMacSystemFont,
          "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

h1, h2, h3 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.06;
  text-wrap: balance;
}
p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul, ol, dl, dd { margin: 0; padding: 0; }
li { list-style: none; }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 2px;
}

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

.mono { font-family: var(--mono); font-size: .94em; letter-spacing: -.01em; }

.skip-link {
  position: fixed;
  top: .75rem; left: .75rem;
  z-index: 999;
  padding: .7rem 1.1rem;
  background: var(--ink);
  color: #fff;
  font-size: .85rem;
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform .2s var(--ease);
}
.skip-link:focus { transform: none; }

/* ---------- 3. Tombol ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .95rem 1.5rem;
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: -.005em;
  line-height: 1;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease),
              border-color .2s var(--ease), transform .2s var(--ease);
}
.btn svg {
  width: 1.05em; height: 1.05em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.btn svg.ico-fill { fill: currentColor; stroke: none; }
.btn:hover { transform: translateY(-2px); }

.btn--dark  { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--brand); color: var(--ink-deep); }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); background: rgba(20, 20, 20, .04); }

.btn--wa { background: var(--wa); color: #05331A; }
.btn--wa:hover { background: #1EBE5A; color: #05331A; }

.btn--sm { padding: .6rem 1rem; font-size: .8125rem; }

/* ---------- 4. Navbar ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 245, .86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.nav.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px rgba(20, 20, 20, .05);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 74px;
  transition: min-height .25s var(--ease);
}
.nav.is-scrolled .nav__inner { min-height: 62px; }

.nav__brand { display: flex; align-items: center; gap: .7rem; }
.nav__brand img { width: 112px; height: auto; }
.nav__brand-text { display: none; border-left: 1px solid var(--line); padding-left: .7rem; }
.nav__brand-text strong {
  display: block; font-size: .82rem; font-weight: 800; letter-spacing: -.01em; line-height: 1.25;
}
.nav__brand-text small {
  display: block; font-size: .62rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--brand-deep); font-weight: 700;
}

.nav__menu { display: flex; align-items: center; gap: 1.9rem; }
.nav__menu > a:not(.btn) {
  position: relative;
  font-size: .875rem;
  font-weight: 600;
  color: var(--muted);
  padding: .35rem 0;
  transition: color .18s var(--ease);
}
.nav__menu > a:not(.btn)::after {
  content: "";
  position: absolute; left: 0; right: 100%; bottom: 0;
  height: 2px; background: var(--brand);
  transition: right .25s var(--ease);
}
.nav__menu > a:not(.btn):hover,
.nav__menu > a.is-active { color: var(--ink); }
.nav__menu > a.is-active::after { right: 0; }

.nav__toggle {
  display: grid;
  place-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  margin-right: -.5rem;
  background: none; border: 0; padding: 0; cursor: pointer;
}
.nav__toggle span {
  display: block; width: 22px; height: 2px; background: var(--ink);
  transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 5. Hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(3.5rem, 9vw, 7.5rem) clamp(3.5rem, 8vw, 6.5rem);
  overflow: hidden;
}
/* garis kolom halus — meniru grid tata letak cetak */
.hero::before {
  content: "";
  position: absolute; inset: 0;
  max-width: var(--wrap);
  margin-inline: auto;
  background-image: repeating-linear-gradient(
    90deg, var(--line) 0 1px, transparent 1px calc(100% / 6)
  );
  opacity: .5;
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  right: -12%; bottom: -35%;
  width: min(70vw, 720px); aspect-ratio: 1;
  background: radial-gradient(circle, rgba(253, 102, 2, .16), rgba(253, 102, 2, 0) 68%);
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 1; }

.eyebrow {
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--brand-deep);
}

.hero__title {
  margin-top: 1.4rem;
  font-size: clamp(2.5rem, 7.4vw, 5.25rem);
  letter-spacing: -.045em;
}
.hero__title em { font-style: normal; color: var(--brand-deep); }

.hero__lead {
  margin-top: 1.6rem;
  max-width: 46ch;
  font-size: clamp(1rem, 1.6vw, 1.1875rem);
  color: var(--muted);
}

.hero__actions {
  margin-top: 2.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

/* ---------- 6. Pita statistik (gelap) ---------- */
.stats {
  background: var(--ink-deep);
  color: #fff;
  padding-block: clamp(2.25rem, 4vw, 3.25rem);
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem 0;
}
.stat { padding-inline: clamp(1rem, 3vw, 2rem); border-left: 1px solid var(--line-dark); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat b {
  display: block;
  font-size: clamp(1.75rem, 4.2vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat span {
  display: block;
  margin-top: .6rem;
  font-size: .625rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted-dark);
}

/* ---------- 7. Kerangka section ---------- */
.sec {
  padding-block: var(--sec-y);
  scroll-margin-top: 76px;
}
.sec--alt     { background: var(--paper-2); }
.sec--contact { background: var(--paper-2); }
.sec--dark    { background: var(--ink-deep); color: #fff; }

.sec__num {
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--brand-deep);
  padding-bottom: 1.1rem;
  margin-bottom: 2.4rem;
  border-bottom: 1px solid var(--line);
}
.sec--dark .sec__num { color: var(--brand); border-bottom-color: var(--line-dark); }

.sec h2 { font-size: clamp(1.9rem, 4.2vw, 3.1rem); }

.sec__lede { max-width: 62ch; margin-bottom: 3rem; }
.sec__lede p {
  margin-top: 1.1rem;
  font-size: clamp(.9375rem, 1.4vw, 1.0625rem);
  color: var(--muted);
  max-width: 56ch;
}
.sec--dark .sec__lede p { color: var(--muted-dark); }

.sec__split { display: grid; gap: 2.5rem; }

/* ---------- 8. Tentang ---------- */
.prose p + p { margin-top: 1.35rem; }
.prose p {
  font-size: clamp(.9375rem, 1.35vw, 1.0625rem);
  color: var(--muted);
  max-width: 62ch;
}
.prose strong { color: var(--ink); font-weight: 700; }

.factcard {
  margin-top: 1.75rem;
  display: flex;
  gap: .9rem;
  padding: 1.25rem;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
}
.factcard__icon {
  width: 20px; height: 20px; flex: none; margin-top: .2rem;
  fill: none; stroke: var(--brand-deep); stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}
.factcard p { font-size: .875rem; line-height: 1.65; color: var(--muted); }

/* ---------- 9. Visi & Misi ---------- */
.visi {
  margin: 2.75rem 0 0;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  background: var(--ink-deep);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.visi::after {
  content: "";
  position: absolute; right: -60px; top: -60px;
  width: 200px; height: 200px;
  background: var(--brand);
  opacity: .14;
  transform: rotate(45deg);
}
.visi__label {
  position: relative; z-index: 1;
  font-size: .625rem; font-weight: 700; letter-spacing: .22em;
  text-transform: uppercase; color: var(--brand);
}
.visi blockquote {
  position: relative; z-index: 1;
  margin: 1rem 0 0;
  font-size: clamp(1.1875rem, 2.9vw, 1.9rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.42;
  letter-spacing: -.025em;
  max-width: 34ch;
}

.misi__label {
  margin: clamp(2.75rem, 5vw, 4rem) 0 1.5rem;
  font-size: .625rem; font-weight: 700; letter-spacing: .22em;
  text-transform: uppercase; color: var(--brand-deep);
}
.misi { display: grid; gap: 0; }
.misi li {
  display: flex;
  gap: 1.25rem;
  padding: 1.35rem 0;
  border-top: 1px solid var(--line);
}
.misi li:last-child { border-bottom: 1px solid var(--line); }
.misi span {
  flex: none;
  width: 2rem;
  font-size: .8125rem;
  font-weight: 800;
  color: var(--brand-deep);
  font-variant-numeric: tabular-nums;
  padding-top: .1rem;
}
.misi p {
  font-size: clamp(.9375rem, 1.3vw, 1.0625rem);
  color: var(--muted);
  max-width: 68ch;
}

/* ---------- 10. Layanan (kartu di latar gelap) ---------- */
.svc__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
}
.svc {
  background: var(--ink-deep);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  transition: background .25s var(--ease);
}
.svc:hover { background: #151515; }
.svc svg {
  width: 30px; height: 30px;
  fill: none; stroke: var(--brand); stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}
.svc h3 {
  margin-top: 1.35rem;
  font-size: 1.0625rem;
  letter-spacing: -.02em;
  line-height: 1.3;
}
.svc p {
  margin-top: .7rem;
  font-size: .875rem;
  line-height: 1.7;
  color: var(--muted-dark);
}

/* ---------- 11. Legalitas ---------- */
.legal { border-top: 1px solid var(--line); }
.legal__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: .3rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
}
.legal dt {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.legal dd {
  font-size: clamp(.9375rem, 1.3vw, 1.0625rem);
  font-weight: 600;
  letter-spacing: -.015em;
  line-height: 1.5;
}
.chip {
  display: inline-block;
  margin-left: .4rem;
  padding: .18rem .55rem;
  font-size: .625rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--brand-deep);
  background: rgba(253, 102, 2, .1);
  border: 1px solid rgba(253, 102, 2, .28);
  vertical-align: 2px;
}

.note {
  margin-top: 2.25rem;
  display: flex;
  gap: 1rem;
  padding: 1.4rem 1.5rem;
  background: rgba(253, 102, 2, .06);
  border: 1px solid rgba(253, 102, 2, .22);
}
.note svg {
  width: 22px; height: 22px; flex: none; margin-top: .15rem;
  fill: none; stroke: var(--brand-deep); stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}
.note p { font-size: .875rem; line-height: 1.75; color: var(--muted); max-width: 74ch; }

/* ---------- 12. Organisasi ---------- */
.org {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
  max-width: 620px;
}
.org__card {
  padding: 1.6rem 1.5rem;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--brand);
}
.org__role {
  font-size: .625rem; font-weight: 700; letter-spacing: .2em;
  text-transform: uppercase; color: var(--brand-deep);
}
.org__name {
  margin-top: .5rem;
  font-size: 1.25rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.2;
}

.commit { display: grid; gap: 0; }
.commit li {
  display: flex;
  gap: 1.15rem;
  padding: 1.35rem 0;
  border-top: 1px solid var(--line);
}
.commit li:last-child { border-bottom: 1px solid var(--line); }
.commit svg {
  width: 22px; height: 22px; flex: none; margin-top: .25rem;
  fill: none; stroke: var(--brand-deep); stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}
.commit h3 { font-size: 1rem; letter-spacing: -.02em; }
.commit p {
  margin-top: .35rem;
  font-size: .9375rem;
  color: var(--muted);
  max-width: 64ch;
}

/* ---------- 13. Kontak ---------- */
.contact { display: grid; gap: 2rem; }

.cline {
  display: flex;
  gap: 1rem;
  padding: 1.15rem 0;
  border-top: 1px solid var(--line);
  transition: color .18s var(--ease);
}
.cline:last-of-type { border-bottom: 1px solid var(--line); }
.cline svg {
  width: 22px; height: 22px; flex: none; margin-top: .35rem;
  fill: none; stroke: var(--brand-deep); stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}
.cline span {
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: -.01em;
}
.cline small {
  display: block;
  margin-bottom: .2rem;
  font-size: .625rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}
.cline:hover { color: var(--brand-deep); }

.contact__actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.contact__map {
  min-height: 320px;
  border: 1px solid var(--line);
  background: #fff;
}
.contact__map iframe { display: block; width: 100%; height: 100%; min-height: 320px; border: 0; }

/* ---------- 14. Footer ---------- */
.foot {
  background: var(--ink-deep);
  color: #fff;
  padding-top: clamp(3rem, 6vw, 4.5rem);
}
.foot__inner {
  display: grid;
  gap: 2.5rem;
  padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
}
.foot__logo {
  display: flex; align-items: center; gap: .6rem;
  font-size: 1.0625rem; font-weight: 800; letter-spacing: -.02em;
}
.foot__logo svg { width: 24px; height: 24px; flex: none; }
.foot__addr {
  margin-top: 1rem;
  font-size: .875rem; line-height: 1.75; color: var(--muted-dark);
  max-width: 34ch;
}
.foot__meta {
  margin-top: 1rem;
  font-size: .6875rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--brand);
}

.foot__nav { display: grid; gap: .7rem; align-content: start; }
.foot__nav a {
  font-size: .875rem; color: var(--muted-dark);
  transition: color .18s var(--ease);
  justify-self: start;
}
.foot__nav a:hover { color: var(--brand); }

.foot__contact { display: grid; gap: .7rem; align-content: start; }
.foot__contact a {
  font-size: .9375rem; font-weight: 700; letter-spacing: -.01em;
  justify-self: start;
  transition: color .18s var(--ease);
}
.foot__contact a:hover { color: var(--brand); }

.foot__bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem 1.5rem;
  padding-block: 1.4rem;
  border-top: 1px solid var(--line-dark);
  font-size: .75rem;
  color: var(--muted-dark);
}

/* ---------- 15. Tombol WA mengambang ---------- */
.wa-float {
  position: fixed;
  right: clamp(1rem, 3vw, 1.75rem);
  bottom: clamp(1rem, 3vw, 1.75rem);
  z-index: 90;
  display: flex;
  align-items: center;
  gap: .6rem;
  height: 56px;
  padding-inline: 1rem;
  background: var(--wa);
  color: #05331A;
  font-size: .875rem;
  font-weight: 700;
  border-radius: 999px;
  box-shadow: 0 8px 26px rgba(0, 0, 0, .22);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(.94);
  transition: opacity .3s var(--ease), transform .3s var(--ease),
              visibility .3s var(--ease), background .2s var(--ease);
}
.wa-float.is-visible { opacity: 1; visibility: visible; transform: none; }
.wa-float:hover { background: #1EBE5A; }
.wa-float svg { width: 26px; height: 26px; flex: none; fill: currentColor; }
.wa-float span { display: none; }

/* ---------- 16. Animasi masuk ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- 17. Responsif ---------- */
@media (max-width: 720px) {
  /* garis kolom dirapatkan jadi 3 agar tidak ramai di layar sempit */
  .hero::before {
    background-image: repeating-linear-gradient(
      90deg, var(--line) 0 1px, transparent 1px calc(100% / 3)
    );
  }
}

@media (max-width: 900px) {
  .nav__toggle { display: grid; }

  .nav__menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .5rem var(--gut) 1.5rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 40px rgba(20, 20, 20, .1);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s var(--ease);
  }
  .nav__menu.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__menu > a:not(.btn) {
    padding: .95rem 0;
    font-size: 1rem;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
  }
  .nav__menu > a:not(.btn)::after { display: none; }
  .nav__cta { margin-top: 1.25rem; justify-content: center; padding-block: .95rem; }
}

@media (min-width: 560px) {
  .legal__row { grid-template-columns: minmax(190px, 34%) 1fr; gap: 1.5rem; align-items: baseline; }
  .wa-float span { display: block; }
  .wa-float { padding-inline: 1.15rem 1.45rem; }
}

@media (min-width: 720px) {
  .svc__grid { grid-template-columns: repeat(2, 1fr); }
  .foot__inner { grid-template-columns: 1.4fr 1fr 1fr; gap: 3rem; }
}

@media (min-width: 901px) {
  .nav__toggle { display: none; }
  .nav__brand-text { display: block; }
  .nav__brand img { width: 96px; }
  .stats__grid { grid-template-columns: repeat(4, 1fr); }
  .sec__split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 4rem; }
  .contact { grid-template-columns: 1.05fr 1fr; gap: 3rem; align-items: start; }
}

@media (min-width: 1024px) {
  .svc__grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- 18. Preferensi gerak ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- 19. Cetak ---------- */
@media print {
  .nav, .wa-float, .contact__map, .hero__actions, .contact__actions, .skip-link { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .sec, .stats, .visi, .svc, .foot { background: #fff !important; color: #000 !important; }
  .sec { padding-block: 1.5rem; page-break-inside: avoid; }
  .svc__grid { grid-template-columns: repeat(2, 1fr); background: none; border-color: #ccc; }
  .svc svg, .visi::after, .hero::before, .hero::after { display: none; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
}
