/* Service pages (/services/<slug>/, /id/layanan/<slug>/). Builds on /style.css: tokens, nav, footer, menu,
   buttons, the .app product window, process and FAQ. Only the service page anatomy lives here.
   Contract: .bunshin/direction.md. */

/* ---------- Hero: copy left, the module's product window right (stacked on phones) ---------- */
.svc-hero {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); grid-template-rows: 1fr; column-gap: 56px; row-gap: 32px; align-items: center;
  padding-block: 40px 48px; min-height: calc(100svh - 104px);
}
.svc-hero .hero__copy { display: grid; gap: 24px; align-content: center; padding-bottom: 0; }
.svc-hero .hero__ctas { align-items: center; }
.svc-hero h1 { font-size: clamp(2.4rem, 4.4vw, 4.25rem); }
:lang(id) .svc-hero h1 { font-size: clamp(2.3rem, 4vw, 3.9rem); }
.svc-hero h1 .line { display: block; }
.btn--line { color: var(--white); border-color: var(--line-dark); }
.btn--line:hover { border-color: var(--white); }

/* Breadcrumb: where this page sits (Home / Services / ERP) */
.trail { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--muted-dark); }
.trail a { color: var(--muted-dark); text-decoration: none; }
.trail a:hover { color: var(--white); text-decoration: underline; }
.trail [aria-current] { color: var(--white); }
.trail svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* The product window frame: the .app comes from /style.css; this is its caption row and Pause */
.svc-demo { position: relative; margin: 0; }
.svc-demo figcaption { display: flex; flex-wrap: nowrap; align-items: flex-start; gap: 6px 16px; margin-top: 14px; }
.svc-demo .demo-note { flex: 1; min-width: 0; font-size: 13px; font-weight: 600; color: var(--muted-dark); }
.svc-demo .map__toggle { margin-left: auto; }
.motion .svc-demo { opacity: 0; } /* main.js shows it with the hero entrance */

/* ---------- What it covers: one item per module the material names ---------- */
.svc-covers { display: grid; gap: 40px; }
.svc-covers__head { display: grid; gap: 16px; max-width: 44em; }
.svc-covers__head p { font-size: 19px; color: var(--muted); }
.covers { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.covers li { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; row-gap: 4px; align-items: start; align-content: start; padding: 22px; border-radius: var(--r-card); background: var(--white); }
.covers svg { grid-row: span 2; width: 44px; height: 44px; padding: 11px; border-radius: 12px; background: var(--tone, var(--lavender)); fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.covers h3 { font-size: 1.125rem; letter-spacing: -.01em; }
.covers p { color: var(--muted); font-size: 15.5px; }
@media (min-width: 1101px) { .covers:has(> li:nth-child(5)):not(:has(> li:nth-child(7))) { grid-template-columns: repeat(3, minmax(0, 1fr)); } } /* 5 or 6 items lay out 3+2 or 3+3, not 4 plus orphans */

/* ---------- How it connects: links to the services that feed or read this one ---------- */
.svc-links { display: grid; gap: 32px; }
.svc-links__head { display: grid; gap: 16px; max-width: 44em; }
.svc-links__head p { font-size: 19px; color: var(--muted-dark); }
.links { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.links li { display: grid; } /* cards in a row share one height */
.links a { align-content: start; }
.links a {
  position: relative; display: grid; gap: 6px; padding: 22px 56px 22px 22px; border-radius: var(--r-card);
  background: var(--ink-2); color: var(--white); text-decoration: none; transition: background-color var(--fast) ease-out;
}
.links a:hover { background: #42306a; }
.links b { font-size: 1.125rem; font-weight: 750; letter-spacing: -.01em; }
.links span { color: var(--muted-dark); font-size: 15px; }
.links svg { position: absolute; right: 20px; top: 22px; width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform var(--fast) ease-out; }
.links a:hover svg { transform: translate(3px, -3px); }

/* ---------- Custom or packaged: two sentences and a link to the full comparison ---------- */
.svc-vs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 48px; align-items: start; }
.svc-vs__body { display: grid; gap: 16px; font-size: 19px; color: var(--muted); }
.svc-vs__body a { color: var(--ink); font-weight: 700; }

@media (max-width: 1100px) {
  .svc-hero { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; min-height: 0; } /* minmax: a wide window bar must not widen the column */
  .svc-demo { max-width: 680px; }
  .svc-vs { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 600px) {
  .svc-hero { padding-block: 28px 32px; }
  .svc-hero h1, :lang(id) .svc-hero h1 { font-size: min(10vw, 2.75rem); }
  .covers li { padding: 18px; }
  .svc-demo .app__foot { flex-wrap: nowrap; } /* the state line wraps beside 'Demo' instead of being cut */
  .svc-demo .foot__state { white-space: normal; }
  .links a { padding: 18px 52px 18px 18px; }
}
