:root {
  --ink: #1d2a2e;
  --muted: #5d6d70;
  --teal: #176f6f;
  --teal-dark: #0f5555;
  --clay: #c66a3a;
  --gold: #d2a546;
  --paper: #f7f5ef;
  --surface: #ffffff;
  --mist: #e8efed;
  --line: #cbd8d5;
  --shadow: 0 18px 50px rgba(29, 42, 46, 0.12);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

p {
  margin: 0 0 1rem;
}

ul,
ol {
  margin: 0;
  padding-left: 1.25rem;
}

li + li {
  margin-top: 0.35rem;
}

.skip-link {
  background: var(--ink);
  color: #fff;
  left: 1rem;
  padding: 0.7rem 1rem;
  position: absolute;
  top: -4rem;
  z-index: 30;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  align-items: center;
  background: rgba(247, 245, 239, 0.95);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 1.5rem;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 5vw;
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand {
  align-items: center;
  display: inline-flex;
  flex: 0 0 auto;
  gap: 0.7rem;
  font-weight: 800;
  min-width: 0;
}

.brand-mark {
  align-items: center;
  background: var(--teal);
  color: #fff;
  display: inline-flex;
  font-size: 0.85rem;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.brand-text {
  display: grid;
  line-height: 1.12;
}

.brand-text small {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
}

.site-nav {
  align-items: center;
  display: flex;
  gap: 0.2rem;
  justify-content: flex-end;
}

.site-nav a {
  border-bottom: 2px solid transparent;
  color: #26363a;
  font-size: 0.94rem;
  font-weight: 700;
  padding: 1.55rem 0.65rem 1.45rem;
}

.site-nav a:hover,
.site-nav a:focus,
.site-nav a[aria-current="page"] {
  border-color: var(--clay);
  color: var(--teal-dark);
}

.nav-toggle {
  background: var(--ink);
  border: 0;
  color: #fff;
  cursor: pointer;
  display: none;
  font: inherit;
  font-weight: 800;
  min-height: 44px;
  padding: 0.6rem 0.95rem;
}

.container {
  margin: 0 auto;
  max-width: var(--max);
  padding: 0 5vw;
}

.section {
  padding: 5rem 0;
}

.section--mist {
  background: var(--mist);
}

.section--surface {
  background: var(--surface);
}

.section-header {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 2rem;
  max-width: 780px;
}

.eyebrow {
  color: var(--clay);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.14;
  margin: 0;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  max-width: 920px;
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.55rem);
}

h3 {
  font-size: 1.12rem;
}

.lead {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 760px;
}

.hero {
  align-items: center;
  background:
    linear-gradient(90deg, rgba(13, 26, 30, 0.86), rgba(13, 26, 30, 0.62) 46%, rgba(13, 26, 30, 0.2)),
    url("../images/hero-factory-floor.png") center / cover no-repeat;
  color: #fff;
  display: flex;
  min-height: min(720px, calc(100vh - 88px));
  overflow: hidden;
  padding: 5rem 0 4rem;
}

.hero .container {
  width: 100%;
}

.hero-copy {
  display: grid;
  gap: 1.4rem;
  max-width: 820px;
}

.hero-copy .eyebrow {
  color: #f1c76d;
}

.hero-copy p {
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.14rem;
  max-width: 700px;
}

.hero-actions,
.cta-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.button {
  align-items: center;
  border: 2px solid transparent;
  display: inline-flex;
  font-weight: 900;
  justify-content: center;
  min-height: 48px;
  padding: 0.78rem 1.05rem;
  transition: transform 160ms ease, background 160ms ease, border 160ms ease;
}

.button:hover,
.button:focus {
  transform: translateY(-1px);
}

.button--primary {
  background: var(--clay);
  color: #fff;
}

.button--primary:hover,
.button--primary:focus {
  background: #a9552d;
}

.button--secondary {
  background: #fff;
  color: var(--ink);
}

.button--secondary:hover,
.button--secondary:focus {
  border-color: var(--clay);
}

.button--ghost {
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
}

.button--ghost:hover,
.button--ghost:focus {
  background: rgba(255, 255, 255, 0.12);
}

.hero-proof {
  border-top: 1px solid rgba(255, 255, 255, 0.24);
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 2.6rem;
  max-width: 820px;
  padding-top: 1.4rem;
}

.hero-proof strong,
.metric strong {
  display: block;
  font-size: 1.28rem;
}

.hero-proof span {
  color: rgba(255, 255, 255, 0.75);
  display: block;
  font-size: 0.92rem;
}

.grid {
  display: grid;
  gap: 1.25rem;
}

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

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

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

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(29, 42, 46, 0.06);
  display: grid;
  gap: 0.9rem;
  overflow: hidden;
}

.card__body {
  display: grid;
  gap: 0.75rem;
  padding: 1.15rem;
}

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

.card img {
  aspect-ratio: 3 / 2;
  height: auto;
  object-fit: cover;
  width: 100%;
}

.card a:not(.button),
.text-link {
  color: var(--teal-dark);
  font-weight: 900;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2rem;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
  padding: 0;
}

.pill-list li {
  background: #edf3f1;
  border: 1px solid var(--line);
  color: #314347;
  font-size: 0.86rem;
  font-weight: 800;
  margin: 0;
  padding: 0.36rem 0.55rem;
}

.split {
  align-items: center;
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
}

.split img {
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.feature-list {
  display: grid;
  gap: 0.8rem;
  list-style: none;
  padding: 0;
}

.feature-list li {
  background: rgba(255, 255, 255, 0.72);
  border-left: 4px solid var(--teal);
  margin: 0;
  padding: 0.85rem 1rem;
}

.metric-row {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metric {
  border-top: 3px solid var(--gold);
  padding-top: 0.9rem;
}

.metric span {
  color: var(--muted);
}

.page-hero {
  background: var(--ink);
  color: #fff;
  padding: 5.5rem 0 4.5rem;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.08rem;
  max-width: 780px;
}

.breadcrumb {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.breadcrumb a {
  text-decoration: underline;
  text-underline-offset: 0.2rem;
}

.content-block {
  display: grid;
  gap: 1.15rem;
}

.table-wrap {
  border: 1px solid var(--line);
  overflow-x: auto;
}

table {
  background: var(--surface);
  border-collapse: collapse;
  min-width: 720px;
  width: 100%;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 0.85rem 1rem;
  text-align: left;
  vertical-align: top;
}

th {
  background: #edf3f1;
  color: #25363a;
  font-size: 0.9rem;
}

.process {
  counter-reset: step;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.process__step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem;
}

.process__step::before {
  background: var(--teal);
  color: #fff;
  content: counter(step);
  counter-increment: step;
  display: inline-flex;
  font-weight: 900;
  height: 30px;
  justify-content: center;
  margin-bottom: 0.8rem;
  width: 30px;
}

.faq {
  display: grid;
  gap: 0.85rem;
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem 1.1rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 900;
}

.faq p {
  color: var(--muted);
  margin: 0.7rem 0 0;
}

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

.field {
  display: grid;
  gap: 0.35rem;
}

.field--full {
  grid-column: 1 / -1;
}

label {
  font-weight: 850;
}

input,
select,
textarea {
  border: 1px solid #b8c7c4;
  color: var(--ink);
  font: inherit;
  min-height: 46px;
  padding: 0.7rem 0.8rem;
  width: 100%;
}

textarea {
  min-height: 150px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--teal);
  outline: 3px solid rgba(23, 111, 111, 0.16);
}

.form-note {
  background: #edf3f1;
  border: 1px solid var(--line);
  color: #384c50;
  padding: 0.85rem 1rem;
}

.site-footer {
  background: #172427;
  color: rgba(255, 255, 255, 0.78);
  padding: 3rem 0;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1.1fr 0.9fr 0.9fr;
}

.site-footer strong,
.site-footer h2,
.site-footer h3 {
  color: #fff;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.86);
  text-decoration: underline;
  text-underline-offset: 0.2rem;
}

.footer-links {
  display: grid;
  gap: 0.35rem;
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin: 0;
}

@media (max-width: 980px) {
  .grid--4,
  .grid--3,
  .metric-row,
  .process {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .site-header {
    min-height: 64px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 28px rgba(29, 42, 46, 0.12);
    display: none;
    flex-direction: column;
    left: 0;
    padding: 0.5rem 5vw 1rem;
    position: absolute;
    right: 0;
    top: 64px;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    border: 1px solid transparent;
    padding: 0.75rem 0;
    width: 100%;
  }

  .hero {
    min-height: auto;
    padding: 4rem 0 3.5rem;
  }

  .hero-proof,
  .form-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .grid--4,
  .grid--3,
  .grid--2,
  .metric-row,
  .process {
    grid-template-columns: 1fr;
  }

  .brand-text small {
    display: none;
  }

  .section {
    padding: 3.5rem 0;
  }

  .page-hero {
    padding: 4rem 0 3rem;
  }

  .button {
    width: 100%;
  }
}
