/* ==========================================================================
   MG Engineering Enterprises — Industrial Integrity design system
   Tokens transcribed from Stitch DESIGN.md. No CDN, no build step.
   ========================================================================== */

/* --- Tokens --------------------------------------------------------------- */
:root {
  /* Brand */
  --deep-navy: #0b3069;
  --primary: #001b46;
  --primary-container: #0b3069;
  --blueprint-blue: #1a4b8d;
  --industrial-orange: #e63f12;
  --secondary: #b02700;

  /* Surfaces */
  --surface: #f8f9fe;
  --surface-ice: #f2f3f8;
  --surface-white: #ffffff;
  --surface-container: #edeef3;
  --surface-container-high: #e7e8ed;
  --surface-variant: #e1e2e7;

  /* Text */
  --on-surface: #191c1f;
  --on-surface-variant: #444750;
  --on-primary: #ffffff;
  --inverse-primary: #aec6ff;
  --outline: #747781;
  --outline-variant: #c4c6d1;

  /* Status */
  --error: #ba1a1a;
  --success: #1b6d3a;

  /* Shape — "heavy machinery": minimal rounding */
  --radius: 4px;
  --radius-sm: 2px;
  --radius-lg: 8px;

  /* Spacing — 8px base unit */
  --unit: 8px;
  --gutter: 24px;
  --margin-page: 16px;
  --container-max: 1280px;

  /* Type */
  --font-head: "Hanken Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Open Sans", "Segoe UI", system-ui, sans-serif;

  /* Depth — structural, not organic */
  --shadow-card: 0 1px 2px rgba(11, 48, 105, 0.06);
  --shadow-hover: -4px 4px 12px rgba(11, 48, 105, 0.1);
  --shadow-lift: 0 8px 24px rgba(11, 48, 105, 0.12);

  --transition: 200ms ease-in-out;
}

@media (min-width: 768px) {
  :root { --margin-page: 32px; }
}
@media (min-width: 1024px) {
  :root { --margin-page: 64px; }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--surface-ice);
  color: var(--on-surface);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

img, svg { max-width: 100%; display: block; }
img { height: auto; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  color: var(--primary);
  margin: 0 0 var(--unit);
  text-wrap: balance;
}

p { margin: 0 0 var(--unit); }

a { color: var(--deep-navy); text-decoration: none; }
a:hover { color: var(--industrial-orange); }

ul, ol { margin: 0; padding: 0; }

button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible {
  outline: 3px solid var(--industrial-orange);
  outline-offset: 2px;
}

::selection { background: var(--deep-navy); color: #fff; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--industrial-orange);
  color: #fff;
  padding: 12px 20px;
  font-family: var(--font-head);
  font-weight: 600;
}
.skip-link:focus { left: 0; color: #fff; }

/* --- Type scale ----------------------------------------------------------- */
.t-display {
  font-family: var(--font-head);
  font-size: clamp(32px, 5.2vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.t-headline-lg {
  font-family: var(--font-head);
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 700;
  line-height: 1.2;
}
.t-headline-md {
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
}
.t-body-lg { font-size: 18px; line-height: 1.6; }
.t-body { font-size: 16px; line-height: 1.5; }
.t-label {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.05em;
}
.t-caption { font-size: 12px; line-height: 1.4; }
.t-upper { text-transform: uppercase; }
.t-muted { color: var(--on-surface-variant); }
.t-center { text-align: center; }

/* --- Layout --------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--margin-page);
}

.section { padding-block: clamp(48px, 8vw, 96px); }
.section--tight { padding-block: clamp(32px, 5vw, 64px); }
.section--ice { background: var(--surface-ice); }
.section--white {
  background: var(--surface-white);
  border-block: 1px solid rgba(196, 198, 209, 0.4);
}
.section--navy { background: var(--primary); color: rgba(255, 255, 255, 0.85); }
.section--navy h2, .section--navy h3 { color: #fff; }

.section-head {
  max-width: 720px;
  margin: 0 auto clamp(32px, 5vw, 64px);
  text-align: center;
}
.section-head p { color: var(--on-surface-variant); font-size: 18px; margin: 0; }
.section-head h2 { margin-bottom: 16px; }

.section-head--split {
  max-width: none;
  text-align: left;
  display: flex;
  flex-wrap: wrap;
  gap: var(--gutter);
  align-items: flex-end;
  justify-content: space-between;
}
.section-head--split > div { max-width: 640px; }

.grid { display: grid; gap: var(--gutter); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.stack > * + * { margin-top: var(--gutter); }

/* Eyebrow tag — "technical manual" label */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--surface-container);
  border: 1px solid rgba(196, 198, 209, 0.6);
  border-radius: var(--radius-sm);
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-surface-variant);
}
.eyebrow svg { color: var(--industrial-orange); width: 16px; height: 16px; }
.eyebrow--onnavy {
  background: rgba(64, 93, 152, 0.25);
  border-color: rgba(64, 93, 152, 0.6);
  color: #d4e3ff;
}

/* --- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--transition), color var(--transition),
    border-color var(--transition), transform 120ms ease;
  text-align: center;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex: none; }

.btn--primary { background: var(--deep-navy); border-color: var(--deep-navy); color: #fff; }
.btn--primary:hover { background: var(--primary); border-color: var(--primary); color: #fff; }

.btn--accent { background: var(--industrial-orange); border-color: var(--industrial-orange); color: #fff; }
.btn--accent:hover { background: var(--secondary); border-color: var(--secondary); color: #fff; }

.btn--outline { border-color: var(--deep-navy); color: var(--deep-navy); background: transparent; }
.btn--outline:hover { background: var(--deep-navy); color: #fff; }

.btn--ghost-light { border-color: rgba(255, 255, 255, 0.35); color: #fff; background: transparent; }
.btn--ghost-light:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }

.btn--sm { padding: 8px 18px; font-size: 13px; }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--deep-navy);
}
.link-arrow svg { width: 16px; height: 16px; transition: transform var(--transition); }
.link-arrow:hover svg { transform: translateX(3px); }
.link-arrow--accent { color: var(--industrial-orange); }
.link-arrow--accent:hover { color: #fff; }

/* --- Header / nav --------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid rgba(196, 198, 209, 0.5);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gutter);
  min-height: 80px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: none;
}
.brand__logo {
  height: 46px;
  width: auto;
  display: block;
}
@media (max-width: 760px) { .brand__logo { height: 38px; } }
@media (max-width: 420px) { .brand__logo { height: 32px; } }

.nav { display: flex; align-items: center; gap: 32px; }
.nav a {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--on-surface-variant);
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
  white-space: nowrap;
}
.nav a:hover { color: var(--secondary); }
.nav a[aria-current="page"] {
  color: var(--secondary);
  border-bottom-color: var(--secondary);
  font-weight: 700;
}

.header-actions { display: flex; align-items: center; gap: 12px; flex: none; }
.header-actions .emergency {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--industrial-orange);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.header-actions .emergency svg { width: 18px; height: 18px; }
.header-actions .emergency:hover { color: var(--secondary); }

.nav__cta { display: none; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-sm);
  padding: 8px;
  color: var(--primary);
  cursor: pointer;
}
.nav-toggle svg { width: 24px; height: 24px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }

@media (max-width: 1099px) {
  .header-actions .emergency, .header-actions .btn { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed;
    inset: 80px 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--surface-white);
    border-bottom: 1px solid var(--outline-variant);
    padding: var(--margin-page) var(--margin-page) 24px;
    box-shadow: var(--shadow-lift);
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a {
    padding: 14px 0;
    border-bottom: 1px solid rgba(196, 198, 209, 0.5);
    font-size: 16px;
  }
  .nav a[aria-current="page"] { border-bottom-color: var(--secondary); }
  .nav .nav__cta { margin-top: 20px; display: grid; gap: 12px; }
  .nav .nav__cta .btn { display: inline-flex; width: 100%; }
}

/* --- Approval stamp (top-left) -------------------------------------------
   Text-only seal — deliberately no institutional crest or emblem.
   White field so it reads on both the light hero and the navy page-heads. */
.approval-stamp {
  position: absolute;
  top: 14px;
  left: var(--margin-page);
  z-index: 20;
  width: 104px;
  height: 104px;
  transform: rotate(-8deg);
  filter: drop-shadow(0 4px 10px rgba(0, 17, 45, 0.28));
  pointer-events: none;
}
.approval-stamp img,
.approval-stamp svg { width: 100%; height: 100%; display: block; object-fit: contain; }

/* Sat on the product image itself, top-right corner */
.approval-stamp--on-image {
  top: 18px;
  right: 18px;
  left: auto;
  width: 190px;
  height: 190px;
  z-index: 3;
}

@media (max-width: 900px) {
  .approval-stamp { width: 84px; height: 84px; top: 12px; }
  .approval-stamp--on-image { width: 150px; height: 150px; top: 14px; right: 14px; }
}
@media (max-width: 560px) {
  .approval-stamp { width: 68px; height: 68px; top: 10px; }
  .approval-stamp--on-image { width: 112px; height: 112px; top: 12px; right: 12px; }
}

/* --- Authorised dealer badge ---------------------------------------------
   Compact pennant in the top-right corner of the first content band, with
   the notch on its left edge so it reads as a flag flying from the right.  */
main { position: relative; }

.partner-badge {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 14px 28px 14px 44px;
  background: var(--blueprint-blue);
  border-right: 6px solid var(--industrial-orange);
  color: #fff;
  text-decoration: none;
  box-shadow: inset 0 0 0 1px rgba(174, 198, 255, 0.45), 0 8px 22px rgba(0, 17, 45, 0.34);
  clip-path: polygon(26px 0, 100% 0, 100% 100%, 26px 100%, 0 50%);
  transition: background var(--transition);
}
.partner-badge:hover { background: var(--deep-navy); color: #fff; }

.partner-badge__logo {
  flex: none;
  width: 108px;
  height: 76px;
  background: #fff;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  padding: 6px 9px;
}
.partner-badge__logo img { max-width: 100%; max-height: 100%; object-fit: contain; }

.partner-badge__text { display: grid; gap: 3px; line-height: 1.15; }
.partner-badge__text > span {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: #d4e3ff;
}
.partner-badge__text strong {
  font-family: var(--font-head);
  font-size: 21px;
  font-weight: 700;
  color: #fff;
}

@media (max-width: 900px) {
  .partner-badge { gap: 12px; padding: 11px 20px 11px 34px; }
  .partner-badge__logo { width: 84px; height: 60px; }
  .partner-badge__text > span { font-size: 10px; letter-spacing: 0.14em; }
  .partner-badge__text strong { font-size: 17px; }
}
@media (max-width: 560px) {
  .partner-badge { gap: 10px; padding: 9px 14px 9px 26px; }
  .partner-badge__logo { width: 64px; height: 46px; }
  .partner-badge__text > span { font-size: 9px; letter-spacing: 0.1em; }
  .partner-badge__text strong { font-size: 14px; }
}

/* --- Hero: light (home) --------------------------------------------------- */
.hero {
  position: relative;
  background: var(--surface-white);
  background-image: radial-gradient(var(--surface-variant) 1px, transparent 1px);
  background-size: 24px 24px;
  border-bottom: 1px solid rgba(196, 198, 209, 0.4);
  padding-block: clamp(48px, 7vw, 88px) clamp(72px, 9vw, 120px);
  overflow: hidden;
}
.hero__grid {
  display: grid;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1fr 1fr; }
}
.hero__copy > * + * { margin-top: 24px; }
.hero__copy p { max-width: 46ch; font-size: 18px; color: var(--on-surface-variant); }
.hero h1 span { color: var(--blueprint-blue); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; }

.hero__visual { position: relative; }
.hero__frame {
  position: relative;
  background: var(--surface-container);
  border: 1px solid rgba(196, 198, 209, 0.6);
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
  aspect-ratio: 4 / 3;
}
.hero__frame img, .hero__frame svg { width: 100%; height: 100%; object-fit: cover; }

.stat-card {
  background: var(--surface-white);
  border: 1px solid rgba(196, 198, 209, 0.6);
  box-shadow: var(--shadow-card);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}
@media (min-width: 900px) {
  .stat-card { position: absolute; left: -24px; bottom: -28px; }
}
@media (max-width: 899px) {
  .stat-card { margin-top: -20px; position: relative; z-index: 2; }
}
.stat-card__icon {
  width: 48px;
  height: 48px;
  flex: none;
  background: var(--surface-container);
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  color: var(--industrial-orange);
}
.stat-card__icon svg { width: 26px; height: 26px; }
.stat-card strong { font-family: var(--font-head); font-size: 22px; color: var(--primary); display: block; }
.stat-card span {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--on-surface-variant);
}

/* --- Hero: navy blueprint (interior pages) -------------------------------- */
.hero-navy {
  position: relative;
  background: var(--primary);
  color: rgba(255, 255, 255, 0.88);
  padding-block: clamp(48px, 7vw, 96px);
  overflow: hidden;
}
.hero-navy::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(174, 198, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(174, 198, 255, 0.07) 1px, transparent 1px),
    linear-gradient(rgba(174, 198, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(174, 198, 255, 0.04) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
}
.hero-navy > .container { position: relative; z-index: 1; }
.hero-navy h1 { color: #fff; }
.hero-navy p { color: var(--inverse-primary); font-size: 18px; max-width: 60ch; }
.hero-navy__grid { display: grid; gap: clamp(32px, 5vw, 56px); align-items: center; }
@media (min-width: 900px) {
  .hero-navy__grid { grid-template-columns: 7fr 5fr; }
}
.hero-navy__copy > * + * { margin-top: 24px; }
.hero-navy__actions { display: flex; flex-wrap: wrap; gap: 16px; }
.hero-navy__visual { position: relative; }
.hero-navy__visual::before {
  content: "";
  position: absolute;
  inset: -8%;
  background: rgba(26, 75, 141, 0.45);
  filter: blur(48px);
  border-radius: 50%;
}
.hero-navy__visual > * { position: relative; z-index: 1; }

/* Compact page header for secondary pages */
.page-head { background: var(--primary); color: #fff; padding-block: clamp(40px, 6vw, 72px); position: relative; overflow: hidden; }
.page-head::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(174, 198, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(174, 198, 255, 0.06) 1px, transparent 1px);
  background-size: 24px 24px;
}
.page-head > .container { position: relative; z-index: 1; }
.page-head h1 { color: #fff; margin-bottom: 12px; }
.page-head p { color: var(--inverse-primary); font-size: 18px; max-width: 62ch; margin: 0; }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 16px;
  list-style: none;
}
.breadcrumb a { color: rgba(255, 255, 255, 0.75); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; opacity: 0.5; }

/* --- Cards ---------------------------------------------------------------- */
.card {
  background: var(--surface-white);
  border: 1px solid rgba(196, 198, 209, 0.5);
  border-left: 2px solid transparent;
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition), border-color var(--transition),
    transform var(--transition);
}
.card--hover:hover {
  box-shadow: var(--shadow-hover);
  border-left-color: var(--industrial-orange);
  transform: translateY(-2px);
}
.card h3, .card h4 { margin-bottom: 12px; }
.card p { color: var(--on-surface-variant); flex-grow: 1; }
.card .link-arrow { margin-top: 16px; }

.card__icon {
  width: 48px;
  height: 48px;
  background: var(--surface-container);
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  color: var(--deep-navy);
  margin-bottom: 24px;
}
.card__icon svg { width: 26px; height: 26px; }

/* Media card — illustrated header instead of stock photography */
.media-card {
  background: var(--surface-white);
  border: 1px solid rgba(196, 198, 209, 0.5);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.media-card:hover { border-color: var(--industrial-orange); box-shadow: var(--shadow-lift); }
.media-card__figure {
  position: relative;
  height: 168px;
  background: var(--primary);
  overflow: hidden;
}
.media-card__figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 12, 32, 0.9), rgba(0, 12, 32, 0.1));
}
.media-card__figure svg.pattern { position: absolute; inset: 0; width: 100%; height: 100%; }
.media-card__label {
  position: absolute;
  left: 16px;
  bottom: 14px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.media-card__label svg { width: 18px; height: 18px; color: var(--industrial-orange); }
.media-card__body { padding: 24px; display: flex; flex-direction: column; flex-grow: 1; }
.media-card__body p { color: var(--on-surface-variant); }

/* --- Feature split (navy panel + visual) ---------------------------------- */
.split {
  display: grid;
  background: var(--surface-white);
  border: 1px solid rgba(196, 198, 209, 0.5);
  overflow: hidden;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 5fr 7fr; }
  .split--reverse { grid-template-columns: 7fr 5fr; }
  .split--reverse .split__panel { order: 2; }
}
.split__panel {
  background: var(--primary);
  color: rgba(255, 255, 255, 0.85);
  padding: clamp(32px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.split__panel h3 { color: #fff; margin-bottom: 16px; }
.split__panel > svg { width: 40px; height: 40px; color: var(--industrial-orange); margin-bottom: 24px; }
.split__panel p { color: rgba(255, 255, 255, 0.8); margin-bottom: 28px; }
.split__visual { background: var(--surface-container); min-height: 340px; position: relative; }
.split__visual svg, .split__visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Studio product shots: show the whole machine rather than cropping it.
   Their backgrounds are near-white, so `contain` blends into the panel. */
.split__visual--product { background: #f7f8fb; }
.split__visual--product img {
  object-fit: contain;
  padding: 28px;
}

/* Keep the subject's head in frame when a tall portrait is cropped. */
.split__visual--top img { object-position: center top; }

/* --- Technical list ------------------------------------------------------- */
.check-list { list-style: none; display: grid; gap: 16px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--industrial-orange); }
.check-list--tight { gap: 10px; font-size: 15px; }

/* --- Spec table ----------------------------------------------------------- */
.table-wrap { overflow-x: auto; border: 1px solid rgba(196, 198, 209, 0.6); border-radius: var(--radius); background: var(--surface-white); }
table.spec { width: 100%; border-collapse: collapse; min-width: 560px; }
table.spec caption { text-align: left; padding: 16px 20px 0; font-family: var(--font-head); font-weight: 600; color: var(--primary); }
table.spec th, table.spec td { padding: 14px 20px; text-align: left; border-bottom: 1px solid rgba(196, 198, 209, 0.5); font-size: 15px; }
table.spec thead th {
  background: var(--surface-container);
  font-family: var(--font-head);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-surface-variant);
}
table.spec tbody tr:last-child td { border-bottom: 0; }
table.spec tbody tr:hover { background: var(--surface-ice); }

/* --- Partnership bar ------------------------------------------------------ */
.partner-bar {
  background: var(--surface-white);
  border-block: 1px solid rgba(196, 198, 209, 0.6);
  padding-block: 28px;
}
.partner-bar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 32px;
  text-align: left;
}
.partner-bar__item { display: flex; align-items: center; gap: 16px; }
.partner-bar__item svg { width: 38px; height: 38px; color: var(--primary-container); flex: none; }
.partner-bar__item h3 { font-size: 18px; margin: 0; }
.partner-bar__item p { font-size: 14px; color: var(--on-surface-variant); margin: 0; }
.partner-bar__divider { width: 1px; align-self: stretch; min-height: 48px; background: rgba(196, 198, 209, 0.7); }
@media (max-width: 767px) { .partner-bar__divider { display: none; } }
.cbs-wordmark {
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--primary);
}
.cbs-wordmark span { color: var(--industrial-orange); }

/* --- OEM logo strip ------------------------------------------------------- */
.oem-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 5vw, 56px);
}
.oem-strip img { height: 48px; width: auto; object-fit: contain; opacity: 0.75; filter: grayscale(1); transition: var(--transition); }
.oem-strip img:hover { opacity: 1; filter: grayscale(0); }
.oem-strip span {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--outline);
  transition: color var(--transition);
}
.oem-strip span:hover { color: var(--deep-navy); }

/* --- Stats band ----------------------------------------------------------- */
.stats {
  display: grid;
  gap: 1px;
  background: rgba(174, 198, 255, 0.2);
  border: 1px solid rgba(174, 198, 255, 0.2);
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.stats > div { background: var(--primary); padding: 32px 24px; text-align: center; }
.stats strong {
  display: block;
  font-family: var(--font-head);
  font-size: 40px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin-bottom: 8px;
}
.stats span {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--inverse-primary);
}

/* --- Process steps -------------------------------------------------------- */
.steps { list-style: none; display: grid; gap: var(--gutter); counter-reset: step; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); } }
.steps li {
  counter-increment: step;
  background: var(--surface-white);
  border: 1px solid rgba(196, 198, 209, 0.5);
  border-top: 3px solid var(--industrial-orange);
  padding: 28px 24px;
}
.steps li::before {
  content: "0" counter(step);
  display: block;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--industrial-orange);
  margin-bottom: 12px;
}
.steps h3 { font-size: 18px; margin-bottom: 8px; }
.steps p { color: var(--on-surface-variant); font-size: 15px; margin: 0; }

/* --- Product cards -------------------------------------------------------- */
.product-grid {
  display: grid;
  gap: var(--gutter);
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
}
.product-card {
  background: var(--surface-white);
  border: 1px solid rgba(196, 198, 209, 0.55);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition), border-color var(--transition),
    transform var(--transition);
}
.product-card:hover {
  border-color: var(--industrial-orange);
  box-shadow: var(--shadow-lift);
  transform: translateY(-2px);
}
.product-card__media {
  background: #f6f7fb;
  border-bottom: 1px solid rgba(196, 198, 209, 0.5);
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  padding: 18px;
}
.product-card__media img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.product-card__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.product-card__body h3 { font-size: 19px; margin-bottom: 10px; }
.product-card__body p { color: var(--on-surface-variant); font-size: 15px; flex-grow: 1; }
.product-card__brands {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 16px 0 0;
  padding-top: 16px;
  border-top: 1px solid rgba(196, 198, 209, 0.5);
}
.product-card__brands li {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blueprint-blue);
  background: var(--surface-container);
  border-radius: var(--radius-sm);
  padding: 4px 9px;
}

/* --- Figure band (schematic under a photo section) ------------------------ */
.figure-band {
  background: var(--surface-white);
  border: 1px solid rgba(196, 198, 209, 0.6);
  border-radius: var(--radius);
  overflow: hidden;
}
.figure-band img { width: 100%; height: auto; display: block; }
.figure-band figcaption {
  padding: 14px 20px;
  border-top: 1px solid rgba(196, 198, 209, 0.6);
  font-size: 13px;
  color: var(--on-surface-variant);
  background: var(--surface-ice);
}

/* Wide photographic band */
.photo-band {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(196, 198, 209, 0.5);
}
.photo-band img {
  width: 100%;
  height: clamp(160px, 22vw, 260px);
  object-fit: cover;
  display: block;
}

/* --- Narrative / story blocks --------------------------------------------- */
.chapter-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--industrial-orange);
  margin-bottom: 20px;
}
.chapter-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: currentColor;
  opacity: 0.35;
}
.section--navy .chapter-label { color: var(--industrial-orange); }

.story { max-width: 780px; }
.story p {
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.65;
  color: var(--on-surface-variant);
  margin-bottom: 20px;
}
.story p.story__lead {
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.45;
  color: var(--primary);
  font-family: var(--font-head);
  font-weight: 600;
}
.section--navy .story p { color: rgba(255, 255, 255, 0.82); }
.section--navy .story p.story__lead { color: #fff; }

.pullquote {
  border-left: 4px solid var(--industrial-orange);
  padding: 8px 0 8px 28px;
  margin: 0;
}
.pullquote p {
  font-family: var(--font-head);
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 600;
  line-height: 1.4;
  color: var(--primary);
  margin: 0;
}
.pullquote cite {
  display: block;
  margin-top: 16px;
  font-family: var(--font-body);
  font-size: 13px;
  font-style: normal;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-surface-variant);
}
.section--navy .pullquote p { color: #fff; }
.section--navy .pullquote cite { color: var(--inverse-primary); }

/* Icon + text rows (values, commitments) */
.value-list { list-style: none; display: grid; gap: 28px; }
.value-list > li { display: flex; gap: 20px; align-items: flex-start; }
.value-list__icon {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
}
.value-list__icon svg { width: 26px; height: 26px; }
.value-list h3 { font-size: 19px; margin-bottom: 6px; color: var(--blueprint-blue); }
.value-list p { color: var(--on-surface-variant); margin: 0; }
.section--navy .value-list__icon { background: #fff; color: var(--primary); }
.section--navy .value-list h3 { color: #fff; }
.section--navy .value-list p { color: rgba(255, 255, 255, 0.78); }
@media (min-width: 900px) {
  .value-list--2col { grid-template-columns: 1fr 1fr; gap: 32px 48px; }
}

/* Timeline */
.timeline { list-style: none; display: grid; gap: 0; position: relative; }
.timeline > li {
  position: relative;
  padding: 0 0 36px 40px;
  border-left: 2px solid var(--outline-variant);
}
.timeline > li:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline > li::before {
  content: "";
  position: absolute;
  left: -9px;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--industrial-orange);
  border: 3px solid var(--surface-ice);
}
.timeline h3 { font-size: 20px; margin-bottom: 6px; }
.timeline .timeline__when {
  display: block;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--industrial-orange);
  margin-bottom: 8px;
}
.timeline p { color: var(--on-surface-variant); margin: 0; }

/* Offering chips */
.chips { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; }
.chips li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--surface-white);
  border: 1px solid rgba(196, 198, 209, 0.7);
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
}
.chips svg { width: 16px; height: 16px; color: var(--industrial-orange); flex: none; }

/* --- CTA band ------------------------------------------------------------- */
.cta-band {
  background: var(--deep-navy);
  color: #fff;
  padding-block: clamp(40px, 6vw, 64px);
  position: relative;
  overflow: hidden;
}
.cta-band::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(115deg, transparent 45%, rgba(230, 63, 18, 0.18) 100%);
}
.cta-band__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: var(--gutter);
  align-items: center;
  justify-content: space-between;
}
.cta-band h2 { color: #fff; font-size: clamp(24px, 3vw, 32px); margin-bottom: 8px; }
.cta-band p { color: rgba(255, 255, 255, 0.75); margin: 0; max-width: 52ch; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 16px; }

/* --- Forms ---------------------------------------------------------------- */
.form-card {
  background: var(--surface-white);
  border: 1px solid rgba(196, 198, 209, 0.6);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 40px);
}
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--primary);
  margin-bottom: 6px;
}
.field .req { color: var(--industrial-orange); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--surface-white);
  border: 1px solid var(--outline);
  border-radius: var(--radius-sm);
  font-size: 16px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--deep-navy);
  box-shadow: 0 0 0 3px rgba(11, 48, 105, 0.12);
  outline: none;
}
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"], .field select[aria-invalid="true"] {
  border-color: var(--error);
}
.field .error {
  display: none;
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--error);
}
.field .error.is-visible { display: block; }
.field-row { display: grid; gap: 20px; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }

.form-status {
  display: none;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border-left: 3px solid;
  font-size: 15px;
  margin-bottom: 20px;
}
.form-status.is-visible { display: block; }
.form-status--ok { background: #e8f5ec; border-color: var(--success); color: #14522b; }
.form-status--err { background: #ffdad6; border-color: var(--error); color: #93000a; }
.form-status--busy { background: var(--surface-container); border-color: var(--deep-navy); color: var(--primary); }

.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* --- Contact details ------------------------------------------------------ */
.contact-list { list-style: none; display: grid; gap: 24px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-list svg { width: 22px; height: 22px; color: var(--industrial-orange); flex: none; margin-top: 3px; }
.contact-list strong {
  display: block;
  font-family: var(--font-head);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-surface-variant);
  margin-bottom: 4px;
}
.contact-list a { color: var(--primary); font-weight: 600; }
.contact-list a:hover { color: var(--industrial-orange); }

/* --- Accordion (FAQ) ------------------------------------------------------ */
.accordion { border: 1px solid rgba(196, 198, 209, 0.6); background: var(--surface-white); border-radius: var(--radius); }
.accordion details { border-bottom: 1px solid rgba(196, 198, 209, 0.6); }
.accordion details:last-child { border-bottom: 0; }
.accordion summary {
  cursor: pointer;
  padding: 20px 24px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 17px;
  color: var(--primary);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: "+";
  font-size: 24px;
  color: var(--industrial-orange);
  line-height: 1;
  flex: none;
}
.accordion details[open] summary::after { content: "\2212"; }
.accordion details p { padding: 0 24px 20px; color: var(--on-surface-variant); margin: 0; }

/* --- Footer --------------------------------------------------------------- */
.site-footer {
  background: var(--primary);
  color: rgba(255, 255, 255, 0.75);
  padding-block: clamp(40px, 6vw, 64px) 24px;
  margin-top: auto;
  border-top: 3px solid var(--industrial-orange);
}
.site-footer__grid { display: grid; gap: var(--gutter); }
@media (min-width: 700px) { .site-footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.site-footer h2 { color: #fff; font-size: 22px; margin-bottom: 12px; }
/* The logo is dark navy/brown artwork; invert it to read on the navy footer. */
.footer-brand { margin-bottom: 16px; }
.footer-brand img {
  height: 48px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
}
.site-footer h3 {
  color: #fff;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.site-footer p { font-size: 15px; color: rgba(255, 255, 255, 0.7); }
.site-footer ul { list-style: none; display: grid; gap: 10px; }
.site-footer a { color: rgba(255, 255, 255, 0.78); font-size: 15px; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer a[aria-current="page"] { color: var(--industrial-orange); }
.footer-contact { display: grid; gap: 10px; font-size: 15px; }
.footer-social { display: flex; gap: 12px; margin-top: 20px; }
.footer-social a {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-sm);
  color: #fff;
}
.footer-social a:hover { background: var(--industrial-orange); border-color: var(--industrial-orange); }
.footer-social svg { width: 18px; height: 18px; }
.site-footer__bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}
.site-footer__bottom a { font-size: 13px; }

/* --- Reveal on scroll -----------------------------------------------------
   Content is visible by default and only hidden once JS "arms" it, so a
   missing/blocked/never-firing script can never leave the page blank.      */
.reveal { transition: opacity 500ms ease, transform 500ms ease; }
.reveal.is-armed { opacity: 0; transform: translateY(16px); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal.is-armed { opacity: 1; transform: none; }
}

/* --- Back to top ---------------------------------------------------------- */
.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  background: var(--deep-navy);
  color: #fff;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition), background var(--transition);
}
.to-top.is-visible { opacity: 1; visibility: visible; }
.to-top:hover { background: var(--industrial-orange); }
.to-top svg { width: 22px; height: 22px; }

/* --- Utilities ------------------------------------------------------------ */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.prose p { color: var(--on-surface-variant); max-width: 68ch; }
.prose h3 { margin-top: 32px; }

/* --- Dealer-badge clearance ------------------------------------------------
   Declared last so it wins over the padding-block shorthand each of these
   bands sets on itself, keeping the first heading clear of the badge.      */
/* Clears the top-right dealer badge (the approval stamp now sits on the
   separator image, not in the page corner). */
.hero,
.page-head,
.hero-navy { padding-top: clamp(96px, 9vw, 124px); }

/* --- Print ---------------------------------------------------------------- */
@media print {
  .site-header, .site-footer, .to-top, .cta-band, .nav-toggle { display: none !important; }
  body { background: #fff; }
  .hero, .hero-navy, .page-head { background: #fff !important; color: #000; }
  .hero-navy h1, .page-head h1 { color: #000; }
}
