/* =========================================================
   PT. Satu Kosong Tujuh — tema "landasan malam", aksen merah brand
   Warna brand (--brand) bisa diganti dari Dashboard → Pengaturan situs,
   turunan warnanya dihitung otomatis:
   - --sign-bg   : isi tombol (merah brand, teks putih)
   - --sign      : teks/garis merah di atas latar gelap (versi lebih terang agar terbaca)
   ========================================================= */
:root {
  --tarmac: #151D27;
  --asphalt: #212B37;
  --asphalt-2: #2A3542;
  --brand: #E60013;            /* merah logo PT 107 */
  --sign-bg: var(--brand);
  --sign-hover: #EA2636;
  --sign: #EF4755;
  --sign-glow: rgba(230, 0, 19, .3);
  --sign-ink: #121212;
  --white: #EEF1F4;
  --mist: #9AA6B5;
  --taxi: #4C86FF;
  --go: #3DDC84;
  --line: rgba(238, 241, 244, .12);

  --f-display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --f-body: "Barlow", "Segoe UI", Roboto, Arial, sans-serif;

  --s-1: .8125rem; --s0: 1rem; --s1: 1.25rem; --s2: 1.5625rem; --s3: 1.953rem; --s4: 2.441rem; --s5: 3.052rem; --s6: 3.815rem;
  --wrap: 1180px;
  --pad: clamp(1rem, 4vw, 2.5rem);
}

@supports (color: color-mix(in srgb, red, white)) {
  :root {
    --sign-hover: color-mix(in srgb, var(--brand) 85%, white);
    --sign: color-mix(in srgb, var(--brand) 72%, white);
    --sign-glow: color-mix(in srgb, var(--brand) 30%, transparent);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0; background: var(--tarmac); color: var(--white);
  font-family: var(--f-body); font-size: 1.0625rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--sign); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--sign-bg); color: #fff; padding: .6rem 1rem; font-weight: 600; }
.skip:focus { top: 1rem; }

/* ---------- Kanvas 3D ---------- */
#scene { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; display: block; }
.scrim {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(21,29,39,.78) 0%, rgba(21,29,39,.35) 45%, rgba(21,29,39,0) 70%);
}
body[data-scene="page"] .scrim { background: linear-gradient(180deg, rgba(21,29,39,.2) 0%, rgba(21,29,39,.55) 60vh, var(--tarmac) 100%); }
.no-3d #scene { display: none; }
.no-3d { background: radial-gradient(120% 80% at 70% 0%, #2a3a52 0%, var(--tarmac) 60%); }
main, .nav, .foot { position: relative; z-index: 1; }

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

/* ---------- Rambu (komponen khas) ---------- */
.sign {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--f-display); font-weight: 700; font-size: var(--s1); line-height: 1;
  letter-spacing: .01em; text-decoration: none; border: 0; cursor: pointer;
  padding: .7rem 1rem; border-radius: 3px;
}
.sign--loc { background: var(--sign-ink); color: var(--sign); box-shadow: inset 0 0 0 3px var(--sign); padding: .45rem .75rem; font-size: var(--s0); margin: 0 0 1.25rem; }
.sign--dir { background: var(--sign-bg); color: #fff; transition: transform .15s ease, background .15s; }
.sign--dir b { display: inline-grid; place-items: center; width: 1.7rem; height: 1.7rem; margin-right: -.35rem; background: rgba(0,0,0,.28); color: #fff; border-radius: 2px; font-size: 1.05rem; }
.sign--dir:hover { background: var(--sign-hover); }
.sign--dir:active { transform: translateY(1px); }
.btn-ghost {
  display: inline-flex; align-items: center; padding: .7rem 1rem; border-radius: 3px;
  font-family: var(--f-display); font-weight: 600; font-size: var(--s1); line-height: 1;
  color: var(--white); text-decoration: none; box-shadow: inset 0 0 0 2px rgba(238,241,244,.5);
}
.btn-ghost:hover { box-shadow: inset 0 0 0 2px var(--white); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.link { color: var(--sign); font-weight: 600; text-underline-offset: .25em; }
.link:hover { color: #fff; }

/* ---------- Navigasi ---------- */
.nav {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .75rem var(--pad); padding-top: max(.75rem, env(safe-area-inset-top));
  background: linear-gradient(180deg, rgba(21,29,39,.92), rgba(21,29,39,.6));
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.nav__brand img { height: 44px; width: auto; max-width: 160px; object-fit: contain; }
.nav__brand span { font-family: var(--f-display); font-weight: 700; font-size: var(--s2); }
.nav__menu { display: flex; gap: .25rem; }
.nav__menu a {
  font-family: var(--f-display); font-weight: 600; font-size: 1.125rem; text-decoration: none;
  padding: .45rem .75rem; border-radius: 3px; color: var(--white);
}
.nav__menu a:hover { background: rgba(238,241,244,.08); }
.nav__menu a.is-here { background: var(--sign-ink); color: var(--sign); box-shadow: inset 0 0 0 2px var(--sign); }
.nav__toggle { display: none; }

@media (max-width: 860px) {
  .nav__toggle { display: grid; gap: 6px; width: 44px; height: 44px; place-content: center; background: transparent; border: 0; cursor: pointer; }
  .nav__toggle span:not(.sr) { width: 24px; height: 2px; background: var(--white); transition: transform .2s; }
  .nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }
  .nav__menu {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; padding: .75rem var(--pad) 1.25rem;
    background: var(--tarmac); border-bottom: 1px solid var(--line); display: none;
  }
  .nav__menu.is-open { display: flex; }
  .nav__menu a { font-size: var(--s2); padding: .6rem .75rem; }
}

/* ---------- Beranda: babak scroll ---------- */
.stage { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 6rem 0; }
.stage--hero { min-height: calc(100vh - 70px); justify-content: space-between; padding-top: clamp(3rem, 10vh, 7rem); padding-bottom: 2rem; }
.stage--board { min-height: 130vh; }
.stage--end { min-height: 110vh; }
.hero { max-width: 40rem; }
.hero__title {
  font-family: var(--f-display); font-weight: 700; font-size: clamp(2.4rem, 5.2vw, 4.6rem);
  line-height: .98; letter-spacing: -.01em; margin: 0; text-wrap: balance;
  text-shadow: 0 2px 24px rgba(0,0,0,.45);
}
.hero__lead { font-size: var(--s1); color: #d9dee5; max-width: 34rem; margin: 1.25rem 0 0; text-shadow: 0 1px 12px rgba(0,0,0,.6); }
.partners { margin-top: 3rem; }
.partners p { color: var(--mist); margin: 0 0 .75rem; font-size: .95rem; }
.partners ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .75rem; }
.partners li a, .partners li > img { display: block; }
.foot__social { display: flex; flex-wrap: wrap; gap: .5rem; }
.partners img { height: 44px; width: auto; background: #fff; border-radius: 3px; padding: 8px 14px; object-fit: contain; }
.scroll-cue { align-self: center; margin: 2rem 0 0; font-family: var(--f-display); color: var(--mist); font-size: 1rem; display: flex; flex-direction: column; align-items: center; gap: .5rem; }
.scroll-cue::after { content: ""; width: 2px; height: 40px; background: linear-gradient(var(--sign), transparent); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0%,100% { transform: scaleY(.3); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } }

.panel {
  background: rgba(21, 29, 39, .78); border: 1px solid var(--line); border-radius: 6px;
  padding: clamp(1.25rem, 3.5vw, 2.5rem); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.panel--narrow { max-width: 38rem; }
.panel p { color: #d6dce3; }
.panel__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1.5rem; margin-bottom: 1.5rem; }
.panel__head p { margin: 0; color: var(--mist); }
.h2 { font-family: var(--f-display); font-weight: 700; font-size: clamp(var(--s3), 4vw, var(--s5)); line-height: 1.02; margin: 0 0 1rem; text-wrap: balance; }
.panel__head .h2 { margin: 0; }
.cta .h2 { font-size: clamp(var(--s3), 3.6vw, var(--s4)); }

/* ---------- Papan keberangkatan ---------- */
.board { background: #0d1117; border-radius: 4px; padding: .5rem; box-shadow: inset 0 0 0 1px #2b333d; }
.board__row {
  display: grid; grid-template-columns: 5.5rem 1fr 13rem 9rem; gap: 1rem; align-items: center;
  padding: .8rem 1rem; text-decoration: none; color: var(--white);
  border-bottom: 1px solid #1c232c; font-family: var(--f-display); font-size: 1.3rem;
}
.board__row:last-child { border-bottom: 0; }
.board__head { font-size: 1rem; color: var(--mist); font-weight: 500; padding-top: .5rem; padding-bottom: .5rem; }
a.board__row:hover { background: #18202a; }
a.board__row:hover .board__name { color: var(--sign); }
.board__code {
  font-weight: 700; color: var(--sign); letter-spacing: .12em;
  background: #161b22; border-radius: 2px; padding: .15rem .4rem; text-align: center;
  box-shadow: inset 0 -1px 0 #000, inset 0 1px 0 #262d36;
}
.board__name { font-weight: 600; }
.board__cat { color: var(--mist); font-weight: 500; }
.board__status { color: var(--go); font-weight: 600; display: flex; align-items: center; gap: .5rem; }
.board__status i { width: 8px; height: 8px; border-radius: 50%; background: var(--go); box-shadow: 0 0 8px var(--go); }
@media (max-width: 760px) {
  .board__row { grid-template-columns: 4.5rem 1fr; font-size: 1.15rem; }
  .board__cat, .board__status { display: none; }
}

/* ---------- Strip galeri beranda ---------- */
.strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: .5rem; }
.strip figure { margin: 0; position: relative; aspect-ratio: 3/4; overflow: hidden; border-radius: 3px; }
.strip img { width: 100%; height: 100%; object-fit: cover; }
.strip figcaption { position: absolute; left: .5rem; bottom: .5rem; font-family: var(--f-display); font-weight: 600; background: var(--sign-ink); color: var(--sign); padding: .1rem .45rem; border-radius: 2px; font-size: .95rem; }
@media (max-width: 860px) { .strip { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Berita ---------- */
.news-list { display: grid; gap: 0; }
.news-row { display: grid; grid-template-columns: 11rem 1fr; gap: 1.25rem; padding: 1.25rem 0; border-top: 1px solid var(--line); }
.news-row:first-child { border-top: 0; padding-top: 0; }
.news-row__img { aspect-ratio: 3/2; overflow: hidden; border-radius: 3px; background: var(--asphalt); }
.news-row__img img { width: 100%; height: 100%; object-fit: cover; }
.news-row__meta { display: flex; flex-wrap: wrap; gap: .25rem 1rem; margin: 0 0 .35rem; color: var(--mist); font-size: .9rem; }
.news-row__title { font-family: var(--f-display); font-weight: 600; font-size: var(--s2); line-height: 1.15; margin: 0 0 .4rem; }
.news-row__title a { text-decoration: none; }
.news-row__title a:hover { color: var(--sign); }
.news-row p:last-child { margin: 0; color: #cfd6de; }
@media (max-width: 600px) { .news-row { grid-template-columns: 1fr; } }

/* ---------- Halaman dalam ---------- */
.phero { padding: clamp(4rem, 14vh, 9rem) 0 clamp(3rem, 8vh, 5rem); min-height: 52vh; display: flex; align-items: flex-end; }
.phero--tall { min-height: 80vh; }
.crumbs { display: flex; flex-wrap: wrap; gap: .5rem; font-size: .95rem; color: var(--mist); margin-bottom: 1rem; }
.crumbs a { color: var(--white); text-decoration: none; }
.crumbs a:hover { color: var(--sign); }
.phero__title { font-family: var(--f-display); font-weight: 700; font-size: clamp(2.4rem, 5.6vw, 4.5rem); line-height: 1; margin: 0; max-width: 20ch; text-wrap: balance; text-shadow: 0 2px 20px rgba(0,0,0,.5); }
.phero__intro { font-size: var(--s1); color: #d9dee5; max-width: 38rem; margin: 1rem 0 0; }

.sheet { background: var(--tarmac); border-top: 4px solid var(--sign-bg); padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.block { margin-top: clamp(2.5rem, 6vw, 4.5rem); }
.block:first-child { margin-top: 0; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 20rem; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.prose { max-width: 42rem; }
.prose p, .prose li { color: #d6dce3; }
.prose h2, .prose h3 { font-family: var(--f-display); line-height: 1.1; }
.prose a { color: var(--sign); }
.prose img { border-radius: 4px; margin: 1.5rem 0; }
.lead { font-size: var(--s1); }

.facts { background: var(--asphalt); border-radius: 4px; padding: 1.5rem; position: sticky; top: 96px; }
.facts dl { margin: 0; display: grid; gap: 1rem; }
.facts dt { color: var(--mist); font-size: .9rem; }
.facts dd { margin: .1rem 0 0; font-family: var(--f-display); font-weight: 600; font-size: 1.3rem; line-height: 1.25; }
.facts dd a { color: var(--sign); }
.facts__code { color: var(--sign); letter-spacing: .12em; }
.facts__h { margin: 1.5rem 0 .5rem; color: var(--mist); font-size: .9rem; }
.facts__list { list-style: none; margin: 0; padding: 0; }
.facts__list a { display: flex; gap: .75rem; padding: .45rem 0; text-decoration: none; border-top: 1px solid var(--line); }
.facts__list a:hover { color: var(--sign); }
.facts__list span { color: var(--sign); font-family: var(--f-display); font-weight: 700; letter-spacing: .1em; min-width: 3rem; }

.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; border-top: 1px solid var(--line); padding-top: 1.5rem; }
.principles h3 { font-family: var(--f-display); font-size: var(--s2); margin: 0 0 .5rem; color: var(--sign); }
.principles p { margin: 0; color: #cfd6de; }
@media (max-width: 800px) { .principles { grid-template-columns: 1fr; } }

.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 2rem 1.5rem; }
.svc__img { display: block; aspect-ratio: 4/3; overflow: hidden; border-radius: 3px; background: var(--asphalt); }
.svc__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.svc:hover .svc__img img { transform: scale(1.04); }
.svc__code { font-family: var(--f-display); font-weight: 700; color: var(--sign); letter-spacing: .12em; margin: .9rem 0 .1rem; }
.svc h3 { font-family: var(--f-display); font-size: var(--s2); margin: 0 0 .35rem; line-height: 1.1; }
.svc h3 a { text-decoration: none; }
.svc p:last-child { margin: 0; color: #cfd6de; }

.hero-img { margin: 0 0 2rem; border-radius: 4px; overflow: hidden; }
.hero-img img { width: 100%; max-height: 520px; object-fit: cover; }

.article { max-width: 48rem; }
.source { background: var(--asphalt); padding: 1rem 1.25rem; border-left: 4px solid var(--sign); border-radius: 0 4px 4px 0; }
.source a { color: var(--sign); }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: 2rem; }
.share span { color: var(--mist); margin-right: .5rem; }
.share a { padding: .4rem .75rem; border-radius: 3px; box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; font-size: .95rem; }
.share a:hover { box-shadow: inset 0 0 0 1px var(--sign); color: var(--sign); }

/* ---------- Galeri ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.75rem; }
.filters button, .filters a {
  font: 600 1.05rem var(--f-display); padding: .45rem .85rem; border-radius: 3px; border: 0; cursor: pointer;
  background: var(--asphalt); color: var(--white); text-decoration: none;
}
.filters .is-on { background: var(--sign-ink); color: var(--sign); box-shadow: inset 0 0 0 2px var(--sign); }
.masonry { columns: 3 18rem; column-gap: .75rem; }
.masonry figure { margin: 0 0 .75rem; break-inside: avoid; position: relative; }
.masonry figure[hidden] { display: none; }
.masonry button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 3px; overflow: hidden; }
.masonry figcaption { font-size: .9rem; color: var(--mist); margin-top: .35rem; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(92vw, 1200px); }
.lightbox::backdrop { background: rgba(8, 12, 17, .9); }
.lightbox img { max-height: 86vh; width: auto; margin: 0 auto; border-radius: 4px; }
.lightbox__close { position: fixed; top: 1rem; right: 1rem; width: 44px; height: 44px; border: 0; border-radius: 3px; background: var(--sign-bg); color: #fff; font-size: 1.6rem; cursor: pointer; }

/* ---------- Form ---------- */
.form { display: grid; gap: 1rem; max-width: 42rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .form__row { grid-template-columns: 1fr; } }
.form label { display: grid; gap: .35rem; font-weight: 500; }
.form small { color: var(--mist); font-weight: 400; }
.form input[type=text], .form input[type=email], .form input[type=tel], .form textarea {
  font: inherit; color: var(--white); background: var(--asphalt); border: 1px solid #3a4655; border-radius: 3px; padding: .75rem .9rem; width: 100%;
}
.form input:focus, .form textarea:focus { border-color: var(--sign); outline: none; box-shadow: 0 0 0 3px var(--sign-glow); }
.form .check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; color: #cfd6de; }
.form .check input { width: 1.15rem; height: 1.15rem; margin-top: .2rem; accent-color: var(--sign); }
.form button { justify-self: start; }
.hp { position: absolute; left: -9999px; }
.notice { padding: 1rem 1.25rem; border-radius: 3px; margin: 0 0 1.5rem; }
.notice ul { margin: .5rem 0 0; padding-left: 1.2rem; }
.notice p { margin: 0; }
.notice--ok { background: rgba(61,220,132,.12); box-shadow: inset 4px 0 0 var(--go); }
.notice--err { background: rgba(255,90,90,.12); box-shadow: inset 4px 0 0 #ff6b6b; }
.map { width: 100%; height: 380px; border: 0; border-radius: 4px; filter: grayscale(.4) invert(.9) hue-rotate(180deg); }
.empty { color: var(--mist); }

.pager { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.pager a { color: var(--sign); font-weight: 600; }
.pager .is-off { color: #56616e; }
.pager__info { color: var(--mist); }

/* ---------- Footer ---------- */
.foot { background: #0f151d; border-top: 1px solid var(--line); padding: 3.5rem 0 calc(1.5rem + env(safe-area-inset-bottom)); }
.foot__inner { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.foot__brand img { height: 64px; width: auto; max-width: 200px; object-fit: contain; }
.foot__name { font-family: var(--f-display); font-weight: 700; font-size: var(--s2); margin: .75rem 0 .25rem; }
.foot__brand p:last-child { color: var(--mist); margin: 0; max-width: 22rem; }
.foot__h { font-family: var(--f-display); font-weight: 600; color: var(--sign); font-size: 1.15rem; margin: 0 0 .6rem; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; color: #cfd6de; }
.foot ul a { text-decoration: none; }
.foot ul a:hover { color: var(--sign); }
.foot__copy { max-width: var(--wrap); margin: 2.5rem auto 0; padding: 1.25rem var(--pad) 0; border-top: 1px solid var(--line); color: var(--mist); font-size: .9rem; }
@media (max-width: 860px) { .foot__inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot__inner { grid-template-columns: 1fr; } }

.wa { position: fixed; right: 1.25rem; bottom: calc(1.25rem + env(safe-area-inset-bottom)); z-index: 30; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #25D366; color: #fff; box-shadow: 0 6px 20px rgba(0,0,0,.35); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
