/* Arah visual: referensi T1 Energy. Kanvas vellum, teks carbon, headline tipis (300),
   tanpa warna aksen dan tanpa bayangan. Emas hanya muncul di logo. */
:root {
  --vellum: #f0efe9;
  --paper: #ffffff;
  --carbon: #322d2a;
  --onyx: #0f0e12;
  /* Mercury (#8b8b8b) dari referensi gagal kontras AA di atas vellum, jadi digelapkan */
  --muted: #5f5a55;
  --muted-on-dark: #c8c3bc;
  --hairline: #d9d6cc;
  --focus: #1f5fd1;

  --r-small: 8px;
  --r-body: 12px;
  --r-nav: 16px;
  --r-pill: 100px;
  --r-image: clamp(32px, 8vw, 80px);

  --wrap: 1200px;
  --gutter: 16px;
  --font: "Inter", "Helvetica Neue", Arial, sans-serif;
}
@media (min-width: 760px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.5;
  letter-spacing: 0.01em;
  color: var(--carbon);
  background: var(--vellum);
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { margin: 0; font-weight: 300; letter-spacing: 0.01em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
[id] { scroll-margin-top: 24px; }

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

.skip {
  position: absolute; left: 8px; top: -80px; z-index: 100;
  background: var(--carbon); color: #fff; padding: 12px 16px; border-radius: var(--r-small);
}
.skip:focus { top: 8px; }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.site-header :focus-visible, .hero :focus-visible, .why-panel :focus-visible,
.site-footer :focus-visible, .wa-float:focus-visible { outline-color: #9cc0ff; }

/* Label section: kotak 4px + teks kecil kapital, penanda khas referensi */
.label {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.75rem; line-height: 1.3; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--carbon); margin-bottom: 20px;
}
.label::before { content: ""; width: 4px; height: 4px; background: currentColor; flex: none; }
.label-light { color: #fff; }

/* Tombol: pill penuh, pasangan isi dan garis */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 14px 22px;
  font: 400 1rem/1.2 var(--font); letter-spacing: 0.01em;
  text-decoration: none; white-space: nowrap;
  border-radius: var(--r-pill); border: 1px solid transparent;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-sm { min-height: 44px; padding: 10px 18px; font-size: 0.9375rem; }
.btn-dark { background: var(--carbon); color: #fff; }
.btn-dark:hover { background: var(--onyx); }
.btn-light { background: #fff; color: var(--carbon); }
.btn-light:hover { background: var(--vellum); }
.btn-ghost { border-color: var(--carbon); color: var(--carbon); }
.btn-ghost:hover { background: var(--carbon); color: #fff; }
.btn-ghost-light { border-color: #fff; color: #fff; }
.btn-ghost-light:hover { background: #fff; color: var(--carbon); }
.wa-icon { width: 18px; height: 18px; flex: none; }

/* Navigasi: pill gelap mengambang */
/* Navigasi diam di atas hero dan ikut ter-scroll (tidak mengikuti layar) */
.site-header {
  position: absolute; top: 12px; left: 0; right: 0; z-index: 50;
  padding: 0 12px; pointer-events: none;
}
@media (min-width: 760px) { .site-header { top: 20px; padding: 0 24px; } }
/* stretch: pill logo selalu setinggi pill menu, jadi keduanya rata saat menyatu */
.header-bar { position: relative; display: flex; justify-content: space-between; align-items: stretch; gap: 8px; }

/* Kaca gelap hanya di header (satu unit) supaya terbaca di atas video */
.nav-pill, .brand {
  pointer-events: auto;
  background: rgba(50, 45, 42, .78);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  border-radius: var(--r-nav);
}
.nav-pill { display: flex; align-items: center; gap: 8px; padding: 6px; color: #fff; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; min-height: 56px; padding: 6px 14px 6px 10px; }
.brand img { width: 36px; height: 36px; }
.brand-name { font-size: 0.9375rem; line-height: 1.15; }
.nav-links { display: none; }
@media (max-width: 480px) {
  .brand-name { display: none; }
  .brand { padding: 6px 10px; }
}
@media (min-width: 900px) {
  .nav-pill { padding: 6px 6px 6px 12px; }
  .nav-links { display: flex; gap: 4px; }
  .nav-links a {
    color: #fff; text-decoration: none; font-size: 0.9375rem;
    padding: 12px 14px; border-radius: var(--r-small);
  }
  .nav-links a:hover { background: rgba(255, 255, 255, .1); }
}

/* Hero: video full-bleed, judul putih langsung di atas gambar seperti referensi.
   Bedanya satu: ada gradasi gelap tipis dari bawah, karena tanpa itu teks putih
   di area terang video tidak lolos kontras WCAG AA. */
.hero {
  position: relative; overflow: hidden;
  min-height: max(620px, 100svh);
  display: flex; align-items: flex-end;
  background: var(--onyx); color: #fff;
}
.hero-media, .hero-media picture, .hero-media img, .hero-video, .hero-scrim {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
.hero-media img, .hero-video { object-fit: cover; }
.hero-video { opacity: 0; transition: opacity .6s ease; }
.hero-video.is-playing { opacity: 1; }
.hero-scrim {
  background:
    linear-gradient(to top, rgba(15, 14, 18, .82) 0%, rgba(15, 14, 18, .45) 45%, rgba(15, 14, 18, .12) 75%, rgba(15, 14, 18, .25) 100%),
    linear-gradient(to right, rgba(15, 14, 18, .35), rgba(15, 14, 18, 0) 60%);
}
.hero-inner {
  position: relative; width: 100%;
  padding-top: 120px; padding-bottom: 48px;
  display: grid; gap: 32px; align-items: end;
}
.hero h1 { font-size: clamp(2.5rem, 10vw, 4.25rem); line-height: 1; max-width: 13em; }
.hero-sub { margin-top: 20px; font-size: 1.125rem; line-height: 1.45; color: #e4e0da; max-width: 30em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.hero-actions .btn { flex: 1 1 190px; }
.btn-ghost-light { background: rgba(15, 14, 18, .25); }

.video-toggle {
  position: absolute; top: 96px; right: 24px; z-index: 2;
  width: 44px; height: 44px; border-radius: var(--r-pill);
  border: 1px solid rgba(255, 255, 255, .7); background: rgba(15, 14, 18, .35); color: #fff;
  display: grid; place-items: center; cursor: pointer; padding: 0;
}
.video-toggle[hidden] { display: none; }
.video-toggle svg { width: 18px; height: 18px; }
.video-toggle .i-play { display: none; }
.video-toggle[aria-pressed="true"] .i-play { display: block; }
.video-toggle[aria-pressed="true"] .i-pause { display: none; }

@media (min-width: 760px) {
  .hero-inner { padding-bottom: 56px; }
  .hero-actions .btn { flex: 0 0 auto; }
}

/* Section */
.section { padding: 56px 0; }
@media (min-width: 760px) { .section { padding: 80px 0; } }
.section h2 { font-size: clamp(2rem, 6vw, 3.25rem); line-height: 1; }
.lead { margin-top: 18px; color: var(--muted); font-size: 1.0625rem; max-width: 34em; }
.split-head { margin-bottom: 40px; }
@media (min-width: 900px) {
  .split-head { display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; align-items: end; }
  .split-head .label { grid-column: 1 / -1; }
  .split-head .lead { margin-top: 0; }
}
.split { display: grid; gap: 32px; }
@media (min-width: 900px) { .split { grid-template-columns: 5fr 7fr; gap: 48px; align-items: start; } }

/* Produk unggulan: foto "porthole" dengan sudut sangat bulat, ukuran tampil besar seperti lembar spesifikasi */
/* Desktop: 4 loading dock sejajar satu baris, fender di baris sendiri.
   Ukuran foto dijaga supaya nyaman dilihat di zoom browser 100% */
.featured-grid { display: grid; gap: 40px 20px; }
@media (min-width: 640px) { .featured-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .featured-grid { grid-template-columns: repeat(4, 1fr); gap: 48px 20px; } }
.porthole {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--r-image);
  background: #dedbd2;
}
.product .porthole { border-radius: clamp(28px, 3.2vw, 44px); }
/* Kolom flex: tombol didorong ke bawah supaya rata walau judul ada yang dua baris */
.product { display: flex; flex-direction: column; }
.product-body { padding: 18px 4px 0; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; flex: 1; }
.product-body .btn { margin-top: auto; }
.product h3 { font-size: 1.25rem; line-height: 1.3; font-weight: 400; }
.spec {
  display: block; margin-top: 4px;
  font-size: 1.625rem; line-height: 1.2; font-weight: 300;
  font-variant-numeric: tabular-nums;
}
@media (min-width: 1000px) {
  .product h3 { font-size: 1.125rem; }
  .spec { font-size: 1.5rem; }
}
@media (min-width: 640px) {
  .product--wide { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
  .product--wide .product-body { padding: 0; }
  .product--wide .porthole { aspect-ratio: 16 / 10; }
}
@media (min-width: 1000px) {
  .product--wide { grid-template-columns: 1fr 1fr; gap: 48px; }
  .product--wide h3 { font-size: 1.375rem; }
  .product--wide .spec { font-size: 2.5rem; line-height: 1.1; margin-top: 8px; }
}

/* Lembar putih di atas vellum */
.sheet { background: var(--paper); border-radius: var(--r-body); padding: 22px; }
.cat-grid { display: grid; gap: 16px; }
@media (min-width: 900px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
.cat-grid .sheet { display: flex; flex-direction: column; gap: 18px; }
.sheet h3 { font-size: 1.375rem; line-height: 1.3; font-weight: 400; }
.lines li { padding: 11px 0; border-top: 1px solid var(--hairline); }
.lines li:last-child { border-bottom: 1px solid var(--hairline); }
.cat-grid .btn { margin-top: auto; align-self: flex-start; }

/* Eceran: baris dengan garis carbon */
.rows { border-top: 1px solid var(--carbon); }
.rows li {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 0; border-bottom: 1px solid var(--carbon);
}
.rows h3 { font-size: 1.25rem; line-height: 1.3; font-weight: 400; }
.rows p { color: var(--muted); margin-top: 2px; }
.rows .btn { flex: none; }

/* Kenapa: panel carbon */
.why-panel { background: var(--carbon); color: #fff; border-radius: var(--r-body); padding: 32px 22px; }
@media (min-width: 760px) { .why-panel { padding: 48px; } }
.why-panel h2 { margin-bottom: 40px; }
.why-list { display: grid; gap: 32px; }
@media (min-width: 640px) { .why-list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .why-list { grid-template-columns: repeat(4, 1fr); gap: 24px; } }
.why-list li { border-top: 1px solid rgba(255, 255, 255, .25); padding-top: 20px; }
.ring {
  width: 40px; height: 40px; border-radius: var(--r-pill);
  border: 1px solid #fff; display: grid; place-items: center; margin-bottom: 18px;
}
.ring svg { width: 20px; height: 20px; }
.why-list h3 { font-size: 1.25rem; line-height: 1.3; font-weight: 400; }
.why-list p { margin-top: 6px; color: var(--muted-on-dark); }

/* FAQ: accordion dengan tombol bulat 40px */
.accordion { border-top: 1px solid var(--carbon); }
.accordion details { border-bottom: 1px solid var(--carbon); }
.accordion summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 0; min-height: 76px;
  font-size: 1.25rem; line-height: 1.3;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: "+"; flex: none;
  width: 40px; height: 40px; border-radius: var(--r-pill);
  border: 1px solid var(--carbon); background: var(--paper);
  display: grid; place-items: center;
  font-size: 1.25rem; font-weight: 300; line-height: 1;
}
.accordion details[open] summary::after { content: "\2212"; background: var(--carbon); color: #fff; }
.accordion details p { padding: 0 56px 22px 0; color: var(--muted); }

/* Lokasi */
.loc-sheet { margin: 0; display: grid; gap: 22px; }
.loc-sheet dt { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; display: flex; align-items: center; gap: 10px; }
.loc-sheet dt::before { content: ""; width: 4px; height: 4px; background: currentColor; }
.loc-sheet dd { margin: 8px 0 0; font-size: 1.125rem; line-height: 1.45; }

/* Footer: onyx, satu-satunya permukaan gelap selebar layar */
.site-footer { background: var(--onyx); color: var(--muted-on-dark); padding: 48px 0 110px; }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.6fr 1fr; align-items: end; } }
.footer-grid p + p { margin-top: 6px; }
.footer-name { color: #fff; font-size: 1.375rem; font-weight: 300; }
.footer-contact { display: grid; gap: 14px; justify-items: start; }
.footer-wa { color: #fff; }

/* Tombol WA mengambang: tanpa bayangan, dipisahkan oleh cincin vellum */
.wa-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 60;
  width: 60px; height: 60px; border-radius: var(--r-pill);
  display: grid; place-items: center;
  background: var(--carbon); color: #fff;
  border: 3px solid var(--vellum);
}
.wa-float:hover { background: var(--onyx); }
/* Disembunyikan selama hero terlihat (hero sudah punya tombol WA sendiri), diatur main.js */
.wa-float.is-ready { transition: opacity .2s ease, transform .2s ease, visibility .2s; }
.wa-float.is-hidden { opacity: 0; visibility: hidden; transform: translateY(12px); pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .wa-float { transition: none; } }
.wa-float svg { width: 28px; height: 28px; }
@media (min-width: 760px) { .wa-float { right: 24px; bottom: 24px; } }
