:root {
  --navy: #1A3C6A;
  --navy-dark: #122a4a;
  --gold: #F39C12;
  --gold-dark: #d68910;
  --bg: #FFFFFF;
  --ink: #333333;
  --muted: #5c6570;
  --line: #dbe3ee;
  --soft: #f4f7fb;
  --radius: 8px;
  --fs-body: 15px;
  --fs-small: 13px;
  --fs-h1: 30px;
  --fs-h2: 22px;
  --fs-h3: 16px;
  --space: 64px;
}
* { box-sizing: border-box; }
html { font-size: 16px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Open Sans", "Segoe UI", sans-serif;
  font-size: var(--fs-body);
  line-height: 1.6;
}
h1, h2, h3, h4, .navbar-brand, .hero-title, .stat-card strong, .client-card h3 {
  font-family: Poppins, "Segoe UI", sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--navy);
  line-height: 1.25;
}
h1 { font-size: var(--fs-h1); margin: 0 0 12px; }
h2 { font-size: var(--fs-h2); margin: 0 0 12px; }
h3 { font-size: var(--fs-h3); margin: 0; }
p { margin: 0 0 12px; }
a { color: var(--navy); }
.container { max-width: 1120px; }

.site-top {
  background: var(--navy-dark);
  color: #c5d0de;
  font-size: var(--fs-small);
}
.site-top a { color: #fff; text-decoration: none; }
.site-top .container {
  min-height: 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.site-nav {
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.site-nav .container { min-height: 76px; }
.brand-lockup {
  display: flex !important;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  white-space: nowrap;
}
.brand-mark { height: 36px; width: 36px; flex: 0 0 36px; }
.brand-name {
  font-family: Poppins, "Segoe UI", sans-serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.04em;
  line-height: 1;
  white-space: nowrap;
}
.brand-orient { color: var(--navy); }
.brand-engineers { color: var(--gold); }
.brand-lockup-light .brand-orient { color: #fff; }
.brand-lockup-light { margin-bottom: 14px; display: inline-flex !important; }
.navbar-nav .nav-link {
  color: var(--navy);
  font-weight: 600;
  font-size: 14px;
  padding: 8px 12px !important;
}
.navbar-nav .nav-link.active,
.navbar-nav .nav-link:hover { color: var(--gold-dark); }
.navbar .btn { height: 38px; display: inline-flex; align-items: center; }

.btn-navy, .btn-gold, .btn-outline-navy, .btn-outline-light {
  border-radius: 4px;
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  padding: 11px 18px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.btn-sm { min-height: 38px; padding: 9px 14px; font-size: 13px; }
.btn-navy { background: var(--navy); color: #fff; border: 0; }
.btn-navy:hover { background: var(--navy-dark); color: #fff; }
.btn-gold { background: var(--gold); color: #1a1a1a; border: 0; }
.btn-gold:hover { background: var(--gold-dark); color: #1a1a1a; }
.btn-outline-navy { background: transparent; color: var(--navy); border: 1px solid var(--navy); }
.btn-outline-navy:hover { background: var(--navy); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

.eyebrow {
  letter-spacing: .16em;
  text-transform: uppercase;
  font-size: 11px;
  color: var(--gold-dark);
  font-weight: 700;
  margin: 0 0 8px;
}
.eyebrow.gold { color: var(--gold); }
.lede { font-size: 16px; color: var(--muted); max-width: 38rem; line-height: 1.55; }
.section { padding: var(--space) 0; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  min-height: 32px;
}
.section-head h2 { margin: 0; }
.section-head a {
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.bg-soft { background: var(--soft); }

.page-head {
  background: var(--navy);
  color: #fff;
  padding: 40px 0;
}
.page-head h1 { color: #fff; margin: 0; }
.page-head .lede { color: #d5deea; margin: 10px 0 0; max-width: 40rem; }
.page-head a { color: var(--gold); }
.page-head .eyebrow { color: var(--gold); }

.filter-bar {
  display: grid;
  grid-template-columns: 1fr 240px 110px;
  gap: 10px;
  margin-top: 22px;
}
.filter-bar .form-control,
.filter-bar .form-select {
  max-width: none;
  height: 42px;
  font-size: 14px;
}

.hero-slider {
  position: relative;
  width: 100%;
  height: 260px;
  background: #0c1c30;
  overflow: hidden;
  color: #fff;
}
.hero-track { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0;
  display: block; color: #fff; text-decoration: none;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .8s ease;
}
.hero-slide.is-on { opacity: 1; visibility: visible; z-index: 1; pointer-events: auto; }
.hero-photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center right;
  display: block;
  transform: none !important;
  animation: none !important;
}
.hero-shade {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(12,28,48,.92) 0%, rgba(12,28,48,.72) 42%, rgba(12,28,48,.28) 100%);
}
.hero-badge {
  position: absolute; z-index: 2; top: 16px; left: 32px;
  background: var(--gold); color: #1a1a1a;
  padding: 4px 10px; font-size: 10px; letter-spacing: .14em;
  text-transform: uppercase; font-weight: 700;
}
.hero-copy {
  position: absolute; z-index: 2; left: 32px; right: 32px; bottom: 48px;
  max-width: 520px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
}
.hero-kicker { letter-spacing: .14em; text-transform: uppercase; font-size: 10px; color: var(--gold); font-weight: 700; }
.hero-title { font-size: 24px; line-height: 1.2; color: #fff; }
.hero-sub { font-size: 14px; color: #e4ebf4; line-height: 1.4; max-width: 28rem; }
.hero-cta {
  margin-top: 4px; background: #fff; color: var(--navy);
  padding: 8px 14px; font-size: 11px; letter-spacing: .08em;
  text-transform: uppercase; font-weight: 700;
}
.hero-bar {
  position: absolute; z-index: 3; left: 0; right: 0; bottom: 18px;
  display: flex; align-items: center; justify-content: center; gap: 12px;
}
.hero-nav {
  width: 36px; height: 36px; border: 1px solid rgba(255,255,255,.4);
  background: rgba(0,0,0,.3); color: #fff; font-size: 22px; cursor: pointer;
  display: grid; place-items: center; line-height: 1;
}
.hero-dots { display: flex; gap: 6px; align-items: center; }
.hero-dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.4); cursor: pointer; }
.hero-dot.is-on { background: var(--gold); width: 20px; border-radius: 8px; }
.hero-progress { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; z-index: 4; background: var(--gold); }
.hero-progress.is-run { width: 100%; transition-property: width; transition-timing-function: linear; }

.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stat-card {
  background: var(--soft);
  border: 1px solid var(--line);
  padding: 18px 16px;
  border-radius: var(--radius);
  min-height: 108px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.stat-card strong { display: flex; align-items: baseline; gap: 8px; font-size: 26px; color: var(--navy); line-height: 1.1; margin-bottom: 6px; }
.stat-card strong em { font-style: normal; font-size: 14px; font-weight: 600; letter-spacing: 0; }
.stat-card span { font-size: 13px; color: var(--muted); line-height: 1.35; }

.cat-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  padding: 22px 20px;
  text-decoration: none;
  color: inherit;
  height: 100%;
  min-height: 168px;
  border-radius: var(--radius);
}
.cat-card:hover { border-color: var(--gold); color: inherit; }
.cat-card h3 {
  font-size: 16px;
  margin: 6px 0 8px;
  min-height: 2.5em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cat-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cat-count { font-size: 11px; color: var(--gold-dark); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

.product-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  height: 100%;
}
.product-card:hover { border-color: var(--navy); color: inherit; }
.product-photo {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  background: #fafbfc;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}
.product-photo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.product-cat {
  display: block;
  padding: 12px 14px 0;
  font-size: 11px;
  color: var(--gold-dark);
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  min-height: 28px;
}
.product-card h3 {
  font-size: 15px;
  line-height: 1.35;
  margin: 4px 14px 16px;
  min-height: 2.7em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cds-band { background: var(--navy); color: #fff; }
.cds-band h2 { color: #fff; }
.cds-band p { color: #d7e0ec; }
.cds-band .stat-card {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.16);
}
.cds-band .stat-card strong { color: var(--gold); }
.cds-band .stat-card strong em { color: var(--gold); }
.cds-band .stat-card span { color: #d7e0ec; }

.client-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.client-chip, .used-by-list .client-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 10px 12px;
  border-radius: 6px;
  min-height: 56px;
}
.client-chip span, .client-mark span {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--navy); color: #fff; display: grid; place-items: center;
  font-size: 12px; font-weight: 700; flex: 0 0 32px;
}
.client-chip img { width: 32px; height: 32px; object-fit: contain; }
.client-chip strong {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.client-card {
  border: 1px solid var(--line);
  padding: 18px 16px;
  border-radius: var(--radius);
  height: 100%;
  min-height: 150px;
  background: #fff;
  display: flex;
  flex-direction: column;
}
.client-mark { height: 40px; display: flex; align-items: center; margin-bottom: 10px; }
.client-mark img { max-height: 40px; max-width: 110px; object-fit: contain; }
.client-card h3 {
  font-size: 14px;
  line-height: 1.35;
  min-height: 2.7em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 6px;
}
.client-card .city { min-height: 18px; font-size: 13px; color: var(--muted); margin: 0; }

.gallery { position: sticky; top: 88px; }
.gallery img#mainPhoto, .gallery > img {
  width: 100%;
  height: 420px;
  object-fit: contain;
  background: #fafbfc;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.thumbs button { border: 1px solid var(--line); padding: 0; background: #fff; cursor: pointer; width: 64px; height: 64px; }
.thumbs img { width: 64px; height: 64px; object-fit: contain; display: block; padding: 4px; }
.spec-table { font-size: 14px; }
.spec-table th { width: 38%; color: var(--muted); font-weight: 600; }
.spec-table td, .spec-table th { padding: 8px 0; vertical-align: top; }
.used-by { margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--line); }
.used-by h2 { font-size: 16px; margin-bottom: 10px; }
.used-by-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.side-cats a {
  display: block; padding: 10px 12px; border: 1px solid var(--line); margin-bottom: 8px;
  text-decoration: none; color: var(--navy); border-radius: 4px; font-size: 13px; font-weight: 600;
}
.side-cats a.is-on, .side-cats a:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.about-body { color: var(--ink); font-size: 15px; line-height: 1.7; }
.form-label { font-size: 13px; font-weight: 600; color: var(--navy); }
.form-control, .form-select { font-size: 14px; }

.site-foot { background: var(--navy-dark); color: #c5d0de; margin-top: 0; }
.site-foot .container { padding-top: 48px; padding-bottom: 40px; }
.site-foot h6 {
  color: #fff;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-size: 12px;
  margin: 0 0 14px;
  font-family: Poppins, sans-serif;
}
.site-foot p, .footer-links a { font-size: 13px; line-height: 1.6; }
.footer-links { margin: 0; }
.footer-links li + li { margin-top: 6px; }
.footer-links a { color: #c5d0de; text-decoration: none; }
.footer-links a:hover { color: var(--gold); }
.foot-logo { height: 36px; display: block; margin-bottom: 14px; }
.foot-bar { background: #0c1c30; color: #8b98ab; font-size: 12px; }
.foot-bar .container { min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.foot-bar a { color: #8b98ab; }

.admin-body { background: var(--soft); }
.admin-shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.admin-side { background: var(--navy-dark); color: #fff; padding: 20px 12px; }
.admin-brand img { height: 36px; margin-bottom: 20px; }
.admin-side .nav-link { color: #cdd8e8; display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 4px; }
.admin-side .nav-link.active, .admin-side .nav-link:hover { background: var(--navy); color: #fff; }
.admin-main { padding: 28px; }
.form-check { font-size: 14px; }
.auth-box { max-width: 400px; margin: 64px auto; }

@media (max-width: 991px) {
  :root { --fs-h1: 26px; --fs-h2: 20px; --space: 48px; }
  .client-strip { grid-template-columns: repeat(2, 1fr); }
  .hero-slider { height: 210px; }
  .hero-title { font-size: 20px; }
  .hero-copy, .hero-badge { left: 16px; }
  .hero-copy { bottom: 42px; right: 16px; }
  .gallery { position: static; }
  .gallery img#mainPhoto, .gallery > img { height: 280px; }
  .used-by-list { grid-template-columns: 1fr; }
  .filter-bar { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { position: sticky; top: 0; z-index: 20; }
  .admin-side .nav { flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 575px) {
  .client-strip { grid-template-columns: 1fr; }
  .stat-grid { gap: 8px; }
  .stat-card { min-height: 96px; padding: 14px; }
  .brand-name { font-size: 15px; }
  .brand-mark { height: 28px; width: 28px; flex-basis: 28px; }
  .site-top { display: none; }
  .hero-slider { height: 180px; }
  .hero-sub { display: none; }
}
