:root {
  --ink: #244b58;
  --muted: #5b747b;
  --line: #d7e6eb;
  --paper: #f5fbfc;
  --white: #ffffff;
  --blue: #3f7889;
  --green: #58afca;
  --gold: #7aaeba;
  --charcoal: #203f4a;
  --shadow: 0 18px 50px rgba(32, 63, 74, 0.14);
}

* {
  box-sizing: border-box;
}

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

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

.topbar {
  background: #244b58;
  color: #eef6f4;
  font-size: 14px;
}

.topbar-inner,
.nav-inner,
.section-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
}

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

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 28px;
}

.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: 0;
}

.logo-brand {
  align-items: center;
  flex-direction: row;
  gap: 12px;
}

.logo-brand img {
  width: 142px;
  height: auto;
  display: block;
}

.logo-only img {
  width: 176px;
}

.logo-brand span {
  display: flex;
  flex-direction: column;
}

.brand small {
  color: #58afca;
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 650;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: #3f7889;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 6px;
  background: #58afca;
  color: white;
  font-weight: 760;
  border: 1px solid transparent;
  box-shadow: 0 8px 18px rgba(88, 175, 202, 0.28);
}

.button.secondary {
  background: white;
  color: #3f7889;
  border-color: rgba(63, 120, 137, 0.28);
  box-shadow: none;
}

.button.compact {
  min-height: 34px;
  padding: 0 12px;
  font-size: 12px;
  box-shadow: none;
}

.hero {
  min-height: 680px;
  position: relative;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--charcoal);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(22, 49, 58, 0.9) 0%, rgba(36, 75, 88, 0.68) 43%, rgba(63, 120, 137, 0.2) 75%);
  z-index: 1;
}

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

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 118px 0 70px;
  color: white;
}

.eyebrow {
  color: #b9edf7;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.08em;
}

h1,
h2,
h3 {
  line-height: 1.08;
  letter-spacing: 0;
  margin: 0;
}

h1 {
  max-width: 760px;
  font-size: clamp(44px, 6vw, 76px);
  margin-top: 14px;
}

.hero p {
  max-width: 660px;
  font-size: 20px;
  color: #e4eeec;
}

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

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 66px;
  max-width: 980px;
  background: rgba(255, 255, 255, 0.22);
}

.metric {
  padding: 22px;
  background: rgba(88, 175, 202, 0.18);
}

.metric strong {
  display: block;
  font-size: 28px;
}

.metric span {
  color: #d9e8e5;
  font-size: 14px;
}

section {
  padding: 74px 0;
}

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

.section-kicker {
  color: #3f7889;
  text-transform: uppercase;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(30px, 4vw, 48px);
}

.lead {
  color: var(--muted);
  font-size: 18px;
  margin: 18px 0 0;
}

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

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

.card,
.product-card,
.process-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 6px 24px rgba(19, 32, 35, 0.05);
}

.service-photo {
  display: block;
  width: calc(100% + 48px);
  height: 190px;
  object-fit: cover;
  margin: -24px -24px 20px;
  border-radius: 8px 8px 0 0;
  border-bottom: 1px solid var(--line);
}

.card h3,
.product-card h3,
.process-card h3 {
  font-size: 21px;
  margin-bottom: 10px;
}

.card p,
.process-card p,
.product-card p {
  margin: 0;
  color: var(--muted);
}

.icon {
  width: 44px;
  height: 44px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: #e8f6fa;
  color: #3f7889;
  margin-bottom: 18px;
}

.dark-band {
  background: #203f4a;
  color: white;
}

.dark-band .lead,
.dark-band .card p,
.dark-band .process-card p {
  color: #cad7d7;
}

.dark-band .card,
.dark-band .process-card {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.13);
}

.product-hero {
  background: #edf8fb;
  border-bottom: 1px solid var(--line);
}

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

.hardware-choice-section {
  background: #f5fbfd;
}

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

.hardware-choice-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 20px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.hardware-choice-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  padding: 12px;
  border: 1px solid #e5eef1;
  border-radius: 8px;
  background: #fff;
}

.hardware-choice-card span {
  display: block;
  margin-bottom: 8px;
  color: #3f7889;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hardware-choice-card h2 {
  margin-bottom: 8px;
  color: var(--ink);
}

.hardware-choice-card p {
  margin-bottom: 18px;
  color: var(--muted);
}

.catalog-return {
  margin-bottom: 18px;
}

.page-heading {
  padding: 68px 0 50px;
}

.page-heading h1 {
  color: var(--ink);
  font-size: clamp(38px, 5vw, 62px);
}

.page-heading p {
  max-width: 780px;
  color: var(--muted);
  font-size: 19px;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 30px;
}

.catalog-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 18px 0 28px;
}

.catalog-tools .filter-row {
  margin: 0;
}

.catalog-count {
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}

.filter-row button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  padding: 10px 14px;
  color: var(--muted);
  font-weight: 700;
  cursor: pointer;
}

.filter-row button.active {
  background: #3f7889;
  color: white;
  border-color: #3f7889;
}

.product-card {
  display: grid;
  gap: 12px;
  padding: 18px;
}

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

.product-grid--catalog .product-card {
  align-content: start;
  gap: 9px;
  min-height: 326px;
  padding: 14px;
  box-shadow: none;
}

.product-card-link {
  display: grid;
  gap: 9px;
}

.product-card h3 {
  font-size: 18px;
  line-height: 1.22;
}

.product-grid--catalog .product-card h3 {
  min-height: 44px;
  font-size: 14px;
  line-height: 1.28;
  font-weight: 650;
  color: #244b58;
}

.product-art {
  width: 100%;
  height: 150px;
  border-radius: 8px;
  background: linear-gradient(135deg, #f2fbfd, #d7eef5);
  object-fit: contain;
  padding: 10px;
  border: 1px solid var(--line);
}

.product-grid--catalog .product-art {
  height: 154px;
  padding: 8px;
  background: #fff;
  border-color: #e5eef1;
}

.product-art--document {
  display: grid;
  place-items: center;
  color: #3f7889;
  font-size: 28px;
  font-weight: 850;
  letter-spacing: 0.04em;
}

.price {
  font-size: 24px;
  line-height: 1;
  font-weight: 840;
  color: #3f7889;
}

.product-grid--catalog .price {
  font-size: 14px;
  color: #101820;
}

.product-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: auto;
}

.price.quote {
  font-size: 26px;
}

.meta {
  color: var(--muted);
  font-size: 14px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag {
  font-size: 12px;
  font-weight: 750;
  color: #244b58;
  background: #e5f5f9;
  padding: 5px 8px;
  border-radius: 999px;
}

.catalog-note {
  color: var(--muted);
  margin: 26px 0 0;
  max-width: 840px;
}

.cta-band {
  background: #3f7889;
  color: white;
  padding: 46px 0;
}

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

.cta-band h2 {
  font-size: 30px;
}

.cta-band p {
  margin: 8px 0 0;
  color: #d8eeef;
}

.contact-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.contact-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
}

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

.contact-form label {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-weight: 750;
}

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

.contact-form textarea {
  resize: vertical;
}

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

.form-note {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}

.cart-link span {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  margin-left: 4px;
  border-radius: 999px;
  background: #e5f5f9;
  color: #244b58;
  font-size: 12px;
}

.product-detail-hero {
  background: #edf8fb;
  padding: 64px 0;
}

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

.product-detail-image {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
}

.product-detail-image img {
  width: 100%;
  max-height: 440px;
  object-fit: contain;
  display: block;
}

.product-detail-copy h1 {
  color: var(--ink);
  font-size: clamp(34px, 5vw, 58px);
}

.product-detail-price {
  margin: 22px 0;
  font-size: 34px;
  line-height: 1;
  font-weight: 850;
  color: #3f7889;
}

.purchase-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.qty-control,
.cart-qty {
  display: inline-grid;
  grid-template-columns: 38px 54px 38px;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.qty-control button,
.cart-qty button {
  width: 38px;
  height: 38px;
  border: 0;
  background: #edf6f8;
  color: #214d5b;
  font-size: 18px;
  font-weight: 850;
  cursor: pointer;
}

.qty-control input,
.cart-qty input {
  width: 54px;
  height: 38px;
  border: 0;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  text-align: center;
  font-weight: 850;
  color: #102f3b;
}

/* Hard guards for the live catalog so product images can never blow out the layout. */
.hardware-choice-grid {
  align-items: stretch;
}

.hardware-choice-card {
  overflow: hidden;
}

.hardware-choice-card > img {
  width: 180px;
  max-width: 100%;
  height: 180px;
  max-height: 180px;
  object-fit: contain;
}

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

.product-grid--catalog .product-art,
.product-card img.product-art {
  display: block;
  width: 100%;
  height: 154px;
  max-height: 154px;
  object-fit: contain;
}

.product-actions .qty-control {
  grid-column: 1 / -1;
  justify-self: start;
}

.product-detail-image {
  display: grid;
  place-items: center;
}

.product-detail-image img {
  width: 100%;
  max-width: 560px;
  max-height: 560px;
  object-fit: contain;
}

.back-link {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--muted);
  font-weight: 750;
}

.feature-list {
  margin: 16px 0 0;
  padding-left: 22px;
  color: var(--muted);
}

.feature-list li {
  margin-bottom: 8px;
}

.cart-items {
  display: grid;
  gap: 12px;
  margin: 20px 0;
}

.cart-line,
.cart-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.cart-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cart-line span {
  display: block;
  color: var(--muted);
  font-size: 14px;
  margin-top: 4px;
}

.cart-total {
  align-items: center;
  font-size: 18px;
  margin-bottom: 18px;
}

.footer {
  background: #172f38;
  color: #dbe7e6;
  padding: 42px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  gap: 28px;
}

.footer a {
  display: block;
  color: #b9c7c7;
  margin-top: 8px;
}

.policy-content {
  max-width: 920px;
}

.policy-content h2 {
  color: var(--ink);
  font-size: 28px;
  margin: 34px 0 10px;
}

.policy-content p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.policy-content a {
  color: var(--brand);
  font-weight: 800;
}

@media (max-width: 880px) {
  .topbar-inner,
  .nav-inner,
  .cta-band .section-inner,
  .catalog-tools {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .hero {
    min-height: 760px;
  }

  .hero::before {
    background: rgba(32, 63, 74, 0.78);
  }

  .hero-metrics,
  .service-grid,
  .product-grid,
  .process-grid,
  .industry-grid,
  .hardware-choice-grid,
  .split,
  .product-detail-grid,
  .contact-panel,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hardware-choice-card {
    grid-template-columns: 1fr;
  }

  .hardware-choice-card img {
    max-height: 220px;
  }
}

@media (max-width: 1120px) and (min-width: 881px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
