:root {
  --ink: #16212f;
  --muted: #5e6875;
  --soft: #f3f6f8;
  --paper: #ffffff;
  --line: #dbe1e7;
  --line-dark: #c4ccd5;
  --navy: #142a44;
  --navy-2: #203a58;
  --teal: #197976;
  --gold: #bd8731;
  --red: #b8322a;
  --max: 1200px;
  --radius: 6px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #eef2f5;
  font-family: Arial, "Helvetica Neue", sans-serif;
  line-height: 1.5;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

table {
  width: 100%;
  border-collapse: collapse;
}

.topbar {
  color: #e8eef5;
  background: #132235;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  width: min(var(--max), calc(100% - 32px));
  min-height: 36px;
  margin: 0 auto;
  font-size: 13px;
}

.topbar-inner div {
  display: flex;
  gap: 18px;
  font-weight: 700;
}

.topbar a {
  color: #ffffff;
}

.main-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  min-height: 72px;
  padding: 10px max(16px, calc((100vw - var(--max)) / 2));
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 250px;
}

.brand-logo {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: #fff;
  background: var(--navy);
  border-radius: 4px;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 18px;
}

.brand small {
  max-width: 420px;
  color: var(--muted);
  font-size: 12px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  color: #26384c;
  font-size: 14px;
  font-weight: 800;
}

.nav-links a:hover,
.quick-cats a:hover,
.sidebar a:hover {
  color: var(--teal);
}

.supplier-hero {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  background: var(--navy);
}

.supplier-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 26, 43, 0.92), rgba(11, 26, 43, 0.72) 50%, rgba(11, 26, 43, 0.34)),
    linear-gradient(0deg, rgba(11, 26, 43, 0.38), transparent 50%);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 34px;
  align-items: center;
  width: min(var(--max), calc(100% - 32px));
  min-height: 560px;
  margin: 0 auto;
  padding: 58px 0;
}

.hero-copy {
  max-width: 720px;
  color: #fff;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-copy p:not(.eyebrow) {
  max-width: 650px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 17px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.btn.primary {
  color: #fff;
  background: var(--teal);
}

.btn.primary:hover {
  background: #126663;
}

.btn.outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.08);
}

.btn.wide {
  width: 100%;
}

.supplier-card {
  padding: 22px;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
}

.supplier-card h2 {
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--teal);
  font-size: 20px;
}

.supplier-card dl {
  display: grid;
  gap: 0;
  margin: 0 0 18px;
}

.supplier-card dl div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.supplier-card dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.supplier-card dd {
  margin: 0;
  color: #253344;
  font-size: 13px;
  font-weight: 700;
}

.quick-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  width: min(var(--max), calc(100% - 32px));
  margin: 18px auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.quick-cats a {
  flex: 1 1 170px;
  padding: 14px 16px;
  color: #2c3a49;
  border-right: 1px solid var(--line);
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

.quick-cats a:last-child {
  border-right: 0;
}

.page-grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 22px;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto 42px;
}

.sidebar {
  position: sticky;
  top: 92px;
  align-self: start;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.sidebar h2 {
  margin: 0;
  padding: 15px 16px;
  color: #fff;
  background: var(--navy-2);
  border-radius: var(--radius) var(--radius) 0 0;
  font-size: 17px;
}

.sidebar > a {
  display: block;
  padding: 12px 16px;
  color: #26384c;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  font-weight: 700;
}

.side-box {
  margin: 16px;
  padding: 16px;
  background: #f7f4ee;
  border-left: 4px solid var(--gold);
}

.side-box strong {
  display: block;
  font-size: 16px;
}

.side-box p {
  margin: 8px 0 12px;
  color: var(--muted);
  font-size: 13px;
}

.side-box a {
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
}

.content {
  min-width: 0;
}

.section {
  margin-bottom: 22px;
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.section-title h2,
.company-layout h2,
.quote-section h2 {
  margin: 0;
  color: #172538;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.15;
  letter-spacing: 0;
}

.catalog-grid {
  display: grid;
  gap: 16px;
}

.catalog-card {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 18px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.catalog-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: 4px;
}

.catalog-card h3 {
  margin: 2px 0 8px;
  color: var(--navy);
  font-size: 22px;
}

.catalog-card p {
  margin: 0 0 14px;
  color: var(--muted);
}

.catalog-card th,
.catalog-card td {
  padding: 8px 10px;
  border: 1px solid var(--line);
  font-size: 13px;
  text-align: left;
}

.catalog-card th {
  width: 118px;
  color: #405064;
  background: #f4f7f9;
}

.catalog-card td {
  color: #26384c;
}

.pattern-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.pattern-strip figure {
  margin: 0;
}

.pattern-strip img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.pattern-strip figcaption {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}

.trade-panel {
  border-top: 3px solid var(--teal);
}

.info-table {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-bottom: 0;
}

.info-table div {
  display: grid;
  grid-template-columns: 150px 1fr;
  min-height: 58px;
  border-bottom: 1px solid var(--line);
}

.info-table div:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.info-table span,
.info-table strong {
  display: flex;
  align-items: center;
  padding: 12px;
  font-size: 13px;
}

.info-table span {
  color: #334154;
  background: #f4f7f9;
  font-weight: 800;
}

.info-table strong {
  color: #253344;
  font-weight: 700;
}

.company-layout {
  display: grid;
  grid-template-columns: 42% 1fr;
  gap: 24px;
  align-items: center;
}

.company-layout img {
  width: 100%;
  min-height: 320px;
  object-fit: cover;
  border-radius: var(--radius);
}

.company-layout p:not(.eyebrow) {
  color: var(--muted);
  font-size: 16px;
}

.price-note {
  padding: 12px 14px;
  background: #f7f4ee;
  border-left: 4px solid var(--gold);
  border-radius: 4px;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.badges span {
  padding: 7px 10px;
  color: #233248;
  background: #edf3f3;
  border: 1px solid #d4e4e3;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 800;
}

.process ol {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: steps;
}

.process li {
  position: relative;
  min-height: 150px;
  padding: 44px 14px 16px;
  background: #f8fafb;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.process li::before {
  position: absolute;
  top: 14px;
  left: 14px;
  content: "0" counter(steps);
  counter-increment: steps;
  color: var(--teal);
  font-size: 19px;
  font-weight: 900;
}

.process strong,
.process span {
  display: block;
}

.process strong {
  margin-bottom: 8px;
  color: #1d2b3d;
  font-size: 15px;
}

.process span {
  color: var(--muted);
  font-size: 13px;
}

.quote-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 28px;
  background:
    linear-gradient(90deg, rgba(20, 42, 68, 0.05), transparent 45%),
    #fff;
}

.quote-intro {
  color: var(--muted);
  font-size: 16px;
}

.quote-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.quote-form label {
  display: grid;
  gap: 7px;
  color: #26384c;
  font-size: 13px;
  font-weight: 800;
}

.quote-form .full {
  grid-column: 1 / -1;
}

.quote-form input,
.quote-form select,
.quote-form textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-dark);
  border-radius: 4px;
  font: inherit;
}

.quote-form textarea {
  resize: vertical;
}

.quote-form button {
  justify-self: start;
}

.form-note {
  align-self: center;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  padding: 30px max(16px, calc((100vw - var(--max)) / 2));
  color: #fff;
  background: #132235;
}

.footer p {
  margin: 5px 0 0;
  color: rgba(255, 255, 255, 0.68);
}

.footer a {
  color: #fff;
  font-weight: 800;
}

@media (max-width: 960px) {
  .main-nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 12px 16px;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    gap: 20px;
    padding-bottom: 4px;
  }

  .hero-grid,
  .page-grid,
  .company-layout,
  .quote-section {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .catalog-card {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .info-table,
  .process ol {
    grid-template-columns: 1fr 1fr;
  }

  .pattern-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .info-table div:nth-child(odd) {
    border-right: 0;
  }
}

@media (max-width: 640px) {
  .topbar-inner,
  .footer {
    align-items: flex-start;
    flex-direction: column;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .brand {
    min-width: 0;
  }

  .nav-links {
    flex-wrap: wrap;
    overflow-x: visible;
    gap: 10px 18px;
  }

  .supplier-hero,
  .hero-grid {
    min-height: 680px;
  }

  .hero-grid {
    padding: 34px 0;
  }

  .supplier-card dl div,
  .catalog-card,
  .info-table,
  .info-table div,
  .process ol,
  .quote-form {
    grid-template-columns: 1fr;
  }

  .catalog-card img {
    height: 210px;
  }

  .pattern-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pattern-strip img {
    height: auto;
  }

  .quick-cats a {
    flex-basis: 50%;
    border-bottom: 1px solid var(--line);
  }

  .section {
    padding: 18px;
  }
}
