/* JOVIPARTS design system — flattened for deployment.
   Generated from the design-system project's tokens/. Do not hand-edit:
   re-flatten from tokens/*.css if the system changes. */
@import url("https://fonts.googleapis.com/css2?family=Archivo:wdth,wght@125,400..800&family=IBM+Plex+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&family=IBM+Plex+Mono:wght@400;500;600&display=swap");

:root {
  /* ---- Brand ink: sampled directly from joviparts_logo.png (#063bad, silver #999) ---- */
  --jovi-blue-50:  #eef2fc;
  --jovi-blue-100: #dbe4f8;
  --jovi-blue-200: #b3c4f0;
  --jovi-blue-300: #7f9ce4;
  --jovi-blue-400: #3d6ad0;
  --jovi-blue-500: #063bad; /* brand blue — logo exact */
  --jovi-blue-600: #052f8d;
  --jovi-blue-700: #04256f;
  --jovi-blue-800: #031b52;
  --jovi-blue-900: #021235;

  /* ---- Steel: the logo's chrome/silver, cooled to a working neutral ramp ---- */
  --steel-50:  #f6f7f9;
  --steel-100: #eceef2;
  --steel-200: #d8dbe1;
  --steel-300: #b9bec7;
  --steel-400: #8f959f;
  --steel-500: #6b717b; /* logo silver, resolved */
  --steel-600: #4e535c;
  --steel-700: #383c43;
  --steel-800: #24272c;
  --steel-900: #14161a;

  /* ---- Amber: workshop hazard/lubricant accent. Second spot colour, used small ---- */
  --amber-50:  #fff8e6;
  --amber-100: #ffefc2;
  --amber-300: #ffd166;
  --amber-500: #f2a900;
  --amber-700: #b06f00;
  --amber-900: #5f3c00;

  --white: #ffffff;

  /* ---- Semantic aliases: use these in product code ---- */
  --surface-page:     var(--white);
  --surface-subtle:   var(--steel-50);
  --surface-sunken:   var(--steel-100);
  --surface-card:     var(--white);
  --surface-inverse:  var(--steel-900);
  --surface-brand:    var(--jovi-blue-500);
  --surface-brand-soft: var(--jovi-blue-50);
  --surface-accent-soft: var(--amber-50);

  --text-strong:   var(--steel-900);
  --text-body:     var(--steel-700);
  --text-muted:    var(--steel-500);
  --text-inverse:  var(--white);
  --text-brand:    var(--jovi-blue-600);
  --text-on-brand: var(--white);
  --text-link:     var(--jovi-blue-500);
  --text-link-hover: var(--jovi-blue-700);

  --border-hairline: var(--steel-200);
  --border-strong:   var(--steel-300);
  --border-brand:    var(--jovi-blue-500);
  --border-focus:    var(--jovi-blue-400);

  /* ---- Status: stock, orders, fitment ---- */
  --status-in-stock:   #1a7a4c;
  --status-in-stock-soft: #e6f4ec;
  --status-low:        var(--amber-700);
  --status-low-soft:   var(--amber-50);
  --status-out:        #b3261e;
  --status-out-600:    #9c1f18;
  --status-out-700:    #851a14;
  --status-out-soft:   #fdeceb;
  --status-info:       var(--jovi-blue-500);
  --status-info-soft:  var(--jovi-blue-50);
}

:root {
  /* Display = Archivo at width axis 125. Always pair with --display-stretch. */
  --font-display: "Archivo", "Archivo Expanded", system-ui, sans-serif;
  --display-stretch: 125%;
  --font-body: "IBM Plex Sans", "Archivo", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;

  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --weight-black: 800;

  /* Display scale — Archivo Expanded, uppercase, tight */
  --text-display-1: 56px;
  --text-display-2: 40px;
  --text-display-3: 30px;
  --text-title: 22px;
  --text-subtitle: 18px;

  /* Body scale — IBM Plex Sans */
  --text-lg: 17px;
  --text-md: 15px;
  --text-sm: 13px;
  --text-xs: 11px;

  --leading-tight: 1.05;
  --leading-snug: 1.2;
  --leading-normal: 1.5;
  --leading-loose: 1.65;

  --tracking-display: -0.02em;
  --tracking-normal: 0;
  --tracking-label: 0.08em;  /* uppercase labels, kickers */
  --tracking-mono: 0.02em;   /* part numbers */
}

:root {
  /* 4px base, workshop-tight rather than airy */
  --space-0: 0px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

  --gutter: var(--space-6);
  --page-max: 1240px;
  --control-h-sm: 32px;
  --control-h-md: 40px;
  --control-h-lg: 48px;
  --touch-min: 44px;
}

:root {
  /* Machined, not soft: small radii only. Pills are reserved for status chips. */
  --radius-none: 0px;
  --radius-xs: 2px;
  --radius-sm: 3px;
  --radius-md: 5px;
  --radius-lg: 8px;
  --radius-pill: 999px;
}

:root {
  /* Blue-tinted shadows so cards read as sitting on a cool steel ground */
  --shadow-xs: 0 1px 0 rgba(20, 22, 26, 0.06);
  --shadow-sm: 0 1px 2px rgba(3, 27, 82, 0.08), 0 1px 1px rgba(3, 27, 82, 0.04);
  --shadow-md: 0 2px 6px rgba(3, 27, 82, 0.10), 0 1px 2px rgba(3, 27, 82, 0.06);
  --shadow-lg: 0 8px 24px rgba(3, 27, 82, 0.14), 0 2px 6px rgba(3, 27, 82, 0.06);
  --shadow-inset-top: inset 0 1px 0 rgba(255, 255, 255, 0.14);
  --ring-focus: 0 0 0 3px rgba(61, 106, 208, 0.35);
}

:root {
  /* Mechanical: short, linear-ish, no bounce, no spring */
  --ease-standard: cubic-bezier(0.2, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast: 90ms;
  --duration-base: 150ms;
  --duration-slow: 240ms;
  --transition-control: background-color var(--duration-fast) var(--ease-standard),
    border-color var(--duration-fast) var(--ease-standard),
    color var(--duration-fast) var(--ease-standard),
    box-shadow var(--duration-fast) var(--ease-standard);
}

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

body {
  margin: 0;
  background: var(--surface-page);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: var(--text-md);
  line-height: var(--leading-normal);
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
}

h1, h2, h3, h4, .jp-display {
  font-family: var(--font-display);
  font-stretch: var(--display-stretch);
  overflow-wrap: break-word;
  hyphens: auto;
  color: var(--text-strong);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-display);
  line-height: var(--leading-snug);
  margin: 0;
  text-transform: uppercase;
}
h1 { font-size: var(--text-display-1); line-height: var(--leading-tight); }
h2 { font-size: var(--text-display-2); }
h3 { font-size: var(--text-display-3); }
h4 { font-size: var(--text-title); }

p { margin: 0 0 var(--space-4); }

a { color: var(--text-link); text-decoration-thickness: 1px; text-underline-offset: 2px; transition: var(--transition-control); }
a:hover { color: var(--text-link-hover); }

:focus-visible { outline: 2px solid var(--border-focus); outline-offset: 2px; border-radius: var(--radius-xs); }
::selection { background: var(--jovi-blue-100); color: var(--jovi-blue-900); }

.jp-display { margin: 0; color: var(--text-strong); text-transform: uppercase; letter-spacing: var(--tracking-display); }

/* Utility: uppercase kicker / spec label */
.jp-kicker {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--text-muted);
}
/* Utility: part number / SKU */
.jp-sku {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  letter-spacing: var(--tracking-mono);
  color: var(--text-strong);
}
/* Utility: the brand's one graphic device — a 3px blue rule under a heading */
.jp-rule::after {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  background: var(--surface-brand);
  margin-top: var(--space-3);
}


/* ---------------------------------------------------------------- site layer */
img { max-width: 100%; display: block; }
.wrap { max-width: var(--page-max); margin: 0 auto; padding: 0 var(--space-8); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--space-4); top: var(--space-4); z-index: 200; background: var(--white); padding: var(--space-3) var(--space-4); border-radius: var(--radius-sm); }

/* header */
.site-head { background: var(--white); border-bottom: 3px solid var(--jovi-blue-500); position: sticky; top: 0; z-index: 60; }
.site-head .wrap { display: flex; align-items: center; gap: var(--space-6); min-height: 72px; }
.site-head img { height: 40px; width: auto; }
.nav-main { display: flex; flex-wrap: wrap; gap: var(--space-4); margin-left: auto; }
.nav-main a, .lang a { font-size: var(--text-xs); font-weight: var(--weight-semibold); letter-spacing: var(--tracking-label); text-transform: uppercase; text-decoration: none; color: var(--text-body); padding-bottom: 2px; border-bottom: 2px solid transparent; }
.nav-main a:hover { color: var(--jovi-blue-600); }
.nav-main a[aria-current="page"] { color: var(--jovi-blue-600); border-bottom-color: var(--jovi-blue-500); }
.lang { display: flex; gap: var(--space-2); align-items: center; }
.lang a { padding: 4px var(--space-2); border: 1px solid var(--border-hairline); border-radius: var(--radius-xs); }
.lang a[aria-current="true"] { background: var(--jovi-blue-500); color: var(--white); border-color: var(--jovi-blue-500); }
.tel { display: inline-flex; align-items: center; gap: var(--space-2); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: var(--control-h-md); padding: 0 var(--space-5); border: 1px solid transparent; border-radius: var(--radius-sm); font: inherit; font-size: var(--text-sm); font-weight: var(--weight-semibold); letter-spacing: var(--tracking-label); text-transform: uppercase; text-decoration: none; cursor: pointer; white-space: nowrap; transition: var(--transition-control); }
.btn-primary { background: var(--jovi-blue-500); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--jovi-blue-600); color: var(--white); }
.btn-primary:active { background: var(--jovi-blue-700); box-shadow: none; }
.btn-secondary { background: var(--white); color: var(--jovi-blue-600); border-color: var(--jovi-blue-500); }
.btn-secondary:hover { background: var(--jovi-blue-50); color: var(--jovi-blue-700); }
.btn-accent { background: var(--amber-500); color: var(--steel-900); }
.btn-accent:hover { background: var(--amber-300); color: var(--steel-900); }
.btn-lg { min-height: var(--control-h-lg); padding: 0 var(--space-6); font-size: var(--text-md); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); }

/* type helpers */
.kicker { font-size: var(--text-xs); font-weight: var(--weight-semibold); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--text-muted); }
.lead { font-size: var(--text-lg); max-width: 56ch; }
.measure { max-width: 68ch; }
h2.rule::after, h1.rule::after { content: ""; display: block; width: 44px; height: 3px; background: var(--jovi-blue-500); margin-top: var(--space-3); }

/* sections */
section { padding: var(--space-16) 0; }
section.tight { padding: var(--space-12) 0; }
section.subtle { background: var(--surface-subtle); }
section.dark { background: var(--steel-900); color: var(--steel-300); }
section.dark h2, section.dark h3 { color: var(--white); }
section.dark .kicker { color: var(--amber-300); }
/* Flex children default to min-width:auto, which lets a long heading word set the
   band's width and scroll the page sideways. */
section.dark .wrap > * { min-width: 0; }
.hero { padding: var(--space-20) 0 var(--space-16); }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: var(--space-16); align-items: center; }
.hero h1 { font-size: clamp(30px, 7.5vw, var(--text-display-1)); }
.figure-stub { background: var(--surface-sunken); border-radius: var(--radius-md); aspect-ratio: 4 / 3; display: grid; place-items: center; text-align: center; padding: var(--space-6); }

/* grids */
.grid { display: grid; gap: var(--space-8); }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.lines h3 { font-size: var(--text-subtitle); margin-top: var(--space-4); }
.lines p { margin-top: var(--space-2); font-size: var(--text-sm); color: var(--text-muted); }
.ico { display: inline-block; width: 28px; height: 28px; background: var(--jovi-blue-500); }
.ico-sm { width: 18px; height: 18px; }

/* card */
.card { background: var(--surface-card); border: 1px solid var(--border-hairline); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); padding: var(--space-5); }
.card h3 { font-size: var(--text-subtitle); }
.card p { margin: var(--space-2) 0 0; font-size: var(--text-sm); color: var(--text-body); }
.tag { display: inline-block; background: var(--jovi-blue-50); color: var(--jovi-blue-700); border: 1px solid var(--jovi-blue-100); border-radius: var(--radius-xs); padding: 3px var(--space-2); font-size: var(--text-xs); font-weight: var(--weight-medium); white-space: nowrap; }
.tag-row { display: flex; flex-wrap: wrap; gap: var(--space-2); }

/* facts / contact list */
.facts { display: flex; flex-direction: column; gap: var(--space-4); }
.fact { display: flex; gap: var(--space-3); align-items: flex-start; }
.fact strong { display: block; color: var(--text-strong); font-weight: var(--weight-semibold); }
.fact span { font-size: var(--text-sm); color: var(--text-muted); }
section.dark .fact strong { color: var(--white); }

/* faq */
.faq { display: flex; flex-direction: column; gap: var(--space-6); max-width: 76ch; }
.faq h3 { font-size: var(--text-subtitle); }
.faq p { margin-top: var(--space-2); }

/* news */
.post { padding: var(--space-6) 0; border-top: 1px solid var(--border-hairline); max-width: 76ch; }
.post:first-child { border-top: 0; }
.post time { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--text-muted); letter-spacing: var(--tracking-mono); }
.post h3 { font-size: var(--text-title); margin-top: var(--space-2); }

/* form */
.form { display: grid; gap: var(--space-4); max-width: 640px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.field { display: flex; flex-direction: column; gap: var(--space-2); }
.field label { font-size: var(--text-xs); font-weight: var(--weight-semibold); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--text-strong); }
.input, .field textarea, .field select { font: inherit; font-size: var(--text-md); color: var(--text-strong); background: var(--white); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); min-height: var(--control-h-md); padding: var(--space-2) var(--space-3); }
.field textarea { min-height: 108px; resize: vertical; }
.input:focus, .field textarea:focus, .field select:focus { border-color: var(--border-focus); box-shadow: var(--ring-focus); outline: none; }
.mono { font-family: var(--font-mono); letter-spacing: var(--tracking-mono); }
.hint { font-size: var(--text-sm); color: var(--text-muted); }

/* map */
.map { border: 0; width: 100%; aspect-ratio: 4 / 3; border-radius: var(--radius-md); background: var(--surface-sunken); }

/* footer */
.site-foot { background: var(--steel-900); color: var(--steel-300); padding: var(--space-12) 0; }
.site-foot a { color: var(--steel-300); text-decoration: none; }
.site-foot a:hover { color: var(--white); }
.site-foot img { height: 44px; width: auto; filter: brightness(0) invert(1); }
.foot-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1.2fr; gap: var(--space-8); }
.foot-grid h4 { font-size: var(--text-sm); color: var(--white); letter-spacing: var(--tracking-label); }
.foot-list { display: flex; flex-direction: column; gap: var(--space-2); margin-top: var(--space-4); font-size: var(--text-sm); }
.legal { margin-top: var(--space-10); padding-top: var(--space-5); border-top: 1px solid var(--steel-700); font-size: var(--text-xs); display: flex; flex-wrap: wrap; gap: var(--space-4); justify-content: space-between; }

/* Phones: single column, edge padding down, nav scrolls rather than stacks,
   every control at or above the 44px touch minimum. */
@media (max-width: 600px) {
  .wrap { padding: 0 var(--space-4); }
  section { padding: var(--space-10) 0; }
  .hero { padding: var(--space-12) 0 var(--space-10); }
  .grid { gap: var(--space-6); }
  h2 { font-size: var(--text-display-3); }
  h3 { font-size: var(--text-title); }
  .lead { font-size: var(--text-md); }
  .btn, .btn-lg { min-height: var(--touch-min); width: 100%; }
  .btn-row { flex-direction: column; align-items: stretch; }
  .site-head .tel { width: auto; }
  .site-foot { padding: var(--space-10) 0; }
  .legal { flex-direction: column; gap: var(--space-3); }
  .post h3 { font-size: var(--text-subtitle); }
}
@media (max-width: 900px) {
  .nav-main { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: var(--space-1); }
  .nav-main::-webkit-scrollbar { display: none; }
  .nav-main a { white-space: nowrap; }
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .lang a, .nav-main a { min-height: var(--touch-min); display: inline-flex; align-items: center; }
  .lang a { padding: 0 var(--space-3); }
}
@media (max-width: 560px) {
  .g4 { grid-template-columns: 1fr; }
}
@media (max-width: 1080px) {
  .site-head .wrap { flex-wrap: wrap; padding-top: var(--space-3); padding-bottom: var(--space-3); }
  .nav-main { margin-left: 0; order: 3; width: 100%; }
}
@media (max-width: 900px) {
  .hero-grid, .g4, .g3, .g2, .row2, .foot-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: var(--text-display-2); }
  .site-head .wrap { flex-wrap: wrap; padding-top: var(--space-3); padding-bottom: var(--space-3); }
  .nav-main { margin-left: 0; width: 100%; order: 3; }
  section { padding: var(--space-12) 0; }
}
