:root {
  --ink: #172026;
  --muted: #5e6a70;
  --line: #d8dee2;
  --surface: #f6f8f8;
  --white: #ffffff;
  --steel: #2d3a40;
  --safety: #d98524;
  --green: #16715f;
  --blue: #315f8c;
  --shadow: 0 14px 32px rgba(16, 32, 40, 0.14);
  font-family: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  line-height: 1.5;
}
a { color: inherit; }
button, input, select, textarea { font: inherit; }

.sales-banner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  padding: 8px 18px;
  color: white;
  background: var(--green);
  text-align: center;
}
.sales-banner a {
  color: white;
  font-weight: 800;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 72px;
  padding: 12px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: white;
  background: var(--steel);
  border-radius: 6px;
  letter-spacing: 0;
}
nav {
  display: flex;
  flex: 1;
  justify-content: center;
  gap: clamp(12px, 2vw, 28px);
  color: var(--muted);
  font-size: 0.94rem;
}
nav a { text-decoration: none; }
nav a:hover { color: var(--ink); }

.cart-button, .button, .filter, .icon-button {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}
.cart-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 6px;
}
.cart-button strong {
  display: grid;
  place-items: center;
  min-width: 26px;
  height: 26px;
  color: white;
  background: var(--safety);
  border-radius: 50%;
}

.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: calc(100vh - 72px);
  overflow: hidden;
  color: white;
  background: var(--steel);
}
.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.95) contrast(1.05) brightness(0.7);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(16, 24, 28, 0.88), rgba(16, 24, 28, 0.45) 48%, rgba(16, 24, 28, 0.18));
}
.hero-copy {
  position: relative;
  z-index: 1;
  width: min(680px, calc(100% - 36px));
  margin-left: clamp(18px, 6vw, 82px);
  padding: 64px 0 96px;
}
.eyebrow {
  margin: 0 0 12px;
  color: var(--safety);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  margin-bottom: 18px;
  font-size: clamp(2.5rem, 6vw, 5.6rem);
  line-height: 0.96;
  letter-spacing: 0;
}
h2 {
  margin-bottom: 14px;
  font-size: clamp(1.8rem, 3.6vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: 0;
}
h3 { margin-bottom: 10px; }
.hero-copy p:not(.eyebrow) {
  width: min(560px, 100%);
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.12rem;
}

.hero-actions, .inventory-actions, .toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
}
.button.primary {
  border-color: var(--safety);
  background: var(--safety);
  color: #101820;
}
.button.secondary {
  border-color: rgba(255,255,255,0.42);
  background: rgba(255,255,255,0.08);
  color: inherit;
}
main .button.secondary {
  border-color: var(--line);
  background: var(--white);
  color: var(--ink);
}

.trust-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
}
.trust-band div {
  padding: 28px clamp(18px, 4vw, 56px);
  background: var(--surface);
}
.trust-band strong, .trust-band span { display: block; }
.trust-band span { color: var(--muted); }

.section-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(300px, 1.2fr);
  gap: clamp(24px, 6vw, 76px);
  padding: 88px clamp(18px, 5vw, 72px);
  align-items: start;
}
.section-copy p:not(.eyebrow), .section-heading p, .inventory-section p {
  color: var(--muted);
}
.selector-panel, .inventory-panel {
  padding: clamp(18px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
label {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
  color: var(--muted);
  font-weight: 700;
}
select, input, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
  color: var(--ink);
  background: var(--white);
}
.recommendation {
  margin-top: 16px;
  padding: 16px;
  border-left: 4px solid var(--blue);
  background: var(--white);
}
.recommendation strong, .recommendation span { display: block; }
.recommendation span { color: var(--muted); }

.products-section, .chart-section, .seo-section {
  padding: 88px clamp(18px, 5vw, 72px);
}
.products-section { background: #edf1f2; }
.section-heading {
  width: min(760px, 100%);
  margin-bottom: 28px;
}
.toolbar { margin-bottom: 22px; }
.filter {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--muted);
}
.filter.active {
  border-color: var(--steel);
  color: white;
  background: var(--steel);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
  gap: 16px;
}
.product-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}
.sku-row {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
}
.sku {
  font-size: 1.5rem;
  font-weight: 900;
}
.price, .quote-badge {
  color: var(--green);
  font-weight: 900;
}
.quote-badge {
  padding: 5px 9px;
  border: 1px solid rgba(22, 113, 95, 0.22);
  border-radius: 999px;
  background: rgba(22, 113, 95, 0.08);
  white-space: nowrap;
}
.spec-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
}
.spec-list.roomy {
  gap: 12px;
  margin-bottom: 18px;
}
.inline-action {
  margin-top: 12px;
}
.buy-row {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 10px;
}
.qty-input { min-width: 0; }

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}
th, td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
th {
  color: var(--muted);
  background: var(--surface);
  font-size: 0.86rem;
  text-transform: uppercase;
}
td.available { color: var(--green); font-weight: 800; }
td.unavailable { color: var(--muted); }
.compact table { min-width: 420px; }
.stock-input { max-width: 110px; }
.order-log {
  display: grid;
  gap: 10px;
  max-height: 320px;
  overflow: auto;
}
.order-entry {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
}
.order-entry p { margin-bottom: 4px; color: var(--muted); }

.seo-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 36px;
  align-items: center;
  color: white;
  background: var(--steel);
}
.keyword-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.keyword-cloud span {
  padding: 9px 12px;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
}
.keyword-cloud a {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: white;
  text-decoration: none;
}
.keyword-cloud.light {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.support-links {
  color: var(--muted);
}
.support-links a {
  font-weight: 800;
}

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: none;
  justify-content: end;
  background: rgba(12, 18, 22, 0.48);
}
.cart-drawer.open { display: flex; }
.cart-shell {
  width: min(460px, 100%);
  height: 100%;
  padding: 22px;
  overflow: auto;
  background: white;
  box-shadow: var(--shadow);
}
.cart-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.icon-button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-weight: 900;
}
.cart-items {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}
.quick-add {
  display: grid;
  grid-template-columns: 1fr 110px;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}
.quick-add button {
  grid-column: 1 / -1;
}
.cart-line {
  display: grid;
  grid-template-columns: 1fr 92px auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}
.cart-line p { margin: 0; color: var(--muted); }
.line-qty {
  min-width: 0;
  padding: 9px;
}
.checkout-form { margin-top: 18px; }

footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 34px clamp(18px, 5vw, 72px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}
footer p { margin-bottom: 0; }

@media (max-width: 880px) {
  .site-header { align-items: stretch; flex-wrap: wrap; }
  nav { order: 3; justify-content: start; width: 100%; overflow-x: auto; padding-bottom: 4px; }
  .cart-button { margin-left: auto; }
  .hero { min-height: 760px; }
  .trust-band, .section-grid, .seo-section { grid-template-columns: 1fr; }
  .buy-row { grid-template-columns: 1fr; }
  .cart-line { grid-template-columns: 1fr; }
  footer { display: grid; }
}

@media (max-width: 560px) {
  h1 { font-size: 2.55rem; }
  h2 { font-size: 2rem; }
  .hero-copy { margin-left: 18px; padding-bottom: 72px; }
  .section-grid, .products-section, .chart-section, .seo-section { padding-top: 58px; padding-bottom: 58px; }
  .brand span:last-child { display: none; }
}
