:root {
  --ink: #151718;
  --muted: #5d6872;
  --line: #d9e0e4;
  --paper: #f6f7f5;
  --surface: #ffffff;
  --charcoal: #252a2e;
  --green: #176c58;
  --green-dark: #0f4f41;
  --red: #bd3b2f;
  --yellow: #f2b84b;
  --shadow: 0 16px 42px rgba(28, 35, 40, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, "Segoe UI", sans-serif;
  line-height: 1.45;
}

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

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 24px;
  justify-content: space-between;
  min-height: 72px;
  padding: 14px 32px;
  background: rgba(246, 247, 245, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #ffffff;
  background: var(--green);
  border-radius: 6px;
  font-weight: 800;
  font-size: 22px;
}

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

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

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-links a,
.top-contact {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 6px;
  color: var(--charcoal);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

.nav-links a:hover,
.top-contact:hover {
  background: #e8edea;
}

.top-contact {
  color: var(--green-dark);
  background: #e7f2ed;
}

.quote-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  gap: 36px;
  align-items: start;
  padding: 48px clamp(20px, 5vw, 72px);
  background: #eef2ef;
  border-bottom: 1px solid var(--line);
}

.intro-copy {
  max-width: 820px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 18px;
  font-size: clamp(32px, 5vw, 60px);
  line-height: 1.02;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.12;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.15;
}

.lead {
  max-width: 670px;
  color: var(--muted);
  font-size: 18px;
}

.action-row,
.resource-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0;
}

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 16px;
  border: 1px solid transparent;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
}

.primary {
  color: #ffffff;
  background: var(--green);
}

.primary:hover {
  background: var(--green-dark);
}

.secondary {
  color: var(--charcoal);
  background: #ffffff;
  border-color: var(--line);
}

.secondary:hover {
  border-color: #9da9ad;
}

.ghost {
  color: var(--green-dark);
  background: #ecf5f0;
  border-color: #b9d7c9;
}

.hero-media {
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) repeat(2, minmax(150px, 0.8fr));
  gap: 12px;
  max-width: 780px;
  margin: 22px 0 0;
}

.hero-shot {
  position: relative;
  min-height: 150px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.hero-shot-large {
  min-height: 178px;
}

.hero-shot img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

.hero-shot figcaption {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 6px 8px;
  color: #ffffff;
  background: rgba(18, 22, 23, 0.78);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 900;
}

.quick-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 760px;
  margin: 24px 0 0;
  background: var(--line);
  border: 1px solid var(--line);
}

.quick-stats div {
  min-height: 92px;
  padding: 18px;
  background: #ffffff;
}

.quick-stats dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.quick-stats dd {
  margin: 8px 0 0;
  font-size: 18px;
  font-weight: 800;
}

.factory-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 780px;
  margin: 14px 0 0;
}

.factory-points span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  color: var(--green-dark);
  background: #dfece7;
  border: 1px solid #bfd8ce;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 900;
}

.quote-panel {
  position: sticky;
  top: 92px;
  padding: 22px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  font-weight: 900;
}

.text-button {
  border: 0;
  color: var(--red);
  background: transparent;
  font-weight: 800;
  cursor: pointer;
}

.is-hidden {
  display: none !important;
}

.selected-box {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 52px;
  padding: 12px;
  margin-bottom: 16px;
  background: #f4f7f5;
  border: 1px dashed #b7c3bd;
  border-radius: 6px;
}

.selected-box.is-empty {
  display: none;
}

.empty-state {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.selected-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 6px 9px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 800;
}

.selected-pill button {
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: var(--red);
  line-height: 1;
  cursor: pointer;
}

.quote-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.quote-form label {
  display: grid;
  gap: 6px;
  color: #2d3438;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.quote-form input,
.quote-form select,
.quote-form textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 11px;
  border: 1px solid #c9d2d6;
  border-radius: 6px;
  color: var(--ink);
  background: #ffffff;
  outline: none;
}

.quote-form textarea {
  resize: vertical;
}

.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(23, 108, 88, 0.14);
}

.wide {
  grid-column: 1 / -1;
}

.hidden-field {
  display: none;
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: none;
}

.form-status.is-success {
  color: var(--green-dark);
}

.form-status.is-error {
  color: var(--red);
}

.product-section {
  padding: 54px clamp(20px, 5vw, 72px);
  background: var(--surface);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 28px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.filter {
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--charcoal);
  background: #ffffff;
  font-weight: 800;
  cursor: pointer;
}

.filter.active,
.filter:hover {
  color: #ffffff;
  background: var(--charcoal);
  border-color: var(--charcoal);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.product-card {
  display: grid;
  grid-template-rows: 220px 1fr;
  min-height: 540px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.product-card.is-hidden {
  display: none;
}

.product-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: #ffffff;
}

.product-copy {
  display: flex;
  flex-direction: column;
  padding: 20px;
}

.category {
  margin-bottom: 10px;
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.product-copy p {
  color: var(--muted);
}

.product-copy ul {
  display: grid;
  gap: 6px;
  margin: 8px 0 22px;
  padding-left: 18px;
  color: #333b40;
}

.add-button {
  min-height: 42px;
  margin-top: auto;
  border: 1px solid var(--charcoal);
  border-radius: 6px;
  color: var(--charcoal);
  background: #ffffff;
  font-weight: 900;
  cursor: pointer;
}

.add-button:hover {
  color: #ffffff;
  background: var(--charcoal);
}

.factory-band {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.4fr);
  gap: 36px;
  padding: 58px clamp(20px, 5vw, 72px);
  color: #ffffff;
  background: #143d35;
}

.factory-band .eyebrow {
  color: var(--yellow);
}

.factory-copy p {
  max-width: 620px;
  margin: 16px 0 0;
  color: #d9e6e1;
}

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

.factory-grid div {
  min-height: 164px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
}

.factory-grid span {
  display: block;
  margin-bottom: 14px;
  color: var(--yellow);
  font-size: 13px;
  font-weight: 900;
}

.factory-grid strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}

.factory-grid p {
  margin: 0;
  color: #d9e6e1;
}

.delivery-band {
  display: grid;
  grid-template-columns: 0.9fr 1.4fr;
  gap: 42px;
  padding: 58px clamp(20px, 5vw, 72px);
  color: #ffffff;
  background: var(--charcoal);
}

.delivery-band .eyebrow {
  color: var(--yellow);
}

.step-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.step {
  min-height: 190px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.step span {
  display: block;
  margin-bottom: 18px;
  color: var(--yellow);
  font-size: 13px;
  font-weight: 900;
}

.step strong {
  display: block;
  margin-bottom: 10px;
  font-size: 18px;
}

.step p {
  margin: 0;
  color: #d9e0e4;
}

.resource-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 42px clamp(20px, 5vw, 72px);
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.resource-strip p {
  max-width: 620px;
  margin: 8px 0 0;
  color: var(--muted);
}

.catalog-library {
  padding: 54px clamp(20px, 5vw, 72px);
  background: #f8faf8;
  border-bottom: 1px solid var(--line);
}

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

.catalog-card {
  display: grid;
  gap: 8px;
  min-height: 138px;
  padding: 18px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
}

.catalog-card:hover {
  border-color: var(--green);
  box-shadow: 0 12px 28px rgba(28, 35, 40, 0.1);
}

.catalog-card span {
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
}

.catalog-card strong {
  font-size: 18px;
  line-height: 1.18;
}

.catalog-card small {
  align-self: end;
  color: var(--muted);
  font-weight: 800;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px clamp(20px, 5vw, 72px);
  color: #dfe8e4;
  background: #121617;
}

.footer strong,
.footer span,
.footer a {
  display: block;
}

.footer span {
  color: #9eacb2;
  font-size: 14px;
}

.footer-contact {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-contact a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 800;
}

@media (max-width: 1100px) {
  .quote-workspace,
  .factory-band,
  .delivery-band {
    grid-template-columns: 1fr;
  }

  .quote-panel {
    position: static;
  }

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

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

  .hero-media {
    grid-template-columns: 1fr 1fr;
  }

  .hero-shot-large {
    grid-column: 1 / -1;
  }

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

@media (max-width: 760px) {
  .topbar {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 20px;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .quote-workspace,
  .product-section,
  .factory-band,
  .delivery-band,
  .resource-strip,
  .footer {
    padding-left: 18px;
    padding-right: 18px;
  }

  .quick-stats,
  .quote-form,
  .product-grid,
  .hero-media,
  .factory-grid,
  .catalog-grid,
  .step-list {
    grid-template-columns: 1fr;
  }

  .hero-shot,
  .hero-shot-large {
    min-height: 180px;
  }

  .product-card {
    min-height: auto;
  }

  .section-head,
  .resource-strip,
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .filters {
    justify-content: flex-start;
  }
}
