/* =========================================================
   Global Parts Xpress — BRANDED full site (client colors)
   Navy + blue gradient · light / clean · gear-globe logo
   ========================================================= */
:root {
  --navy: #2f3e4e;
  --navy-d: #233140;
  --ink: #233039;
  --ink-2: #51606b;
  --muted: #7d8a94;
  --blue: #2ba6db;
  --blue-d: #2479ad;
  --blue-l: #57c4ea;
  --blue-soft: rgba(43, 166, 219, .12);
  --bg: #ffffff;
  --bg-alt: #eef4f8;
  --paper: #ffffff;
  --line: #dde7ee;
  --grad: linear-gradient(100deg, var(--blue-l), var(--blue-d));

  --maxw: 1200px;
  --radius: 12px;
  --radius-lg: 18px;
  --sans: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--bg); line-height: 1.62; font-size: 17px; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
svg { display: block; }
::selection { background: var(--blue); color: #fff; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

h1, h2, h3, h4, h5 { font-family: var(--sans); font-weight: 800; line-height: 1.08; letter-spacing: -.02em; margin: 0; color: var(--navy); }
.hl { color: var(--blue-d); }
p { margin: 0; }

.index { display: inline-block; font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--blue-d); margin-bottom: 18px; }
.index.light { color: var(--blue-l); }
.kicker { display: inline-flex; align-items: center; gap: 9px; font-family: var(--mono); font-size: .74rem; letter-spacing: .12em; color: var(--muted); margin-bottom: 24px; }
.kicker-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-family: var(--sans); font-weight: 600; font-size: .94rem; padding: 13px 26px; border-radius: 10px; border: 1.5px solid transparent; cursor: pointer; transition: transform .18s var(--ease), box-shadow .2s, background .2s, color .2s, border-color .2s; }
.btn-lg { padding: 16px 32px; font-size: 1rem; }
.btn-solid { background: var(--grad); color: #fff; border-color: var(--blue-d); box-shadow: 0 10px 22px rgba(36, 121, 173, .28); }
.btn-solid:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(36, 121, 173, .4); }
.btn-line { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-line:hover { border-color: var(--blue); color: var(--blue-d); transform: translateY(-2px); }
.btn-block { width: 100%; }

/* Header */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .82); backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s, background .3s; }
.header.scrolled { border-bottom-color: var(--line); background: rgba(255, 255, 255, .94); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-name { font-family: var(--sans); font-weight: 800; font-size: 1.2rem; letter-spacing: -.01em; color: var(--navy); }
.brand-name em { font-style: normal; color: var(--blue); }
.nav { display: flex; gap: 34px; }
.nav a { position: relative; font-size: .94rem; font-weight: 500; color: var(--ink-2); padding: 4px 0; transition: color .2s; }
.nav a::after { content: ""; position: absolute; left: 0; bottom: -3px; height: 2px; width: 0; background: var(--blue); transition: width .25s var(--ease); }
.nav a:hover { color: var(--navy); }
.nav a:hover::after { width: 100%; }
.header-cta { padding: 9px 20px; }
.nav-toggle { display: none; flex-direction: column; gap: 6px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 26px; height: 2px; background: var(--navy); transition: .3s var(--ease); }

/* Hero */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #f5f9fc, #ffffff); }
.hero-glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(680px 420px at 82% 18%, rgba(43, 166, 219, .16), transparent 62%); }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .6; background-image: linear-gradient(rgba(47, 62, 78, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(47, 62, 78, .05) 1px, transparent 1px); background-size: 52px 52px; mask-image: radial-gradient(720px 460px at 75% 25%, #000, transparent 78%); }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding: clamp(48px, 7vw, 92px) 0 clamp(56px, 8vw, 96px); }
.hero h1 { font-size: clamp(2.6rem, 6vw, 5rem); margin-bottom: 24px; }
.hero-lead { font-size: 1.14rem; color: var(--ink-2); max-width: 480px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 34px 0 42px; }
.hero-stats { display: flex; gap: 42px; margin: 0; padding-top: 30px; border-top: 1px solid var(--line); }
.hero-stats dt { font-weight: 800; font-size: 2.2rem; color: var(--navy); line-height: 1; }
.hero-stats dd { margin: 6px 0 0; font-family: var(--mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }

/* Rotor */
.hero-visual { position: relative; display: flex; justify-content: center; align-items: center; }
.rotor-wrap { position: relative; width: min(440px, 92%); aspect-ratio: 1; filter: drop-shadow(0 26px 50px rgba(40, 60, 80, .28)); }
.rotor { animation: spin 14s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.caliper { position: absolute; top: 50%; right: -6%; transform: translateY(-50%); width: 22%; filter: drop-shadow(0 8px 18px rgba(43, 166, 219, .4)); }
.vchip { position: absolute; z-index: 3; font-family: var(--mono); font-size: .72rem; background: #fff; color: var(--navy); border: 1px solid var(--line); padding: 9px 13px; border-radius: 9px; box-shadow: 0 14px 30px -12px rgba(40, 60, 80, .35); }
.vchip::before { content: "● "; color: #2fae6a; }
.vchip-1 { top: 6%; left: -2%; animation: bob 5s ease-in-out infinite; }
.vchip-2 { bottom: 8%; left: 4%; animation: bob 5s ease-in-out infinite .9s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* Hazard -> brand stripe */
.hazard { height: 10px; background: repeating-linear-gradient(-45deg, var(--blue) 0 18px, var(--navy) 18px 36px); opacity: .9; }

/* Marquee */
.marquee { overflow: hidden; background: var(--bg-alt); border-bottom: 1px solid var(--line); padding: 16px 0; }
.marquee-track { display: flex; align-items: center; gap: 22px; white-space: nowrap; width: max-content; font-family: var(--sans); font-weight: 700; font-size: 1.04rem; letter-spacing: .04em; color: var(--muted); animation: scroll 38s linear infinite; }
.marquee-track i { color: var(--blue); font-style: normal; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* Sections */
.section { padding: clamp(70px, 10vw, 128px) 0; position: relative; scroll-margin-top: 90px; }
.section-soft { background: var(--bg-alt); }
.section-dark { background: var(--navy); }
.section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }
.head { max-width: 640px; margin-bottom: clamp(44px, 6vw, 68px); }
.head h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
.head p { margin-top: 16px; font-size: 1.06rem; color: var(--ink-2); }
.section-dark .head p { color: #b9c6d0; }

/* About prose */
.prose { max-width: 760px; }
.prose p { margin-top: 16px; font-size: 1.1rem; color: var(--ink-2); }
.prose p strong { color: var(--navy); font-weight: 700; }
.prose .prose-tag { margin-top: 26px; font-size: 1.5rem; font-weight: 800; color: var(--blue-d); letter-spacing: -.01em; }
.prose .btn { margin-top: 26px; }

/* Services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.svc { position: relative; padding: 36px 32px 40px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .3s; }
.svc::before { content: ""; position: absolute; left: 0; top: 0; width: 0; height: 3px; background: var(--grad); transition: width .35s var(--ease); }
.svc:hover { background: var(--bg-alt); }
.svc:hover::before { width: 100%; }
.svc-icon { display: inline-grid; place-items: center; width: 56px; height: 56px; border: 1.5px solid var(--line); border-radius: 14px; color: var(--blue); margin-bottom: 22px; background: #fff; transition: border-color .3s, transform .3s var(--ease); }
.svc:hover .svc-icon { border-color: var(--blue); transform: translateY(-3px); }
.svc h3 { font-size: 1.4rem; margin-bottom: 10px; }
.svc p { color: var(--muted); font-size: .97rem; }

/* Catalog (on navy) */
.catalog { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.part { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius-lg); padding: 28px 24px 26px; transition: transform .25s var(--ease), border-color .25s, background .25s; }
.part:hover { transform: translateY(-6px); border-color: var(--blue-l); background: rgba(255, 255, 255, .09); }
.part-art { width: 64px; height: 64px; color: #aebfcd; margin-bottom: 18px; transition: color .25s, transform .4s var(--ease); }
.part:hover .part-art { color: var(--blue-l); transform: rotate(-6deg); }
.part-art svg { width: 100%; height: 100%; }
.part h4 { font-size: 1.18rem; margin-bottom: 6px; }
.part p { font-family: var(--mono); font-size: .76rem; color: #9fb0bd; }

/* Why */
.why { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(44px, 6vw, 82px); align-items: center; }
.why h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); margin-bottom: 18px; }
.why-lead { color: var(--ink-2); font-size: 1.08rem; }
.ticks { list-style: none; margin: 26px 0 34px; padding: 0; }
.ticks li { position: relative; padding: 15px 0 15px 36px; font-weight: 500; border-bottom: 1px solid var(--line); }
.ticks li:first-child { border-top: 1px solid var(--line); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; background: var(--blue); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/contain no-repeat; }

.quote { margin: 0 0 22px; background: var(--bg-alt); border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: var(--radius); padding: 30px 32px; }
.quote blockquote { margin: 0; font-size: 1.26rem; line-height: 1.4; font-weight: 500; color: var(--navy); letter-spacing: -.01em; }
.quote figcaption { display: flex; align-items: center; gap: 13px; margin-top: 20px; font-size: .88rem; color: var(--muted); }
.q-avatar { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 700; }
.quote figcaption b { color: var(--navy); }
.metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.metric { background: var(--bg-alt); padding: 26px 24px; }
.metric-num { font-weight: 800; font-size: 2.6rem; line-height: 1; color: var(--blue-d); }
.metric p { font-family: var(--mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-top: 8px; }

/* Process */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.step { position: relative; padding-right: 28px; }
.step + .step { padding-left: 28px; }
.step::before { content: ""; position: absolute; top: 18px; left: 0; right: 28px; height: 2px; background: var(--line); }
.step:first-child::before { left: 0; }
.step-no { position: relative; z-index: 1; display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--grad); color: #fff; font-weight: 700; font-size: .9rem; margin-bottom: 22px; }
.step h3 { font-size: 1.32rem; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: .95rem; }

/* Contact */
.contact { display: grid; grid-template-columns: .92fr 1.08fr; gap: clamp(44px, 6vw, 78px); align-items: start; }
.contact-copy h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); margin-bottom: 18px; }
.contact-copy > p { color: #b9c6d0; font-size: 1.08rem; }
.contact-list { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 15px; }
.contact-list li { display: flex; align-items: center; gap: 12px; font-size: .96rem; color: #e8eef2; }
.contact-list svg { color: var(--blue-l); flex-shrink: 0; }
.form { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius-lg); padding: 34px; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
label { font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: #b9c6d0; }
.opt { text-transform: none; letter-spacing: 0; color: #8a99a5; }
input, select, textarea { font-family: var(--sans); font-size: .98rem; padding: 13px 15px; color: #fff; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .16); border-radius: 9px; transition: border-color .2s, box-shadow .2s, background .2s; }
input::placeholder, textarea::placeholder { color: #8a99a5; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%23b9c6d0' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 15px center; }
select option { color: #1b2733; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue-l); background: rgba(255, 255, 255, .08); box-shadow: 0 0 0 3px var(--blue-soft); }
textarea { resize: vertical; }
.field.invalid input, .field.invalid textarea { border-color: #ff8b88; box-shadow: 0 0 0 3px rgba(255, 139, 136, .15); }
.form-note { margin-top: 14px; font-size: .9rem; min-height: 1.2em; }
.form-note.ok { color: #6fe3a6; }
.form-note.err { color: #ff9b98; }

/* Footer */
.footer { background: var(--navy-d); color: #aebcc7; padding: 72px 0 30px; }
.footer-top { display: grid; grid-template-columns: 1.3fr 2fr; gap: 56px; padding-bottom: 44px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.footer .brand { margin-bottom: 16px; }
.footer .brand-name { color: #fff; }
.footer .brand-name em { color: var(--blue-l); }
.footer-brand p { max-width: 330px; font-size: .94rem; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.footer-cols h5 { font-family: var(--mono); font-weight: 500; font-size: .72rem; letter-spacing: .1em; color: #fff; margin-bottom: 16px; text-transform: uppercase; }
.footer-cols a { display: block; padding: 6px 0; font-size: .92rem; color: #aebcc7; transition: color .2s; }
.footer-cols a:hover { color: var(--blue-l); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-top: 24px; font-family: var(--mono); font-size: .76rem; color: #7e8d99; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .reveal { opacity: 1; transform: none; } .rotor { animation: none; } }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-visual { order: -1; max-width: 380px; margin: 0 auto; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .catalog { grid-template-columns: repeat(2, 1fr); }
  .why, .contact { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 36px 0; }
  .step::before { display: none; }
  .footer-top { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .nav, .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .header.open .nav { display: flex; flex-direction: column; gap: 0; position: absolute; top: 78px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 28px 20px; max-height: calc(100vh - 78px); overflow-y: auto; }
  .header.open .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .header.open .nav a::after { display: none; }
  /* hamburger -> X */
  .nav-toggle span { transition: transform .3s var(--ease), opacity .3s; }
  .header.open .nav-toggle span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
  .header.open .nav-toggle span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }
  .services, .catalog { grid-template-columns: 1fr; }
  .hero-grid { padding-top: 32px; }
  .hero-visual { max-width: 300px; }
  .hero-cta { gap: 12px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .hero-stats { gap: 22px 30px; flex-wrap: wrap; }
  .field-row { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}
@media (max-width: 400px) {
  .container { padding-left: 20px; padding-right: 20px; }
  .hero h1 { font-size: 2.3rem; }
  .svc { padding: 30px 22px 32px; }
  .hero-stats { gap: 18px 26px; }
  .hero-stats dt { font-size: 1.7rem; }
}
