/* ---------- Design tokens ---------- */
:root {
  --navy-950: #0b1622;
  --navy-900: #0f1e2e;
  --navy-800: #16293d;
  --navy-700: #1f3650;
  --steel-500: #5c7185;
  --steel-300: #9fb0bf;
  --steel-100: #e8edf1;
  --paper: #f6f7f9;
  --white: #ffffff;
  --accent: #af0808;
  --accent-dark: #850606;
  --accent-light: #f6dcdc;
  --success: #2f8f5b;
  --danger: #c94b3f;

  --font-sans: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

  --radius: 10px;
  --shadow-sm: 0 1px 3px rgba(11, 22, 34, 0.08);
  --shadow-md: 0 8px 24px rgba(11, 22, 34, 0.12);
  --shadow-lg: 0 20px 48px rgba(11, 22, 34, 0.18);

  --topbar-h: 42px;
  --mid-h: 84px;
  --cat-h: 52px;
  --header-h: calc(var(--topbar-h) + var(--mid-h) + var(--cat-h));
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

section[id],
.card[id] { scroll-margin-top: var(--header-h); }

body {
  font-family: var(--font-sans);
  color: var(--navy-900);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: var(--white);
  padding: 10px 16px;
  z-index: 200;
}
.skip-link:focus { left: 0; }

h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }

.section-title {
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  color: var(--navy-900);
  margin-bottom: 12px;
}
.section-lede {
  color: var(--steel-500);
  max-width: 640px;
  margin-bottom: 40px;
  font-size: 1.05rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-lg { padding: 15px 30px; font-size: 1rem; }

.btn-accent {
  background: var(--accent);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-accent:hover { background: var(--accent-dark); box-shadow: var(--shadow-md); }

.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.5);
  color: var(--white);
}
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }

.btn-outline-dark {
  background: transparent;
  border-color: rgba(11,22,34,0.18);
  color: var(--navy-900);
}
.btn-outline-dark:hover { border-color: var(--navy-900); background: rgba(11,22,34,0.04); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  display: flex;
  flex-direction: column;
  background: var(--navy-950);
  z-index: 100;
  transition: box-shadow 0.2s ease;
}
.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

/* Utility topbar */
.topbar {
  height: var(--topbar-h);
  overflow: hidden;
  background: var(--navy-800);
  border-bottom: 2px solid var(--accent);
  transition: height 0.25s ease, border-color 0.25s ease;
}
.site-header.scrolled .topbar {
  height: 0;
  border-color: transparent;
}
.topbar-inner {
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.topbar-contact {
  display: flex;
  align-items: center;
  gap: 24px;
}
.topbar-contact a,
.topbar-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--steel-300);
  font-size: 0.82rem;
  font-weight: 600;
  transition: color 0.15s ease;
}
.topbar-contact a:hover,
.topbar-links a:hover { color: var(--white); }
.topbar-icon { width: 14px; height: 14px; flex-shrink: 0; }
.topbar-links { display: flex; gap: 20px; }

.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;
}

/* Middle row: toggle, logo, search, CTA */
.header-middle {
  height: var(--mid-h);
  display: flex;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo-img {
  height: 52px;
  width: auto;
}
.footer-logo-img {
  height: 64px;
  width: auto;
}

.search-wrapper {
  flex: 1;
  min-width: 0;
  max-width: 520px;
  margin: 0 auto;
  position: relative;
}
.search-form {
  display: flex;
  background: var(--white);
  border-radius: 999px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.search-form input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  padding: 12px 18px;
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--navy-900);
}
.search-form input:focus { outline: none; }
.search-form button {
  display: grid;
  place-items: center;
  width: 46px;
  flex-shrink: 0;
  border: none;
  background: var(--accent);
  color: var(--white);
  cursor: pointer;
  transition: background 0.15s ease;
}
.search-form button:hover { background: var(--accent-dark); }
.search-form button svg { width: 18px; height: 18px; }

.search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0; right: 0;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  max-height: 360px;
  overflow-y: auto;
  z-index: 120;
  padding: 8px;
}
.search-results a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 14px;
  border-radius: 6px;
  color: var(--navy-800);
}
.search-results a:hover { background: var(--accent-light); color: var(--accent-dark); }
.search-results .result-parent {
  font-size: 0.74rem;
  color: var(--steel-500);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.search-results .result-empty {
  padding: 14px;
  color: var(--steel-500);
  font-size: 0.9rem;
  text-align: center;
}

.cart-link {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  color: var(--steel-300);
  transition: color 0.15s ease;
}
.cart-link:hover { color: var(--white); }
.cart-link svg { width: 24px; height: 24px; }
.cart-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.account-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  color: var(--steel-300);
  font-weight: 600;
  font-size: 0.9rem;
  transition: color 0.15s ease;
}
.account-link:hover { color: var(--white); }
.account-link svg { width: 22px; height: 22px; flex-shrink: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background: transparent;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
}

/* ---------- Category navigation bar ---------- */
.category-nav {
  height: var(--cat-h);
  background: var(--navy-950);
}
.category-nav .wrap { position: relative; height: 100%; }
.category-nav .vnav-level1 > .vnav-item { position: static; }

.vnav { list-style: none; }
.vnav-item { position: relative; }
.vnav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--steel-300);
  font-weight: 600;
  transition: color 0.15s ease, background 0.15s ease;
}
.vnav-item:hover > .vnav-link,
.vnav-item:focus-within > .vnav-link,
.vnav-link:hover { color: var(--white); }

.vnav-level1 > .vnav-item > .vnav-link.active { color: var(--white); }
.vnav-level1 > .vnav-item > .vnav-link.active::before {
  content: "";
  position: absolute;
  left: 12px; right: 12px; bottom: 4px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.vnav-icon { width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; }

.vnav-level1 {
  height: 100%;
  display: flex;
  justify-content: center;
}
.vnav-level1 > .vnav-item > .vnav-link {
  height: var(--cat-h);
  padding: 0 16px;
  font-size: 0.86rem;
  white-space: nowrap;
}
.vnav-level1 > .vnav-item.has-children > .vnav-link::after {
  content: "";
  width: 6px; height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.7;
}

/* Full-width mega-menu panel (desktop) — spans the nav container, not just the item */
.vnav-level2 {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 30px 36px;
  column-gap: 36px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  z-index: 110;
  max-height: 74vh;
  overflow-y: auto;
}
.vnav-item:hover > .vnav-level2,
.vnav-item:focus-within > .vnav-level2 {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.vnav-level2.cols-2 { column-count: 2; }
.vnav-level2.cols-3 { column-count: 3; }
.vnav-level2.cols-4 { column-count: 4; }

.vnav-level2 > .vnav-item {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  margin-bottom: 20px;
}

.vnav-level2 > .vnav-item > .vnav-link {
  display: block;
  padding: 3px 0 9px;
  color: var(--navy-800);
  font-size: 0.86rem;
  font-weight: 500;
}
.vnav-level2 > .vnav-item.has-children > .vnav-link {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.72rem;
  color: var(--navy-900);
  padding-bottom: 8px;
  margin-bottom: 6px;
  border-bottom: 2px solid var(--accent-light);
}
.vnav-level2 .vnav-link:hover { color: var(--accent-dark); }

.vnav-level3 { margin-top: 2px; }
.vnav-level3 > .vnav-item > .vnav-link {
  display: block;
  padding: 5px 0;
  color: var(--steel-500);
  font-size: 0.83rem;
  font-weight: 500;
}

/* Mobile accordion toggle buttons (hidden on desktop) */
.vnav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: inherit;
  cursor: pointer;
}
.vnav-toggle::after {
  content: "";
  width: 8px; height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}
.vnav-toggle[aria-expanded="true"]::after { transform: rotate(225deg); }

/* ---------- Mobile slide-out nav ---------- */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 22, 34, 0.6);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 150;
}
.nav-overlay.open { opacity: 1; visibility: visible; }

.mobile-nav {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: 320px;
  max-width: 88vw;
  background: var(--navy-950);
  z-index: 160;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.mobile-nav.open { transform: translateX(0); }

.mobile-nav-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.mobile-nav-phone { display: flex; align-items: center; gap: 8px; color: var(--white); font-weight: 700; }
.mobile-nav-phone svg { width: 16px; height: 16px; color: var(--accent); }
.mobile-nav-close {
  width: 36px; height: 36px;
  display: grid;
  place-items: center;
  background: transparent;
  border: none;
  color: var(--white);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.mobile-home-link {
  display: block;
  padding: 16px 20px;
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.mobile-nav-categories { padding: 4px 0; }

.mobile-nav-utility {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 8px 0 24px;
}
.mobile-nav-utility a { padding: 14px 20px; color: var(--steel-300); font-weight: 600; font-size: 0.92rem; }
.mobile-nav-utility a:hover { color: var(--white); }

/* Cloned category tree inside the mobile panel becomes an accordion */
.mobile-nav .vnav-level1 {
  display: block;
  height: auto;
}
.mobile-nav .vnav-item { display: block; }
.mobile-nav .vnav-link {
  height: auto;
  padding: 14px 44px 14px 20px;
  color: var(--steel-300);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 0.92rem;
  white-space: normal;
}
.mobile-nav .vnav-level1 > .vnav-item > .vnav-link {
  height: auto;
  padding: 14px 44px 14px 20px;
  font-size: 0.92rem;
  white-space: normal;
}
.mobile-nav .vnav-item:hover > .vnav-link,
.mobile-nav .vnav-link:hover { color: var(--white); background: rgba(175,8,8,0.08); }
.mobile-nav .vnav-item.has-children > .vnav-link::after { display: none; }

.mobile-nav .vnav-toggle {
  display: flex;
  position: absolute;
  top: 0; right: 0;
  width: 48px; height: 48px;
  color: var(--steel-300);
}

.mobile-nav .vnav-level2,
.mobile-nav .vnav-level2.cols-2,
.mobile-nav .vnav-level2.cols-3,
.mobile-nav .vnav-level2.cols-4,
.mobile-nav .vnav-level3 {
  position: static;
  transform: none;
  opacity: 1;
  visibility: visible;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
  max-height: 0;
  overflow: hidden;
  column-count: auto;
  column-gap: normal;
  transition: max-height 0.25s ease;
}
.mobile-nav .vnav-item.open > .vnav-level2,
.mobile-nav .vnav-item.open > .vnav-level3 { max-height: 3000px; }

.mobile-nav .vnav-level2 > .vnav-item,
.mobile-nav .vnav-level3 > .vnav-item {
  break-inside: auto;
  margin-bottom: 0;
}

.mobile-nav .vnav-level2 > .vnav-item > .vnav-link,
.mobile-nav .vnav-level3 > .vnav-item > .vnav-link {
  display: block;
  padding-left: 36px;
  font-size: 0.88rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: normal;
  color: var(--steel-300);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 0;
}
.mobile-nav .vnav-level3 > .vnav-item > .vnav-link { padding-left: 52px; font-size: 0.85rem; font-weight: 500; }
.mobile-nav .vnav-level2 > .vnav-item > .vnav-link:hover,
.mobile-nav .vnav-level3 > .vnav-item > .vnav-link:hover { color: var(--white); background: rgba(175,8,8,0.08); }

/* Beat the desktop bold-uppercase "column header" treatment on has-children items */
.mobile-nav .vnav-level2 > .vnav-item.has-children > .vnav-link {
  font-weight: 600;
  text-transform: none;
  letter-spacing: normal;
  font-size: 0.88rem;
  color: var(--steel-300);
  padding-bottom: 14px;
  margin-bottom: 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 100px) 0 100px;
  overflow: hidden;
  color: var(--white);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1100px 600px at 85% -10%, rgba(175,8,8,0.22), transparent 60%),
    linear-gradient(160deg, var(--navy-950) 0%, var(--navy-900) 45%, var(--navy-800) 100%);
  z-index: -2;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.9), transparent 80%);
}

.hero-inner { max-width: 760px; }

.eyebrow {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin-bottom: 20px;
}
.hero-lede {
  font-size: 1.15rem;
  color: var(--steel-300);
  max-width: 620px;
  margin-bottom: 34px;
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Stats ---------- */
.stats { padding: 90px 0; background: var(--paper); }
.stats-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
}
.stats-copy h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 18px; }
.stats-copy p { color: var(--steel-500); font-size: 1.05rem; max-width: 480px; }

.stats-numbers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 24px;
}
.stat {
  background: var(--white);
  border: 1px solid rgba(11,22,34,0.06);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.stat-number {
  display: block;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 4px;
}
.stat dd { color: var(--steel-500); font-weight: 600; font-size: 0.92rem; }

/* ---------- Brands ---------- */
.brands { padding: 70px 0; background: var(--navy-950); }
.brands .section-title { color: var(--white); text-align: center; margin-bottom: 34px; }
.brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 18px;
}
.brand-grid li {
  display: grid;
  place-items: center;
  background: var(--white);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius);
  padding: 22px 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.brand-grid li:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}
.brand-grid img {
  max-width: 100%;
  max-height: 48px;
  width: auto;
  object-fit: contain;
}

/* ---------- Products ---------- */
.products { padding: 100px 0; }
.card-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}
.card {
  flex: 1 1 300px;
  max-width: 350px;
  padding: 32px 28px;
  border: 1px solid rgba(11,22,34,0.08);
  border-radius: var(--radius);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.card.highlight { animation: cardPulse 1.4s ease; }
@keyframes cardPulse {
  0% { box-shadow: 0 0 0 0 rgba(175,8,8,0.45); }
  100% { box-shadow: 0 0 0 16px rgba(175,8,8,0); }
}
.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: var(--accent-light);
  color: var(--accent-dark);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.card-icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.card p { color: var(--steel-500); font-size: 0.96rem; }

/* ---------- Industries ---------- */
.industries { padding: 90px 0; background: var(--navy-800); color: var(--white); }
.industries .section-title { color: var(--white); text-align: center; margin-bottom: 48px; }
.industry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.industry {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--shadow-md);
}
.industry img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.industry:hover img { transform: scale(1.06); }
.industry::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,22,34,0) 40%, rgba(11,22,34,0.85) 100%);
}
.industry-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 22px;
  z-index: 1;
  border-top: 3px solid var(--accent);
}
.industry h3 { font-size: 1.1rem; color: var(--white); }

/* ---------- Contact ---------- */
.contact { padding: 100px 0; background: var(--paper); }
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
}
.contact-info .section-title { margin-bottom: 12px; }
.contact-details { margin-top: 32px; display: grid; gap: 20px; }
.contact-details li {
  padding: 18px 20px;
  background: var(--white);
  border: 1px solid rgba(11,22,34,0.06);
  border-radius: var(--radius);
  font-weight: 600;
}
.contact-details a:hover { color: var(--accent); }
.contact-label {
  display: block;
  color: var(--accent);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  margin-bottom: 6px;
}

.contact-form {
  background: var(--white);
  border: 1px solid rgba(11,22,34,0.06);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}
.form-row { margin-bottom: 20px; display: flex; flex-direction: column; gap: 6px; }
.form-row label { font-weight: 600; font-size: 0.9rem; color: var(--navy-800); }
.form-row input,
.form-row textarea {
  padding: 12px 14px;
  border: 1.5px solid rgba(11,22,34,0.14);
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.96rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(175,8,8,0.15);
}
.form-row.invalid input,
.form-row.invalid textarea { border-color: var(--danger); }
.field-error {
  color: var(--danger);
  font-size: 0.82rem;
  min-height: 1em;
}
.form-status {
  margin-top: 16px;
  font-weight: 600;
  font-size: 0.92rem;
}
.form-status.success { color: var(--success); }
.form-status.error { color: var(--danger); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: var(--steel-300); padding: 70px 0 0; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand p { margin-top: 14px; color: var(--steel-500); max-width: 320px; font-size: 0.92rem; }
.footer-col h4 { color: var(--white); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 16px; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { font-size: 0.94rem; transition: color 0.15s ease; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { padding: 22px 0; font-size: 0.85rem; color: var(--steel-500); }

/* ---------- Cart page ---------- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--steel-500);
  margin-bottom: 28px;
}
.breadcrumb a { transition: color 0.15s ease; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb [aria-current="page"] { color: var(--navy-900); font-weight: 600; }

.cart-page {
  padding: calc(var(--header-h) + 48px) 0 90px;
  background: var(--paper);
  min-height: 60vh;
}
.cart-page-head { margin-bottom: 36px; }
.cart-page-head h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 8px; }
.cart-subtitle { color: var(--steel-500); font-size: 1rem; }

.cart-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 32px;
  align-items: start;
}

.cart-items {
  background: var(--white);
  border: 1px solid rgba(11,22,34,0.06);
  border-radius: var(--radius);
  overflow: hidden;
}
.cart-items-head,
.cart-item {
  display: grid;
  grid-template-columns: 60px 2.2fr 0.9fr 1.15fr 0.9fr;
  gap: 16px;
  align-items: center;
}
.cart-items-head {
  padding: 16px 24px;
  background: var(--paper);
  border-bottom: 1px solid rgba(11,22,34,0.06);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--steel-500);
}
.cart-item {
  padding: 22px 24px;
  border-bottom: 1px solid rgba(11,22,34,0.06);
}
.cart-item:last-of-type { border-bottom: none; }

.cart-item-media {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  background: var(--accent-light);
  color: var(--accent-dark);
  display: grid;
  place-items: center;
}
.cart-item-media svg { width: 26px; height: 26px; }

.cart-item-category {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent);
  margin-bottom: 4px;
}
.cart-item-info h3 { font-size: 1rem; margin-bottom: 3px; }
.cart-item-meta { color: var(--steel-500); font-size: 0.84rem; margin-bottom: 8px; }
.cart-item-remove {
  background: none;
  border: none;
  padding: 0;
  color: var(--steel-500);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
  transition: color 0.15s ease;
}
.cart-item-remove:hover { color: var(--danger); }

.cart-item-price { font-weight: 600; color: var(--navy-800); font-size: 0.92rem; }
.cart-item-price span { color: var(--steel-500); font-weight: 500; font-size: 0.82rem; }

.cart-item-qty {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid rgba(11,22,34,0.12);
  border-radius: 6px;
  overflow: hidden;
  width: fit-content;
}
.qty-btn {
  width: 32px;
  height: 34px;
  display: grid;
  place-items: center;
  background: var(--paper);
  border: none;
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy-800);
  cursor: pointer;
  transition: background 0.15s ease;
}
.qty-btn:hover { background: var(--accent-light); color: var(--accent-dark); }
.qty-input {
  width: 42px;
  height: 34px;
  border: none;
  border-left: 1.5px solid rgba(11,22,34,0.12);
  border-right: 1.5px solid rgba(11,22,34,0.12);
  text-align: center;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--navy-900);
  -moz-appearance: textfield;
}
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.cart-item-total { font-weight: 700; color: var(--navy-900); font-size: 0.98rem; }

.cart-empty { padding: 48px 24px; text-align: center; color: var(--steel-500); }
.cart-empty a { color: var(--accent); font-weight: 600; }

.cart-summary {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  background: var(--white);
  border: 1px solid rgba(11,22,34,0.06);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.cart-summary h2 { font-size: 1.15rem; margin-bottom: 20px; }

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 0.9rem;
  color: var(--steel-500);
  border-bottom: 1px solid rgba(11,22,34,0.06);
}
.summary-total {
  border-bottom: none;
  padding-top: 16px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy-900);
}

.promo-form { display: flex; gap: 8px; margin-top: 20px; }
.promo-form input {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border: 1.5px solid rgba(11,22,34,0.14);
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.88rem;
}
.promo-form input:focus { outline: none; border-color: var(--accent); }
.promo-form .btn { padding: 9px 16px; font-size: 0.86rem; }

.promo-status,
.checkout-status {
  font-size: 0.82rem;
  color: var(--steel-500);
  margin-top: 8px;
  min-height: 1em;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.promo-status.visible,
.checkout-status.visible { opacity: 1; }

.cart-checkout { width: 100%; margin-top: 20px; }
.cart-checkout:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.cart-quote-link {
  display: block;
  text-align: center;
  margin-top: 14px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--accent);
}
.cart-quote-link:hover { color: var(--accent-dark); }

.cart-trust {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(11,22,34,0.06);
  display: grid;
  gap: 12px;
}
.cart-trust li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--steel-500);
}
.cart-trust svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; }
.cart-trust a { color: var(--navy-800); font-weight: 600; }

.cart-continue { margin-top: 28px; }

.cart-crosssell { padding: 80px 0 100px; background: var(--white); }
.cart-crosssell .section-title { margin-bottom: 32px; }
.card-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--accent);
}
.card-link:hover { color: var(--accent-dark); }

/* ---------- Category page ---------- */
.category-hero {
  padding: calc(var(--header-h) + 44px) 0 36px;
  background: var(--paper);
}
.category-hero-inner { max-width: 720px; }
.category-hero h1 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); margin-bottom: 14px; }
.category-hero p { color: var(--steel-500); font-size: 1.02rem; }

.category-page { background: var(--white); padding: 40px 0 100px; }

.feature-strip {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding-bottom: 36px;
  margin-bottom: 40px;
  border-bottom: 1px solid rgba(11,22,34,0.08);
}
.feature-strip li { display: flex; align-items: center; gap: 12px; }
.feature-strip svg { width: 30px; height: 30px; color: var(--accent); flex-shrink: 0; }
.feature-strip .heading { font-weight: 700; font-size: 0.84rem; color: var(--navy-900); }
.feature-strip .subtext { font-size: 0.78rem; color: var(--steel-500); }

.category-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 44px;
  align-items: start;
}

.category-sidebar { position: sticky; top: calc(var(--header-h) + 24px); }
.sidebar-block { margin-bottom: 28px; }
.sidebar-title {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--steel-500);
  margin-bottom: 12px;
}
.sidebar-cats { display: grid; gap: 2px; }
.sidebar-cats a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy-800);
  transition: background 0.15s ease, color 0.15s ease;
}
.sidebar-cats a:hover { background: var(--paper); color: var(--accent-dark); }
.sidebar-cats a.current { background: var(--accent-light); color: var(--accent-dark); }

.sidebar-types { display: grid; gap: 1px; }
.sidebar-types a {
  display: block;
  padding: 7px 12px;
  border-radius: 6px;
  font-size: 0.83rem;
  color: var(--steel-500);
  transition: background 0.15s ease, color 0.15s ease;
}
.sidebar-types a:hover { background: var(--paper); color: var(--navy-900); }

.material-section-title { font-size: 1.25rem; margin: 44px 0 4px; }
.material-section-title:first-child { margin-top: 0; }
.material-section-lede { color: var(--steel-500); font-size: 0.9rem; margin-bottom: 24px; }

.material-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 18px;
}
.material-grid.featured { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }

.material-card {
  background: var(--white);
  border: 1px solid rgba(11,22,34,0.08);
  border-radius: var(--radius);
  padding: 22px 18px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  scroll-margin-top: var(--header-h);
}
.material-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: transparent; }
.material-card-icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 14px;
  border-radius: 12px;
  background: var(--accent-light);
  color: var(--accent-dark);
  display: grid;
  place-items: center;
}
.material-card-icon svg { width: 26px; height: 26px; }
.material-card h3 { font-size: 0.96rem; margin-bottom: 4px; }
.material-tag { display: block; font-size: 0.76rem; color: var(--steel-500); margin-bottom: 12px; min-height: 1.1em; }
.material-link { font-size: 0.82rem; font-weight: 700; color: var(--accent); }
.material-link:hover { color: var(--accent-dark); }

.material-card.featured { padding: 28px 22px; }
.material-card.featured .material-card-icon { width: 66px; height: 66px; }
.material-card.featured .material-card-icon svg { width: 32px; height: 32px; }
.material-card.featured .material-tag { min-height: 2.2em; font-size: 0.82rem; }

.category-cta {
  margin-top: 56px;
  padding: 40px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--navy-950), var(--navy-800));
  color: var(--white);
  text-align: center;
}
.category-cta h2 { font-size: 1.4rem; margin-bottom: 10px; }
.category-cta p { color: var(--steel-300); margin-bottom: 22px; max-width: 480px; margin-left: auto; margin-right: auto; }

/* ---------- Product page ---------- */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 70px;
}

.product-gallery { position: sticky; top: calc(var(--header-h) + 24px); }
.product-main-image {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid rgba(11,22,34,0.08);
  display: grid;
  place-items: center;
  overflow: hidden;
  margin-bottom: 14px;
}
.product-main-image svg { width: 42%; height: 42%; color: var(--accent); }
.product-thumbs { display: flex; gap: 10px; }
.product-thumb {
  width: 62px;
  height: 62px;
  border-radius: 8px;
  border: 2px solid rgba(11,22,34,0.1);
  background: var(--paper);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: border-color 0.15s ease;
  padding: 0;
}
.product-thumb svg { width: 26px; height: 26px; color: var(--steel-500); }
.product-thumb.active { border-color: var(--accent); }
.product-thumb.active svg { color: var(--accent); }

.product-info h1 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-bottom: 10px; }
.product-meta { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; font-size: 0.85rem; color: var(--steel-500); flex-wrap: wrap; }
.product-meta .sku { font-weight: 600; }
.stock-badge { display: inline-flex; align-items: center; gap: 6px; color: var(--success); font-weight: 700; }
.stock-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--success); flex-shrink: 0; }

.product-spec-mini {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 20px;
  padding: 18px 20px;
  background: var(--paper);
  border-radius: var(--radius);
  margin-bottom: 24px;
}
.product-spec-mini dt {
  color: var(--steel-500);
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}
.product-spec-mini dd { color: var(--navy-900); font-weight: 600; font-size: 0.88rem; }

.product-price-row { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.product-price { font-size: 2rem; font-weight: 800; color: var(--navy-900); }
.product-price-unit { color: var(--steel-500); font-size: 0.92rem; }
.product-price-note { display: block; font-size: 0.8rem; color: var(--steel-500); margin-bottom: 24px; }

.product-options { display: grid; gap: 18px; margin-bottom: 26px; }
.option-row label { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 6px; color: var(--navy-800); }
.option-row select {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid rgba(11,22,34,0.14);
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.92rem;
  background: var(--white);
  color: var(--navy-900);
}
.option-row select:focus { outline: none; border-color: var(--accent); }

.product-actions { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; flex-wrap: wrap; }
.add-to-cart-status {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--success);
  margin-bottom: 14px;
  min-height: 1.2em;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.add-to-cart-status.visible { opacity: 1; }

.product-quote-link { display: inline-flex; align-items: center; gap: 6px; font-size: 0.88rem; font-weight: 600; color: var(--accent); }
.product-quote-link:hover { color: var(--accent-dark); }

.product-section { margin-bottom: 56px; }
.product-section h2 { font-size: 1.25rem; margin-bottom: 16px; }
.product-section p { color: var(--steel-500); font-size: 0.94rem; max-width: 760px; }

.spec-table { width: 100%; border-collapse: collapse; margin-top: 18px; max-width: 760px; }
.spec-table tr { border-bottom: 1px solid rgba(11,22,34,0.06); }
.spec-table td { padding: 12px 0; font-size: 0.88rem; }
.spec-table td:first-child { color: var(--steel-500); font-weight: 600; width: 240px; }
.spec-table td:last-child { color: var(--navy-900); font-weight: 600; }

.product-review-prompt { padding-top: 24px; border-top: 1px solid rgba(11,22,34,0.08); font-size: 0.9rem; color: var(--steel-500); }
.product-review-prompt a { color: var(--accent); font-weight: 600; }

/* ---------- Account page ---------- */
.account-hero {
  padding: calc(var(--header-h) + 44px) 0 40px;
  background: var(--paper);
  text-align: center;
}
.account-hero h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 10px; }
.account-hero p { color: var(--steel-500); }
.account-hero .breadcrumb { justify-content: center; margin-bottom: 20px; }

.account-page { background: var(--white); padding: 60px 0 100px; }

.account-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
  align-items: start;
}

.account-panel {
  background: var(--paper);
  border: 1px solid rgba(11,22,34,0.06);
  border-radius: var(--radius);
  padding: 36px 32px;
}
.account-panel h2 { font-size: 1.2rem; margin-bottom: 8px; }
.account-panel .panel-lede { color: var(--steel-500); font-size: 0.9rem; margin-bottom: 26px; }

.account-panel.highlight { background: var(--navy-950); color: var(--white); }
.account-panel.highlight h2 { color: var(--white); }
.account-panel.highlight .panel-lede { color: var(--steel-300); }
.account-panel.highlight .form-row label { color: var(--steel-100); }

.account-forgot {
  display: block;
  text-align: right;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: -10px;
  margin-bottom: 20px;
}

.account-benefits {
  list-style: none;
  display: grid;
  gap: 14px;
  margin-bottom: 28px;
}
.account-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--steel-300);
}
.account-benefits svg { width: 20px; height: 20px; color: var(--accent); flex-shrink: 0; margin-top: 1px; }

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
  z-index: 90;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--accent-dark); }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */

/* Compact the category bar before it runs out of room (7 long labels) */
@media (max-width: 1300px) and (min-width: 1121px) {
  .vnav-icon { display: none; }
  .vnav-level1 > .vnav-item > .vnav-link { padding: 0 10px; font-size: 0.78rem; }
  .vnav-level2 { padding: 22px 24px; column-gap: 24px; }
  .vnav-level2.cols-4 { column-count: 3; }
}

/* Switch to the hamburger / slide-out nav — the category bar needs more
   room than a typical tablet viewport can give it */
@media (max-width: 1120px) {
  :root { --header-h: calc(var(--topbar-h) + var(--mid-h)); }

  .nav-toggle { display: flex; }
  .category-nav { display: none; }
}

@media (max-width: 960px) {
  .stats-grid { grid-template-columns: 1fr; }
  .card { flex-basis: 260px; }
  .industry-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }

  .cart-layout { grid-template-columns: 1fr; }
  .cart-summary { position: static; }

  .category-layout { grid-template-columns: 1fr; }
  .category-sidebar { position: static; }
  .feature-strip { grid-template-columns: repeat(2, 1fr); }

  .product-detail { grid-template-columns: 1fr; }
  .product-gallery { position: static; max-width: 420px; }

  .account-layout { grid-template-columns: 1fr; max-width: 480px; }
}

@media (max-width: 640px) {
  .topbar-links { display: none; }
  .topbar-contact { gap: 16px; }

  .logo-img { height: 40px; }
  .search-wrapper { max-width: none; margin: 0; }
  .header-middle { gap: 14px; }
  .account-link-text { display: none; }

  .card { flex-basis: 100%; max-width: 100%; }
  .footer-inner { grid-template-columns: 1fr; }

  .feature-strip { grid-template-columns: 1fr; }
  .material-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }

  .cart-items-head { display: none; }
  .cart-item {
    grid-template-columns: 52px 1fr;
    grid-template-areas:
      "media info"
      "price price"
      "qty qty"
      "total total";
    row-gap: 12px;
  }
  .cart-item-media { grid-area: media; }
  .cart-item-info { grid-area: info; }
  .cart-item-price,
  .cart-item-qty,
  .cart-item-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid rgba(11,22,34,0.06);
  }
  .cart-item-price { grid-area: price; }
  .cart-item-qty { grid-area: qty; width: 100%; justify-content: flex-start; }
  .cart-item-total { grid-area: total; }
  .cart-item-price::before { content: "Price"; font-size: 0.74rem; font-weight: 700; text-transform: uppercase; color: var(--steel-500); }
  .cart-item-total::before { content: "Total"; font-size: 0.74rem; font-weight: 700; text-transform: uppercase; color: var(--steel-500); }
}
