/* ============================================================
   DPS AMERICAN — Prototype P1 "Heritage" (DEC-006)
   Traditional US distributor skin, echo of the client's original
   palette: neutral steel base + stencil display nod + signal accent.
   Three switchable tonal variants:
     [data-pal="a"] Steel & Signal Red (closest to original + logo red)
     [data-pal="b"] Fleet Navy (classic US distributor trust)
     [data-pal="c"] Chrome & Amber (warm Wix-theme tints + CAT/DeWalt cue)
   ============================================================ */

:root, html[data-pal="a"] {
  --base: #f5f5f4;         /* light steel */
  --card: #ffffff;
  --line: #d9d8d5;
  --ink: #17181a;          /* charcoal text */
  --steel: #6d6f73;
  --brand: #2a2c2f;        /* dark structural bands (header/nav/footer) */
  --brand-text: #f5f5f4;
  --accent: #d63130;       /* client logo red */
  --accent-ink: #ffffff;
  --accent-dim: rgba(214, 49, 48, 0.09);
  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-stencil: "Saira Stencil One", "Oswald", sans-serif;
  --font-body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --maxw: 1200px;
}
html[data-pal="b"] {
  --brand: #1f3a5f;        /* fleet navy */
  --brand-text: #f2f5f9;
  --accent: #c8342c;
  --accent-ink: #ffffff;
  --accent-dim: rgba(31, 58, 95, 0.08);
  --base: #f4f6f8;
  --line: #d5dae1;
}
html[data-pal="c"] {
  --brand: #26241f;        /* warm charcoal */
  --brand-text: #f6f3ec;
  --accent: #e89b0e;       /* amber */
  --accent-ink: #201500;
  --accent-dim: rgba(232, 155, 14, 0.12);
  --base: #f6f4ee;
  --line: #ddd8cc;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); background: var(--base); color: var(--ink); line-height: 1.55; -webkit-font-smoothing: antialiased; }
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; }

html[data-lang="en"] .es { display: none !important; }
html[data-lang="es"] .en { display: none !important; }

.display { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; line-height: 1.02; letter-spacing: .01em; }
.stencil { font-family: var(--font-stencil); text-transform: uppercase; }
.kicker { font-family: var(--font-stencil); font-size: 13px; letter-spacing: .24em; text-transform: uppercase; color: var(--accent); }
.section-title { font-size: clamp(30px, 4.4vw, 46px); }
.muted { color: var(--steel); }

.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px;
  border: 2px solid var(--ink); font-weight: 700; font-size: 13.5px;
  letter-spacing: .08em; text-transform: uppercase; background: transparent; color: var(--ink);
  transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--accent); }
.btn--accent { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn--brand { background: var(--brand); border-color: var(--brand); color: var(--brand-text); }
.btn--sm { padding: 8px 14px; font-size: 11.5px; }

/* topbar */
.topbar { background: var(--brand); color: var(--brand-text); font-size: 13px; }
.topbar .wrap { display: flex; align-items: center; gap: 18px; padding-block: 8px; }
.topbar a:hover { color: var(--accent); }
html[data-pal="b"] .topbar a:hover, html[data-pal="c"] .topbar a:hover { color: #fff; text-decoration: underline; }
.status-chip { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; }
.status-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: #9aa0a8; }
.status-chip.open .dot { background: #3ecf6e; box-shadow: 0 0 8px #3ecf6e; }
.status-chip.closed .dot { background: #ff8a75; }
.topbar .spacer { flex: 1; }
.lang-toggle { display: flex; border: 1px solid rgba(255,255,255,.35); }
.lang-toggle button { background: transparent; border: 0; color: rgba(255,255,255,.75); padding: 4px 12px; font-weight: 700; font-size: 12px; letter-spacing: .08em; }
.lang-toggle button.active { background: var(--accent); color: var(--accent-ink); }

/* header */
.site-header { position: sticky; top: 0; z-index: 60; background: var(--card); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 22px; padding-block: 16px; }
.logo { display: flex; flex-direction: column; line-height: 1; }
.logo .logo-main { font-family: var(--font-stencil); font-size: 26px; letter-spacing: .03em; color: var(--ink); }
.logo .logo-main em { font-style: normal; color: var(--accent); }
.logo .logo-sub { font-size: 9.5px; letter-spacing: .28em; text-transform: uppercase; color: var(--steel); margin-top: 3px; }
.search { flex: 1; display: flex; border: 2px solid var(--ink); background: var(--card); }
.search input { flex: 1; border: 0; outline: 0; padding: 11px 16px; font-size: 14px; font-family: inherit; color: var(--ink); background: transparent; }
.search input::placeholder { color: var(--steel); }
.search button { background: var(--accent); border: 0; color: var(--accent-ink); padding: 0 22px; font-weight: 800; letter-spacing: .06em; }
.header-actions { display: flex; gap: 16px; font-size: 13px; font-weight: 600; }
.header-actions a { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.header-actions a:hover { color: var(--accent); }
.header-actions .ico { font-size: 18px; }

.mainnav { background: var(--brand); }
.mainnav .wrap { display: flex; gap: 30px; overflow-x: auto; }
.mainnav a { padding: 12px 0; font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brand-text); opacity: .82; white-space: nowrap; border-bottom: 3px solid transparent; }
.mainnav a:hover, .mainnav a.active { opacity: 1; border-bottom-color: var(--accent); }
html[data-pal="c"] .mainnav a:hover, html[data-pal="c"] .mainnav a.active { border-bottom-color: var(--accent); }

/* hero — light, traditional, photo-forward */
.hero { background: var(--card); border-bottom: 1px solid var(--line); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: center; padding-block: 64px; }
.hero h1 { font-size: clamp(40px, 6vw, 74px); }
.hero h1 .accent-word { color: var(--accent); }
.hero .stencil-sub { font-family: var(--font-stencil); font-size: clamp(15px, 2vw, 21px); letter-spacing: .18em; color: var(--steel); margin-top: 10px; }
.hero-sub { max-width: 520px; margin: 22px 0 30px; font-size: 16.5px; color: var(--steel); }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-photo { border: 2px solid var(--ink); aspect-ratio: 4/3; position: relative;
  background: linear-gradient(rgba(23,24,26,.18), rgba(23,24,26,.18)), repeating-linear-gradient(45deg, #cfd2d6 0 16px, #c3c7cc 16px 32px);
  display: flex; align-items: center; justify-content: center; }
.hero-photo figcaption { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: #494b4f; text-align: center; }
.hero-photo .corner { position: absolute; width: 26px; height: 26px; border: 3px solid var(--accent); }
.hero-photo .c1 { top: -3px; left: -3px; border-right: 0; border-bottom: 0; }
.hero-photo .c2 { bottom: -3px; right: -3px; border-left: 0; border-top: 0; }

/* promise pillars */
.pillars { background: var(--brand); color: var(--brand-text); }
.pillars .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; padding-block: 26px; }
.pillar { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; }
.pillar .pi { font-size: 20px; color: var(--accent); }
html[data-pal="b"] .pillar .pi { color: #f0b429; }
.pillar strong { display: block; font-size: 13.5px; letter-spacing: .04em; }
.pillar span.sub { opacity: .75; }

/* sections */
.section { padding: 64px 0; }
.section--alt { background: var(--card); border-block: 1px solid var(--line); }

.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)); gap: 14px; margin-top: 28px; }
.cat-card { background: var(--card); border: 1.5px solid var(--line); border-top: 4px solid var(--brand); padding: 20px 18px; transition: border-color .15s, transform .15s, box-shadow .15s; display: block; position: relative; }
.cat-card:hover { border-color: var(--accent); border-top-color: var(--accent); transform: translateY(-3px); box-shadow: 0 10px 22px rgba(23,24,26,.08); }
.cat-card .display { font-size: 21px; }
.cat-card p { font-size: 12.5px; color: var(--steel); margin-top: 5px; }

.truck-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-top: 28px; }
.truck-chip { border: 1.5px solid var(--line); background: var(--card); padding: 20px 10px; text-align: center; font-family: var(--font-display); font-weight: 600; font-size: 19px; letter-spacing: .04em; text-transform: uppercase; transition: all .15s; }
.truck-chip:hover { border-color: var(--brand); background: var(--brand); color: var(--brand-text); }
.truck-chip small { display: block; font-family: var(--font-body); font-size: 10px; letter-spacing: .16em; color: var(--steel); margin-top: 5px; }
.truck-chip:hover small { color: inherit; opacity: .7; }

.prod-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin-top: 28px; }
.prod-card { background: var(--card); border: 1.5px solid var(--line); display: flex; flex-direction: column; transition: all .15s; }
.prod-card:hover { border-color: var(--accent); box-shadow: 0 12px 26px rgba(23,24,26,.09); transform: translateY(-3px); }
.prod-img { aspect-ratio: 4/3; background: linear-gradient(180deg, #eceef0, #dfe2e5); display: flex; align-items: center; justify-content: center; }
html[data-pal="c"] .prod-img { background: linear-gradient(180deg, #f0ece2, #e4dfd2); }
.prod-img svg { width: 40%; }
.prod-body { padding: 15px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.prod-body .pn { font-size: 10.5px; letter-spacing: .1em; color: var(--steel); text-transform: uppercase; }
.prod-body h3 { font-size: 15px; line-height: 1.3; }
.fit-badge { display: inline-flex; gap: 6px; align-self: flex-start; font-size: 10.5px; font-weight: 700; color: var(--brand); background: var(--accent-dim); padding: 3px 9px; }
.prod-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 10px; }
.price { font-family: var(--font-display); font-weight: 600; font-size: 22px; }

/* request a part */
.request-part { background: var(--brand); color: var(--brand-text); }
.request-part .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; padding-block: 60px; align-items: center; }
.request-part .kicker { color: var(--accent); }
html[data-pal="b"] .request-part .kicker { color: #f0b429; }
.rp-form { display: grid; gap: 11px; }
.rp-form input, .rp-form textarea { background: rgba(255,255,255,.07); border: 1.5px solid rgba(255,255,255,.25); color: var(--brand-text); padding: 12px 15px; font-family: inherit; font-size: 14px; width: 100%; outline: 0; }
.rp-form input::placeholder, .rp-form textarea::placeholder { color: rgba(255,255,255,.55); }
.rp-form input:focus, .rp-form textarea:focus { border-color: var(--accent); }

/* brands */
.brand-wall { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 26px; }
.brand-chip { border: 1.5px solid var(--line); background: var(--card); color: var(--steel); padding: 8px 15px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.brand-chip:hover { border-color: var(--brand); color: var(--brand); }

/* about */
.about-strip .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; padding-block: 64px; align-items: center; }
.about-copy p { margin-top: 15px; color: #45464a; font-size: 15px; }
.about-photo { aspect-ratio: 4/3; border: 2px solid var(--ink); background: linear-gradient(rgba(23,24,26,.2), rgba(23,24,26,.2)), repeating-linear-gradient(45deg, #d5d2ca 0 14px, #cbc7bd 14px 28px); display: flex; align-items: center; justify-content: center; }

/* team */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-top: 28px; }
.team-card { background: var(--card); border: 1.5px solid var(--line); border-left: 4px solid var(--brand); padding: 20px; }
.team-card:hover { border-color: var(--accent); border-left-color: var(--accent); }
.avatar { width: 50px; height: 50px; border-radius: 50%; background: var(--brand); color: var(--brand-text); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 600; font-size: 19px; margin-bottom: 13px; }
.team-card h3 { font-size: 15.5px; }
.team-card .role { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--steel); margin: 3px 0 11px; }
.team-card a { display: block; font-size: 13px; font-weight: 600; padding: 3px 0; }
.team-card a:hover { color: var(--accent); }

/* footer */
.site-footer { background: var(--brand); color: var(--brand-text); border-top: 4px solid var(--accent); }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding: 54px 0 36px; }
.site-footer h4 { font-family: var(--font-stencil); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin-bottom: 15px; }
html[data-pal="b"] .site-footer h4 { color: #f0b429; }
.site-footer li { list-style: none; margin-bottom: 8px; font-size: 13.5px; opacity: .85; }
.site-footer li a:hover { opacity: 1; text-decoration: underline; }
.site-footer .logo .logo-main, .site-footer .logo .logo-sub { color: var(--brand-text); }
.site-footer .logo .logo-main em { color: var(--accent); }
.foot-legal { border-top: 1px solid rgba(255,255,255,.18); padding: 16px 0; font-size: 12px; opacity: .7; display: flex; gap: 20px; flex-wrap: wrap; }

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

/* FAQ widget */
.faq-fab { position: fixed; right: 22px; bottom: 22px; z-index: 80; background: var(--accent); color: var(--accent-ink); border: 0; padding: 15px 22px; font-weight: 800; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; box-shadow: 0 10px 26px rgba(23,24,26,.25); 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(--card); color: var(--ink); border: 1.5px solid var(--line); box-shadow: 0 24px 60px rgba(23,24,26,.25); display: none; flex-direction: column; }
.faq-panel.openp { display: flex; }
.faq-head { background: var(--brand); color: var(--brand-text); padding: 15px 18px; display: flex; align-items: center; gap: 10px; }
.faq-head .display { font-size: 19px; }
.faq-head .hours-note { font-size: 11px; opacity: .8; 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(--base); border: 1.5px solid var(--line); padding: 12px 14px; margin-bottom: 9px; font-size: 13.5px; font-weight: 600; transition: all .12s; }
.faq-opt:hover { border-color: var(--accent); transform: translateX(3px); }
.faq-answer { font-size: 14px; line-height: 1.6; background: var(--accent-dim); border-left: 3px solid var(--accent); padding: 12px 14px; margin-bottom: 14px; }
.faq-esc { border-top: 1px dashed var(--line); margin-top: 6px; padding-top: 12px; }
.faq-esc a { display: block; font-size: 13px; font-weight: 700; padding: 4px 0; color: var(--brand); }
.faq-back { background: transparent; border: 0; font-weight: 700; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--steel); margin-bottom: 12px; }
.faq-back:hover { color: var(--ink); }

/* placeholder system */
.ph { position: relative; outline: 2px dashed rgba(214,49,48,.55); outline-offset: 2px; }
.ph::after { content: "PLACEHOLDER"; position: absolute; top: -9px; right: 6px; z-index: 5; background: #d63130; 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(--card); color: var(--steel); border: 1px solid var(--line); font-size: 10.5px; letter-spacing: .1em; padding: 7px 11px; cursor: pointer; text-transform: uppercase; }
.proto-badge:hover { color: var(--ink); }

/* palette switcher */
.pal-switch { position: fixed; left: 16px; bottom: 52px; z-index: 90; display: flex; gap: 6px; background: var(--card); border: 1px solid var(--line); padding: 7px 9px; align-items: center; }
.pal-switch span { font-size: 9.5px; letter-spacing: .12em; color: var(--steel); text-transform: uppercase; margin-right: 2px; }
.pal-switch button { width: 22px; height: 22px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; }
.pal-switch button.active { border-color: var(--ink); }
.pal-switch .sw-a { background: linear-gradient(135deg, #f5f5f4 50%, #d63130 50%); }
.pal-switch .sw-b { background: linear-gradient(135deg, #1f3a5f 50%, #c8342c 50%); }
.pal-switch .sw-c { background: linear-gradient(135deg, #26241f 50%, #e89b0e 50%); }

/* responsive */
@media (max-width: 640px) {
  html, body { overflow-x: hidden; }
  .truck-grid, .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prod-grid, .team-grid { grid-template-columns: 1fr; }
  .pillars .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer .cols { grid-template-columns: 1fr; gap: 26px; }
}
@media (max-width: 900px) {
  .hero .wrap, .request-part .wrap, .about-strip .wrap { grid-template-columns: 1fr; gap: 30px; }
  .pillars .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .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; }
  .pal-switch { bottom: 110px; }
  .topbar .phone-top { display: none; }
}
