/* ==========================================================================
   pages.css  per-page composition only
   --------------------------------------------------------------------------
   Keep this file thin. If a rule here could serve two pages, it belongs in
   components.css instead.
   ========================================================================== */

/* ==========================================================================
   HOME  hero
   --------------------------------------------------------------------------
   Deliberately type-led and photograph-free. No proof slot is rendered inside
   the first viewport: the hero must read as finished with nothing in it,
   because at Gate 0 there is nothing to put in it.
   Single column by design. The former right column carried a logo the header
   already prints and an index of the four categories the next section lists
   again, so it held no content of its own. The full-width specification strip
   below the actions carries the weight instead, and every field it prints is a
   real fact that waits on nothing.
   ========================================================================== */
.hero {
  padding-block: clamp(2.75rem, 1.4rem + 5.5vw, 5rem);
  border-bottom: var(--border-hairline);
}

.hero__title {
  max-width: 19ch;
}

.hero__lead {
  max-width: 46ch;
  margin-top: var(--space-5);
  color: var(--color-text-muted);
  font-size: var(--text-md);
  line-height: var(--leading-relaxed);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-7);
}

.hero__note {
  max-width: 52ch;
  margin-top: var(--space-5);
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  line-height: var(--leading-relaxed);
}

/* --------------------------------------------------------------------------
   Hero specification strip  a title block, in the site's own document
   language: hairline rules, uppercase keys, tabular values. It prints only
   facts the company can already state (service, segments, inspection), so no
   field depends on client data that has not arrived.
   -------------------------------------------------------------------------- */
.hero__spec {
  margin: var(--space-8) 0 0;
  border-top: var(--border-hairline);
}

.hero__spec-item {
  padding-block: var(--space-5);
  border-bottom: var(--border-hairline);
}

.hero__spec-key {
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

.hero__spec-val {
  margin: var(--space-2) 0 0;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  font-variant-numeric: tabular-nums;
  /* Single unbreakable tokens must wrap rather than grow the document. */
  overflow-wrap: anywhere;
}

@media (min-width: 900px) {
  .hero__spec {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-bottom: var(--border-hairline);
  }

  .hero__spec-item {
    padding: var(--space-6);
    border-bottom: 0;
  }

  .hero__spec-item:first-child {
    padding-left: 0;
  }

  .hero__spec-item + .hero__spec-item {
    border-left: var(--border-hairline);
  }
}

/* ==========================================================================
   HOME  section footer link ("Lihat semua …")
   The `.cta-band` and `.section-foot` blocks that used to live here moved to
   components.css once a second page needed them.
   ========================================================================== */

/* ==========================================================================
   PRODUCT DETAIL
   --------------------------------------------------------------------------
   Hidden until product.js has finished rendering and marks itself ready, so a
   visitor never sees the unfilled template flash "Produk" before the real
   product arrives, and a visitor with scripting disabled never sees an empty
   shell at all. The `noscript` block carries that fallback instead.

   The selector is a class, not the `data-product-root` attribute  the
   template element carries both, and matching on the attribute invites a
   second, divergent rule.
   ========================================================================== */
.product-root {
  display: none;
}

.product-root.is-ready {
  display: block;
}

.pdetail__grid {
  display: grid;
  gap: var(--space-7);
}

@media (min-width: 900px) {
  .pdetail__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: var(--space-8);
    align-items: start;
  }
}

/* The client supplies product photographs on a white background, so each tile
   stays white and the image is contained (never cropped) to keep the whole
   component visible. */
.gallery__main {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  padding: var(--space-5);
  background-color: #ffffff;
  border: var(--border-hairline);
  border-radius: var(--radius-lg);
  object-fit: contain;
}

.gallery__thumb {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  padding: var(--space-2);
  background-color: #ffffff;
  border: var(--border-hairline);
  border-radius: var(--radius-md);
  object-fit: contain;
}

.gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
  margin-top: var(--space-3);
}

.pdetail__name {
  margin-top: var(--space-3);
}

.pdetail__summary {
  margin-top: var(--space-4);
  color: var(--color-text-muted);
  font-size: var(--text-md);
  line-height: var(--leading-relaxed);
}

.pdetail__block {
  margin-top: var(--space-7);
}

.pdetail__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}
