/* ============================================================
   AMAN@UK / Best Performance — design tokens
   Signature: lubricant spec-plate — every card is a stamped
   data plate carrying a real SAE/ACEA/API code, echoing the
   plates riveted to an oil drum or a workshop parts bin.
   ============================================================ */

:root {
  --navy:        #0B1E3A;
  --navy-2:      #142B4F;
  --navy-3:      #1C3563;
  --gold:        #C9A24B;
  --gold-bright: #E4C373;
  --paper:       #F1F2F4;
  --paper-2:     #E7E9EC;
  --ink:         #12151C;
  --steel:       #5B6472;
  --line:        #D9DBDF;
  --line-dark:   rgba(228, 195, 115, 0.22);

  --display: 'Oswald', 'Arial Narrow', sans-serif;
  --body:    'IBM Plex Sans', -apple-system, Segoe UI, sans-serif;
  --mono:    'IBM Plex Mono', 'Courier New', monospace;

  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3, .eyebrow, .plate-code {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 0;
}

h1 { font-size: clamp(2.4rem, 5.2vw, 4.2rem); line-height: 1.04; font-weight: 600; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 600; letter-spacing: 0.02em; }
h3 { font-size: 1.1rem; font-weight: 600; letter-spacing: 0.06em; }

p { color: var(--steel); }
.on-dark p, .on-dark { color: rgba(241,242,244,0.78); }

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

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.16em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--gold);
  display: inline-block;
}

/* -------------------- buttons -------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 14px 26px;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-bright); transform: translateY(-1px); }
.btn-line { border-color: rgba(241,242,244,0.35); color: var(--paper); }
.btn-line:hover { border-color: var(--gold); color: var(--gold-bright); }
.btn-line-dark { border-color: var(--navy); color: var(--navy); }
.btn-line-dark:hover { background: var(--navy); color: var(--paper); }

/* -------------------- nav -------------------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy);
  border-bottom: 1px solid var(--line-dark);
}
.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}
.brand {
  font-family: var(--display);
  color: var(--paper);
  text-decoration: none;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  display: flex;
  align-items: baseline;
  gap: 2px;
}
.brand b { color: var(--gold); font-weight: 600; }
.brand-block { display: flex; flex-direction: column; gap: 3px; }
.group-tag { font-family: var(--body); font-size: 0.66rem; letter-spacing: 0.03em; color: rgba(228,195,115,0.65); text-decoration: none; }
.group-tag:hover { color: var(--gold-bright); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: rgba(241,242,244,0.75);
  text-decoration: none;
  font-size: 0.86rem;
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--paper);
  border-color: var(--gold);
}
.nav-cta { display: flex; align-items: center; gap: 20px; }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-dark);
  color: var(--paper);
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

@media (max-width: 860px) {
  .nav-links { position: absolute; top: 74px; left: 0; right: 0; background: var(--navy); flex-direction: column; align-items: flex-start; gap: 0; border-bottom: 1px solid var(--line-dark); display: none; }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 16px 24px; border-bottom: 1px solid var(--line-dark); border-left: 2px solid transparent; }
  .nav-links a:hover, .nav-links a[aria-current="page"] { border-left-color: var(--gold); border-color: var(--line-dark); }
  .nav-cta .btn-gold { display: none; }
  .nav-toggle { display: flex; }
}

/* -------------------- hero -------------------- */
.hero {
  position: relative;
  background: var(--navy);
  color: var(--paper);
  overflow: hidden;
  padding: 96px 0 84px;
}
.hero-code-bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  pointer-events: none;
  overflow: hidden;
}
.hero-code-bg span {
  font-family: var(--mono);
  font-size: clamp(6rem, 22vw, 15rem);
  font-weight: 500;
  color: rgba(228,195,115,0.06);
  white-space: nowrap;
  transform: translateX(8%);
}
.hero-inner { position: relative; max-width: 660px; }
.hero h1 { margin: 18px 0 22px; }
.hero .lead { font-size: 1.08rem; max-width: 520px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-small {
  padding: 64px 0 56px;
}
.hero-small h1 { font-size: clamp(2rem, 4vw, 2.9rem); margin-top: 16px; }

/* -------------------- OEM strip -------------------- */
.oem-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
  padding: 20px 0;
}
.oem-strip .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 34px;
  align-items: center;
  justify-content: center;
}
.oem-strip span {
  font-family: var(--display);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  color: var(--steel);
  text-transform: uppercase;
}
.oem-strip .label {
  color: var(--navy);
  font-weight: 600;
  border-right: 1px solid var(--line);
  padding-right: 34px;
}

/* -------------------- sections -------------------- */
section { padding: 84px 0; }
.section-head { max-width: 620px; margin-bottom: 46px; }
.section-head h2 { margin-top: 14px; }
.section-head p { margin-top: 14px; font-size: 1.02rem; }
.section-alt { background: var(--paper-2); }
.section-navy { background: var(--navy); color: var(--paper); }

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* -------------------- plate cards (signature) -------------------- */
.plate-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.plate-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .plate-grid, .plate-grid.cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .plate-grid, .plate-grid.cols-4 { grid-template-columns: 1fr; } }

.plate {
  position: relative;
  background: var(--navy-2);
  color: var(--paper);
  padding: 26px 22px 22px;
  border: 1px solid var(--line-dark);
  border-radius: 2px;
}
.plate::before, .plate::after {
  content: '';
  position: absolute;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: rgba(228,195,115,0.35);
  top: 12px;
}
.plate::before { left: 12px; }
.plate::after { right: 12px; }
.plate .plate-code {
  font-family: var(--mono);
  color: var(--gold);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 14px;
  text-transform: none;
}
.plate h3 { color: var(--paper); margin-bottom: 10px; text-transform: none; letter-spacing: 0.01em; font-size: 1.15rem; }
.plate p { font-size: 0.92rem; margin: 0; color: rgba(241,242,244,0.7); }

.plate-light {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}
.plate-light .plate-code { color: var(--navy-3); }
.plate-light h3 { color: var(--ink); }
.plate-light p { color: var(--steel); }
.plate-light::before, .plate-light::after { background: rgba(11,30,58,0.18); }

.plate-muted {
  background: transparent;
  border: 1px dashed var(--line-dark);
}
.plate-muted .plate-code { color: rgba(228,195,115,0.4); }
.plate-muted h3 { color: rgba(241,242,244,0.5); }
.plate-muted p { color: rgba(241,242,244,0.35); }
.plate-muted::before, .plate-muted::after { display: none; }

.company-card {
  grid-column: span 1;
}
.company-card .plate { height: 100%; display: flex; flex-direction: column; }
.company-card .plate-actions { margin-top: auto; padding-top: 18px; }
.company-card .plate-actions a {
  font-family: var(--display);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(228,195,115,0.4);
  padding-bottom: 2px;
}
.company-card .plate-actions a:hover { color: var(--gold-bright); border-color: var(--gold-bright); }
.status-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 2px;
  margin-bottom: 12px;
}
.status-live { background: rgba(201,162,75,0.16); color: var(--gold-bright); }
.status-dev { background: rgba(241,242,244,0.08); color: rgba(241,242,244,0.4); }

/* -------------------- CTA band -------------------- */
.cta-band {
  background: var(--gold);
  color: var(--navy);
  padding: 56px 0;
}
.cta-band .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-band h2 { color: var(--navy); }
.cta-band p { color: rgba(11,30,58,0.75); margin-top: 8px; }

/* -------------------- footer -------------------- */
footer {
  background: var(--navy);
  color: rgba(241,242,244,0.65);
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line-dark);
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid h3 { color: var(--paper); font-size: 0.8rem; margin-bottom: 14px; letter-spacing: 0.1em; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 8px; font-size: 0.88rem; }
.footer-grid a { text-decoration: none; color: rgba(241,242,244,0.65); }
.footer-grid a:hover { color: var(--gold-bright); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 22px;
  font-size: 0.78rem;
}

/* -------------------- forms -------------------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
label { font-family: var(--display); font-size: 0.76rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--navy); }
input, select, textarea {
  font-family: var(--body);
  font-size: 0.96rem;
  padding: 13px 14px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 2px;
  color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
textarea { resize: vertical; min-height: 120px; }

/* -------------------- misc -------------------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; gap: 36px; } }

.stat-row { display: flex; gap: 40px; flex-wrap: wrap; margin-top: 12px; }
.stat b { font-family: var(--display); font-size: 2rem; color: var(--gold); display: block; }
.stat span { font-size: 0.8rem; color: var(--steel); text-transform: uppercase; letter-spacing: 0.06em; }
.section-navy .stat span { color: rgba(241,242,244,0.6); }

.note {
  font-size: 0.85rem;
  color: var(--steel);
  border-left: 2px solid var(--gold);
  padding-left: 14px;
  margin-top: 28px;
}

.map-frame {
  border: 1px solid var(--line);
  border-radius: 2px;
  overflow: hidden;
  filter: grayscale(0.3) contrast(1.05);
}
.map-frame iframe { width: 100%; height: 340px; border: 0; display: block; }
