/* ============================================================================
   Hami Concept Store — /hami-concept-store/
   Loaded only on that page (inc/hami.php), after kalibrasi.css, whose hero,
   badge, caption, spec chips and FAQ pieces (.kms-*) this page reuses.
   Hami's own colours (from its logo) live inside the illustrations only;
   type, buttons and surfaces stay Labstory.
   ========================================================================== */
.hami {
  --hami-terracotta: #B4532E;
  --hami-olive: #7A7F3C;
  --hami-teal: #17403E;
  --hami-gold: #D6A148;
  --hami-paper: #FFFDF8;
}

/* ===== 001 HERO: the badge on a small fan of prints and stickers ===== */
.hami-stage {
  position: relative;
  margin: 0;
  width: 100%;
  max-width: 460px;
  justify-self: center;
  aspect-ratio: 1;
}
/* The logo's whites are keyed out (Hami logo/README-logo.md: light backgrounds only, never on a photo),
   so it sits on its own round cream "sticker" above the prints. */
.hami-badge-wrap {
  position: absolute;
  inset: 12%;
  z-index: 3;
  display: grid;
  place-items: center;
  padding: 5%;
  border-radius: 50%;
  background: #FAF6EF;
  box-shadow: 0 0 0 8px var(--hami-paper), var(--shadow-lg);
  animation: hamiBadge 1.1s var(--ease-bounce) 0.9s both;
}
.hami-badge { display: block; width: 100%; height: auto; }

.hami-print {
  position: absolute;
  z-index: 1;
  width: 46%;
  aspect-ratio: 2 / 3; /* 4R */
  padding: 4.5% 4.5% 13%;
  background: var(--hami-paper);
  border-radius: 4px;
  box-shadow: var(--shadow-md);
  animation: hamiFan 1.4s var(--ease-cinematic) 0.25s both;
}
.hami-print span { display: block; width: 100%; height: 100%; border-radius: 2px; }
.hami-print--a { left: 2%; top: 14%; --r: -11deg; }
.hami-print--a span { background: linear-gradient(170deg, #E9C79A 0%, #C9824F 46%, #6E5132 100%); }
.hami-print--b { right: 2%; top: 22%; --r: 9deg; animation-delay: 0.4s; }
.hami-print--b span { background: linear-gradient(200deg, #CFD8C4 0%, #8E9A63 50%, #3F4F3A 100%); }

.hami-sticker {
  position: absolute;
  z-index: 4;
  border-radius: 50%;
  border: 6px solid var(--hami-paper);
  box-shadow: var(--shadow-sm, 0 2px 8px rgba(0, 0, 0, 0.12));
  animation: hamiPop 800ms var(--ease-bounce) both;
}
.hami-sticker--a { width: 17%; aspect-ratio: 1; right: 6%; bottom: 10%; background: var(--hami-terracotta); animation-delay: 1.6s; }
.hami-sticker--b {
  width: 12%; aspect-ratio: 1; left: 8%; bottom: 16%;
  background: var(--hami-gold);
  border-radius: 30% 70% 60% 40% / 50% 40% 60% 50%; /* die-cut */
  animation-delay: 1.75s;
}
.hami-stage figcaption {
  position: absolute;
  left: 50%;
  bottom: -40px;
  transform: translateX(-50%);
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  opacity: 0;
  animation: heroFade 1.2s ease 2.2s forwards;
}
@keyframes hamiFan { from { transform: translateY(40px) rotate(0deg); opacity: 0; } to { transform: rotate(var(--r)); opacity: 1; } }
@keyframes hamiBadge { from { transform: scale(0.82); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes hamiPop { from { transform: scale(0); } to { transform: none; } }

/* ===== 002 LAYANAN ===== */
.hami-services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 72px; }
.hami-service {
  background: var(--bg-pure-white);
  border: 1px solid var(--border-light);
  border-radius: var(--r-md);
  padding: 32px;
}
.hami-service h3 { font-size: 26px; font-weight: 400; letter-spacing: -0.02em; margin: 28px 0 10px; }
.hami-service p { font-size: 15px; color: var(--text-secondary); line-height: 1.6; margin: 0; max-width: 460px; }
.hami-service .kms-tool-specs { margin-top: 24px; }

/* Generated with Kie.ai (z-image) in the site's warm palette — no people, no brand logos. */
.hami-service-img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r-sm); background: var(--bg-cream); }

/* ===== 003 CARA PESAN ===== */
.hami-portal { font-weight: 500; color: var(--text-primary); border-bottom: 1px solid var(--border-medium); padding-bottom: 1px; }
.hami-portal:hover { border-color: var(--accent-primary); }

/* ===== 005 PESAN ===== */
.hami-final-note { margin: 32px 0 0; font-size: 13px; color: var(--text-tertiary); }
.hami-final-note a { text-decoration: underline; text-underline-offset: 3px; }

/* ===== Responsive ===== */
@media (max-width: 1100px) {
  .hami-stage { max-width: 400px; margin-bottom: 40px; }
}
@media (max-width: 768px) {
  .hami-stage { max-width: 320px; }
  .hami-stage figcaption { width: 100%; white-space: normal; text-align: center; line-height: 1.6; bottom: -52px; }
  .hami-services { grid-template-columns: 1fr; gap: 16px; margin-top: 48px; }
  .hami-service { padding: 24px; }
  .hami-service h3 { font-size: 22px; margin-top: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .hami-badge-wrap, .hami-sticker { animation: none; }
  .hami-print { animation: none; transform: rotate(var(--r)); }
  .hami-stage figcaption { opacity: 1; animation: none; }
}
