/* ==========================================================================
   DAWAI PRESS — design tokens
   Navy + gold, dijahit dari identitas brand DAWAI (Merajut Ilmu, Menggemakan Gagasan)
   ========================================================================== */

:root {
  --navy-900: #0B1A33;
  --navy-700: #142A4D;
  --navy-600: #1D3A63;
  --gold-500: #C9A227;
  --gold-300: #E4CD7C;
  --gold-700: #9C6A1E;
  --cream-50: #FAF7F0;
  --ink-900: #1C1B18;
  --ink-500: #6B6A63;
  --white: #FFFFFF;
  --border: rgba(28, 27, 24, 0.1);

  --font-display: "Source Serif 4", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  --radius: 10px;
  --max-width: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-900);
  background: var(--cream-50);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; margin: 0 0 0.5em; line-height: 1.2; }
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; color: var(--ink-500); }

:focus-visible {
  outline: 3px solid var(--gold-500);
  outline-offset: 2px;
}

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

/* ---------- header / nav ---------- */

.site-header {
  background: var(--navy-900);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 20;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.03em;
  color: var(--white);
}
.logo strong { color: var(--gold-500); font-weight: 600; }

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--cream-50);
  font-size: 0.95rem;
  opacity: 0.85;
  padding: 4px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, opacity 0.2s;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  opacity: 1;
  border-color: var(--gold-500);
}

.nav-toggle { display: none; }

@media (max-width: 720px) {
  .nav-links { position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; background: var(--navy-900); padding: 12px 24px 20px; gap: 14px; display: none; }
  .nav-links.open { display: flex; }
  .nav-toggle {
    display: inline-flex; background: none; border: 1px solid rgba(255,255,255,0.3); color: var(--white);
    border-radius: 6px; padding: 6px 10px; font-size: 0.9rem; cursor: pointer;
  }
}

/* ---------- string divider (signature element) ---------- */

.string-divider {
  --gap: 5px;
  height: calc(var(--gap) + 2px);
  margin: 56px 0;
  position: relative;
  background:
    linear-gradient(var(--gold-500), var(--gold-500)) top / 100% 1px no-repeat,
    linear-gradient(var(--gold-300), var(--gold-300)) bottom / 100% 1px no-repeat;
  opacity: 0.7;
}
.string-divider::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 6px;
  background: var(--gold-500);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

/* ---------- hero ---------- */

.hero {
  background: var(--navy-900);
  color: var(--white);
  padding: 96px 0 88px;
}
.hero .eyebrow {
  color: var(--gold-300);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.hero h1 { color: var(--white); max-width: 720px; }
.hero p.lede { color: rgba(255,255,255,0.75); max-width: 560px; font-size: 1.1rem; }
.hero .cta-row { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 500;
  border: 1px solid transparent;
  transition: transform 0.15s, opacity 0.15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold-500); color: var(--navy-900); }
.btn-outline { border-color: rgba(255,255,255,0.4); color: var(--white); }
.btn-outline-dark { border-color: var(--navy-600); color: var(--navy-900); }

/* ---------- sections / cards ---------- */

section.block { padding: 64px 0; }
.section-head { max-width: 640px; margin-bottom: 40px; }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
}

.grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

/* ---------- book card ---------- */

.book-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.book-card img { width: 100%; aspect-ratio: 3/4; object-fit: cover; background: var(--navy-700); }
.book-card .body { padding: 18px 20px 22px; flex: 1; display: flex; flex-direction: column; }
.book-card .kategori { font-size: 0.75rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--gold-500); margin-bottom: 6px; }
.book-card h3 { margin-bottom: 4px; font-size: 1.05rem; }
.book-card .penulis { font-size: 0.85rem; color: var(--ink-500); margin-bottom: 12px; }
.book-card .harga { margin-top: auto; font-weight: 600; color: var(--navy-900); }

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--ink-500);
  border: 1px dashed var(--border);
  border-radius: 12px;
}

/* ---------- paket layanan ---------- */

.paket-card { display: flex; flex-direction: column; position: relative; }
.paket-card .subtitle { font-size: 0.85rem; color: var(--ink-500); margin-bottom: 18px; }
.paket-card .harga { font-family: var(--font-display); font-size: 1.6rem; color: var(--navy-900); margin-bottom: 18px; }
.paket-card ul { list-style: none; margin: 0 0 18px; padding: 0; font-size: 0.9rem; }
.paket-card ul li { padding: 6px 0; border-bottom: 1px solid var(--border); color: var(--ink-500); }
.paket-card ul li.on { color: var(--ink-900); }
.paket-card .cocok { font-size: 0.85rem; color: var(--ink-500); margin-top: auto; }
.paket-card.featured { border-color: var(--gold-500); box-shadow: 0 0 0 1px var(--gold-500); }
.paket-badge { display: inline-block; font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; background: var(--navy-900); color: var(--gold-300); padding: 4px 10px; border-radius: 999px; margin-bottom: 10px; }

/* ---------- profil / imprint ---------- */

.imprint-list { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.imprint-list .card h3 { color: var(--navy-900); }

/* ---------- footer ---------- */

.site-footer {
  background: var(--navy-900);
  color: rgba(255,255,255,0.7);
  padding: 48px 0 32px;
  font-size: 0.9rem;
}
.site-footer a { color: var(--gold-300); }
.site-footer .cols { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.site-footer .tagline { color: var(--gold-300); font-family: var(--font-display); margin-top: 4px; }

/* ---------- detail buku ---------- */

.detail-grid { display: grid; grid-template-columns: 280px 1fr; gap: 40px; align-items: start; }
.detail-grid img { border-radius: 12px; aspect-ratio: 3/4; object-fit: cover; background: var(--navy-700); }
@media (max-width: 640px) { .detail-grid { grid-template-columns: 1fr; } }

.contact-row { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 8px; }

/* ==========================================================================
   Homepage extras — mimicking mockup sections (icon asli, tanpa logo pihak ketiga)
   ========================================================================== */

/* ---------- trust strip (teks, bukan logo) ---------- */

.trust-strip {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.trust-strip .wrap { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.trust-strip .label { font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-500); white-space: nowrap; }
.trust-strip .chip {
  font-size: 0.85rem; font-weight: 500; color: var(--navy-900);
  background: var(--cream-50); border: 1px solid var(--border);
  padding: 6px 14px; border-radius: 999px;
}

/* ---------- icon token shared ---------- */

.icon-badge {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--navy-900); color: var(--gold-500);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.icon-badge svg { width: 26px; height: 26px; }

/* ---------- 5-step "kenapa" flow ---------- */

.step-flow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  position: relative;
}
.step-flow .step { text-align: center; padding: 20px 12px; }
.step-flow .step .num { font-size: 0.75rem; color: var(--gold-500); letter-spacing: 0.1em; margin-bottom: 4px; }
.step-flow .step h3 { font-size: 1rem; margin-bottom: 6px; }
.step-flow .step p { font-size: 0.85rem; }
@media (max-width: 900px) { .step-flow { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .step-flow { grid-template-columns: 1fr; } }

/* ---------- framework strip (IP -> P -> E -> S) ---------- */

.framework-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.framework-card {
  border-radius: 12px;
  padding: 28px 22px;
  color: var(--white);
  display: flex;
  flex-direction: column;
  min-height: 260px;
}
.framework-card .tag { font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.75; margin-bottom: 4px; }
.framework-card h3 { color: var(--white); font-size: 1.15rem; margin-bottom: 10px; }
.framework-card p { color: rgba(255,255,255,0.75); font-size: 0.85rem; margin-bottom: 14px; }
.framework-card ul { list-style: none; margin: 0; padding: 0; font-size: 0.85rem; flex: 1; }
.framework-card ul li { padding: 4px 0; color: rgba(255,255,255,0.85); }
.framework-card.f-ip { background: var(--navy-900); }
.framework-card.f-product { background: var(--navy-700); }
.framework-card.f-experience { background: var(--navy-600); }
.framework-card.f-service { background: var(--gold-700); color: var(--navy-900); }
.framework-card.f-service h3 { color: var(--navy-900); }
.framework-card.f-service p { color: rgba(11,26,51,0.75); }
.framework-card.f-service ul li { color: rgba(11,26,51,0.85); }
.framework-card.f-service .tag { color: rgba(11,26,51,0.6); }
@media (max-width: 900px) { .framework-strip { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .framework-strip { grid-template-columns: 1fr; } }

/* ---------- pricing teaser (versi mini di homepage) ---------- */

.pricing-teaser { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pricing-teaser .mini-card {
  border-radius: 12px; padding: 24px 20px; color: var(--white);
  display: flex; flex-direction: column; gap: 4px;
}
.pricing-teaser .mini-card .nama { font-family: var(--font-display); font-size: 1.15rem; }
.pricing-teaser .mini-card .subtitle { font-size: 0.78rem; opacity: 0.8; margin-bottom: 10px; }
.pricing-teaser .mini-card .harga { font-size: 1.1rem; font-weight: 600; margin-bottom: 14px; }
.pricing-teaser .mini-card a { font-size: 0.82rem; color: var(--gold-300); }
.mini-card.p-bronze { background: linear-gradient(135deg, #8A5A2B, #6B4321); }
.mini-card.p-silver { background: linear-gradient(135deg, #5B6B85, #3E4C63); }
.mini-card.p-gold   { background: linear-gradient(135deg, #C9A227, #9C7A1B); }
.mini-card.p-platinum { background: var(--navy-900); }
@media (max-width: 900px) { .pricing-teaser { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pricing-teaser { grid-template-columns: 1fr; } }

/* ---------- alur penerbitan (10 step) ---------- */

.alur-flow {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px 8px;
  position: relative;
}
.alur-flow .alur-step { width: 84px; text-align: center; }
.alur-flow .circle {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--white); border: 1.5px solid var(--gold-500);
  color: var(--navy-900);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 8px;
}
.alur-flow .circle svg { width: 20px; height: 20px; }
.alur-flow .alur-step .label { font-size: 0.7rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-500); }

/* ---------- media grid ---------- */

.media-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.media-grid .item { text-align: center; padding: 18px 10px; }
.media-grid .item p { font-size: 0.8rem; margin: 0; }
@media (max-width: 900px) { .media-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .media-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- stats bar ---------- */

.stats-bar { background: var(--navy-900); color: var(--white); padding: 48px 0; }
.stats-bar .grid { grid-template-columns: repeat(4, 1fr); text-align: center; }
.stats-bar .stat-num { font-family: var(--font-display); font-size: 2rem; color: var(--gold-500); }
.stats-bar .stat-label { font-size: 0.8rem; color: rgba(255,255,255,0.7); }
.stats-bar .placeholder-note { text-align: center; font-size: 0.75rem; color: rgba(255,255,255,0.45); margin-top: 24px; }
@media (max-width: 700px) { .stats-bar .grid { grid-template-columns: repeat(2, 1fr); gap: 24px; } }

/* ---------- file:// protocol warning ---------- */
.file-warning {
  background: var(--gold-300);
  color: var(--ink-900);
  text-align: center;
  font-size: 0.85rem;
  padding: 10px 20px;
  position: relative;
  z-index: 30;
}
.file-warning code { background: rgba(0,0,0,0.08); padding: 1px 5px; border-radius: 4px; }
