/* Pierrefort prototype: shared tokens and components. Each direction adds its own sheet (a.css, b.css, c.css). */
@font-face {
  font-family: "Jakarta";
  src: url("/assets/fonts/jakarta-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --red: #e10600;
  --red-ink: #c40500;
  --red-soft: #fff1f0;
  --ink: #121212;
  --ink-2: #3d3d3d;
  --muted: #5f5f5f;
  --paper: #ffffff;
  --soft: #f6f4f1;
  --line: #e5e1db;
  --green: #0b7a3b;
  --green-soft: #eaf6ee;
  --amber: #8a5a00;
  --amber-soft: #fff5df;
  --radius: 14px;
  --gutter: 16px;
  --max: 1160px;
  --font: "Jakarta", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font: 400 16px/1.55 var(--font);
  color: var(--ink);
  background: var(--paper);
  padding-bottom: 76px; /* room for the phone WhatsApp bar */
}
@media (min-width: 900px) { body { padding-bottom: 0; } }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(30px, 7vw, 54px); font-weight: 800; }
h2 { font-size: clamp(24px, 4.6vw, 36px); font-weight: 800; }
h3 { font-size: 18px; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 56px 0; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--red-ink); margin-bottom: 10px; }
.lead { font-size: 18px; color: var(--ink-2); max-width: 36em; }
.small { font-size: 13px; color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Prototype strip: not part of the design being judged. */
.proto {
  background: #1d1d1f; color: #f2f2f2; font-size: 13px;
}
.proto .wrap { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; padding-top: 7px; padding-bottom: 7px; }
.proto strong { color: #ffcf4d; font-weight: 700; }
.proto nav { display: flex; gap: 4px; flex-wrap: wrap; }
.proto a { text-decoration: none; padding: 3px 9px; border-radius: 99px; border: 1px solid #444; }
.proto a[aria-current] { background: #f2f2f2; color: #111; border-color: #f2f2f2; }

/* Logo: built from type so it costs no image. */
.logo { display: inline-flex; flex-direction: column; text-decoration: none; color: var(--ink); line-height: 1; }
.logo .word { display: flex; align-items: stretch; font-weight: 800; font-size: 22px; letter-spacing: -.02em; }
.logo .word span { padding: 4px 3px 3px 0; }
.logo .word .fort { background: var(--red); color: #fff; padding: 4px 5px 3px; }
.logo .rule { height: 2px; background: currentColor; }
.logo.on-dark { color: #fff; }

/* Header */
.header { position: sticky; top: 0; z-index: 30; background: var(--paper); border-bottom: 1px solid var(--line); }
.header .wrap { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.header nav { display: none; margin-left: auto; gap: 2px; }
.header nav a { text-decoration: none; font-size: 14px; font-weight: 600; padding: 8px 10px; border-radius: 8px; color: var(--ink-2); }
.header nav a:hover, .header nav a[aria-current] { color: var(--ink); background: var(--soft); }
.header .cta { margin-left: auto; }
@media (min-width: 1080px) {
  .header nav { display: flex; }
  .header .cta { margin-left: 8px; }
}
/* Phone menu: the same links in a panel under the header (details/summary, works without JS). */
.menu { position: static; }
.menu summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 10px; border: 2px solid var(--ink); font-weight: 700; font-size: 14px; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary::before { content: ""; width: 16px; height: 10px; border-top: 2px solid; border-bottom: 2px solid; background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat; }
.menu[open] summary::before { height: 2px; border: 0; background: currentColor; }
.header .menu nav { display: grid; position: absolute; left: 0; right: 0; top: 100%; margin: 0; padding: 8px var(--gutter) 16px; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 16px 24px -16px rgba(0,0,0,.25); max-height: calc(100vh - 120px); overflow: auto; }
.header .menu nav a { padding: 14px 6px; font-size: 17px; border-radius: 0; border-bottom: 1px solid var(--line); background: none; }
.header .menu nav a[aria-current] { color: var(--red-ink); }
@media (min-width: 1080px) { .menu { display: none; } }
.header .cta + .menu { margin-left: 0; }
@media (max-width: 1079px) { .header .cta .btn { padding: 0 12px; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px; border-radius: 12px; border: 2px solid transparent;
  font: 700 16px/1 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn-sm { min-height: 40px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn-wa { background: var(--red); color: #fff; }
.btn-wa:hover { background: var(--red-ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* Tags */
.tag { justify-self: start; display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; line-height: 1.3; padding: 5px 9px; border-radius: 8px; }
.tag .icon { width: 14px; height: 14px; }
.tag-sepeda { background: var(--amber-soft); color: var(--amber); }
.tag-motor { background: var(--green-soft); color: var(--green); }
.tag-usaha { background: #eef1fb; color: #2b4aa6; }
.tag-stock { background: var(--soft); color: var(--ink-2); }
.tag-stock.ready::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }

/* Photo placeholders: say what real photo goes here. */
.ph {
  position: relative; margin: 0; border-radius: var(--radius); overflow: hidden;
  background: repeating-linear-gradient(135deg, #ece8e2 0 12px, #f3f0eb 12px 24px);
  display: flex; align-items: flex-end; color: #6b645b;
}
.ph figcaption { font-size: 12px; font-weight: 600; padding: 10px 12px; background: rgba(255,255,255,.86); margin: 10px; border-radius: 8px; }
.ph.r34 { aspect-ratio: 3 / 4; }
.ph.r43 { aspect-ratio: 4 / 3; }
.ph.r169 { aspect-ratio: 16 / 9; }
.ph.r11 { aspect-ratio: 1; }
.ph .veh { position: absolute; inset: 14% 12% 30%; width: 76%; height: 56%; color: #b9b1a6; }
/* Real photos in the same frames: scenes fill the frame, product shots sit whole on a light ground. */
.ph.has-img { background: #e9e5de; }
.ph > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph.prod { background: radial-gradient(120% 90% at 50% 40%, #fff 0 45%, #efece6 100%); }
.ph.prod > img { inset: 8% 6%; width: 88%; height: 84%; object-fit: contain; mix-blend-mode: multiply; }
.ph .credit-ph { position: absolute; right: 8px; bottom: 6px; font-size: 10px; color: #fff; opacity: .8; text-shadow: 0 1px 2px rgba(0,0,0,.6); }
/* Testimonial initials (no stock faces for real customers' quotes) */
.ph.avatar { display: grid; place-items: center; background: var(--soft); color: var(--ink-2); font-weight: 800; font-size: 15px; letter-spacing: .02em; }
/* Drawn map: streets and a pin, until the real static map */
.dir-a .ph.map, .dir-b .ph.map, .dir-c .ph.map { background: #eef0ea; }
.ph.map figcaption { position: relative; }
.ph.map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
/* Product shots in a full-bleed carousel slide sit clear of the copy card. */
.hc-slide > .ph.prod > img { inset: auto; left: 6%; top: 4%; width: 88%; height: 48%; }
@media (min-width: 900px) { .hc-slide > .ph.prod > img { left: 46%; top: 8%; width: 50%; height: 80%; } }
/* Brand logos */
.logos img { display: block; height: 100%; width: auto; max-width: 100%; object-fit: contain; }
.logos .wordmark { display: block; font: 900 26px/1 var(--font); letter-spacing: -.03em; text-transform: uppercase; color: var(--brand, var(--ink)); white-space: nowrap; }

/* Vehicle drawings for product placeholders */
.veh { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* Phone WhatsApp bar */
.wa-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: var(--paper); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(0,0,0,.06);
}
.wa-bar .btn { min-height: 50px; padding: 0 10px; }
@media (min-width: 900px) { .wa-bar { display: none; } }

/* Info subsidi: dated, edited by staff in the real CMS */
.notice { border: 2px solid var(--ink); border-radius: var(--radius); padding: 18px; display: grid; gap: 6px; background: var(--paper); }
.notice .date { font-size: 13px; font-weight: 700; color: var(--red-ink); }

/* Legal table */
.legal { width: 100%; border-collapse: collapse; font-size: 15px; }
.legal th, .legal td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal thead th { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }

/* Product grid and cards (shared shape; directions restyle) */
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); overflow: hidden; }
.card .ph { border-radius: 0; }
.card .body { padding: 14px; display: grid; gap: 8px; flex: 1; align-content: start; }
.card .brand { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.card h3 { margin: 0; }
.specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 2px 0; padding: 0; list-style: none; }
.specs li { background: var(--soft); border-radius: 10px; padding: 8px 6px; text-align: center; }
.specs b { display: block; font-size: 15px; font-variant-numeric: tabular-nums; }
.specs span { font-size: 11.5px; color: var(--muted); }
.price { font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.credit { font-size: 14px; color: var(--ink-2); }
.credit b { color: var(--ink); }
.card .actions { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 0 14px 14px; }

/* Filters (catalogue). Works without JS: everything is shown. */
.filter-group { border: 0; margin: 0 0 18px; padding: 0; }
.filter-group legend { font-weight: 700; font-size: 14px; margin-bottom: 8px; padding: 0; }
.check { display: flex; align-items: center; gap: 10px; min-height: 40px; font-size: 15px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--red); }
.count { font-size: 14px; color: var(--muted); }
.empty { display: none; padding: 32px; text-align: center; border: 2px dashed var(--line); border-radius: var(--radius); }
.is-empty .empty { display: block; }
[hidden] { display: none !important; }

/* Footer */
.footer { background: var(--ink); color: #d9d9d9; padding: 40px 0 24px; font-size: 14px; }
.footer .cols { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin-bottom: 28px; }
.footer h3 { color: #fff; font-size: 15px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer .legalname { border-top: 1px solid #333; padding-top: 18px; color: #9a9a9a; font-size: 13px; }

:focus-visible { outline: 3px solid #1a73e8; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Hero carousel mechanics (site.js); each direction styles the look. */
.hc-track { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.hc-track::-webkit-scrollbar { display: none; }
.hc-slide { position: relative; scroll-snap-align: start; scroll-snap-stop: always; min-width: 0; }
.hc-ui { display: flex; align-items: center; gap: 12px; }
.hc-dots { display: flex; gap: 6px; flex: 1; }
.hc-dots button { position: relative; flex: 1; max-width: 64px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; }
.hc-dots button::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 4px; margin-top: -2px; border-radius: 4px; background: currentColor; opacity: .22; }
.hc-dots i { position: absolute; left: 0; top: 50%; height: 4px; margin-top: -2px; border-radius: 4px; width: 0; background: currentColor; }
.hc-dots [aria-selected="true"] i { width: 100%; }
.hc-run .hc-dots [aria-selected="true"] i { width: 0; animation: hc-fill var(--hc-delay, 6500ms) linear forwards; }
@keyframes hc-fill { to { width: 100%; } }
.hc-btn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer; flex: none; }
.hc-btn[data-prev] .icon { transform: rotate(180deg); }
.hc-count { font-size: 13px; font-weight: 700; }
