/* =========================================================
   Halaman Beranda (/)
   Hero + maskot, ringkasan kategori, cuplikan testimoni, ajakan kontak.
   ========================================================= */

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--teal-tint);
  padding: clamp(40px, 6vw, 80px) 0 clamp(48px, 6vw, 88px);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.5rem, 5.4vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: -0.005em;
  margin: 0 0 24px;
  color: var(--ink);
  /* gaya stiker seperti logo: garis putih tebal + bayangan abu bergeser */
  -webkit-text-stroke: 10px #fff;
  paint-order: stroke fill;
  text-shadow: 5px 6px 0 var(--sticker);
}
.hero-lead {
  font-size: clamp(1.02rem, 1.4vw, 1.15rem);
  color: var(--ink-soft);
  max-width: 34em;
  margin: 0 0 28px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }
.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin: 0;
  padding: 18px 0 0;
  border-top: 1px solid #c8e8e5;
  list-style: none;
  color: var(--ink-mute);
  font-size: .95rem;
}
.hero-facts strong { color: var(--royal); font-weight: 700; font-family: var(--font-display); font-size: 1.25rem; }

/* tumpukan undangan dari produk.json + maskot */
.hero-stack {
  position: relative;
  height: clamp(360px, 40vw, 500px);
}
.proof {
  position: absolute;
  width: 50%;
  aspect-ratio: 4 / 5;
  background: var(--paper);
  padding: 10px;
  border-radius: var(--r-md);
  box-shadow: 6px 7px 0 var(--sticker), 0 18px 40px -22px rgba(13,43,92,.45);
  transition: transform .9s cubic-bezier(.2,.8,.2,1), opacity .6s;
}
.proof img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
  background: var(--sheet);
}
.proof:nth-child(1) { left: 26%; top: 10%; transform: rotate(-8deg); z-index: 1; }
.proof:nth-child(2) { left: 50%; top: 2%;  transform: rotate(7deg);  z-index: 2; }
.proof:nth-child(3) { left: 40%; top: 18%; transform: rotate(-1deg); z-index: 3; }
.hero-stack.is-loading .proof { transform: rotate(0) translateY(24px); opacity: 0; }

.mascot {
  position: absolute;
  z-index: 5;
  left: -2%;
  bottom: -6%;
  height: 92%;
  width: auto;
  filter: drop-shadow(0 14px 14px rgba(13,43,92,.18));
  transition: transform .8s cubic-bezier(.2,.8,.2,1) .25s, opacity .6s .25s;
}
.hero-stack.is-loading .mascot { transform: translateY(30px); opacity: 0; }

.bubble {
  position: absolute;
  z-index: 6;
  left: 22%;
  top: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.25;
  padding: 10px 16px;
  border-radius: 18px;
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--sticker);
  max-width: 13em;
}
.bubble::after {
  content: "";
  position: absolute;
  left: 18px;
  bottom: -9px;
  width: 14px; height: 14px;
  background: var(--paper);
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: rotate(45deg);
}

.stack-tag {
  position: absolute;
  z-index: 6;
  right: 0;
  bottom: 4%;
  background: var(--royal);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .98rem;
  padding: 8px 16px;
  border-radius: 999px;
  transform: rotate(-4deg);
  box-shadow: 4px 4px 0 var(--sticker);
  text-decoration: none;
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-stack { height: 390px; max-width: 440px; width: 100%; margin: 0 auto; }
  .hero h1 { -webkit-text-stroke-width: 8px; }
}
@media (max-width: 420px) {
  .hero-stack { height: 340px; }
  .bubble { font-size: .9rem; left: 30%; }
}

/* ---------- Ringkasan kategori (dari produk.json) ---------- */
.kategori-grid .card-sub b { color: var(--ink); font-weight: 700; }


/* bagian ajakan kontak menempel ke testimoni di atasnya */
.section-cta { padding-top: 0; }

/* ---------- Layanan ringkas (dari data Layanan) ---------- */
.layanan-ringkas {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.layanan-ringkas h3 { margin: 0 0 12px; font-size: 1.05rem; }
.layanan-ringkas-list {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.layanan-ringkas-list li {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--line);
  font-size: .9rem;
  font-weight: 600;
}

/* ---------- Kenapa Arto Printing ---------- */
.alasan {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.alasan li {
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--teal);
  border-radius: var(--r-md);
  background: var(--paper);
}
.alasan h3 { margin: 0 0 6px; font-size: 1.05rem; }
.alasan p { margin: 0; color: var(--ink-soft); font-size: .95rem; }

.cta-alamat { margin: 0; color: var(--ink-soft); max-width: 34rem; }
