:root {
  --bg: #f5f3ef;
  --surface: #fffdf9;
  --surface-strong: #f0ece3;
  --ink: #171717;
  --muted: #55514a;
  --line: #d5cec3;
  --accent: #1f5e59;
  --accent-2: #a86c2a;
  --dark: #12211f;
  --white: #ffffff;
  --shadow: 0 16px 40px rgba(18, 33, 31, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

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

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

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

.container {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 34px;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(255, 253, 249, 0.9);
  border-bottom: 1px solid rgba(213, 206, 195, 0.8);
}

.utility-bar {
  position: sticky;
  top: 0;
  z-index: 21;
  background: var(--dark);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.86rem;
}

.utility-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 34px;
  gap: 18px;
}

.utility-wrap div {
  display: flex;
  gap: 16px;
}

.utility-wrap a {
  color: var(--white);
  font-weight: 700;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 24px;
}

.brand {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--dark);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: center;
}

.site-nav a {
  color: var(--muted);
  font-weight: 600;
}

.site-nav a[aria-current="page"] {
  color: var(--dark);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 8px;
  padding: 10px 12px;
}

.hero {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: end;
  background-image: url("assets/images/hero-hardware.png");
  background-image: image-set(
    url("assets/images/hero-hardware.webp") type("image/webp"),
    url("assets/images/hero-hardware.png") type("image/png")
  );
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(18, 33, 31, 0.62) 0%, rgba(18, 33, 31, 0.34) 40%, rgba(18, 33, 31, 0.08) 100%),
    linear-gradient(180deg, rgba(18, 33, 31, 0.04) 0%, rgba(18, 33, 31, 0.28) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  color: var(--white);
  padding: 124px 0 92px;
  max-width: 700px;
}

.eyebrow,
.section-kicker,
.sheet-label {
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: 0.78rem;
  font-weight: 700;
}

.eyebrow,
.section-kicker {
  color: var(--accent-2);
}

.hero .eyebrow {
  color: #f4c38a;
}

h1,
h2,
h3,
strong {
  line-height: 1.1;
}

h1 {
  margin: 14px 0 18px;
  font-size: clamp(2.7rem, 5vw, 5.2rem);
}

h2 {
  margin: 0 0 18px;
  font-size: clamp(1.9rem, 3vw, 3.1rem);
}

h3 {
  margin: 0 0 12px;
  font-size: 1.2rem;
}

p {
  margin: 0;
}

.hero-copy,
.section-copy {
  color: var(--muted);
  font-size: 1.05rem;
}

.hero h1 {
  max-width: 8.5ch;
}

.hero-copy {
  color: rgba(255, 255, 255, 0.88);
  max-width: 620px;
}

.page-hero .hero-copy {
  color: var(--muted);
}

.hero-actions,
.cta-actions,
.cta-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-proof span {
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  padding: 8px 12px;
  font-size: 0.9rem;
  font-weight: 700;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 700;
}

.button-primary {
  background: var(--accent);
  color: var(--white);
}

.button-secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--white);
}

.page-hero .button-secondary,
.section-cta .button-secondary,
.cta-inline .button-secondary {
  border-color: var(--line);
  color: var(--ink);
}

.section {
  padding: 84px 0;
}

.section-dark {
  background: var(--dark);
  color: var(--white);
}

.section-dark .section-kicker {
  color: #f4c38a;
}

.section-dark .section-copy,
.section-dark p {
  color: rgba(255, 255, 255, 0.78);
}

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

.section-cta {
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-strong) 100%);
}

.intro-grid,
.page-hero-grid,
.capability-grid,
.contact-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 32px;
  align-items: center;
}

.page-hero {
  padding: 110px 0 52px;
}

.product-grid,
.oem-grid,
.buyer-columns,
.trust-grid,
.spec-grid,
.faq-grid,
.application-grid,
.process-grid {
  display: grid;
  gap: 18px;
}

.product-grid {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  margin-top: 36px;
}

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

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

.trust-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 34px;
}

.spec-grid,
.faq-grid {
  margin-top: 34px;
}

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

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

.application-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 34px;
}

.process-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 34px;
}

.product-card,
.oem-grid article,
.buyer-columns article,
.trust-grid article,
.spec-grid article,
.faq-grid article,
.application-grid article,
.process-grid article,
.catalog-sheet,
.contact-summary,
.contact-form,
.table-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.product-card p,
.oem-grid p,
.buyer-columns p,
.trust-grid p,
.spec-grid p,
.faq-grid p,
.application-grid p,
.process-grid p,
.contact-summary p,
.contact-form p {
  color: var(--muted);
}

.product-card span,
.process-grid span {
  display: block;
  color: var(--accent-2);
  font-size: 0.78rem;
  font-weight: 800;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.product-card a {
  display: inline-block;
  color: var(--accent);
  font-weight: 800;
  margin-top: 16px;
}

.trust-grid span {
  display: inline-block;
  color: var(--accent-2);
  font-weight: 800;
  margin-bottom: 14px;
}

.spec-grid span {
  display: block;
  color: var(--accent-2);
  font-size: 0.78rem;
  font-weight: 800;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.spec-grid strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 12px;
}

.trust-grid a {
  color: var(--accent);
  font-weight: 700;
}

.feature-list {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
}

.feature-list li {
  position: relative;
  padding-left: 18px;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent-2);
}

.rfq-list {
  margin-top: 0;
}

.compact {
  margin-top: 18px;
}

.media-panel {
  min-height: 360px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(213, 206, 195, 0.55);
}

.media-panel picture,
.media-panel img {
  display: block;
  width: 100%;
  height: 100%;
}

.media-panel img {
  object-fit: cover;
}

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

.stat-strip > div {
  padding: 24px 18px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stat-value {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 8px;
}

.stat-label {
  color: var(--muted);
}

.cta-band {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}

.service-band {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 32px;
  box-shadow: var(--shadow);
}

.service-list {
  display: grid;
  gap: 10px;
}

.service-list span {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
  color: var(--dark);
  font-weight: 800;
  padding: 12px 14px;
}

.category-stack {
  display: grid;
  gap: 20px;
}

.category-row {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.category-row:last-child {
  border-bottom: 1px solid var(--line);
}

.data-table {
  display: grid;
}

.table-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

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

.table-head span {
  color: var(--ink);
  font-weight: 700;
}

.catalog-panel {
  display: grid;
  gap: 18px;
}

.catalog-sheet strong {
  display: block;
  font-size: 1.15rem;
  margin-top: 10px;
}

.contact-grid {
  align-items: start;
}

.contact-link {
  display: inline-block;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 14px 0 16px;
}

.contact-points {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.contact-points span {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 4px;
}

.contact-form {
  display: grid;
  gap: 16px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--white);
  padding: 14px 14px;
  color: var(--ink);
}

.contact-form input[type="file"] {
  padding: 12px;
  background: var(--surface-strong);
}

.form-button {
  width: 100%;
}

.form-note,
.file-help,
.file-summary {
  color: var(--muted);
  font-size: 0.92rem;
}

.file-help,
.file-summary {
  display: block;
  font-weight: 400;
}

.file-summary {
  color: var(--accent);
  font-weight: 700;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.footer-wrap {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 24px;
  padding: 30px 0 36px;
  align-items: start;
}

.footer-brand {
  display: inline-block;
  margin-bottom: 8px;
}

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-contact {
  display: flex;
  justify-content: flex-end;
  align-items: start;
}

.quick-rfq {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 14px 34px rgba(18, 33, 31, 0.22);
  font-weight: 800;
}

.quick-rfq span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.86rem;
  font-weight: 700;
}

@media (max-width: 980px) {
  .intro-grid,
  .page-hero-grid,
  .capability-grid,
  .contact-grid,
  .cta-band,
  .service-band,
  .category-row,
  .footer-wrap {
    grid-template-columns: 1fr;
  }

  .product-grid,
  .oem-grid,
  .buyer-columns,
  .trust-grid,
  .spec-grid,
  .faq-grid,
  .application-grid,
  .process-grid,
  .stat-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-contact {
    justify-content: start;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 28px, 1160px);
  }

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

  .site-nav {
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 20px 22px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
  }

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

  .hero {
    min-height: 74vh;
    background-position: 60% center;
  }

  .hero h1 {
    font-size: 2.55rem;
    max-width: 7.8ch;
  }

  .hero-content {
    padding: 104px 0 72px;
  }

  .page-hero h1 {
    font-size: 2.7rem;
    max-width: 9ch;
  }

  .section,
  .page-hero {
    padding: 68px 0;
  }

  .product-grid,
  .oem-grid,
  .buyer-columns,
  .trust-grid,
  .spec-grid,
  .faq-grid,
  .application-grid,
  .process-grid,
  .stat-strip,
  .table-row {
    grid-template-columns: 1fr;
  }

  .site-header {
    top: 0;
  }

  .utility-bar {
    position: static;
  }

  .utility-wrap {
    align-items: flex-start;
    flex-direction: column;
    padding: 8px 0;
  }

  .media-panel {
    min-height: 280px;
  }

  .button,
  .form-button {
    width: 100%;
  }

  .quick-rfq {
    left: 14px;
    right: 14px;
    justify-content: center;
    bottom: 14px;
  }
}
