/* =========================================================================
   Aero Marine & Power — site styles
   Single stylesheet, mobile-first, custom-property themed.
   ========================================================================= */

:root {
  --navy-900: #051937;
  --navy-800: #0B2545;
  --navy-700: #143b6e;
  --navy-100: #d8e2ee;
  --accent:    #E27D24;
  --accent-700:#B85D14;
  --gray-50:  #F8FAFC;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-300: #CBD5E1;
  --gray-500: #64748B;
  --gray-700: #334155;
  --gray-900: #0F172A;
  --white:    #FFFFFF;
  --success:  #16a34a;

  --radius-sm: 4px;
  --radius:    8px;
  --radius-lg: 14px;

  --shadow-sm: 0 1px 2px rgba(11, 37, 69, 0.08);
  --shadow:    0 4px 16px rgba(11, 37, 69, 0.10);
  --shadow-lg: 0 12px 32px rgba(11, 37, 69, 0.18);

  --container-max: 1240px;
  --header-height: 132px;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-900);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; }
a { color: var(--navy-700); text-decoration: none; }
a:hover, a:focus-visible { color: var(--accent-700); text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

h1, h2, h3, h4, h5, h6 { color: var(--navy-900); margin: 0 0 .5em; line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(1.875rem, 1.4rem + 2vw, 3rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem); letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.0625rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--gray-700); font-weight: 600; }
p  { margin: 0 0 1em; }
ul, ol { padding-left: 1.25em; }

/* ---------- Layout primitives ---------- */
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .container { padding: 0 32px; } }

.skip-link {
  position: absolute; top: -40px; left: 8px;
  background: var(--navy-900); color: white; padding: 8px 12px;
  border-radius: var(--radius-sm); z-index: 100;
}
.skip-link:focus { top: 8px; }

.section { padding: 64px 0; }
.section--tight { padding: 40px 0; }
.section--alt { background: var(--gray-50); }
.section--navy { background: var(--navy-900); color: var(--gray-100); }
.section--navy h1, .section--navy h2, .section--navy h3 { color: var(--white); }

.eyebrow {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.lead { font-size: 1.125rem; color: var(--gray-700); max-width: 64ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  font-weight: 600;
  border: 1px solid transparent;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .05s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--accent); color: var(--white); }
.btn--primary:hover, .btn--primary:focus-visible { background: var(--accent-700); color: var(--white); }
.btn--secondary { background: var(--navy-800); color: var(--white); }
.btn--secondary:hover, .btn--secondary:focus-visible { background: var(--navy-900); color: var(--white); }
.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.5); }
.btn--ghost:hover, .btn--ghost:focus-visible { background: rgba(255,255,255,0.1); color: var(--white); border-color: var(--white); }
.btn--outline { background: transparent; color: var(--navy-800); border-color: var(--gray-300); }
.btn--outline:hover, .btn--outline:focus-visible { background: var(--navy-800); color: var(--white); border-color: var(--navy-800); }
.btn--lg { padding: 14px 28px; font-size: 1.0625rem; }

/* ---------- Header / Nav ---------- */
.site-header { background: var(--white); border-bottom: 1px solid var(--gray-200); position: sticky; top: 0; z-index: 50; }
.topbar { background: var(--navy-900); color: var(--gray-100); font-size: .8125rem; }
.topbar__inner {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 20px;
  flex-wrap: wrap;
}
.topbar__item { color: var(--gray-100); }
.topbar__item strong { color: var(--white); }
.topbar__item--cert { color: var(--accent); font-weight: 600; }
.topbar__sep { color: rgba(255,255,255,0.3); }
.topbar__spacer { flex: 1; }
.topbar__phone { color: var(--white); font-weight: 600; }
.topbar__phone:hover { color: var(--accent); text-decoration: none; }

.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand__logo { height: 70px; width: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-weight: 700; color: var(--navy-900); font-size: 1.25rem; letter-spacing: 0.04em; }
.brand__tagline { color: var(--gray-500); font-size: .75rem; }

.nav-toggle {
  display: inline-flex; flex-direction: column; gap: 5px;
  background: transparent; border: none; padding: 8px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--navy-900); transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav { display: none; }
.nav__list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.nav__link {
  display: block; padding: 10px 14px;
  color: var(--gray-700); font-weight: 500;
  border-radius: var(--radius-sm);
}
.nav__link:hover, .nav__link:focus-visible { color: var(--navy-900); background: var(--gray-100); text-decoration: none; }
.nav__link.is-active { color: var(--navy-900); }
.nav__link.is-active::after {
  content: ''; display: block; height: 2px; background: var(--accent); margin-top: 6px; border-radius: 1px;
}

@media (max-width: 1023px) {
  .nav.is-open { display: block; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--gray-200); padding: 16px 20px; box-shadow: var(--shadow); }
  .nav.is-open .nav__cta { margin-top: 8px; }
}
@media (min-width: 1024px) {
  .nav { display: block; }
  .nav-toggle { display: none; }
  .nav__list { flex-direction: row; align-items: center; gap: 8px; }
  .nav__link.is-active::after { display: none; }
  .nav__link.is-active { color: var(--accent-700); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--navy-900);
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}
.hero__video {
  position: absolute;
  top: 50%; left: 50%;
  min-width: 100%; min-height: 100%;
  width: auto; height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 0;
  opacity: 0.55;
  filter: saturate(0.85) contrast(1.05);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(5,25,55,0.55) 0%, rgba(5,25,55,0.85) 100%),
    linear-gradient(135deg, rgba(5,25,55,0.45) 0%, rgba(20,59,110,0.15) 50%, rgba(226,125,36,0.08) 100%);
  z-index: 0;
  pointer-events: none;
}
.hero__inner {
  position: relative; z-index: 1;
  padding: 96px 1.25rem 112px;
  max-width: 760px;
  min-height: 540px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
@media (min-width: 768px) {
  .hero__inner { padding: 128px 0 144px; min-height: 640px; }
}
.hero h1 { color: var(--white); text-shadow: 0 2px 24px rgba(5,25,55,0.4); }
.hero__lead { font-size: 1.1875rem; color: var(--navy-100); max-width: 58ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__meta { margin-top: 36px; color: var(--navy-100); font-size: .9375rem; display: flex; flex-wrap: wrap; gap: 16px 28px; }
.hero__meta strong { color: var(--white); }
/* Mobile: hide video, fall back to poster image as section background.
   The existing ::after gradient overlay still provides the dark wash. */
@media (max-width: 768px) {
  .hero__video { display: none; }
  .hero {
    background-image: url('/images/home-hero-poster.jpg');
    background-size: cover;
    background-position: center;
  }
}
/* Reduced motion: same fallback as mobile. */
@media (prefers-reduced-motion: reduce) {
  .hero__video { display: none; }
  .hero {
    background-image: url('/images/home-hero-poster.jpg');
    background-size: cover;
    background-position: center;
  }
}

/* ---------- Stats trust bar ---------- */
.stats-bar { background: var(--gray-50); border-top: 1px solid var(--gray-200); border-bottom: 1px solid var(--gray-200); }
.stats-bar__grid {
  display: grid; gap: 24px;
  grid-template-columns: repeat(2, 1fr);
  padding: 32px 0;
}
@media (min-width: 768px) { .stats-bar__grid { grid-template-columns: repeat(5, 1fr); } }
.stat { text-align: center; }
.stat__value { font-size: 2rem; font-weight: 700; color: var(--navy-900); line-height: 1; letter-spacing: -0.02em; }
.stat__label { display: block; font-size: .8125rem; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 8px; font-weight: 500; }

/* ---------- Card grids ---------- */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: box-shadow .2s ease, transform .15s ease, border-color .15s ease;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--gray-300); }
.card__media { aspect-ratio: 16 / 10; background: var(--gray-100); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.card:hover .card__media img { transform: scale(1.04); }
.card__body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.card__title { color: var(--navy-900); margin: 0 0 8px; font-size: 1.25rem; }
.card__meta { color: var(--accent); font-weight: 600; font-size: .875rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; }
.card__text { color: var(--gray-700); font-size: .9375rem; flex: 1; }
.card__cta { margin-top: 16px; color: var(--navy-700); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.card__cta::after { content: '→'; transition: transform .15s ease; }
.card:hover .card__cta::after { transform: translateX(3px); }
.card a { text-decoration: none; }
.card--clickable { cursor: pointer; }

.card-link { color: inherit; display: flex; flex-direction: column; height: 100%; text-decoration: none; }
.card-link:hover { text-decoration: none; color: inherit; }

/* ---------- Capability cards (icon + text, no media) ---------- */
.cap-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex; flex-direction: column;
  transition: box-shadow .2s ease, transform .15s ease, border-color .15s ease;
}
.cap-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--gray-300); }
.cap-card__icon {
  width: 48px; height: 48px;
  background: var(--navy-100); color: var(--navy-800);
  border-radius: var(--radius);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.cap-card__title { color: var(--navy-900); margin: 0 0 8px; font-size: 1.1875rem; }
.cap-card__text { color: var(--gray-700); font-size: .9375rem; flex: 1; }
.cap-card__cta { margin-top: 16px; font-weight: 600; }

/* Photo-backed cap-card (used for the 4 cards on the Industries page).
   Inline background-image is set on each article; a navy overlay keeps
   white titles and pale-navy body copy legible regardless of the image. */
.cap-card--photo {
  position: relative;
  overflow: hidden;
  min-height: 240px;
  background-color: var(--navy-900);
  background-size: cover;
  background-position: center;
  border-color: rgba(255,255,255,0.06);
  color: var(--white);
}
.cap-card--photo::before {
  content: '';
  position: absolute; inset: 0;
  background: rgba(10, 22, 40, 0.65);
  z-index: 0;
}
.cap-card--photo > * { position: relative; z-index: 1; }
.cap-card--photo .cap-card__title { color: var(--white); text-shadow: 0 1px 2px rgba(0,0,0,0.45); }
.cap-card--photo .cap-card__text  { color: var(--navy-100); text-shadow: 0 1px 2px rgba(0,0,0,0.4); }

/* ---------- Industries grid (gradient panels, no photos) ---------- */
.industries-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .industries-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .industries-grid { grid-template-columns: repeat(4, 1fr); } }
.industry {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: var(--navy-900);
  background-image: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 50%, var(--navy-700) 100%);
  background-size: cover;
  background-position: center;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 28px;
  min-height: 220px;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.06);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.industry::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at top right, rgba(226,125,36,0.10) 0%, transparent 55%);
  pointer-events: none;
}
/* Photo-backed industry cards: navy overlay so white card titles stay legible. */
.industry[style*="background-image"]::before {
  background: rgba(10, 22, 40, 0.65);
}
.industry:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(11,37,69,0.30);
  border-color: rgba(226,125,36,0.25);
}
.industry__icon {
  position: absolute; top: 22px; right: 22px;
  color: rgba(226,125,36,0.55);
  z-index: 1;
}
.industry__title { position: relative; z-index: 1; color: var(--white); font-size: 1.25rem; margin: 0; text-shadow: 0 1px 2px rgba(0,0,0,0.4); }
.industry__sub { position: relative; z-index: 1; color: var(--navy-100); font-size: .875rem; margin: 6px 0 0; text-shadow: 0 1px 2px rgba(0,0,0,0.4); }

/* ---------- Engine grid (2+3 layout: featured row + standard row) ----------
   Used on the homepage and Engines index. The featured row is two cards
   spanning ½ each; the standard row is three cards spanning ⅓ each.
   On mobile, both grids collapse to a single column so the 5 engines
   stack in document order (CFM56, LM6000, LM2500, LM5000, LMS100). */
.engines-grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .engines-grid { gap: 16px; }
  .engines-grid--featured { grid-template-columns: repeat(2, 1fr); }
  .engines-grid--standard { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .engines-grid--standard { grid-template-columns: repeat(3, 1fr); }
}
.engine-card--featured .engine-card__media { aspect-ratio: 16 / 9; }
.engine-card--featured .engine-card__name  { font-size: 1.5rem; }
.engine-card--featured .engine-card__body  { padding: 28px; }

/* ---------- Engine spec cards ---------- */
.engine-card {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 100%);
  color: var(--white);
  padding: 0;
  border-radius: var(--radius-lg);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255,255,255,0.06);
  position: relative;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.engine-card::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 60%; height: 100%;
  background: radial-gradient(ellipse at top right, rgba(226,125,36,0.10) 0%, transparent 60%);
  pointer-events: none;
  z-index: 2;
}
.engine-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(11,37,69,0.35);
  border-color: rgba(226,125,36,0.30);
  text-decoration: none;
  color: var(--white);
}

.engine-card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0a1424;
  position: relative;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.engine-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* Forces all four photos into a uniform monochrome series regardless
     of source colors or lighting. Picked because Unsplash's pool of
     full-engine-on-neutral-background renders is too small to hand-match;
     a hard grayscale lock guarantees the four cards read as a set. */
  filter: grayscale(1) brightness(0.85) contrast(1.08);
  transition: filter .4s ease, transform .5s ease;
}
.engine-card:hover .engine-card__media img {
  filter: grayscale(1) brightness(1) contrast(1.1);
  transform: scale(1.04);
}
.engine-card__media::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(5,25,55,0) 55%, rgba(5,25,55,0.85) 100%);
  pointer-events: none;
}

.engine-card__body {
  padding: 22px 26px 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
  position: relative;
  z-index: 1;
}
.engine-card__oem {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.engine-card__name {
  font-size: 2.25rem;
  color: var(--white);
  margin: 6px 0 4px;
  letter-spacing: -0.02em;
  font-weight: 700;
  line-height: 1.05;
}
.engine-card__lineage {
  color: var(--gray-300);
  font-size: .8125rem;
  margin: 0 0 18px;
  font-style: italic;
}
.engine-card__power-label {
  font-size: .6875rem;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--gray-300);
  font-weight: 600;
  margin-bottom: 2px;
}
.engine-card__power {
  font-size: 1.0625rem;
  color: var(--white);
  font-weight: 600;
  margin: 0;
}
.engine-card__apps {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.engine-card__apps li {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: .8125rem;
  color: var(--navy-100);
}
.engine-card__cta {
  color: var(--accent);
  font-weight: 600;
  margin-top: auto;
  padding-top: 20px;
}
.engine-card__cta::after {
  content: ' →';
  display: inline-block;
  transition: transform .15s ease;
}
.engine-card:hover .engine-card__cta::after {
  transform: translateX(4px);
}

/* ---------- Info panel (about page replaces tiny stock photos) ---------- */
.info-panel {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 100%);
  color: var(--white);
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.06);
  position: relative;
  overflow: hidden;
}
.info-panel::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 60%; height: 100%;
  background: radial-gradient(ellipse at top right, rgba(226,125,36,0.10) 0%, transparent 60%);
  pointer-events: none;
}
.info-panel > * { position: relative; z-index: 1; }
.info-panel__heading {
  color: var(--white);
  font-size: 1.25rem;
  margin: 0 0 4px;
}
.info-panel__sub {
  color: var(--navy-100);
  font-size: .9375rem;
  margin: 0 0 24px;
}
.info-panel__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.info-panel__stat-value {
  color: var(--white);
  font-size: 1.625rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.info-panel__stat-label {
  color: var(--gray-300);
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 4px;
  display: block;
}
.info-panel address {
  font-style: normal;
  color: var(--navy-100);
  line-height: 1.7;
  font-size: .9375rem;
}
.info-panel address strong { color: var(--white); display: block; margin-bottom: 6px; }
.info-panel address a { color: var(--accent); }
.info-panel address a:hover { color: var(--white); }
.info-panel__cert {
  display: inline-block;
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 6px 12px;
  border-radius: var(--radius);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}

/* ---------- Page header (interior pages) ---------- */
.page-header {
  position: relative;
  background-color: #0a1628;
  background-image: linear-gradient(135deg, #0a1628 0%, #1a3a5c 100%);
  background-size: cover;
  background-position: center;
  color: var(--white);
  padding: 64px 0 48px;
  min-height: 440px;
  overflow: hidden;
}
.page-header > .container { position: relative; z-index: 1; }
/* When a per-page banner photo is set inline, draw a navy overlay so the
   page title and breadcrumbs remain readable against any image. */
.page-header[style*="background-image"]::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 22, 40, 0.7);
  z-index: 0;
}
.page-header[style*="contact.jpg"] { background-position: center 75%; }
.page-header h1 { color: var(--white); }
.page-header__lead { color: var(--navy-100); font-size: 1.125rem; max-width: 60ch; }
.breadcrumbs { font-size: .875rem; color: var(--navy-100); margin-bottom: 16px; }
.breadcrumbs a { color: var(--navy-100); }
.breadcrumbs a:hover { color: var(--white); }
.breadcrumbs__sep { margin: 0 6px; color: rgba(255,255,255,0.4); }

/* ---------- Two-column layout (interior content) ---------- */
.split { display: grid; gap: 32px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 768px) { .split { grid-template-columns: 1fr 1fr; gap: 48px; } }
.split--media-right { direction: ltr; }
.split__media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--navy-800); color: var(--white); padding: 40px 0; }
.cta-band__inner { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.cta-band__title { color: var(--white); margin: 0; font-size: 1.5rem; }
.cta-band__text { color: var(--navy-100); margin: 0; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 768px) {
  .cta-band__inner { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: var(--gray-100); padding: 56px 0 0; }
.footer__grid {
  display: grid; gap: 32px;
  grid-template-columns: 1fr;
  padding-bottom: 40px;
}
@media (min-width: 640px) { .footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer__grid { grid-template-columns: 1.8fr 0.9fr 1.1fr 1.3fr; } }
.footer__heading {
  color: var(--white); font-size: .875rem; text-transform: uppercase; letter-spacing: 0.08em;
  margin: 0 0 16px; font-weight: 600;
}
.footer__list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.footer__list a, .footer__address a { color: var(--gray-100); }
.footer__list a:hover, .footer__address a:hover { color: var(--accent); }
.footer__col--brand { min-width: 280px; }
.footer__brand img { margin-bottom: 16px; }
.footer__tagline { color: var(--gray-100); font-size: .9375rem; }
.cert-badge {
  display: inline-block;
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 6px 12px;
  border-radius: var(--radius);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.footer__refs { color: var(--gray-300); font-size: .8125rem; font-style: italic; }
.footer__social a { display: inline-flex; align-items: center; gap: 8px; color: var(--gray-100); }
.footer__social a:hover { color: var(--accent); }
.footer__address { font-style: normal; font-size: .9375rem; color: var(--gray-100); line-height: 1.7; }
.footer__intro { color: var(--gray-300); font-size: .8125rem; }
.condition-codes { display: grid; gap: 6px; margin: 0; font-size: .8125rem; }
.condition-codes__row { display: grid; grid-template-columns: 70px 1fr; gap: 12px; align-items: baseline; }
.condition-codes dt { color: var(--accent); font-weight: 700; letter-spacing: 0.04em; }
.condition-codes dd { color: var(--gray-100); margin: 0; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,0.08); margin-top: 24px; padding: 20px 0; }
.footer__bottom-inner { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.footer__bottom p { margin: 0; color: var(--gray-300); font-size: .8125rem; }
.footer__bottom-meta { color: var(--gray-500) !important; }
@media (min-width: 768px) { .footer__bottom-inner { flex-direction: row; justify-content: space-between; align-items: center; } }

/* ---------- Forms (RFQ) ---------- */
.form { display: grid; gap: 20px; max-width: 880px; }
.form__row { display: grid; gap: 6px; }
.form__row--inline { grid-template-columns: 1fr; }
@media (min-width: 640px) { .form__row--inline { grid-template-columns: 200px 1fr; align-items: center; gap: 16px; } }
.form__label { font-weight: 600; color: var(--gray-900); font-size: .9375rem; }
.form__hint { color: var(--gray-500); font-size: .8125rem; }
.form__required { color: var(--accent); }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form select, .form textarea {
  width: 100%;
  padding: 10px 12px;
  font: inherit;
  color: var(--gray-900);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  background: var(--white);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none;
  border-color: var(--navy-700);
  box-shadow: 0 0 0 3px rgba(20,59,110,0.15);
}
.form textarea { resize: vertical; min-height: 96px; }
.form input:invalid:not(:placeholder-shown) { border-color: #b91c1c; }

.parts-grid {
  display: grid; gap: 8px 12px;
  grid-template-columns: 1fr;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 16px;
}
.parts-grid__head, .parts-grid__row {
  display: grid; gap: 8px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .parts-grid__head, .parts-grid__row {
    grid-template-columns: 1.2fr 2.4fr 0.8fr 1fr;
    gap: 12px;
  }
}
.parts-grid__head { font-size: .75rem; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.parts-grid__row + .parts-grid__row { border-top: 1px solid var(--gray-200); padding-top: 8px; }

.captcha-row { display: grid; grid-template-columns: 1fr; gap: 12px; align-items: center; }
@media (min-width: 640px) { .captcha-row { grid-template-columns: 120px 1fr; } }
.captcha-row img { border: 1px solid var(--gray-200); border-radius: var(--radius-sm); }

.form__error { color: #b91c1c; font-weight: 600; }
.form__success { background: #dcfce7; color: #166534; border: 1px solid #86efac; padding: 12px 16px; border-radius: var(--radius); }

/* ---------- Parts Catalog ---------- */
.catalog-filter {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: grid; gap: 12px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .catalog-filter { grid-template-columns: 2fr 1fr 1fr auto; align-items: end; }
}
.catalog-filter__field { display: flex; flex-direction: column; gap: 4px; }
.catalog-filter__field label { font-size: .8125rem; font-weight: 600; color: var(--gray-700); }
.catalog-filter input, .catalog-filter select { padding: 10px 12px; border: 1px solid var(--gray-300); border-radius: var(--radius-sm); font: inherit; background: var(--white); }

.catalog-results { margin-top: 32px; }
.catalog-table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.catalog-table thead { background: var(--navy-900); color: var(--white); }
.catalog-table th, .catalog-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--gray-200); }
.catalog-table th { font-size: .75rem; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.catalog-table tbody tr:hover { background: var(--gray-50); }
.catalog-table a { color: var(--navy-700); font-weight: 600; }
.pn-pill { display: inline-block; background: var(--navy-100); color: var(--navy-800); padding: 4px 8px; border-radius: var(--radius-sm); font-family: 'Inter', monospace; font-weight: 600; font-size: .875rem; }
.condition-tag { display: inline-block; padding: 2px 8px; border-radius: var(--radius-sm); font-size: .75rem; font-weight: 600; background: var(--gray-100); color: var(--gray-700); }
.condition-tag[data-cond="OH"], .condition-tag[data-cond="NE"], .condition-tag[data-cond="NS"] { background: #d1fae5; color: #065f46; }
.condition-tag[data-cond="RP"], .condition-tag[data-cond="SV"] { background: #dbeafe; color: #1e40af; }
.condition-tag[data-cond="AR"] { background: #fef3c7; color: #92400e; }

.catalog-empty {
  background: var(--gray-50);
  border: 1px dashed var(--gray-300);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
}
.catalog-empty h2 { margin-top: 0; }
.catalog-empty .btn { margin-top: 8px; }

@media (max-width: 767px) {
  .catalog-table thead { display: none; }
  .catalog-table tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--gray-200); }
  .catalog-table td { display: flex; justify-content: space-between; padding: 6px 0; border: none; gap: 12px; }
  .catalog-table td::before { content: attr(data-label); font-size: .75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gray-500); font-weight: 600; }
}

/* ---------- Part detail page ---------- */
.part-detail__header { display: flex; flex-wrap: wrap; gap: 16px; align-items: baseline; }
.part-detail__pn { font-family: 'Inter', monospace; font-weight: 700; color: var(--navy-900); font-size: 2rem; letter-spacing: -0.01em; }
.part-detail__condition { margin-left: 4px; }
.part-detail__grid { display: grid; gap: 24px; grid-template-columns: 1fr; margin-top: 32px; }
@media (min-width: 768px) { .part-detail__grid { grid-template-columns: 2fr 1fr; gap: 40px; } }
.spec-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.spec-list li { display: grid; grid-template-columns: 200px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--gray-200); font-size: .9375rem; }
.spec-list li:last-child { border-bottom: 0; }
.spec-list dt, .spec-list strong { color: var(--gray-500); font-weight: 600; text-transform: uppercase; font-size: .75rem; letter-spacing: 0.06em; }

/* ---------- 404 ---------- */
.error-page { text-align: center; padding: 80px 0 64px; }
.error-page__code { font-size: 6rem; font-weight: 700; color: var(--accent); line-height: 1; }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-2 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 32px; }
.flow > * + * { margin-top: 16px; }
.flow-lg > * + * { margin-top: 24px; }
.flex-wrap { display: flex; flex-wrap: wrap; gap: 12px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; list-style: none; margin: 0; }
.tag-list li { background: var(--navy-100); color: var(--navy-800); padding: 4px 10px; border-radius: 999px; font-size: .8125rem; font-weight: 500; }

/* ---------- Language switcher (top bar) ---------- */
/* Language switcher: flag-based dropdown (replaces the prior horizontal strip).
   Trigger lives in the dark utility bar; menu opens below with a light surface. */
.lang-switcher { position: relative; margin-right: 12px; }
.lang-switcher__trigger {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent;
  border: 0;
  padding: 4px 8px;
  border-radius: 4px;
  color: var(--white);
  font: inherit;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background-color 120ms ease;
}
.lang-switcher__trigger:hover,
.lang-switcher__trigger:focus-visible {
  background: rgba(255,255,255,0.10);
  outline: none;
}
.lang-switcher__flag { font-size: 1.05em; line-height: 1; }
.lang-switcher__chevron {
  margin-left: 2px;
  transition: transform 150ms ease;
}
.lang-switcher__trigger[aria-expanded="true"] .lang-switcher__chevron {
  transform: rotate(180deg);
}
.lang-switcher__menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 100;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  min-width: 220px;
  background: #fff;
  color: var(--navy-900);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18), 0 1px 2px rgba(0,0,0,0.06);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 150ms ease, transform 150ms ease, visibility 0s linear 150ms;
}
.lang-switcher__menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 150ms ease, transform 150ms ease, visibility 0s;
}
.lang-switcher__item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  color: var(--navy-900);
  text-decoration: none;
  font-size: .875rem;
  line-height: 1.2;
}
.lang-switcher__item:hover,
.lang-switcher__item:focus-visible {
  background: rgba(10, 22, 40, 0.06);
  outline: none;
  text-decoration: none;
}
.lang-switcher__item .lang-switcher__flag { font-size: 1.15em; }
@media (max-width: 640px) {
  .lang-switcher__menu { right: 8px; min-width: 220px; max-width: calc(100vw - 24px); }
}

/* ---------- RTL overrides (Arabic) ----------
   Most layout uses flex/grid which auto-flips with dir="rtl". The rules
   below correct the few asymmetric details: directional separators and
   one-sided spacers, plus number/code runs that should read LTR even
   inside an RTL document (part numbers, phone numbers, condition codes).
*/
[dir="rtl"] .breadcrumbs__sep { transform: scaleX(-1); display: inline-block; }
[dir="rtl"] .topbar__lang { margin-right: 0; margin-left: 12px; }
[dir="rtl"] .topbar__sep { /* visually neutral; "·" is bidi-safe */ }
[dir="rtl"] .pn-pill,
[dir="rtl"] .part-detail__pn,
[dir="rtl"] .topbar__phone,
[dir="rtl"] .footer__address a[href^="tel:"],
[dir="rtl"] .footer__address a[href^="mailto:"],
[dir="rtl"] code,
[dir="rtl"] .condition-codes dt,
[dir="rtl"] .catalog-table td[data-label="Part Number"],
[dir="rtl"] .catalog-table td[data-label="Qty"] { direction: ltr; unicode-bidi: isolate; }
[dir="rtl"] .catalog-table { text-align: right; }
[dir="rtl"] .catalog-table th, [dir="rtl"] .catalog-table td { text-align: right; }
[dir="rtl"] .catalog-table td[data-label="Part Number"] { text-align: left; }
[dir="rtl"] .breadcrumbs a + .breadcrumbs__sep { margin: 0 6px; }
[dir="rtl"] .form__row--inline label { text-align: right; }
[dir="rtl"] .nav__list { padding-right: 0; }
[dir="rtl"] .info-panel,
[dir="rtl"] .cap-card,
[dir="rtl"] .footer__address { text-align: right; }
[dir="rtl"] .footer__address strong { display: inline-block; }
[dir="rtl"] .topbar__inner,
[dir="rtl"] .nav__inner,
[dir="rtl"] .cta-band__inner,
[dir="rtl"] .footer__bottom-inner { /* flex containers flip naturally with dir="rtl" */ }
