/* ==========================================================================
   PT Bara Enviro Nusantara — Sistem Desain
   Diturunkan dari Company Profile 2026: fotografi tambang hitam-putih,
   gradasi oranye–merah, tipografi tebal industrial. Tanpa framework.
   ========================================================================== */

/* --- 1. Token ------------------------------------------------------------ */
:root {
  --red:       #EE4B3C;
  --red-dk:    #D13A2C;
  --orange:    #F5A02A;
  --orange-dk: #E08B14;
  --ink:       #131313;
  --coal:      #1D1D1D;
  --coal-2:    #292929;
  --bone:      #F6F4F1;
  --bone-2:    #EBE7E2;
  --paper:     #FFFFFF;
  --body:      #3A3A3A;
  --muted:     #7C7C7C;
  --muted-dk:  #9A9A9A;
  --line:      #E1DCD6;
  --line-dk:   rgba(255,255,255,.14);

  --grad: linear-gradient(135deg, var(--orange), var(--red));

  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --head: 'Archivo', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --wrap: 1240px;
  --gut: clamp(1.25rem, 4vw, 3rem);
  --r: 2px;
  --shadow: 0 2px 6px rgba(19,19,19,.06), 0 18px 40px -22px rgba(19,19,19,.4);
  --t: 260ms cubic-bezier(.22,.61,.36,1);
}

/* --- 2. Dasar ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0; background: var(--bone); color: var(--body);
  font-family: var(--sans); font-size: 16px; line-height: 1.72;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--head); font-weight: 800; letter-spacing: -.03em;
  line-height: 1.08; margin: 0 0 .6em; color: var(--ink); text-wrap: balance;
}
p { margin: 0 0 1.1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

.wrap { width: min(100% - (var(--gut) * 2), var(--wrap)); margin-inline: auto; }

/* --- 3. Dwibahasa -------------------------------------------------------- */
html[data-lang="id"] [data-l="en"],
html[data-lang="en"] [data-l="id"] { display: none !important; }

/* --- 4. Motif tanda tangan: pita dua warna -------------------------------
   Diambil dari batang oranye + merah di halaman penutup company profile. */
.stripe { display: flex; height: 5px; width: 68px; }
.stripe i { flex: 1; }
.stripe i:first-child { background: var(--red); }
.stripe i:last-child { background: var(--orange); }
.stripe--full { width: 100%; height: 6px; }

/* --- 5. Header ----------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(19,19,19,.9);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid transparent; transition: border-color var(--t), background var(--t);
}
.site-header.is-stuck { border-bottom-color: var(--line-dk); background: rgba(19,19,19,.97); }

.nav { display: flex; align-items: center; gap: 1.4rem; height: 76px; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; margin-right: auto; }
.brand img { height: 40px; width: auto; }
.brand-txt {
  font-family: var(--head); font-size: .74rem; font-weight: 800; line-height: 1.2;
  letter-spacing: .04em; text-transform: uppercase; color: #fff;
}

.nav-links { display: flex; align-items: center; gap: .15rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  position: relative; display: block; padding: .5rem .85rem; text-decoration: none;
  font-size: .82rem; font-weight: 600; letter-spacing: .01em; color: #C9C6C2;
  transition: color var(--t);
}
.nav-links a::after {
  content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .1rem; height: 2px;
  background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform var(--t);
}
.nav-links a:hover { color: #fff; }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-links a[aria-current="page"] { color: #fff; }

.lang { display: inline-flex; border: 1px solid var(--line-dk); overflow: hidden; }
.lang button {
  font-family: var(--head); font-size: .68rem; font-weight: 700; letter-spacing: .08em;
  padding: .42rem .62rem; border: 0; background: transparent; color: #9A9A9A;
  cursor: pointer; transition: background var(--t), color var(--t);
}
.lang button:hover { color: #fff; }
.lang button[aria-pressed="true"] { background: var(--red); color: #fff; }

.burger { display: none; width: 42px; height: 42px; padding: 0; border: 1px solid var(--line-dk); background: transparent; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 11px; width: 18px; height: 2px; background: #fff; transition: transform var(--t), opacity var(--t); }
.burger span:nth-child(1) { top: 14px; }
.burger span:nth-child(2) { top: 20px; }
.burger span:nth-child(3) { top: 26px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  .burger { display: block; }
  .nav-links {
    position: fixed; inset: 76px 0 auto; flex-direction: column; align-items: stretch; gap: 0;
    padding: .5rem var(--gut) 1.5rem; background: var(--ink);
    border-bottom: 1px solid var(--line-dk);
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: transform var(--t), opacity var(--t);
  }
  .nav-links.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { padding: .85rem .5rem; font-size: .95rem; border-bottom: 1px solid var(--line-dk); }
  .nav-links a::after { display: none; }
}

/* --- 6. Bagian ----------------------------------------------------------- */
.section { padding: clamp(3.5rem, 9vw, 7rem) 0; }
.section--paper { background: var(--paper); }
.section--dark { background: var(--ink); color: #B9B6B2; }
.section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }
.section--coal { background: var(--coal); color: #B9B6B2; }
.section--coal h2, .section--coal h3 { color: #fff; }

.eyebrow {
  display: flex; align-items: center; gap: .7rem; margin: 0 0 1rem;
  font-family: var(--head); font-size: .72rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--red);
}
.eyebrow::before { content: ""; width: 26px; height: 3px; background: var(--grad); flex: none; }

.h-sec { font-size: clamp(1.9rem, 5vw, 3.2rem); }
.lede { font-size: clamp(1.02rem, 1.5vw, 1.18rem); color: var(--body); max-width: 62ch; }
.section--dark .lede, .section--coal .lede { color: #B9B6B2; }

/* --- 7. Tombol ----------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .6rem; padding: .9rem 1.7rem;
  font-family: var(--head); font-size: .82rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; text-decoration: none;
  border: 2px solid var(--red); background: var(--red); color: #fff; cursor: pointer;
  transition: transform var(--t), background var(--t), border-color var(--t), box-shadow var(--t);
}
.btn:hover { background: var(--red-dk); border-color: var(--red-dk); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--ghost { background: transparent; color: var(--red); }
.btn--ghost:hover { background: var(--red); color: #fff; }
.btn--light { background: #fff; border-color: #fff; color: var(--ink); }
.btn--light:hover { background: var(--orange); border-color: var(--orange); color: var(--ink); }
.btn--outline-light { background: transparent; border-color: rgba(255,255,255,.4); color: #fff; }
.btn--outline-light:hover { background: #fff; border-color: #fff; color: var(--ink); }
.btn svg { width: 15px; height: 15px; transition: transform var(--t); }
.btn:hover svg { transform: translateX(3px); }

/* --- 8. Hero ------------------------------------------------------------- */
.hero { position: relative; min-height: min(88vh, 760px); display: grid; align-items: center; overflow: hidden; background: var(--ink); }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); opacity: .55; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(245,160,42,.5) 0%, rgba(19,19,19,.55) 45%, rgba(19,19,19,.8) 100%);
}
.hero .wrap { position: relative; z-index: 1; padding: clamp(4rem, 12vw, 7rem) 0; }
.hero h1 {
  color: #fff; font-size: clamp(2.5rem, 7.5vw, 5.4rem); letter-spacing: -.045em;
  margin-bottom: 1.2rem; max-width: 16ch;
}
.hero h1 em { font-style: normal; color: var(--red); }
.hero .lede { color: rgba(255,255,255,.86); max-width: 56ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.2rem; }

/* --- 9. Statistik -------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.stat { background: var(--paper); padding: 1.7rem 1.4rem; }
.stat b { display: block; font-family: var(--head); font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; line-height: 1; color: var(--ink); letter-spacing: -.04em; }
/* Hanya anak langsung: <span> penghitung angka berada di dalam <b>
   dan harus tetap inline agar sufiks tidak turun baris. */
.stat > span { display: block; margin-top: .55rem; font-size: .82rem; color: var(--muted); line-height: 1.45; }
.section--dark .stats, .section--coal .stats { background: var(--line-dk); border-color: var(--line-dk); }
.section--dark .stat, .section--coal .stat { background: var(--ink); }
.section--dark .stat b, .section--coal .stat b { color: var(--orange); }
.section--dark .stat > span, .section--coal .stat > span { color: var(--muted-dk); }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* --- 10. Kartu ----------------------------------------------------------- */
.grid { display: grid; gap: 1.2rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  position: relative; background: var(--paper); border: 1px solid var(--line);
  padding: 1.9rem 1.6rem; transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.card::before {
  content: ""; position: absolute; left: -1px; top: -1px; bottom: -1px; width: 4px;
  background: var(--grad); transform: scaleY(0); transform-origin: top; transition: transform var(--t);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.card:hover::before { transform: scaleY(1); }
.card h3 { font-size: 1.1rem; margin-bottom: .5rem; }
.card p { font-size: .93rem; color: var(--body); }
.card .num { display: block; font-family: var(--head); font-size: .74rem; font-weight: 800; letter-spacing: .16em; color: var(--red); margin-bottom: .9rem; }
.card--flat::before { display: none; }
.card--flat:hover { transform: none; box-shadow: none; border-color: var(--line); }
.section--dark .card, .section--coal .card { background: var(--coal-2); border-color: var(--line-dk); }
.section--dark .card p, .section--coal .card p { color: #B9B6B2; }

.card ul { margin: 1rem 0 0; padding: 0; list-style: none; }
.card li { position: relative; padding-left: 1.15rem; font-size: .9rem; margin-bottom: .4rem; line-height: 1.55; }
.card li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; background: var(--orange); }

/* --- 11. Tenaga ahli ----------------------------------------------------- */
.experts { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.expert { background: var(--paper); padding: 1.4rem 1.4rem; transition: background var(--t); }
.expert:hover { background: var(--bone); }
.expert b { display: block; font-family: var(--head); font-size: 1rem; font-weight: 700; line-height: 1.3; color: var(--ink); }
.expert span { display: block; margin-top: .4rem; font-size: .8rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--red); }

/* --- 12. Klien ----------------------------------------------------------- */
.clients { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1px; background: var(--line-dk); border: 1px solid var(--line-dk); }
.client { background: var(--ink); padding: 1.3rem 1.4rem; transition: background var(--t); }
.client:hover { background: var(--coal-2); }
.client b { display: block; font-size: .95rem; font-weight: 600; color: #fff; line-height: 1.4; }
.client span { display: inline-block; margin-top: .5rem; font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--orange); }

/* --- 13. Galeri ---------------------------------------------------------- */
.strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.strip figure { margin: 0; overflow: hidden; background: var(--ink); aspect-ratio: 4 / 3; }
.strip img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: transform 700ms cubic-bezier(.22,.61,.36,1), filter var(--t); }
.strip figure:hover img { transform: scale(1.06); filter: grayscale(0) contrast(1); }
@media (max-width: 760px) { .strip { grid-template-columns: repeat(2, 1fr); } }

/* --- 14. Daftar berkotak ------------------------------------------------- */
.speclist { border-top: 1px solid var(--line); margin: 0; }
.speclist > div { display: grid; grid-template-columns: 240px 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.speclist dt { font-family: var(--head); font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0; }
.speclist dd { margin: 0; font-size: .95rem; color: var(--ink); }
.section--dark .speclist, .section--dark .speclist > div { border-color: var(--line-dk); }
.section--dark .speclist dd { color: #fff; }
@media (max-width: 660px) { .speclist > div { grid-template-columns: 1fr; gap: .2rem; } }

/* --- 15. Formulir -------------------------------------------------------- */
.form { display: grid; gap: 1rem; }
.field { display: grid; gap: .4rem; }
.field label { font-family: var(--head); font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  font-family: var(--sans); font-size: .95rem; color: var(--ink);
  padding: .8rem .95rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
  transition: border-color var(--t), box-shadow var(--t);
  /* min-width:0 + width:100% wajib: sebagai grid item, <select> default-nya
     melebar mengikuti opsi terpanjang dan menjebol layout di layar sempit. */
  min-width: 0; width: 100%;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(238,75,60,.16);
}
.form-note { font-size: .8rem; color: var(--muted); }

.contact-card { background: var(--paper); border: 1px solid var(--line); padding: 1.6rem 1.5rem; }
.contact-card h3 { font-size: .98rem; margin-bottom: 1rem; }
.contact-card p { font-size: .92rem; }
.contact-card a { color: var(--red); text-decoration: none; font-weight: 600; }
.contact-card a:hover { text-decoration: underline; }

/* Penanda data yang belum tersedia di company profile sumber. */
.todo {
  border-left: 4px solid var(--orange); background: #FFF6E8;
  padding: 1rem 1.2rem; font-size: .88rem; color: #7A5410;
}
.todo b { color: #5E3F06; }

/* --- 16. CTA & Footer ---------------------------------------------------- */
.cta { position: relative; background: var(--ink); color: rgba(255,255,255,.8); text-align: center; padding: clamp(3.5rem, 8vw, 6rem) 0; overflow: hidden; }
.cta::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--grad); }
.cta h2 { color: #fff; font-size: clamp(1.8rem, 4.4vw, 2.9rem); }
.cta p { max-width: 56ch; margin-inline: auto; }
.cta .btn { margin-top: 1.7rem; }

.site-footer { background: var(--coal); color: #A5A19C; padding: clamp(3rem, 6vw, 4.5rem) 0 2rem; }
.site-footer a { color: #D2CEC9; text-decoration: none; transition: color var(--t); }
.site-footer a:hover { color: var(--orange); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.1fr; gap: 2.5rem; }
.foot-grid h4 { color: #fff; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 1.1rem; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li { margin-bottom: .5rem; font-size: .88rem; }
.foot-logo { height: 46px; width: auto; margin-bottom: 1rem; }
.foot-bot { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line-dk); display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; font-size: .76rem; color: #7C7C7C; }
@media (max-width: 840px) { .foot-grid { grid-template-columns: 1fr; gap: 2rem; } }

/* --- 17. Halaman dalam --------------------------------------------------- */
.page-head { position: relative; background: var(--ink); color: rgba(255,255,255,.78); padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2.2rem, 5vw, 3.5rem); overflow: hidden; }
.page-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--grad); }
.page-head h1 { color: #fff; font-size: clamp(2.1rem, 5.5vw, 3.6rem); letter-spacing: -.04em; margin-bottom: .7rem; }
.page-head .lede { color: rgba(255,255,255,.8); }
.crumb { font-family: var(--head); font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-dk); margin-bottom: 1.1rem; }
.crumb a { text-decoration: none; color: var(--orange); }

.prose ul { padding-left: 1.15rem; }
.prose li { margin-bottom: .55rem; }
.prose h3 { font-size: 1.15rem; margin-top: 2rem; }

/* --- 18. Animasi masuk ---------------------------------------------------
   Aktif hanya jika JavaScript hidup, supaya konten tetap terbaca tanpa JS. */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity 700ms ease, transform 700ms cubic-bezier(.22,.61,.36,1); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* --- 19. Aksesibilitas --------------------------------------------------- */
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.skip { position: absolute; left: -9999px; top: 0; z-index: 200; background: var(--red); color: #fff; padding: .7rem 1.2rem; font-weight: 700; text-decoration: none; }
.skip:focus { left: 0; }

:root { --group-accent: var(--red); }
/* ==========================================================================
   GRUP PERUSAHAAN — dipakai bersama versi satu halaman dan multi-halaman.
   Tampil identik di ketiga situs (DEK, GIS, BEN) supaya keterkaitannya
   langsung terbaca; hanya warna aksen yang mengikuti merek masing-masing.
   ========================================================================== */

.groupbar {
  background: #1C1C1C;
  border-bottom: 2px solid var(--group-accent);
  color: #ADADAD;
  font-family: var(--sans);
  font-size: .74rem;
  line-height: 1.4;
}
.groupbar .wrap {
  display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1.1rem;
  padding: .5rem 0;
}
.groupbar-label {
  font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: #7C7C7C; font-size: .66rem; white-space: nowrap;
}
.groupbar-links { display: flex; flex-wrap: wrap; gap: .3rem 1.3rem; }
.groupbar-links a {
  color: #CFCFCF; text-decoration: none; white-space: nowrap;
  transition: color var(--t);
}
.groupbar-links a:hover { color: #fff; }
.groupbar-links a[aria-current="page"] {
  color: #fff; font-weight: 600;
  border-bottom: 1px solid var(--group-accent);
}

.affiliates { background: #F1F0ED; padding: clamp(2.5rem, 6vw, 4rem) 0; }
.affiliates-head { max-width: 62ch; margin-bottom: 1.8rem; }
.affiliates-head h2 { font-size: clamp(1.3rem, 3vw, 1.9rem); color: var(--ink); margin-bottom: .5rem; }
.affiliates-head p { font-size: .95rem; color: var(--muted); }

.aff-grid { display: grid; gap: 1rem; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 820px) { .aff-grid { grid-template-columns: 1fr; } }

.aff-card {
  display: flex; flex-direction: column; gap: .9rem;
  background: #fff; border: 1px solid #E2E0DC; border-radius: 8px;
  padding: 1.4rem 1.3rem; text-decoration: none; color: var(--ink);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.aff-card:hover { transform: translateY(-3px); border-color: var(--group-accent); box-shadow: 0 12px 28px -18px rgba(0,0,0,.45); }
.aff-card img { height: 44px; width: auto; max-width: 150px; object-fit: contain; object-position: left center; }
.aff-card b { font-size: .98rem; font-weight: 700; line-height: 1.35; }
.aff-card span { font-size: .86rem; color: var(--muted); line-height: 1.55; }
.aff-card em {
  font-style: normal; margin-top: auto; padding-top: .5rem;
  font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--group-accent);
}
.aff-card--here { background: #FAFAF8; cursor: default; }
.aff-card--here:hover { transform: none; box-shadow: none; border-color: #E2E0DC; }
.aff-card--here em { color: var(--muted); }

/* --- Unduh Company Profile ----------------------------------------------- */
.btn--dl svg { width: 15px; height: 15px; }
.btn--dl:hover svg { transform: translateY(2px); }

.foot-dl { margin: 1.6rem 0 0; }
.foot-dl a {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .86rem; font-weight: 600; text-decoration: none;
}
.foot-dl a svg { width: 15px; height: 15px; flex: none; transition: transform var(--t); }
.foot-dl a:hover svg { transform: translateY(2px); }
