:root {
  --ink: #17202a;
  --muted: #617083;
  --line: #dce3ea;
  --panel: #ffffff;
  --soft: #f4f7f9;
  --accent: #0f766e;
  --accent-strong: #0b5f59;
  --steel: #314052;
  --warn: #b7791f;
  --white: #ffffff;
  --shadow: 0 18px 40px rgba(23, 32, 42, 0.12);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
}

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

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

p {
  color: var(--muted);
  margin: 0;
}

h1,
h2,
h3 {
  color: var(--ink);
  line-height: 1.08;
  margin: 0;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 4.9rem);
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.6rem);
}

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

.topbar {
  background: #223041;
  color: #d9e3ec;
  font-size: 0.86rem;
}

.topbar__inner,
.topbar__links,
.nav,
.hero__actions,
.proof-row,
.footer-bottom {
  display: flex;
  align-items: center;
}

.topbar__inner {
  justify-content: space-between;
  min-height: 38px;
  gap: 16px;
}

.topbar__links {
  gap: 18px;
}

.topbar a {
  color: #ffffff;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav {
  min-height: 74px;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--ink);
}

.brand img,
.footer-brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #354253;
  font-size: 0.95rem;
  font-weight: 650;
}

.nav-links a:hover,
.text-link:hover {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 6px;
  padding: 9px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

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

.btn--primary:hover {
  background: var(--accent-strong);
}

.btn--secondary {
  background: #ffffff;
  color: var(--ink);
  border-color: #b8c4ce;
}

.btn--ghost {
  background: transparent;
  color: var(--accent);
  border-color: #9fd0ca;
}

.hero {
  background:
    linear-gradient(90deg, rgba(244, 247, 249, 0.98) 0%, rgba(244, 247, 249, 0.94) 50%, rgba(244, 247, 249, 0.62) 100%),
    url("/uploads/resized_metal_industry.jpg") center / cover;
  border-bottom: 1px solid var(--line);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 52px;
  align-items: center;
  min-height: calc(100vh - 112px);
  padding: 72px 0;
}

.hero__copy {
  display: grid;
  gap: 24px;
}

.hero__copy p {
  font-size: clamp(1.04rem, 1.4vw, 1.24rem);
  max-width: 720px;
}

.hero__actions {
  flex-wrap: wrap;
  gap: 12px;
}

.hero__media {
  border: 1px solid #cdd6df;
  background: #ffffff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.eyebrow {
  color: var(--accent-strong);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: 0.78rem;
}

.proof-row {
  flex-wrap: wrap;
  gap: 10px;
}

.proof-row span,
.chip-list span {
  display: inline-flex;
  border: 1px solid #b9c7d2;
  color: #314052;
  background: rgba(255, 255, 255, 0.76);
  border-radius: 999px;
  padding: 7px 12px;
  font-weight: 750;
  font-size: 0.86rem;
}

.section {
  padding: 76px 0;
}

.section--tight {
  padding: 36px 0;
}

.section--muted {
  background: var(--soft);
  border-block: 1px solid var(--line);
}

.section-heading {
  display: grid;
  gap: 12px;
  max-width: 760px;
  margin-bottom: 30px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  background: #ffffff;
}

.stat {
  padding: 24px;
  border-right: 1px solid var(--line);
}

.stat:last-child {
  border-right: 0;
}

.stat strong {
  display: block;
  font-size: 2.1rem;
  line-height: 1;
  color: var(--accent-strong);
}

.stat span {
  display: block;
  color: var(--muted);
  margin-top: 8px;
}

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

.category-card,
.product-card,
.contact-card,
.contact-form-panel,
.spec-panel,
.company-box {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 8px;
}

.category-card {
  overflow: hidden;
  display: grid;
  grid-template-columns: 140px 1fr;
  min-height: 170px;
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-card div {
  padding: 18px;
}

.category-card span,
.product-card span,
.meta-list span {
  color: var(--warn);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.category-card h2 {
  font-size: 1.16rem;
  margin: 6px 0 8px;
}

.category-card p,
.product-card p {
  font-size: 0.93rem;
}

.product-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.product-card > a {
  display: block;
  flex: 1;
}

.product-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #eef3f6;
}

.product-card__body {
  padding: 18px;
}

.product-card h2 {
  font-size: 1.12rem;
  margin: 6px 0 10px;
}

.product-card__actions {
  display: flex;
  justify-content: space-between;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
}

.text-link {
  color: var(--accent-strong);
  font-weight: 850;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 46px;
  align-items: center;
}

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

.split p {
  margin: 16px 0 24px;
}

.step-list {
  list-style: none;
  counter-reset: steps;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}

.step-list li {
  counter-increment: steps;
  position: relative;
  padding: 20px 20px 20px 62px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 750;
}

.step-list li::before {
  content: counter(steps);
  position: absolute;
  left: 18px;
  top: 17px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  background: var(--steel);
  color: #ffffff;
  border-radius: 50%;
  font-size: 0.86rem;
}

.cta-band {
  background: #253447;
  color: #ffffff;
}

.cta-band h2,
.cta-band .eyebrow {
  color: #ffffff;
}

.cta-band p {
  color: #d5dee8;
}

.cta-band__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  align-items: center;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.page-hero {
  background: var(--soft);
  border-bottom: 1px solid var(--line);
  padding: 80px 0;
}

.page-hero--image {
  min-height: 520px;
  display: flex;
  align-items: center;
  color: #ffffff;
  background:
    linear-gradient(90deg, rgba(23, 32, 42, 0.88), rgba(23, 32, 42, 0.55)),
    url("/uploads/hero_valve_final.jpg") center / cover;
}

.page-hero--image h1,
.page-hero--image .eyebrow {
  color: #ffffff;
}

.page-hero--image p {
  color: #e6edf3;
}

.page-hero__content,
.page-hero .container {
  display: grid;
  gap: 18px;
  max-width: 840px;
}

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

.feature {
  border: 1px solid var(--line);
  background: #ffffff;
  border-radius: 8px;
  padding: 18px;
  font-weight: 850;
}

.quote-panel,
.contact-grid,
.product-content {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 32px;
  align-items: start;
}

.quote-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 26px;
  background: #ffffff;
}

.inquiry-form {
  display: grid;
  gap: 14px;
}

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

label {
  display: grid;
  gap: 6px;
  color: #2e3a49;
  font-weight: 750;
  font-size: 0.92rem;
}

input,
textarea {
  width: 100%;
  border: 1px solid #c9d3dc;
  border-radius: 6px;
  padding: 12px 13px;
  font: inherit;
  color: var(--ink);
  background: #ffffff;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus {
  outline: 3px solid rgba(15, 118, 110, 0.18);
  border-color: var(--accent);
}

.hidden-field {
  position: absolute;
  left: -10000px;
}

.form-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.form-status {
  min-height: 24px;
  font-weight: 750;
}

.form-status.is-success {
  color: var(--accent-strong);
}

.form-status.is-error {
  color: #b42318;
}

.product-hero {
  background: var(--soft);
  padding: 66px 0;
  border-bottom: 1px solid var(--line);
}

.product-hero__grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
  gap: 42px;
  align-items: center;
}

.product-hero__image {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
}

.product-hero__image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.product-hero__copy {
  display: grid;
  gap: 18px;
}

.meta-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.meta-list span {
  border: 1px solid #d2dde6;
  border-radius: 999px;
  padding: 7px 11px;
  background: #ffffff;
}

.product-content article h2 {
  margin: 0 0 12px;
  font-size: 1.45rem;
}

.product-content article h2:not(:first-child) {
  margin-top: 30px;
}

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

.check-list li {
  position: relative;
  padding-left: 28px;
  color: #314052;
  font-weight: 650;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 2px;
}

.spec-panel {
  padding: 22px;
}

.spec-panel h2 {
  font-size: 1.3rem;
  margin-bottom: 18px;
}

.spec-panel dl,
.company-box dl {
  margin: 0;
  display: grid;
  gap: 0;
}

.spec-panel dl div,
.company-box dl div {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.spec-panel dl div:last-child,
.company-box dl div:last-child {
  border-bottom: 0;
}

dt {
  color: var(--muted);
  font-weight: 850;
}

dd {
  margin: 0;
  color: var(--ink);
}

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

.company-box {
  padding: 26px;
}

.company-box h2 {
  margin-bottom: 18px;
}

.contact-grid {
  grid-template-columns: 0.75fr 1.25fr;
}

.contact-card,
.contact-form-panel {
  padding: 24px;
}

.contact-card {
  display: grid;
  gap: 14px;
}

.contact-card a {
  color: var(--accent-strong);
  font-weight: 850;
}

.contact-form-panel h2 {
  margin-bottom: 18px;
}

.site-footer {
  background: #17202a;
  color: #d7e0e9;
  padding: 58px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.75fr 0.9fr 1.1fr;
  gap: 32px;
}

.site-footer h2 {
  color: #ffffff;
  font-size: 1rem;
  margin-bottom: 14px;
}

.site-footer p,
.site-footer a {
  color: #c6d2dc;
  display: block;
  margin: 8px 0;
}

.footer-brand {
  color: #ffffff;
  margin-bottom: 12px;
}

.footer-bottom {
  justify-content: space-between;
  gap: 16px;
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: #aebccc;
  font-size: 0.9rem;
}

@media (max-width: 980px) {
  .nav-toggle {
    display: block;
  }

  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-links.is-open {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 112px;
    display: grid;
    gap: 0;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .nav-links.is-open a {
    padding: 15px 18px;
    border-bottom: 1px solid var(--line);
  }

  .nav-links.is-open a:last-child {
    border-bottom: 0;
  }

  .hero__grid,
  .split,
  .split--reverse,
  .quote-panel,
  .contact-grid,
  .product-content,
  .product-hero__grid,
  .cta-band__inner {
    grid-template-columns: 1fr;
  }

  .hero__grid {
    min-height: auto;
    padding: 58px 0;
  }

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

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

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

  .topbar__links {
    flex-wrap: wrap;
  }

  .brand span {
    max-width: 190px;
    line-height: 1.1;
  }

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

  .page-hero--image {
    min-height: 440px;
  }

  .stats-grid,
  .category-grid,
  .product-grid,
  .feature-grid,
  .feature-grid--compact,
  .footer-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .stat {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .stat:last-child {
    border-bottom: 0;
  }

  .category-card {
    grid-template-columns: 112px 1fr;
  }

  .quote-panel,
  .contact-card,
  .contact-form-panel,
  .company-box {
    padding: 20px;
  }

  .spec-panel dl div,
  .company-box dl div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}
