/* Differential Parts USA — static site, 2026-11-19 */
:root {
  --blue: #0a5cad;
  --blue-dark: #083e75;
  --navy: #0c2340;
  --ink: #1c2330;
  --muted: #5b6573;
  --line: #d9dee6;
  --bg: #f3f5f8;
  --white: #fff;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Source Sans 3", "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
}
img { max-width: 100%; height: auto; border: 0; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { width: min(1100px, calc(100% - 2rem)); margin-inline: auto; }

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
}
.logo img { display: block; height: 64px; width: auto; }
.header-right { display: flex; align-items: center; gap: 0.75rem; }
.phone {
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
  letter-spacing: 0.02em;
}
.phone:hover { color: var(--blue); text-decoration: none; }

.nav-toggle { position: absolute; left: -9999px; }
.menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.4rem 0.65rem;
  font: inherit;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
}

.nav-panel { background: var(--white); }
.nav-panel ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1.15rem;
  list-style: none;
  margin: 0;
  padding: 0 0 0.85rem;
  align-items: center;
}
.nav-panel a {
  color: var(--navy);
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.nav-panel a[aria-current="page"] { color: var(--blue); }

.hero {
  position: relative;
  background: var(--navy) center / cover no-repeat;
  color: var(--white);
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.hero.home {
  min-height: 320px;
  background-image: url("../images/hero.jpg");
}
.hero-inner {
  background: rgba(8, 20, 38, 0.82);
  padding: 0.9rem 0 1rem;
  width: 100%;
}
.hero h1, .page-head h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.hero p, .tagline { margin: 0; font-size: 1.15rem; opacity: 0.95; }
.page-head {
  background: var(--navy);
  color: var(--white);
  padding: 2rem 0;
}

main { display: block; }
.content { padding: 2.25rem 0 3rem; }
.prose p { margin: 0 0 1rem; }
.prose h2 { margin: 0 0 0.75rem; font-size: 1.4rem; color: var(--navy); }
.grid-2 {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 2rem;
  align-items: start;
}
.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.25rem 1.4rem;
}
.cta {
  display: inline-block;
  background: var(--blue);
  color: var(--white);
  font-weight: 700;
  padding: 0.65rem 1.15rem;
  border-radius: 6px;
  margin-top: 0.5rem;
}
.cta:hover { background: var(--blue-dark); text-decoration: none; color: var(--white); }

.agents {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}
.agent { padding: 1.1rem 1.2rem; }
.agent.usa { border: 2px solid var(--blue); background: #eef5fb; }
.agent h2 { font-size: 1.1rem; margin: 0 0 0.4rem; color: var(--navy); }
.agent p { margin: 0; font-size: 1rem; }

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.75rem;
}
.gallery a { display: block; }
.gallery img {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 4px;
}

.site-footer {
  background: var(--navy);
  color: #c9d4e2;
  padding: 2rem 0;
  font-size: 0.95rem;
}
.site-footer a { color: #fff; }
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.notfound { text-align: center; padding: 3rem 0; }

@media (max-width: 860px) {
  .menu-btn { display: inline-block; }
  .nav-panel { display: none; border-top: 1px solid var(--line); }
  #nav-toggle:checked ~ .nav-panel { display: block; }
  .nav-panel ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7rem;
    padding: 0.9rem 0 1rem;
  }
  .grid-2 { grid-template-columns: 1fr; }
  .logo img { height: 52px; }
  .hero.home { min-height: 200px; }
}

.cta-secondary { background: transparent; color: var(--blue); border: 2px solid var(--blue); margin-left: 0.4rem; }
.cta-secondary:hover { background: var(--blue); color: #fff; }

.cat-nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; margin: 0 0 1.75rem; font-weight: 600; }
.product-table { width: 100%; border-collapse: collapse; margin: 0 0 2rem; font-size: 1rem; }
.product-table th, .product-table td { border-bottom: 1px solid var(--line); padding: 0.55rem 0.65rem; text-align: left; vertical-align: middle; }
.product-table th { background: var(--bg); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--navy); }
.product-table .photo { width: 88px; }
.product-table img { width: 80px; height: 80px; object-fit: contain; background: #fff; display: block; }
.product-table .sku { white-space: nowrap; font-variant-numeric: tabular-nums; }
.content h2 { margin: 1.75rem 0 0.5rem; font-size: 1.6rem; color: var(--navy); }
.content h3 { margin: 1.2rem 0 0.4rem; font-size: 1.2rem; color: var(--navy); }
.content h4 { margin: 0.9rem 0 0.35rem; font-size: 1.05rem; color: var(--ink); }
@media (max-width: 700px) {
  .product-table .photo { width: 56px; }
  .product-table img { width: 52px; height: 52px; }
  .product-table .sku { white-space: normal; }
}
