/* =========================================================
   Molecular Hydrogen Science Indonesia — style.css
   Satu file gaya untuk seluruh halaman.
   Catatan untuk pengelola: file ini adalah "mesin" tampilan.
   Tidak perlu diubah untuk pekerjaan rutin.
   ========================================================= */

/* ---------- 1. Warna & ukuran dasar ---------- */
:root {
  --navy: #0B2545;
  --navy-2: #12305A;
  --blue: #1D4E89;
  --cyan: #12B5CB;
  --cyan-light: #7FDCE8;
  --sky: #F3F8FC;
  --sky-2: #EAF4FB;
  --line: #DCE7F1;
  --line-2: #E3EAF2;
  --text: #1F2A3D;
  --text-2: #3B4A5F;
  --muted: #4A5A70;
  --on-navy: #C9D6E6;
  --white: #FFFFFF;

  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

  --radius: 16px;
  --container: 1200px;
}

/* ---------- 2. Reset ringan ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
}
img, svg { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--font-head); margin: 0; color: var(--navy); line-height: 1.2; }
p { margin: 0; }
a { color: var(--blue); }
a:hover { color: var(--navy); }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.container { max-width: var(--container); margin: 0 auto; padding: 0 32px; }
.container-narrow { max-width: 880px; margin: 0 auto; padding: 0 32px; }
.section { padding: 96px 0; }
.section-sky { background: var(--sky); }
.section-navy { background: var(--navy); color: var(--white); }
.stack { display: flex; flex-direction: column; gap: 16px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- 3. Teks pendukung ---------- */
.eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--blue);
}
.section-navy .eyebrow { color: var(--cyan-light); }
.section-title { font-size: clamp(28px, 4vw, 38px); }
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 640px; margin-bottom: 40px; }
.section-head-row {
  display: flex; flex-wrap: wrap; justify-content: space-between;
  align-items: flex-end; gap: 16px; margin-bottom: 40px;
}
.lead { font-size: 17px; color: var(--text-2); }
.small { font-size: 13px; color: var(--muted); }
.link-arrow {
  font-weight: 600; text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
}
.link-arrow svg { width: 16px; height: 16px; }

/* ---------- 4. Tombol ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px; border-radius: 999px;
  font-weight: 600; font-size: 16px; text-decoration: none;
  border: 1.5px solid var(--navy); transition: background .2s, color .2s;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn-outline { background: #fff; color: var(--navy); }
.btn-outline:hover { background: var(--sky-2); color: var(--navy); }
.btn-sm { min-height: 44px; padding: 10px 20px; font-size: 15px; }
.btn-group { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- 5. Header & menu ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line-2);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 74px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); }
.brand:hover { color: var(--navy); }
.brand-mark {
  width: 42px; height: 42px; flex: 0 0 42px; border-radius: 10px;
  background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 800; font-size: 16px;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-family: var(--font-head); font-size: 16px; }
.brand-text span {
  font-size: 11px; color: var(--muted); letter-spacing: .12em;
  text-transform: uppercase; font-weight: 600;
}

.menu-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line);
  border-radius: 10px; background: #fff; color: var(--navy);
  align-items: center; justify-content: center; cursor: pointer;
}
.menu-toggle svg { width: 22px; height: 22px; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

.nav-list { display: flex; align-items: center; gap: 8px; }
.nav-list > li > a:not(.btn),
.sub-toggle {
  display: inline-flex; align-items: center; gap: 4px;
  min-height: 44px; padding: 8px 12px; border-radius: 8px;
  color: var(--text); text-decoration: none; font: inherit; font-size: 15px; font-weight: 500;
  background: none; border: 0; cursor: pointer;
}
.nav-list > li > a:not(.btn):hover, .sub-toggle:hover { color: var(--blue); background: var(--sky); }
.sub-toggle svg { width: 14px; height: 14px; transition: transform .2s; }
.sub-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav-list .btn { margin-left: 8px; }

.has-sub { position: relative; }
.sub-menu {
  display: none; position: absolute; top: calc(100% + 6px); left: 0; min-width: 240px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 12px 32px rgba(11,37,69,.12); padding: 8px;
}
.has-sub.is-open .sub-menu { display: block; }
@media (hover: hover) and (min-width: 961px) {
  .has-sub:hover .sub-menu { display: block; }
  .has-sub::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 8px; }
}
.sub-menu a {
  display: block; padding: 10px 12px; border-radius: 8px;
  color: var(--text); text-decoration: none; font-size: 15px;
}
.sub-menu a:hover { background: var(--sky); color: var(--blue); }

@media (max-width: 960px) {
  .menu-toggle { display: inline-flex; }
  .main-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--line-2);
    box-shadow: 0 16px 32px rgba(11,37,69,.10);
    max-height: calc(100vh - 74px); overflow-y: auto;
  }
  .main-nav.is-open { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; padding: 12px 20px 24px; }
  .nav-list > li { border-bottom: 1px solid var(--line-2); }
  .nav-list > li:last-child { border-bottom: 0; padding-top: 16px; }
  .nav-list > li > a:not(.btn), .sub-toggle {
    width: 100%; justify-content: space-between; padding: 14px 4px; font-size: 16px;
  }
  .sub-menu { position: static; box-shadow: none; border: 0; padding: 0 0 8px 12px; min-width: 0; }
  .nav-list .btn { margin-left: 0; width: 100%; }
}

/* ---------- 6. Hero ---------- */
.hero { background: var(--sky); border-bottom: 1px solid var(--line-2); }
.hero-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding: 88px 0; }
.hero-text { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero h1 { font-size: clamp(34px, 5vw, 54px); line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; }
.hero-lead { font-size: clamp(16px, 1.6vw, 19px); color: var(--text-2); max-width: 560px; }
.chip {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--navy);
  background: #fff; border: 1px solid #CFE0EE; padding: 6px 14px; border-radius: 999px;
}
.chip-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); }
.hero-visual { flex: 1 1 380px; min-width: 0; display: flex; justify-content: center; }
.molecule-card {
  width: 100%; max-width: 440px; background: #fff; border: 1px solid var(--line);
  border-radius: 24px; padding: 32px; display: flex; flex-direction: column; gap: 16px;
}
.molecule-facts {
  display: flex; justify-content: space-between; gap: 16px;
  border-top: 1px solid var(--line-2); padding-top: 16px; font-size: 13px; color: var(--muted);
}
.molecule-facts strong { display: block; color: var(--navy); font-size: 20px; font-family: var(--font-head); }
.molecule-facts span:last-child { text-align: right; }

/* ---------- 7. Pita kepercayaan ---------- */
.trust { border-bottom: 1px solid var(--line-2); }
.trust-list {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 40px;
  padding: 28px 0; font-size: 14px; font-weight: 500; color: var(--navy);
}
.trust-list li { display: flex; align-items: center; gap: 10px; }
.trust-list svg { width: 20px; height: 20px; flex: 0 0 20px; color: var(--blue); }

/* ---------- 8. Kolom & kartu ---------- */
.split { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; }
.split > * { flex: 1 1 440px; min-width: 0; }

.compare { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: 15px; }
.compare-head { background: var(--sky); padding: 14px 22px; font-weight: 600; color: var(--navy); font-size: 14px; }
.compare-row { display: flex; gap: 16px; padding: 18px 22px; border-top: 1px solid var(--line-2); }
.compare-row strong { flex: 0 0 96px; color: var(--navy); font-family: var(--font-head); }
.compare-row span { color: var(--text-2); }

.cards { display: flex; flex-wrap: wrap; gap: 20px; }
.card {
  flex: 1 1 240px; min-width: 0; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 12px;
  color: var(--text); text-decoration: none;
}
a.card { transition: border-color .2s, box-shadow .2s; }
a.card:hover { border-color: #9CC7E4; box-shadow: 0 8px 24px rgba(11,37,69,.08); color: var(--text); }
.card-num { font-family: var(--font-head); font-weight: 800; font-size: 15px; color: var(--blue); }
.card-title { font-family: var(--font-head); font-size: 20px; font-weight: 700; color: var(--navy); line-height: 1.3; }
.card-text { font-size: 15px; color: var(--text-2); }
.cards-wide .card { flex-basis: 320px; }

/* Kartu studi */
.study-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.badge { font-size: 12px; font-weight: 600; color: #fff; padding: 4px 10px; border-radius: 6px; }
.badge-rct { background: var(--navy); }
.badge-human { background: var(--blue); }
.badge-review { background: #0E7C8A; }
.strength { font-size: 13px; color: var(--navy); font-weight: 600; }
.dots { color: var(--cyan); letter-spacing: 2px; }
.dots-off { color: #B9CCE0; letter-spacing: 2px; }
.study-meta { font-size: 14px; color: var(--muted); }
.study-limit { font-size: 14px; color: var(--text-2); border-top: 1px solid var(--line-2); padding-top: 12px; }
.study-note { font-size: 12px; color: var(--muted); background: var(--sky); padding: 8px 10px; border-radius: 8px; }

/* Bagian penilaian bukti */
.evidence { display: flex; flex-direction: column; gap: 2px; border-radius: var(--radius); overflow: hidden; }
.evidence-row { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 18px 22px; background: var(--navy-2); align-items: baseline; }
.evidence-row strong { flex: 0 0 150px; color: #fff; }
.evidence-row span { flex: 1 1 260px; font-size: 15px; color: var(--on-navy); }
.evidence .dots-off { color: #3A5A85; }
.section-navy h2 { color: #fff; }
.section-navy .lead { color: var(--on-navy); }
.section-navy .link-arrow { color: var(--cyan-light); }

/* Kartu artikel */
.article-card { gap: 14px; padding: 0; border: 0; }
.article-thumb {
  height: 180px; border-radius: 14px; background: var(--sky-2); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; color: #6C9CC4;
}
.article-thumb svg { width: 48px; height: 48px; }
.article-cat { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }

/* Kartu produk & kemitraan */
.panel {
  flex: 1 1 440px; min-width: 0; background: #fff; border: 1px solid var(--line);
  border-radius: 20px; padding: 36px; display: flex; flex-direction: column; gap: 14px;
}
.panel h3 { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.25; }
.panel .btn { align-self: flex-start; margin-top: 8px; }
.panel-product { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 24px; padding: 32px; }
.panel-product img.product-photo { flex: 0 0 160px; width: 160px; height: auto; }
.panel-product .panel-body { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.label-product {
  align-self: flex-start; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); border: 1px solid #CFD9E4; padding: 3px 8px; border-radius: 6px;
}
.brand-logo { width: 96px; height: auto; }

/* FAQ */
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq-list summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 48px; padding: 14px 4px; font-weight: 600; font-size: 17px; color: var(--navy);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-size: 24px; font-weight: 400; color: var(--blue); }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { padding: 0 4px 18px; color: var(--text-2); }
.center { text-align: center; }

/* ---------- 9. Footer ---------- */
.site-footer { background: var(--navy); color: var(--on-navy); font-size: 14px; }
.footer-inner { padding: 64px 0 32px; display: flex; flex-direction: column; gap: 40px; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 32px 40px; }
.footer-about { flex: 2 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.footer-about strong { font-family: var(--font-head); font-size: 18px; color: #fff; }
.footer-col { flex: 1 1 150px; display: flex; flex-direction: column; gap: 8px; }
.footer-col h2 { font-family: var(--font-body); font-size: 14px; color: #fff; font-weight: 600; margin-bottom: 4px; }
.footer-col a { color: var(--on-navy); text-decoration: none; padding: 2px 0; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-disclaimer { border-top: 1px solid #23406B; padding-top: 24px; font-size: 13px; color: #A9BBD1; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: #A9BBD1; }
.footer-bottom a { color: #A9BBD1; }
.footer-bottom a:hover { color: #fff; }

/* ---------- 10. Tombol WhatsApp mengambang ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--cyan); color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(11,37,69,.25);
}
.wa-float:hover { background: #0FA2B6; color: var(--navy); }
.wa-float svg { width: 26px; height: 26px; }

/* ---------- 11. Halaman sederhana (404, dll.) ---------- */
.simple-page { min-height: 60vh; display: flex; align-items: center; padding: 96px 0; background: var(--sky); }
.simple-page .stack { max-width: 640px; }

/* ---------- 12. Penyesuaian HP ---------- */
@media (max-width: 640px) {
  .container, .container-narrow { padding: 0 20px; }
  .section { padding: 64px 0; }
  .hero-inner { padding: 40px 0 48px; gap: 32px; }
  .hero .btn-group .btn { width: 100%; }
  .brand-text strong { font-size: 14px; }
  .brand-text span { font-size: 10px; }
  .brand-mark { width: 36px; height: 36px; flex-basis: 36px; font-size: 14px; }
  .trust-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 24px 0; font-size: 13px; }
  .trust-list li { background: var(--sky); border-radius: 10px; padding: 10px 12px; align-items: flex-start; }
  .trust-list svg { display: none; }
  .panel, .panel-product { padding: 24px; }
  .panel-product img.product-photo { flex-basis: 100%; width: 180px; margin: 0 auto; }
  .compare-row { flex-direction: column; gap: 4px; }
  .compare-row strong { flex: none; }
  .molecule-card { padding: 20px; }
}
