/* =========================================================
   LEMEZI GLOBAL — Design System
   Palette: Deepwell Navy / Steel / Signal Red / Rust / Bone
   ========================================================= */

:root {
  --navy: #141C26;
  --navy-2: #1E2A38;
  --steel: #3D4A5C;
  --steel-light: #6B7D93;
  --bone: #F2EFE9;
  --bone-dim: #E4DFD5;
  --amber: #C23333;
  --amber-dim: #A02828;
  --rust: #A23B2E;
  --line: rgba(242,239,233,0.14);
  --line-dark: rgba(20,28,38,0.12);

  --display: "Archivo Expanded", "Arial Narrow", sans-serif;
  --body: "Inter", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", "SFMono-Regular", Menlo, monospace;

  --maxw: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  background: var(--bone);
  color: var(--navy);
  line-height: 1.6;
  font-size: 16px;
}

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

a { color: inherit; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--amber);
  color: var(--navy);
  padding: 10px 18px;
  font-weight: 700;
  z-index: 1000;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
}

/* ---------- Top bar ---------- */
.topbar {
  background: var(--navy);
  color: var(--bone-dim);
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
  flex-wrap: wrap;
  gap: 6px;
}
.topbar a { text-decoration: none; color: var(--bone-dim); }
.topbar a:hover { color: var(--amber); }
.topbar .ts-loc { color: var(--steel-light); }

/* ---------- Header / Nav ---------- */
header.site-header {
  background: var(--navy);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--bone);
}
.brand-mark {
  width: 52px;
  height: 52px;
  border: 2px solid var(--amber);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  background: #fff;
  padding: 2px;
}
.brand-mark::after {
  display: none;
}
.brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand-text strong {
  font-family: var(--display);
  font-size: 17px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.brand-text span {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--steel-light);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

nav.main-nav {
  display: flex;
  gap: 4px;
  align-items: center;
  flex-wrap: wrap;
}
nav.main-nav a {
  color: var(--bone-dim);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 2px;
  transition: color .15s ease, background .15s ease;
  position: relative;
}
nav.main-nav a:hover,
nav.main-nav a:focus-visible {
  color: var(--amber);
  background: rgba(194,51,51,0.08);
  outline: none;
}
nav.main-nav a.active {
  color: var(--amber);
}
nav.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  background: var(--amber);
}
.nav-cta {
  background: var(--amber) !important;
  color: var(--navy) !important;
  font-weight: 800 !important;
}
.nav-cta:hover { background: var(--amber-dim) !important; color: var(--bone) !important; }

/* ---------- Pipeline divider (signature element) ---------- */
.pipeline {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 0 0 8px 0;
}
.pipeline .seg {
  height: 1px;
  background: var(--line-dark);
  flex: 1;
}
.pipeline .node {
  width: 9px;
  height: 9px;
  border: 2px solid var(--amber);
  border-radius: 50%;
  background: var(--bone);
  flex-shrink: 0;
  margin: 0 6px;
}
.pipeline.on-dark .seg { background: var(--line); }
.pipeline.on-dark .node { background: var(--navy); }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 10px 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 2px;
  background: var(--amber);
  flex-shrink: 0;
  margin-top: 7px;
}

/* ---------- Hero ---------- */
.hero {
  background: var(--navy);
  color: var(--bone);
  position: relative;
  overflow: hidden;
  padding: 88px 0 96px;
}
/* ---------- Hero Slider ---------- */
.hero-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-slider .slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: heroSliderFade 48s infinite;
  will-change: opacity;
}
.hero-slider .slide:nth-child(1) { animation-delay: 0s; }
.hero-slider .slide:nth-child(2) { animation-delay: 8s; }
.hero-slider .slide:nth-child(3) { animation-delay: 16s; }
.hero-slider .slide:nth-child(4) { animation-delay: 24s; }
.hero-slider .slide:nth-child(5) { animation-delay: 32s; }
.hero-slider .slide:nth-child(6) { animation-delay: 40s; }
.hero-slider::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(11,18,32,0.92) 0%, rgba(11,18,32,0.78) 45%, rgba(11,18,32,0.55) 100%),
    linear-gradient(180deg, rgba(11,18,32,0.45) 0%, rgba(11,18,32,0.75) 100%);
}
@keyframes heroSliderFade {
  0%   { opacity: 0; }
  3%   { opacity: 1; }
  16%  { opacity: 1; }
  20%  { opacity: 0; }
  100% { opacity: 0; }
}
@media (max-width: 768px) {
  .hero-slider::after {
    background:
      linear-gradient(180deg, rgba(11,18,32,0.7) 0%, rgba(11,18,32,0.9) 100%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slider .slide { animation: none; }
  .hero-slider .slide:nth-child(1) { opacity: 1; }
}
.hero::before {
  /* schematic grid texture */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, rgba(242,239,233,0.035) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(90deg, rgba(242,239,233,0.035) 0 1px, transparent 1px 64px);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 420px;
  height: 420px;
  border: 2px solid rgba(194,51,51,0.18);
  border-radius: 50%;
}
.hero .container { position: relative; }
.hero > .container { z-index: 2; }
.hero h1 {
  font-family: var(--display);
  font-size: clamp(2.4rem, 5.2vw, 4.2rem);
  line-height: 1.04;
  margin: 10px 0 22px;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  max-width: 14ch;
}
.hero h1 em {
  font-style: normal;
  color: var(--amber);
}
.hero p.lead {
  max-width: 56ch;
  font-size: 1.15rem;
  color: var(--bone-dim);
  margin-bottom: 34px;
}
.hero-stats {
  display: flex;
  gap: 0;
  margin-top: 48px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.hero-stats .stat {
  flex: 1;
  min-width: 140px;
  padding: 20px 24px 0 0;
  border-right: 1px solid var(--line);
}
.hero-stats .stat:last-child { border-right: none; }
.hero-stats .stat .num {
  font-family: var(--display);
  font-size: 2rem;
  color: var(--amber);
  display: block;
}
.hero-stats .stat .lbl {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel-light);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  border: 1px solid transparent;
  transition: all .15s ease;
  cursor: pointer;
  font-family: var(--body);
}
.btn-primary {
  background: var(--amber);
  color: var(--navy);
}
.btn-primary:hover { background: var(--amber-dim); }
.btn-outline {
  border-color: var(--bone-dim);
  color: var(--bone);
  background: transparent;
}
.btn-outline:hover { border-color: var(--amber); color: var(--amber); }
.btn-outline-dark {
  border-color: var(--steel);
  color: var(--navy);
  background: transparent;
}
.btn-outline-dark:hover { border-color: var(--rust); color: var(--rust); }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Sections ---------- */
section { padding: 84px 0; }
.section-tight { padding: 56px 0; }
.section-alt { background: var(--bone-dim); }
.section-dark { background: var(--navy); color: var(--bone); }
.section-dark .eyebrow { color: var(--amber); }

h2.h-title {
  font-family: var(--display);
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  text-transform: uppercase;
  margin: 0 0 18px;
  letter-spacing: 0.01em;
}
.section-intro {
  max-width: 70ch;
  color: var(--steel);
  font-size: 1.05rem;
  margin-bottom: 40px;
}
.section-dark .section-intro { color: var(--bone-dim); }

/* ---------- Spec-plate cards ---------- */
.grid {
  display: grid;
  gap: 24px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.plate {
  background: var(--bone);
  border: 1px solid var(--line-dark);
  border-radius: 2px;
  padding: 28px;
  position: relative;
  transition: transform .15s ease, border-color .15s ease;
  text-decoration: none;
  color: inherit;
  display: block;
}
.plate:hover {
  border-color: var(--amber);
  transform: translateY(-3px);
}
.plate .tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--amber-dim);
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}
.plate h3 {
  font-family: var(--display);
  font-size: 1.2rem;
  text-transform: uppercase;
  margin: 0 0 10px;
  letter-spacing: 0.01em;
}
.plate p {
  margin: 0;
  color: var(--steel);
  font-size: 0.95rem;
}
.plate .more {
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--amber-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.section-dark .plate {
  background: var(--navy-2);
  border-color: var(--line);
  color: var(--bone);
}
.section-dark .plate p { color: var(--bone-dim); }

/* ---------- Sector tiles ---------- */
.sector-tile {
  border: 1px solid var(--line-dark);
  padding: 22px 20px;
  background: var(--bone);
  position: relative;
}
.sector-tile .num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--amber-dim);
  display: block;
  margin-bottom: 10px;
}
.sector-tile h3 {
  font-family: var(--display);
  font-size: 1rem;
  text-transform: uppercase;
  margin: 0;
  letter-spacing: 0.02em;
}

/* ---------- OEM partner strip ---------- */
.oem-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
}
.oem-cell {
  background: var(--bone);
  padding: 28px 18px;
  text-align: center;
  text-decoration: none;
  color: var(--navy);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background .15s ease, color .15s ease;
  min-height: 110px;
}
.oem-cell:hover { background: var(--navy); color: var(--bone); }
.oem-cell .oem-name {
  font-family: var(--display);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.oem-cell .oem-cat {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel-light);
}
.oem-cell .oem-logo-img {
  max-width: 110px;
  max-height: 52px;
  object-fit: contain;
  display: block;
  filter: none;
  transition: filter .15s ease;
}
.oem-cell:hover .oem-logo-img {
  filter: brightness(0) invert(1);
}

/* ---------- Two-column with image block ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split.reverse .visual { order: 2; }
.visual {
  aspect-ratio: 4/3;
  background: var(--navy);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}
.visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, rgba(242,239,233,0.06) 0 1px, transparent 1px 36px),
    repeating-linear-gradient(90deg, rgba(242,239,233,0.06) 0 1px, transparent 1px 36px);
}
.visual::after {
  content: attr(data-label);
  position: absolute;
  bottom: 24px;
  left: 24px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
  border: 1px solid var(--amber);
  padding: 8px 14px;
}
.visual.amber-glow {
  background: linear-gradient(135deg, var(--navy) 0%, var(--rust) 140%);
}

/* ---------- Lists ---------- */
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li {
  padding: 10px 0 10px 28px;
  position: relative;
  border-bottom: 1px solid var(--line-dark);
  font-size: 0.97rem;
}
.check-list li:last-child { border-bottom: none; }
.check-list li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--amber);
  font-weight: 700;
}
.section-dark .check-list li { border-color: var(--line); }

/* ---------- Breadcrumb ---------- */
.crumb {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel-light);
  padding: 18px 0 0;
}
.crumb a { color: var(--steel-light); text-decoration: none; }
.crumb a:hover { color: var(--amber-dim); }
.crumb .sep { margin: 0 8px; }
.crumb .current { color: var(--amber-dim); }

/* ---------- Page hero (sub-pages) ---------- */
.page-hero {
  background: var(--navy);
  color: var(--bone);
  padding: 40px 0 56px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, rgba(242,239,233,0.035) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(90deg, rgba(242,239,233,0.035) 0 1px, transparent 1px 64px);
}
.page-hero .container { position: relative; }
.page-hero h1 {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3rem);
  text-transform: uppercase;
  margin: 14px 0 14px;
}
.page-hero p {
  max-width: 60ch;
  color: var(--bone-dim);
  font-size: 1.05rem;
  margin: 0;
}

/* ---------- Spec table ---------- */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.spec-table th, .spec-table td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line-dark);
}
.spec-table th {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel-light);
  background: var(--navy);
  color: var(--bone);
}

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--navy);
  color: var(--bone-dim);
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}
.footer-grid h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 18px;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: var(--bone-dim); text-decoration: none; font-size: 0.92rem; }
.footer-grid a:hover { color: var(--amber); }
.footer-grid p { font-size: 0.92rem; color: var(--bone-dim); margin: 0 0 14px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.05em;
  color: var(--steel-light);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom a { color: var(--steel-light); text-decoration: none; }
.footer-bottom a:hover { color: var(--amber); }

/* ---------- Forms ---------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-grid .full { grid-column: 1 / -1; }
label {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel-light);
  margin-bottom: 8px;
}
input, textarea, select {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--steel);
  background: var(--navy-2);
  color: var(--bone);
  font-family: var(--body);
  font-size: 0.95rem;
  border-radius: 2px;
}
input:focus, textarea:focus, select:focus {
  outline: 2px solid var(--amber);
  outline-offset: 1px;
  border-color: var(--amber);
}
textarea { resize: vertical; min-height: 120px; }

/* ---------- Misc ---------- */
.kicker-bar {
  background: var(--rust);
  color: var(--bone);
  padding: 18px 0;
  text-align: center;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.kicker-bar a { color: var(--bone); text-decoration: underline; }

.cta-banner {
  background: var(--amber);
  color: var(--navy);
  padding: 56px 0;
  text-align: center;
}
.cta-banner h2 {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  text-transform: uppercase;
  margin: 0 0 10px;
}
.cta-banner p { margin: 0 0 28px; font-size: 1.05rem; }
.cta-banner .btn-primary {
  background: var(--navy);
  color: var(--bone);
}
.cta-banner .btn-primary:hover { background: var(--navy-2); }

/* ---------- Visually hidden ---------- */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .oem-strip { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split.reverse .visual { order: 0; }
  nav.main-nav { display: none; }
}

@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .oem-strip { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .hero-stats .stat { border-right: none; border-bottom: 1px solid var(--line); padding-bottom: 16px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  section { padding: 56px 0; }
}

/* ---------- Mobile nav toggle (simple) ---------- */
.nav-toggle { display: none; }
@media (max-width: 980px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px; height: 42px;
    background: transparent;
    border: 1px solid var(--line);
    color: var(--bone);
    font-size: 20px;
    cursor: pointer;
    border-radius: 2px;
  }
  nav.main-nav.open {
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: stretch;
    background: var(--navy-2);
    border-top: 1px solid var(--line);
    padding: 8px 0;
  }
  nav.main-nav.open a { padding: 14px 16px; }
  .nav-row { flex-wrap: wrap; }
}

/* ---------- Image-backed cards & sector tiles ---------- */
.plate-img {
  position: relative;
  overflow: hidden;
  min-height: 200px;
}
.plate-img .plate-img-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.18;
  transition: opacity .2s ease;
}
.plate-img:hover .plate-img-bg { opacity: 0.28; }

.sector-tile-img {
  position: relative;
  overflow: hidden;
  min-height: 180px;
}
.sector-tile-img .sector-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.15;
  transition: opacity .2s ease;
}
.sector-tile-img:hover .sector-bg { opacity: 0.26; }
.sector-tile-img .sector-content {
  position: relative;
  z-index: 1;
}

/* Service header image strip */
.service-img-strip {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  border-radius: 2px;
  margin-bottom: 32px;
}
@media (max-width: 640px) {
  .service-img-strip { height: 160px; }
}
