/* =====================================================================
   Vibraxle — global stylesheet
   Industrial minimal: white / #F4F4F2, ink #1A1B1C, muted #6B7280.
   Accent #E85D26 is reserved for calls to action only.
   Mobile-first, single column on small screens, body text >= 16px.
   ===================================================================== */

:root {
  --bg: #ffffff;
  --bg-alt: #f4f4f2;
  --ink: #1a1b1c;
  --muted: #6b7280;
  --accent: #e85d26;
  --accent-dark: #c9481a;
  --line: #d9d9d4;
  --line-strong: #b9bab4;
  --radius: 8px;
  --wrap: 1180px;
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
/* Mobile overflow guard. Grid/flex items default to min-width:auto, so an
   image with a fixed intrinsic width can expand the whole layout viewport
   and make mobile browsers zoom the page out. Keep every media box shrinkable. */
.pdp-grid > *, .pdp-gallery-main, .pdp-thumbs, .table-wrap,
.hero-media, .product-media, .lp-hero-media { min-width: 0; max-width: 100%; }
.pdp-gallery-main img, .pdp-thumbs img, .hero-media img,
.product-media img, .lp-hero-media img { min-width: 0; max-height: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(30px, 6vw, 50px); }
h2 { font-size: clamp(24px, 4vw, 34px); }
h3 { font-size: 19px; }
p { margin: 0 0 16px; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 700; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* Placeholder marker for unverified business data. Neutral, never a CTA colour. */
.todo {
  background: #ecece8;
  color: #4b5563;
  border-bottom: 1px dashed #9ca3af;
  padding: 0 4px;
  border-radius: 3px;
  font-size: 0.92em;
  font-weight: 500;
}
.badge-sample {
  display: inline-block;
  background: #ecece8;
  color: #4b5563;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 4px;
  white-space: nowrap;
}

.eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.lede { font-size: 18px; color: var(--muted); max-width: 66ch; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  text-align: center;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-ghost { background: var(--bg); border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-block { display: flex; width: 100%; }
.btn-sm { min-height: 42px; padding: 8px 16px; font-size: 15px; }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* ---------------- Header ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(140%) blur(6px);
}
.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 8px;
  padding-bottom: 8px;
}
.brand {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-right: auto;
  white-space: nowrap;
}
.brand span { color: var(--ink); }
.main-nav {
  display: none;
  align-items: center;
  gap: 22px;
  font-size: 15px;
  font-weight: 500;
}
.main-nav a:hover { color: var(--accent); }
.header-cta { min-height: 42px; padding: 8px 18px; font-size: 15px; }

@media (min-width: 1000px) {
  .main-nav { display: flex; }
  .brand { margin-right: 32px; }
}

/* Compact, scrollable nav on phones: every link stays reachable. */
@media (max-width: 999px) {
  .main-nav {
    display: flex;
    order: 3;
    width: 100%;
    gap: 18px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
    font-size: 14px;
    white-space: nowrap;
    border-top: 1px solid var(--line);
    padding-top: 8px;
  }
  .header-cta { margin-left: auto; }
}

/* ---------------- Sections ---------------- */
.section { padding: 56px 0; border-bottom: 1px solid var(--line); }
.section-alt { background: var(--bg-alt); }
.section-head { margin-bottom: 28px; }
.section-head h2 { margin-bottom: 10px; }
.section-head p { color: var(--muted); max-width: 68ch; }

@media (min-width: 800px) { .section { padding: 80px 0; } }

/* ---------------- Hero ---------------- */
.hero { padding: 44px 0 40px; }
.hero-grid { display: grid; gap: 32px; align-items: center; }
.hero h1 { margin-bottom: 16px; }
.hero-sub { font-size: 18px; color: var(--muted); max-width: 56ch; }
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
  padding: 0;
  list-style: none;
}
.hero-meta li {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 6px 12px;
  color: var(--muted);
}
.hero-media {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-media img { width: 100%; height: 100%; object-fit: contain; }

.hero-actions {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr;
  padding: 0 0 40px;
}
.hero-actions .btn { width: 100%; }

@media (min-width: 620px) {
  .hero-actions { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
  .hero { padding: 72px 0 48px; }
  .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 56px; }
}

/* ---------------- Category quick links ---------------- */
.grid { display: grid; gap: 14px; }
.cat-grid { grid-template-columns: 1fr; }
.cat-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.cat-card:hover { border-color: var(--ink); }
.cat-icon {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.cat-icon img { width: 52px; height: 52px; object-fit: contain; }
.cat-card h3 { font-size: 17px; margin-bottom: 2px; }
.cat-card p { margin: 0; font-size: 14px; color: var(--muted); }

@media (min-width: 640px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------------- Numbers / why us ---------------- */
.stat-grid { grid-template-columns: 1fr; }
.stat {
  border-top: 2px solid var(--ink);
  padding-top: 16px;
}
.stat-value { font-size: 30px; font-weight: 700; letter-spacing: -.03em; }
.stat-label { font-size: 14px; color: var(--muted); margin-top: 4px; }
@media (min-width: 560px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .stat-grid { grid-template-columns: repeat(4, 1fr); } }

/* ---------------- Fitment search ---------------- */
.search-row { display: grid; gap: 10px; grid-template-columns: 1fr; }
.search-row input, .field input, .field select, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  font-size: 16px; /* prevents iOS zoom */
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  appearance: none;
}
.search-row input:focus, .field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--ink);
}
@media (min-width: 620px) { .search-row { grid-template-columns: 1fr auto; } }

/* ---------------- Product cards ---------------- */
.product-grid { grid-template-columns: 1fr; }
.product-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.product-media {
  aspect-ratio: 4 / 3;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.product-media img { width: 100%; height: 100%; object-fit: contain; }
.product-body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-body h3 { font-size: 17px; }
.product-meta { font-size: 14px; color: var(--muted); }
.product-meta .oe { display: block; font-variant-numeric: tabular-nums; }
.product-body .btn { margin-top: auto; }
@media (min-width: 600px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------------- Simple lists / two column blocks ---------------- */
.split { display: grid; grid-template-columns: 1fr; gap: 28px; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; gap: 56px; } }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 2px;
}
.check-list li:first-child { border-top: 1px solid var(--line); }
.check-list strong { font-size: 16px; }
.check-list span { font-size: 14px; color: var(--muted); }

/* ---------------- Tables ---------------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line-strong); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.cell-oe { font-variant-numeric: tabular-nums; white-space: nowrap; }
.cell-cat { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.spec-table th { width: 38%; border-top: 0; text-transform: none; letter-spacing: 0; font-size: 15px; color: var(--muted); font-weight: 500; }

/* ---------------- Videos ---------------- */
.video-grid { grid-template-columns: 1fr; }
@media (min-width: 700px) { .video-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .video-grid { grid-template-columns: repeat(3, 1fr); } }
.vx-video {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #202326;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}
.vx-video-frame { position: absolute; inset: 0; }
.vx-video-frame iframe { width: 100%; height: 100%; border: 0; }
.vx-video-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .82; }
.vx-video-play {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.vx-video-play::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 14px rgba(0,0,0,.28);
}
.vx-video-play span {
  position: absolute;
  top: 50%; left: calc(50% + 3px);
  transform: translate(-50%, -50%);
  z-index: 1;
  width: 0; height: 0;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  border-left: 18px solid #1a1b1c;
}
.vx-video[data-loaded="1"] .vx-video-play { display: none; }
.vx-video-pending {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
  color: #fff;
  font-size: 14px;
  line-height: 1.5;
}
.vx-video-pending code { background: rgba(255,255,255,.14); padding: 1px 4px; border-radius: 3px; }
.video-card h3 { font-size: 17px; margin: 14px 0 6px; }
.video-card p { font-size: 14px; color: var(--muted); }
.video-card .text-link { font-weight: 600; border-bottom: 1px solid var(--ink); }

/* ---------------- FAQ ---------------- */
.faq-list { max-width: 860px; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 36px 18px 0;
  font-size: 17px;
  font-weight: 600;
  position: relative;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 16px;
  font-size: 22px;
  font-weight: 400;
  color: var(--muted);
}
.faq-list details[open] summary::after { content: "\2212"; }
.faq-list .faq-answer { padding: 0 0 20px; color: var(--muted); }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--line); padding: 48px 0 24px; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.4fr; } }
.footer-brand { font-size: 18px; font-weight: 800; letter-spacing: .08em; margin: 0 0 12px; }
.footer-grid h4 { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; font-size: 15px; }
.footer-grid a:hover { border-bottom: 1px solid var(--ink); }
.footer-address { font-style: normal; font-size: 15px; color: var(--muted); }
.footer-bottom {
  border-top: 1px solid var(--line);
  margin-top: 36px;
  padding-top: 18px;
  font-size: 13px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
}

/* ---------------- Product detail page ---------------- */
.pdp-grid { display: grid; gap: 36px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 940px) { .pdp-grid { grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; } }
.pdp-gallery-main {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.pdp-gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.pdp-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 10px; }
.pdp-thumbs figure { margin: 0; }
.pdp-thumbs div {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 6px;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.pdp-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.pdp-thumbs figcaption { font-size: 13px; color: var(--muted); margin-top: 4px; }
.pdp-block { margin-top: 36px; }
.pdp-block h2 { font-size: 22px; margin-bottom: 14px; }
.quote-card {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--bg);
  padding: 22px;
}
.quote-card h2 { font-size: 20px; margin-bottom: 8px; }
.quote-card p { font-size: 14px; color: var(--muted); }
.quote-card .btn { margin-top: 10px; }
@media (min-width: 940px) { .quote-card { position: sticky; top: 96px; } }
.breadcrumb { font-size: 14px; color: var(--muted); padding: 20px 20px 0; }
.breadcrumb a { border-bottom: 1px solid var(--line-strong); }

/* ---------------- Forms ---------------- */
.form-layout { display: grid; gap: 36px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .form-layout { grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr); gap: 56px; } }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.field .hint { font-size: 13px; color: var(--muted); margin-top: 5px; }
.field textarea { min-height: 96px; resize: vertical; }
.form-note { font-size: 13px; color: var(--muted); margin-top: 12px; }
.vx-form-success {
  border: 1px solid var(--line-strong);
  border-top: 3px solid var(--ink);
  border-radius: var(--radius);
  padding: 26px;
  background: var(--bg-alt);
}
.vx-form-success h2 { font-size: 22px; margin-bottom: 10px; }
.vx-form-success ul { margin: 14px 0 0; padding-left: 20px; }
.vx-form-success li { margin-bottom: 6px; }

/* ---------------- Landing pages ---------------- */
body.lp-page { padding-bottom: 76px; } /* space for the fixed action bar */
.lp-header { border-bottom: 1px solid var(--line); padding: 16px 0; }
.lp-header .brand { margin: 0; font-size: 18px; }
.lp-hero {
  padding: 36px 0 32px;
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 20px;
}
.lp-hero-media {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 4 / 3;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.lp-hero-media img { width: 100%; height: 100%; object-fit: contain; }
.lp-hero h1 { font-size: clamp(26px, 5.2vw, 40px); max-width: 20ch; }
.lp-hero .btn { min-width: 260px; }
.lp-form-section { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 40px 0; }
.lp-form-section h2 { font-size: 22px; margin-bottom: 6px; }
.lp-form-section .lp-form-intro { color: var(--muted); margin-bottom: 22px; font-size: 15px; }
.lp-form-wrap { max-width: 560px; }
.lp-bottom-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: #fff;
  border-top: 1px solid var(--line-strong);
  padding-bottom: env(safe-area-inset-bottom, 0);
  box-shadow: 0 -2px 12px rgba(0,0,0,.06);
}
.lp-bottom-bar a {
  min-height: 60px;               /* >= 48px touch target */
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 2px;
  font-size: 15px;
  font-weight: 700;
  border-right: 1px solid var(--line);
  padding: 6px 4px;
  text-align: center;
}
.lp-bottom-bar a:last-child { border-right: 0; }
.lp-bottom-bar a.is-primary { background: var(--accent); color: #fff; }
.lp-bottom-bar a small { font-size: 11px; font-weight: 500; opacity: .8; }
.lp-footer { padding: 24px 0; font-size: 13px; color: var(--muted); }
.lp-footer a { border-bottom: 1px solid var(--line-strong); }

/* ---------------- Legal / prose pages ---------------- */
.prose { max-width: 760px; }
.prose h2 { font-size: 22px; margin: 32px 0 10px; }
.prose p, .prose li { color: var(--muted); }
.prose ul { padding-left: 20px; }

/* ---------------- Utility ---------------- */
.stack-sm > * + * { margin-top: 10px; }
.stack-md > * + * { margin-top: 20px; }
.text-link { border-bottom: 1px solid var(--ink); font-weight: 600; }
.divider { height: 1px; background: var(--line); border: 0; margin: 28px 0; }
.notice {
  border-left: 3px solid var(--line-strong);
  padding: 4px 0 4px 16px;
  color: var(--muted);
  font-size: 15px;
}
[hidden] { display: none !important; }

/* On phones, every piece of body copy is at least 16px. Labels, eyebrows,
   badges and copyright lines are UI chrome, not body copy. */
@media (max-width: 600px) {
  .small, .muted, .product-meta, .cat-card p, .video-card p, .faq-answer,
  .footer-address, .lp-form-intro, .check-list span, .field .hint,
  .cell-cat, .stat-label, .form-note, .lp-footer, .footer-grid li,
  .footer-bottom, .notice, .hero-meta li, .pdp-thumbs figcaption,
  .breadcrumb, .prose p, .prose li { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

/* Honeypot: hidden from humans, visible to naive bots. */
.vx-hp { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; }
