/* ============================================================
   DPS AMERICAN — Prototype design system
   Direction B "Miami Industrial" (DEC-005)
   Dark asphalt brand layer · light commerce layer · one Vice-teal
   accent (~10% surface max) · road dash-line motif · EN/ES lockups
   ============================================================ */

:root {
  --ink: #131313;          /* asphalt */
  --ink-2: #1b1b1e;
  --ink-3: #26262a;
  --bone: #f4f2ec;         /* light commerce layer */
  --paper: #fdfcf9;
  --steel: #8d8d93;
  --vice: #00e0c7;         /* THE one Miami neon — CTAs, hovers, tags only */
  --vice-ink: #032622;
  --vice-dim: rgba(0, 224, 199, 0.14);
  --danger: #ff5a48;
  --font-display: "Bebas Neue", "Arial Narrow", "Impact", sans-serif;
  --font-body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --maxw: 1200px;
  --dash: repeating-linear-gradient(90deg, var(--vice) 0 26px, transparent 26px 44px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--ink);
  color: var(--bone);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- language toggle system ----------
   html[data-lang="en"] hides .es · html[data-lang="es"] hides .en
   Paired brand lockups use .lockup (always visible, both languages) */
html[data-lang="en"] .es { display: none !important; }
html[data-lang="es"] .en { display: none !important; }

/* ---------- road dash motif ---------- */
.road-divider { height: 3px; background: var(--dash); opacity: .85; border: 0; }
.road-divider--subtle { opacity: .3; }

/* ---------- type ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: .92;
  letter-spacing: .01em;
}
.kicker {
  font-size: 12px; font-weight: 700; letter-spacing: .22em;
  text-transform: uppercase; color: var(--vice);
}
.section-title { font-size: clamp(34px, 5vw, 56px); }
.muted { color: var(--steel); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border: 2px solid var(--ink);
  font-weight: 700; font-size: 14px; letter-spacing: .08em;
  text-transform: uppercase; background: transparent; color: inherit;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--vice); }
.btn--vice { background: var(--vice); border-color: var(--vice); color: var(--vice-ink); }
.btn--ghost-light { border-color: var(--bone); color: var(--bone); }
.btn--ghost-dark { border-color: var(--ink); color: var(--ink); }
.btn--sm { padding: 9px 16px; font-size: 12px; }

/* ---------- utility topbar ---------- */
.topbar {
  background: var(--ink-2); border-bottom: 1px solid var(--ink-3);
  font-size: 13px;
}
.topbar .wrap { display: flex; align-items: center; gap: 18px; padding-top: 8px; padding-bottom: 8px; }
.topbar a:hover { color: var(--vice); }
.status-chip { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; }
.status-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--steel); }
.status-chip.open .dot { background: var(--vice); box-shadow: 0 0 8px var(--vice); }
.status-chip.closed .dot { background: var(--danger); }
.topbar .spacer { flex: 1; }
.lang-toggle { display: flex; border: 1px solid var(--ink-3); }
.lang-toggle button {
  background: transparent; border: 0; color: var(--steel);
  padding: 4px 12px; font-weight: 700; font-size: 12px; letter-spacing: .08em;
}
.lang-toggle button.active { background: var(--vice); color: var(--vice-ink); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(19,19,19,.94); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--ink-3);
}
.site-header .wrap { display: flex; align-items: center; gap: 22px; padding-top: 14px; padding-bottom: 14px; }
.logo { display: flex; flex-direction: column; line-height: 1; }
.logo .logo-main { font-family: var(--font-display); font-size: 30px; letter-spacing: .04em; color: var(--bone); }
.logo .logo-main em { font-style: normal; color: var(--vice); }
.logo .logo-sub { font-size: 9.5px; letter-spacing: .3em; text-transform: uppercase; color: var(--steel); }
.search {
  flex: 1; display: flex; border: 2px solid var(--ink-3); background: var(--ink-2);
}
.search input {
  flex: 1; background: transparent; border: 0; outline: 0;
  color: var(--bone); padding: 11px 16px; font-size: 14px; font-family: inherit;
}
.search input::placeholder { color: var(--steel); }
.search button { background: var(--vice); border: 0; color: var(--vice-ink); padding: 0 20px; font-weight: 800; letter-spacing: .06em; }
.header-actions { display: flex; align-items: center; gap: 16px; font-size: 13px; font-weight: 600; }
.header-actions a { display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--bone); }
.header-actions a:hover { color: var(--vice); }
.header-actions .ico { font-size: 18px; line-height: 1; }

.mainnav { border-top: 1px solid var(--ink-3); }
.mainnav .wrap { display: flex; gap: 30px; overflow-x: auto; }
.mainnav a {
  padding: 12px 0; font-size: 13px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--steel); white-space: nowrap;
  border-bottom: 3px solid transparent;
}
.mainnav a:hover, .mainnav a.active { color: var(--bone); border-bottom-color: var(--vice); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 90px 0 70px; }
.hero .wrap { position: relative; z-index: 2; }
.hero-lockup .en-line { font-size: clamp(52px, 9vw, 128px); color: var(--bone); display: block; }
.hero-lockup .es-line {
  font-size: clamp(30px, 5vw, 66px); display: block; margin-top: 6px;
  color: transparent; -webkit-text-stroke: 1.5px var(--vice);
}
.hero-sub { max-width: 560px; margin: 26px 0 34px; font-size: 17px; color: var(--steel); }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-art {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(ellipse 60% 50% at 78% 40%, rgba(0,224,199,.08), transparent 60%),
    linear-gradient(180deg, transparent 55%, rgba(0,0,0,.5)),
    linear-gradient(115deg, var(--ink) 45%, var(--ink-2) 45.5%, var(--ink-2) 100%);
}
.hero-road {
  position: absolute; bottom: 34px; left: 0; right: 0; height: 3px;
  background: var(--dash); opacity: .5;
  animation: roadmove 2.4s linear infinite;
}
@keyframes roadmove { to { background-position: 88px 0; } }

/* ---------- trust strip ---------- */
.trust-strip { background: var(--ink-2); border-block: 1px solid var(--ink-3); }
.trust-strip .wrap {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px; padding-top: 22px; padding-bottom: 22px; text-align: center;
}
.trust-item .display { font-size: 30px; color: var(--vice); }
.trust-item p { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--steel); }

/* ---------- fitment ---------- */
.fitment { padding: 70px 0 60px; }
.truck-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-top: 30px; }
.truck-chip {
  border: 2px solid var(--ink-3); background: var(--ink-2); color: var(--bone);
  padding: 22px 10px; text-align: center; font-family: var(--font-display);
  font-size: 22px; letter-spacing: .05em; text-transform: uppercase;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.truck-chip:hover { border-color: var(--vice); transform: translateY(-3px); box-shadow: 0 6px 0 rgba(0,224,199,.35); }
.truck-chip small { display: block; font-family: var(--font-body); font-size: 10px; letter-spacing: .18em; color: var(--steel); margin-top: 5px; }

/* ---------- LIGHT COMMERCE LAYER ---------- */
.commerce { background: var(--bone); color: var(--ink); }
.commerce .kicker { color: #0a8d7e; }
.commerce-section { padding: 70px 0; }

.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)); gap: 16px; margin-top: 30px; }
.cat-card {
  background: var(--paper); border: 2px solid var(--ink); padding: 26px 22px;
  position: relative; transition: transform .15s, box-shadow .15s; display: block;
}
.cat-card:hover { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--vice); }
.cat-card .display { font-size: 26px; }
.cat-card p { font-size: 13px; color: #5a5a5e; margin-top: 6px; }
.cat-card .arrow { position: absolute; top: 20px; right: 18px; font-weight: 800; color: var(--vice); font-size: 18px; }

.prod-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; margin-top: 30px; }
.prod-card { background: var(--paper); border: 2px solid var(--ink); display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.prod-card:hover { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--vice); }
.prod-img {
  aspect-ratio: 4/3; background:
    radial-gradient(circle at 50% 42%, #3a3a40 0%, #232327 62%, #1a1a1d 100%);
  display: flex; align-items: center; justify-content: center; position: relative;
}
.prod-img svg { width: 42%; opacity: .8; }
.prod-body { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.prod-body .pn { font-size: 11px; letter-spacing: .1em; color: #6a6a70; text-transform: uppercase; }
.prod-body h3 { font-size: 15.5px; line-height: 1.3; }
.fit-badge {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
  font-size: 11px; font-weight: 700; color: #0a6e63;
  background: var(--vice-dim); padding: 3px 9px; letter-spacing: .04em;
}
.prod-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 10px; }
.price { font-family: var(--font-display); font-size: 24px; }
.prod-foot .btn { padding: 8px 14px; font-size: 11px; }

/* ---------- request a part ---------- */
.request-part { background: var(--ink); color: var(--bone); position: relative; overflow: hidden; }
.request-part .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; padding-top: 70px; padding-bottom: 70px; align-items: center; }
.rp-form { display: grid; gap: 12px; }
.rp-form input, .rp-form textarea, .rp-form select {
  background: var(--ink-2); border: 2px solid var(--ink-3); color: var(--bone);
  padding: 13px 15px; font-family: inherit; font-size: 14px; width: 100%; outline: 0;
}
.rp-form input:focus, .rp-form textarea:focus { border-color: var(--vice); }

/* ---------- brands wall ---------- */
.brand-wall { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.brand-chip {
  border: 1.5px solid #c9c5ba; background: var(--paper); color: #3c3c40;
  padding: 9px 16px; font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.brand-chip:hover { border-color: var(--ink); color: var(--ink); }

/* ---------- team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 30px; }
.team-card { background: var(--ink-2); border: 2px solid var(--ink-3); padding: 22px; color: var(--bone); }
.team-card:hover { border-color: var(--vice); }
.avatar {
  width: 54px; height: 54px; border-radius: 50%; background: var(--ink-3);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 22px; color: var(--vice); margin-bottom: 14px;
}
.team-card h3 { font-size: 16px; }
.team-card .role { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--steel); margin: 3px 0 12px; }
.team-card a { display: block; font-size: 13.5px; font-weight: 600; padding: 3px 0; }
.team-card a:hover { color: var(--vice); }

/* ---------- about strip ---------- */
.about-strip .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; padding-top: 70px; padding-bottom: 70px; align-items: center; }
.about-copy p { margin-top: 16px; color: #45454a; font-size: 15.5px; }
.about-photo {
  aspect-ratio: 4/3; border: 2px solid var(--ink);
  background:
    linear-gradient(rgba(19,19,19,.25), rgba(19,19,19,.25)),
    repeating-linear-gradient(45deg, #d8d4c9 0 14px, #cfcabf 14px 28px);
  display: flex; align-items: center; justify-content: center;
}

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: var(--bone); border-top: 3px solid var(--vice); }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding: 60px 0 40px; }
.site-footer h4 { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--vice); margin-bottom: 16px; }
.site-footer li { list-style: none; margin-bottom: 9px; font-size: 14px; color: #b9b9bd; }
.site-footer li a:hover { color: var(--vice); }
.foot-legal { border-top: 1px solid var(--ink-3); padding: 18px 0; font-size: 12px; color: var(--steel); display: flex; gap: 20px; flex-wrap: wrap; }

/* ---------- sticky mobile call bar ---------- */
.callbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 70;
  display: none; grid-template-columns: 1fr 1fr; background: var(--ink-2);
  border-top: 2px solid var(--vice);
}
.callbar a { padding: 14px; text-align: center; font-weight: 800; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.callbar a.call { background: var(--vice); color: var(--vice-ink); }

/* ---------- FAQ widget ---------- */
.faq-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 80;
  background: var(--vice); color: var(--vice-ink); border: 0;
  padding: 15px 22px; font-weight: 800; font-size: 14px; letter-spacing: .1em;
  text-transform: uppercase; box-shadow: 0 8px 24px rgba(0,224,199,.35);
  transition: transform .15s;
}
.faq-fab:hover { transform: translateY(-3px); }
.faq-panel {
  position: fixed; right: 22px; bottom: 86px; z-index: 85;
  width: min(380px, calc(100vw - 32px)); max-height: 560px;
  background: var(--paper); color: var(--ink); border: 2px solid var(--ink);
  box-shadow: 10px 10px 0 rgba(0,224,199,.5);
  display: none; flex-direction: column;
}
.faq-panel.openp { display: flex; }
.faq-head { background: var(--ink); color: var(--bone); padding: 16px 18px; display: flex; align-items: center; gap: 10px; }
.faq-head .display { font-size: 22px; }
.faq-head .hours-note { font-size: 11px; color: var(--steel); margin-left: auto; text-align: right; }
.faq-body { padding: 18px; overflow-y: auto; }
.faq-q { font-weight: 700; font-size: 15px; margin-bottom: 14px; }
.faq-opt {
  display: block; width: 100%; text-align: left; background: var(--bone);
  border: 2px solid var(--ink); padding: 12px 14px; margin-bottom: 9px;
  font-size: 13.5px; font-weight: 600; transition: transform .12s, box-shadow .12s;
}
.faq-opt:hover { transform: translate(-2px,-2px); box-shadow: 3px 3px 0 var(--vice); }
.faq-answer { font-size: 14px; line-height: 1.6; background: var(--vice-dim); border-left: 3px solid var(--vice); padding: 12px 14px; margin-bottom: 14px; }
.faq-esc { border-top: 1px dashed #b9b5aa; margin-top: 6px; padding-top: 12px; }
.faq-esc a { display: block; font-size: 13px; font-weight: 700; padding: 4px 0; color: #0a6e63; }
.faq-back { background: transparent; border: 0; font-weight: 700; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #6a6a70; margin-bottom: 12px; }
.faq-back:hover { color: var(--ink); }

/* ---------- PLACEHOLDER marking system (R-001) ---------- */
.ph { position: relative; outline: 2px dashed rgba(255,90,72,.65); outline-offset: 2px; }
.ph::after {
  content: "PLACEHOLDER"; position: absolute; top: -9px; right: 6px; z-index: 5;
  background: var(--danger); color: #fff; font-size: 8.5px; font-weight: 800;
  letter-spacing: .12em; padding: 2px 6px; font-family: var(--font-body);
}
body.hide-ph .ph { outline: none; }
body.hide-ph .ph::after { display: none; }
.proto-badge {
  position: fixed; left: 16px; bottom: 16px; z-index: 90;
  background: var(--ink-2); color: var(--steel); border: 1px solid var(--ink-3);
  font-size: 10.5px; letter-spacing: .1em; padding: 7px 11px; cursor: pointer;
  text-transform: uppercase;
}
.proto-badge:hover { color: var(--bone); }

/* ---------- product page ---------- */
.breadcrumbs { font-size: 12.5px; color: #6a6a70; padding: 22px 0 0; }
.breadcrumbs a:hover { color: var(--ink); text-decoration: underline; }
.pdp { display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; padding: 34px 0 70px; align-items: start; }
.viewer360 {
  border: 2px solid var(--ink); aspect-ratio: 1; max-height: 620px;
  background: radial-gradient(circle at 50% 45%, #3a3a40 0%, #232327 60%, #17171a 100%);
  position: relative; display: flex; align-items: center; justify-content: center;
  cursor: grab; user-select: none; touch-action: none;
}
.viewer360:active { cursor: grabbing; }
.viewer360 svg { width: 55%; }
.viewer-hint {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--steel);
  display: flex; gap: 8px; align-items: center;
}
.deg-readout { position: absolute; top: 12px; right: 14px; font-family: var(--font-display); font-size: 20px; color: var(--vice); }
.pdp-info .pn-line { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #6a6a70; margin-bottom: 8px; }
.pdp-info h1 { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.05; }
.pdp-price-row { display: flex; align-items: baseline; gap: 16px; margin: 22px 0 6px; }
.pdp-price { font-family: var(--font-display); font-size: 44px; }
.stock-note { font-size: 13px; font-weight: 700; color: #0a6e63; }
.pdp-ctas { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 22px 0; }
.pdp-ctas .btn { justify-content: center; padding: 13px 12px; font-size: 12.5px; white-space: nowrap; }
.pdp-call {
  border: 2px dashed #b9b5aa; padding: 14px 16px; font-size: 13.5px;
  display: flex; gap: 14px; align-items: center; flex-wrap: wrap;
}
.pdp-call a { font-weight: 800; color: #0a6e63; }
.spec-table { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 14px; }
.spec-table th, .spec-table td { text-align: left; padding: 10px 12px; border: 1px solid #d8d4c9; }
.spec-table th { background: #eceadf; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; width: 40%; }
.xref-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.xref-chips span { border: 1.5px solid #c9c5ba; padding: 5px 12px; font-size: 12.5px; font-weight: 700; background: var(--paper); }
.pdp-tabs { margin-top: 34px; }
.pdp-tabs h2 { font-size: 22px; margin-bottom: 8px; }

/* ---------- responsive ---------- */
@media (max-width: 640px) {
  html, body { overflow-x: hidden; }
  .truck-grid, .cat-grid, .trust-strip .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prod-grid, .team-grid { grid-template-columns: 1fr; }
  .site-footer .cols { grid-template-columns: 1fr; gap: 26px; }
  .pdp-ctas { grid-template-columns: 1fr; }
  .hero { padding: 60px 0 50px; }
}
@media (max-width: 900px) {
  .request-part .wrap, .about-strip .wrap, .pdp { grid-template-columns: 1fr; gap: 30px; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
  .search { order: 3; flex-basis: 100%; }
  .site-header .wrap { flex-wrap: wrap; gap: 12px; }
  .callbar { display: grid; }
  .faq-fab { bottom: 74px; }
  .faq-panel { bottom: 138px; }
  .proto-badge { bottom: 74px; }
  .topbar .phone-top { display: none; }
}
