/* JR Parts Group — "deep navy ledger under cool dawn" (Column, via refero). Tokens follow DESIGN.md. */
:root {
  --navy: #111a4a;          /* primary CTA, headings */
  --navy-hover: #0a1036;
  --obsidian: #12161e;      /* strong text */
  --charcoal: #232730;      /* nav, icon strokes */
  --slate: #3b3e47;         /* secondary text */
  --steel: #5f626b;         /* muted body (darkened from #7c7f88 for 4.5:1) */
  --fog: #a9acb6;           /* tertiary icons */
  --field: #9497a1;         /* input borders (3:1) */
  --line: #e3e4e8;          /* hairlines */
  --canvas: #f6f6f8;        /* page background */
  --white: #ffffff;
  --blue: #0061ec;          /* logo blue — data color: part numbers, indices, links */
  --blue-soft: #e8f0fe;
  --wa: #25d366;
  --wa-ink: #129447;        /* WhatsApp glyph on white */
  --danger: #c0262d;
  --danger-soft: #fdecec;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --r: 8px;
  --wrap: 1200px;
  --gutter: 20px;
  --section: 72px;
  --header-h: 64px;

  --shadow-card: rgba(18,22,30,.024) 0 1px 4px, rgba(18,22,30,.05) 0 1px 0, rgba(18,22,30,.07) 0 0 0 1px;
  --shadow-float: rgba(30,30,44,.15) 24px 48px 64px, rgba(17,26,74,.06) 0 0 0 1px;
  --shadow-btn: rgba(17,26,74,.1) 0 1px 3px, rgba(17,26,74,.05) 0 1px 0, inset 0 1px 0 rgba(255,255,255,.12);
  --ease: cubic-bezier(.2,.7,.2,1);
}
@media (min-width: 768px) { :root { --gutter: 32px; --section: 104px; --header-h: 72px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0; background: var(--canvas); color: var(--obsidian);
  font: 400 1rem/1.5 var(--font); font-feature-settings: "cv11";
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
h1, h2, h3 { margin: 0; color: var(--navy); text-wrap: balance; }
p { margin: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 2px; }
.mono { font-family: var(--mono); font-weight: 400; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: var(--r); }
.skip:focus { top: 12px; color: #fff; }

/* Tag with dot — section labels */
.tag { display: inline-flex; align-items: center; gap: 10px; font: 500 .75rem/1.3 var(--font); text-transform: uppercase; letter-spacing: .07em; color: var(--navy); }
.tag::before { content: ""; flex: none; width: 6px; height: 6px; background: var(--blue); }

/* Buttons — 8px radius, never two filled CTAs side by side */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 0 20px; border-radius: var(--r);
  font: 500 .9375rem/1 var(--font); text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease), box-shadow .18s var(--ease);
}
.btn--primary { background: var(--navy); color: #fff; box-shadow: var(--shadow-btn); }
.btn--primary:hover { background: var(--navy-hover); color: #fff; }
.btn--outline { background: transparent; color: var(--navy); border-color: var(--navy); padding: 0 28px; }
.btn--outline:hover { background: var(--white); color: var(--navy); }
.btn--ghost { background: var(--white); color: var(--navy); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--navy); color: var(--navy); }
.btn--sm { min-height: 38px; padding: 0 14px; font-size: .875rem; }
.btn--lg { min-height: 52px; font-size: 1rem; }
.btn[disabled] { opacity: .7; cursor: progress; }
.btn svg { flex: none; }
.wa-glyph { color: var(--wa-ink); display: inline-flex; }

/* Header */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.9); backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid var(--line); }
.header__inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { flex: none; }
.brand img { width: 80px; height: auto; }
@media (min-width: 768px) { .brand img { width: 92px; } }
.nav { display: none; gap: 4px; margin-left: 16px; }
.nav a { padding: 6px 12px; border-radius: var(--r); color: var(--charcoal); text-decoration: none; font-size: .875rem; }
.nav a:hover { background: var(--canvas); color: var(--navy); }
@media (min-width: 960px) { .nav { display: flex; } }
.header__actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.lang { display: inline-flex; padding: 3px; gap: 2px; background: var(--canvas); border: 1px solid var(--line); border-radius: var(--r); }
.lang a { display: grid; place-items: center; min-width: 40px; min-height: 34px; border-radius: 6px; font: 500 .75rem/1 var(--mono); color: var(--steel); text-decoration: none; }
.lang a:hover { color: var(--navy); }
.lang a[aria-current="true"] { background: var(--white); color: var(--navy); box-shadow: var(--shadow-card); }

/* Hero — halftone field + floating widget */
.hero { position: relative; overflow: hidden; padding: 56px 0 72px; background: var(--white); border-bottom: 1px solid var(--line); }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle, rgba(17,26,74,.22) 1.1px, transparent 1.6px), radial-gradient(circle, rgba(0,97,236,.35) 1.1px, transparent 1.6px);
  background-size: 12px 12px, 12px 12px;
  background-position: 0 0, 0 0;
  -webkit-mask-image: radial-gradient(ellipse 55% 60% at 80% 45%, #000 0%, transparent 70%);
          mask-image: radial-gradient(ellipse 55% 60% at 80% 45%, #000 0%, transparent 70%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle, rgba(0,97,236,.4) 1.1px, transparent 1.6px);
  background-size: 12px 12px;
  -webkit-mask-image: radial-gradient(ellipse 22% 26% at 88% 30%, #000 0%, transparent 70%);
          mask-image: radial-gradient(ellipse 22% 26% at 88% 30%, #000 0%, transparent 70%);
}
@media (max-width: 959px) {
  .hero::before, .hero::after { -webkit-mask-position: 0 140px; mask-position: 0 140px; opacity: .7; }
}
@media (min-width: 768px) { .hero { padding: 112px 0 120px; } }
.hero__grid { position: relative; z-index: 1; display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .hero__grid { grid-template-columns: 1.3fr 1fr; gap: 80px; } }
.hero h1 { margin-top: 22px; font-size: clamp(2.375rem, 4.4vw + 1rem, 3.75rem); font-weight: 600; line-height: 1.02; letter-spacing: -.03em; }
.lead { margin-top: 22px; max-width: 32em; font-size: clamp(1.0625rem, .3vw + 1rem, 1.125rem); line-height: 1.55; color: var(--slate); }
.hero__ctas { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 479px) { .hero__ctas .btn { flex: 1 1 100%; } }

.sheet { background: var(--white); border-radius: var(--r); box-shadow: var(--shadow-float); overflow: hidden; }
.sheet__title { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.sheet__count { font-size: .75rem; color: var(--fog); }
.sheet__list li + li { border-top: 1px solid var(--line); }
.sheet__list a { display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 12px; padding: 0 20px; min-height: 56px; color: var(--obsidian); text-decoration: none; font-weight: 500; font-size: .9375rem; transition: background-color .15s var(--ease); }
.sheet__list a .mono { color: var(--blue); font-size: .8125rem; }
.sheet__list a svg { color: var(--fog); transition: color .15s var(--ease), transform .15s var(--ease); }
.sheet__list a:hover { background: var(--canvas); }
.sheet__list a:hover svg { color: var(--navy); transform: translateX(3px); }

/* Sections */
.section { padding: var(--section) 0; }
.section--alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__head { max-width: 720px; margin-bottom: 40px; }
@media (min-width: 768px) { .section__head { margin-bottom: 56px; } }
.section h2 { margin-top: 16px; font-size: clamp(2rem, 2.4vw + 1.1rem, 3rem); font-weight: 500; line-height: 1.1; letter-spacing: -.025em; }
.section__sub { margin-top: 16px; font-size: 1.0625rem; color: var(--steel); max-width: 36em; }

/* Bordered content cards */
.card, .step, .quote__panel, .contact { background: var(--white); border-radius: var(--r); box-shadow: var(--shadow-card); }

.cards { display: grid; gap: 16px; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cards { grid-template-columns: repeat(6, 1fr); gap: 20px; } .card { grid-column: span 2; } .card:nth-child(4) { grid-column: 2 / span 2; } }
.card { display: flex; flex-direction: column; padding: 24px; transition: box-shadow .2s var(--ease); }
.card:hover { box-shadow: rgba(17,26,74,.05) 0 8px 16px, rgba(18,22,30,.1) 0 0 0 1px; }
.card:target { box-shadow: 0 0 0 2px var(--blue); }
.card__top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 28px; }
.card__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: var(--r); background: var(--canvas); color: var(--navy); box-shadow: inset 0 0 0 1px var(--line); }
.card__icon svg { width: 36px; height: 36px; }
.card__num { font-size: .75rem; color: var(--fog); }
.card h3 { font-size: 1.25rem; font-weight: 500; line-height: 1.25; letter-spacing: -.01em; }
.card p { margin-top: 8px; color: var(--steel); font-size: .9375rem; }
.card__link { margin-top: auto; padding-top: 20px; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; align-self: flex-start; font-weight: 500; font-size: .9375rem; color: var(--navy); text-decoration: none; }
.card__link svg { color: var(--blue); transition: transform .15s var(--ease); }
.card__link:hover { color: var(--blue); }
.card__link:hover svg { transform: translateX(3px); }

/* Steps */
.steps { display: grid; gap: 16px; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.step { padding: 24px; }
.step__num { display: block; font-size: 1.75rem; line-height: 1; color: var(--blue); margin-bottom: 40px; }
.step h3 { font-size: 1.25rem; font-weight: 500; letter-spacing: -.01em; }
.step p { margin-top: 8px; color: var(--steel); }
.center-cta { margin-top: 40px; display: flex; justify-content: center; }

/* Why us — open grid, no dividers */
.why { display: grid; gap: 40px; }
@media (min-width: 860px) { .why { grid-template-columns: repeat(3, 1fr); gap: 48px; } }
.why__icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r); background: var(--navy); color: #fff; margin-bottom: 22px; }
.why h3 { font-size: 1.25rem; font-weight: 500; letter-spacing: -.01em; }
.why p { margin-top: 8px; color: var(--steel); }

/* Quote */
.section--quote { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.quote { display: grid; gap: 40px; }
@media (min-width: 1024px) { .quote { grid-template-columns: 1fr 1.65fr; gap: 72px; align-items: start; } .quote__head { position: sticky; top: calc(var(--header-h) + 40px); } }
.section--quote .section__sub a { font-weight: 500; }
.quote__panel { padding: 24px 20px; background: var(--white); box-shadow: var(--shadow-float); }
@media (min-width: 640px) { .quote__panel { padding: 36px; } }

.grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .grid { grid-template-columns: 1fr 1fr; gap: 22px 20px; } .field--wide { grid-column: 1 / -1; } }
.field label { display: block; margin-bottom: 8px; font-weight: 500; font-size: .875rem; color: var(--obsidian); }
.req { color: var(--blue); }
.opt { font-weight: 400; color: var(--steel); }
.field input:not([type="file"]), .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  font: 400 1rem/1.4 var(--font); color: var(--obsidian);
  background: var(--white); border: 1px solid var(--field); border-radius: var(--r);
  box-shadow: rgba(18,22,30,.04) 0 1px 2px;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
  -webkit-appearance: none; appearance: none;
}
.field textarea { resize: vertical; min-height: 96px; }
.field textarea.mono-input { font-family: var(--mono); font-size: .9375rem; line-height: 1.6; }
.field input::placeholder, .field textarea::placeholder { color: #8b8e97; }
.field input:hover, .field textarea:hover { border-color: var(--slate); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.field input[type="file"] { width: 100%; min-height: 48px; padding: 9px; font: inherit; font-size: .875rem; color: var(--steel); background: var(--canvas); border: 1px dashed var(--field); border-radius: var(--r); }
.field input[type="file"]::file-selector-button { margin-right: 12px; padding: 7px 12px; font: 500 .8125rem var(--font); color: var(--navy); background: var(--white); border: 1px solid var(--line); border-radius: 6px; cursor: pointer; }
.help { margin-top: 8px; font-size: .8125rem; color: var(--steel); }
.err { margin-top: 8px; font-size: .875rem; font-weight: 500; color: var(--danger); }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--danger); }
.field.is-invalid input:focus, .field.is-invalid textarea:focus { box-shadow: 0 0 0 3px var(--danger-soft); }
.form__summary { margin-bottom: 20px; padding: 12px 16px; border-radius: var(--r); background: var(--danger-soft); color: var(--danger); font-weight: 500; }
.form__foot { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; }
@media (max-width: 479px) { .form__foot .btn { width: 100%; } }
.form__note { font-size: .8125rem; color: var(--steel); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.success { text-align: center; padding: 32px 8px; }
.success:focus { outline: none; }
.success__icon { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: var(--r); background: var(--blue-soft); color: var(--blue); }
.success h3 { margin-top: 20px; font-size: 1.5rem; font-weight: 500; letter-spacing: -.015em; }
.success p { margin: 10px auto 0; max-width: 30em; color: var(--steel); }
.success__actions { margin-top: 28px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* Contact */
.contact { display: grid; overflow: hidden; }
@media (min-width: 640px) { .contact { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .contact { grid-template-columns: repeat(4, 1fr); } }
.contact li { display: flex; gap: 16px; align-items: flex-start; padding: 24px; border-bottom: 1px solid var(--line); }
@media (min-width: 640px) { .contact li { border-right: 1px solid var(--line); } }
.contact__icon { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r); background: var(--canvas); color: var(--navy); box-shadow: inset 0 0 0 1px var(--line); }
.contact__icon--wa { color: var(--wa-ink); }
.contact__label { font: 400 .75rem/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--steel); margin-bottom: 8px; }
.contact a, .contact li p:not(.contact__label) { font-weight: 500; color: var(--navy); text-decoration: none; word-break: break-word; }
.contact a { display: inline-block; padding: 2px 0; }
.contact a:hover { color: var(--blue); text-decoration: underline; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 28px 0 calc(28px + 72px + env(safe-area-inset-bottom)); font-size: .875rem; color: var(--steel); }
@media (min-width: 768px) { .footer { padding-bottom: 28px; } }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.footer strong { color: var(--navy); font-weight: 500; }

/* Floating WhatsApp (the one deliberate exception to the 8px radius) */
.wa-float {
  position: fixed; z-index: 60;
  right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom));
  display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%;
  background: var(--wa); color: #fff;
  box-shadow: rgba(30,30,44,.25) 0 12px 28px -6px, rgba(18,148,71,.45) 0 0 0 1px;
  transition: transform .2s var(--ease);
}
.wa-float:hover { color: #fff; transform: scale(1.06); }
@media (min-width: 768px) { .wa-float { right: 28px; bottom: 28px; width: 62px; height: 62px; } }
