/* ==========================================================================
   01. Shared design tokens
   Ferrobend colours verified against the local spiralwoundgaskets.com stylesheet.
   ========================================================================== */

:root {
  --ink: #17232f;
  /* Exact dark surfaces from the companion site's local stylesheet. */
  --charcoal: #232323;
  --dark-surface: linear-gradient(
    120deg,
    #111a21 0%,
    #17232f 52%,
    #232323 100%
  );
  --dark-text: #d2d2d2;
  --accent: #ff6b00;
  --accent-text: #a94500;
  --text: #222222;
  --muted: #666666;
  --paper: #ffffff;
  --soft: #f7f8fa;
  --border: #e5e5e5;
  --content-width: 1280px;
  --section-space: clamp(28px, 3vw, 44px);
}

/* ==========================================================================
   02. Base styles and reusable layout
   ========================================================================== */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
}

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

a:hover {
  color: var(--accent-text);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent-text);
  outline-offset: 4px;
}

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

h1,
h2,
h3 {
  font-weight: 600;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(34px, 3vw, 50px);
  line-height: 1.08;
  letter-spacing: -2px;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(26px, 2.5vw, 36px);
  line-height: 1.2;
  letter-spacing: -1px;
}

.container {
  width: min(var(--content-width), calc(100% - 64px));
  margin-inline: auto;
}

.section {
  padding-block: var(--section-space);
}

.eyebrow {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  min-height: 46px;
  padding: 13px 20px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}

a.button:hover {
  background: #f17a24;
  color: var(--ink);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  font-size: 12px;
  font-weight: 600;
}

.pending-label {
  font-size: 11px;
}

.pending,
.pending-label,
[aria-disabled="true"] {
  color: var(--muted);
}

.skip {
  position: fixed;
  top: -100px;
  z-index: 100;
  padding: 12px;
  background: white;
}

.skip:focus {
  top: 8px;
}

/* ==========================================================================
   Breadcrumbs | copy this semantic pattern onto future internal pages
   ========================================================================== */

.breadcrumbs {
  padding-block: 8px;
  color: #a8afb5;
  font-size: 15px;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumbs li + li::before {
  margin-right: 9px;
  color: #98a1a9;
  content: ">";
}

.breadcrumbs a {
  color: #a8afb5;
}

.breadcrumbs a:hover {
  color: var(--accent-text);
}

.hero.brand-hero {
  background:
    radial-gradient(ellipse at 94% 48%, #6b402b30 0%, transparent 35%),
    var(--dark-surface);
}

.brand-hero-container {
  width: min(1600px, calc(100% - clamp(40px, 9vw, 176px)));
  margin-inline: auto;
}

.products-breadcrumbs {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  margin-top: 28px;
  margin-left: 2.15rem;
  padding: 0;
  color: #cbd1d5;
}

.products-breadcrumbs ol {
  gap: 0;
}

.products-breadcrumbs li + li::before {
  margin-inline: 9px;
  color: #aab2b8;
  content: "›";
  font-size: 16px;
  line-height: 1;
}

.products-breadcrumbs a {
  color: #e0e4e6;
}

.products-breadcrumbs a:hover {
  color: white;
}

.products-breadcrumbs li[aria-current="page"] {
  color: var(--accent);
  font-weight: 700;
}

.brand-hero .brand-hero-grid {
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: clamp(36px, 5vw, 88px);
  min-height: 460px;
  padding-block: 30px;
}

/* Lift the homepage hero copy while leaving the product-page composition intact. */
main:not(.inner-page) .brand-hero .hero-copy {
  transform: translateY(-2em);
}

main:not(.inner-page) .brand-hero-label {
  margin-bottom: calc(18px + 0.25em);
}

main:not(.inner-page) .brand-hero h1,
main:not(.inner-page) .brand-hero .intro {
  transform: translateY(2rem);
}

.brand-hero-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding: 8px 14px;
  border: 1px solid #ff6b0055;
  border-radius: 999px;
  background: #ff6b0014;
  color: #ff7a22 !important;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.brand-hero-label span {
  width: 36px;
  height: 2px;
  background: var(--accent);
}

.brand-hero h1 {
  max-width: 640px;
  margin-bottom: 20px;
  font-size: clamp(40px, 3vw, 62px);
  line-height: 1.04;
  letter-spacing: -2.8px;
}

.brand-hero .intro {
  max-width: 640px;
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.65;
}

.brand-hero .brand-hero-actions {
  gap: 16px;
  margin-top: 2.5em;
}

main:not(.inner-page) .brand-hero .brand-hero-actions {
  margin-top: 4em;
  transform: translateY(1rem);
}

.brand-hero-actions .button {
  min-height: 50px;
  min-width: 188px;
  padding: 11px 19px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
}

.brand-hero-actions .button-outline {
  min-width: 160px;
  border-color: #87919a;
  background: #ffffff08;
  color: white;
}

.brand-hero-actions .button-outline:hover {
  border-color: white;
  background: #ffffff12;
  color: white;
}

.products-hero-art {
  display: grid;
  place-items: center;
  min-width: 0;
  margin: 0;
  overflow: visible;
}

.products-hero-art img {
  display: block;
  width: 100%;
  max-width: 700px;
  max-height: 340px;
  object-fit: contain;
}

/* The breadcrumb is part of the Products hero, so its content starts near it. */
.products-breadcrumbs + .brand-hero-grid {
  align-items: start;
  min-height: 0;
  padding-block: 14px 10px;
}

.brand-hero .hero-art svg {
  width: 100%;
  height: clamp(320px, 27vw, 380px);
}

.catalog-section {
  padding-block: 30px;
}

.catalog-section + .catalog-section {
  border-top: 1px solid var(--border);
}

.catalog-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.catalog-section-heading h2 {
  margin-bottom: 0;
  font-size: clamp(23px, 2.2vw, 30px);
}

.catalog-intro {
  max-width: 680px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

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

.catalog-card {
  position: relative;
  grid-column: span 2;
  min-width: 0;
  overflow: hidden;
  padding: 0;
  border: 1px solid #dfe3e5;
  border-radius: 7px;
  background: white;
  box-shadow: 0 5px 22px #17232f0b;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.catalog-card:nth-child(4) {
  grid-column: 2 / span 2;
}

.catalog-card:nth-child(5) {
  grid-column: 4 / span 2;
}

.catalog-card:hover {
  transform: translateY(-3px);
  border-color: #c8ced1;
  box-shadow: 0 12px 28px #17232f16;
}

.category-card-art {
  position: relative;
  display: grid;
  place-items: center;
  height: clamp(180px, 18vw, 225px);
  padding: 14px 24px;
  border-bottom: 1px solid #e7eaec;
  background: radial-gradient(ellipse at center, #ffffff 0%, #f5f6f7 72%);
}

.category-card-art::after {
  position: absolute;
  top: 18px;
  right: 20px;
  width: 24px;
  height: 24px;
  border-top: 1px solid #ff6b0070;
  border-right: 1px solid #ff6b0070;
  content: "";
}

.category-card-art svg {
  display: block;
  width: 100%;
  height: 100%;
}

.category-card-copy {
  min-height: 145px;
  padding: 20px 22px 22px;
}

.category-index {
  display: block;
  margin-bottom: 7px;
  color: var(--accent-text);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
}

.catalog-card h3 {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.35;
}

.catalog-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

/* Metallic gasket type cards; image panels are reserved for supplied artwork. */
.metallic-types-section {
  padding-block: clamp(32px, 4vw, 56px);
}

.metallic-types-heading {
  margin-bottom: 20px;
}

.metallic-types-heading .eyebrow {
  margin-bottom: 8px;
}

.metallic-types-heading h2 {
  margin-bottom: 0;
}

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

.metallic-type-card {
  grid-column: span 2;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #dfe3e5;
  border-radius: 7px;
  background: #ffffff;
  box-shadow: 0 5px 22px #17232f0b;
}

.metallic-type-card:nth-child(7) {
  grid-column: 2 / span 2;
}

.metallic-type-card:nth-child(8) {
  grid-column: 4 / span 2;
}

.metallic-type-image {
  display: grid;
  place-items: center;
  aspect-ratio: 1.8;
  min-height: 150px;
  overflow: hidden;
  border-bottom: 1px solid #e7eaec;
  background: #f5f6f7;
}

.metallic-type-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.metallic-type-image.natural-image {
  height: auto;
  min-height: 0;
  aspect-ratio: auto;
  overflow: visible;
}

.metallic-type-image.natural-image img {
  width: 100%;
  height: auto;
}

.metallic-type-copy {
  min-height: 108px;
  padding: 16px 18px 18px;
}

.metallic-type-copy .category-index {
  margin-bottom: 6px;
}

.metallic-type-copy h3 {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.4;
}

.family-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}

.family-item {
  padding: 16px 18px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.family-item h3 {
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 15px;
}

.family-item p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

@media (max-width: 780px) {
  main:not(.inner-page) .brand-hero .hero-copy {
    transform: none;
  }

  main:not(.inner-page) .brand-hero .brand-hero-actions {
    margin-top: 4em;
  }

  main:not(.inner-page) .brand-hero-label {
    margin-bottom: 18px;
  }

  .brand-hero-container {
    width: calc(100% - 48px);
  }

  .brand-hero .brand-hero-grid {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 18px;
    padding-block: 26px 30px;
    text-align: left;
  }

  .brand-hero .intro {
    margin-inline: 0;
  }

  .brand-hero .brand-hero-actions {
    justify-content: flex-start;
  }

  .products-hero-art {
    width: 100%;
    max-width: 600px;
    margin-inline: 0;
    justify-items: start;
  }

  .products-breadcrumbs + .brand-hero-grid {
    align-items: start;
    min-height: 0;
    padding-top: 24px;
  }

  .brand-hero .hero-art svg {
    height: clamp(260px, 40vw, 320px);
  }

  .products-hero-art img {
    max-height: 320px;
  }

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

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

  .metallic-type-card,
  .metallic-type-card:nth-child(7),
  .metallic-type-card:nth-child(8) {
    grid-column: auto;
  }

  .catalog-card,
  .catalog-card:nth-child(4),
  .catalog-card:nth-child(5) {
    grid-column: auto;
  }

  .catalog-card:nth-child(5) {
    grid-column: 2;
  }
}

@media (max-width: 520px) {
  .brand-hero-container {
    width: calc(100% - 32px);
  }

  .products-breadcrumbs {
    margin-top: 24px;
    padding: 0;
  }

  .brand-hero h1 {
    font-size: clamp(34px, 9vw, 42px);
    letter-spacing: -1.8px;
  }

  .brand-hero .intro {
    font-size: 15px;
  }

  .brand-hero .brand-hero-actions {
    flex-wrap: wrap;
  }

  .brand-hero-actions .button {
    min-height: 48px;
    min-width: 0;
    width: auto;
    padding-inline: 16px;
    font-size: 14px;
  }

  .brand-hero .brand-hero-grid {
    gap: 12px;
    padding-block: 22px 24px;
  }

  .brand-hero .hero-art svg {
    height: 260px;
  }

  .products-hero-art img {
    max-height: 260px;
  }

  .catalog-section-heading {
    align-items: flex-start;
  }

  .catalog-grid,
  .family-list {
    grid-template-columns: 1fr;
  }

  .metallic-types-grid {
    grid-template-columns: 1fr;
  }

  .catalog-card:nth-child(5) {
    grid-column: auto;
  }
}

/* ==========================================================================
   03. Shared header, dropdowns and menu controls
   ========================================================================== */

.topline {
  padding-block: 8px;
  background: var(--ink);
  color: #d5dce2;
  font-size: 11px;
}

.topline .container {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.site-header {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid var(--border);
  background: white;
  box-shadow: 0 4px 16px #17232f05;
}

.header-layout {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  width: min(1380px, calc(100% - 64px));
  min-height: 88px;
}

.company-logo {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
}

.company-logo img {
  display: block;
  width: 190px;
  max-width: 100%;
  height: auto;
}

.navigation {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 28px;
  min-width: 0;
}

.nav-item {
  position: relative;
  flex: 0 0 auto;
}

.nav-trigger,
.nav-item > a,
.nav-item > span {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 88px;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font:
    700 13px/1.4 Arial,
    Helvetica,
    sans-serif;
  white-space: nowrap;
  transition: color 160ms ease;
}

.nav-trigger {
  cursor: pointer;
}

.nav-trigger::after {
  width: 5px;
  height: 5px;
  margin-top: -3px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 180ms ease;
  content: "";
}

.nav-trigger::before,
.nav-item > a::before {
  position: absolute;
  right: 0;
  bottom: 22px;
  left: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
  content: "";
}

.nav-item.is-open > .nav-trigger,
.nav-item > a:hover,
.nav-item > a[aria-current] {
  color: var(--accent-text);
}

.nav-item.is-open > .nav-trigger::after {
  transform: translateY(3px) rotate(225deg);
}

.nav-item.is-open > .nav-trigger::before,
.nav-item > a:hover::before,
.nav-item > a[aria-current]::before {
  transform: scaleX(1);
}

.nav-panel {
  position: absolute;
  top: calc(100% - 8px);
  left: -20px;
  z-index: 10;
  display: grid;
  gap: 24px;
  width: 270px;
  max-width: calc(100vw - 48px);
  max-height: min(440px, 65dvh);
  overflow: auto;
  padding: 22px;
  border: 1px solid var(--border);
  border-top: 2px solid var(--accent);
  border-radius: 4px;
  background: white;
  box-shadow: 0 12px 28px #17232f12;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(6px);
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    visibility 180ms;
}

.dropdown.is-open > .nav-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

/* Keep hover usable when JavaScript is unavailable. */

html:not(.js-nav) .dropdown:hover > .nav-panel,
html:not(.js-nav) .dropdown:focus-within > .nav-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.grouped-menu .nav-panel {
  width: 540px;
  grid-template-columns: 1fr 1fr;
}

/* Technical links stay in a compact vertical list on desktop. */
.technical-menu .nav-panel {
  right: -20px;
  left: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  width: 270px;
}

.technical-menu .nav-panel a {
  white-space: normal;
}

.nav-panel h3 {
  margin: 0 0 10px;
  color: var(--accent-text);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.nav-panel .pending,
.nav-panel a {
  display: block;
  padding: 8px 0;
  color: #46515b;
  font-size: 13px;
  line-height: 1.5;
}

.nav-panel a:hover {
  color: var(--accent-text);
}

.nav-item > a.nav-rfq {
  gap: 12px;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid #f0c4a3;
  border-radius: 3px;
  background: #fff6ef;
  color: #8c3d06;
}

.nav-item > a.nav-rfq::before {
  display: none;
}

.nav-item > a.nav-rfq:hover {
  border-color: var(--accent);
  background: #ffeddd;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 10px 13px;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: white;
  color: var(--ink);
  font:
    700 13px Arial,
    Helvetica,
    sans-serif;
  cursor: pointer;
}

.menu-lines {
  position: relative;
  display: block;
  width: 18px;
  height: 12px;
  border-block: 1.5px solid currentColor;
}

.menu-lines::after {
  position: absolute;
  top: 4px;
  left: 0;
  width: 18px;
  border-top: 1.5px solid currentColor;
  content: "";
}

/* Grouped navigation stays compact rather than spanning the whole header. */

.nav-panel-footer {
  grid-column: 1 / -1;
  padding-top: 4px;
  border-top: 1px solid #eadfd6;
}

.nav-panel .pending {
  overflow-wrap: anywhere;
}

/* ==========================================================================
   04. Hero
   ========================================================================== */

.hero {
  overflow: hidden;
  border-bottom: 1px solid #ffffff18;
  background: var(--dark-surface);
  color: white;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 36px;
  padding-block: 30px;
}

.hero .eyebrow {
  color: #ff9d57;
}

.intro {
  max-width: 460px;
  color: var(--dark-text);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
}

.hero .text-link {
  color: white;
  border-bottom: 1px solid #777777;
}

.hero-art {
  margin: 0;
  min-width: 0;
  overflow: hidden;
  background: transparent;
}

.hero-art svg {
  display: block;
  width: 100%;
  height: clamp(220px, 23vw, 300px);
}

/* ==========================================================================
   05. Product categories and featured products
   ========================================================================== */

.section-heading .eyebrow::before {
  display: inline-block;
  width: 22px;
  height: 2px;
  margin-right: 10px;
  vertical-align: middle;
  background: var(--accent);
  content: "";
}

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

.section-heading h2 {
  margin: 0;
}

.featured {
  margin-top: 0;
}

.featured h3 {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 12px;
}

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

.product-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  background: white;
}

.product-visual {
  position: relative;
  display: grid;
  place-items: center;
  height: 188px;
  padding: 8px 16px;
  overflow: hidden;
  background: #f2f4f5;
}

.product-visual svg {
  display: block;
  width: 100%;
  height: 100%;
}

.product-visual img {
  position: absolute;
  inset: 8px 16px;
  width: calc(100% - 32px);
  height: calc(100% - 16px);
  object-fit: contain;
  object-position: center;
}

.product-card h4 {
  margin: 0;
  padding: 12px 14px 6px;
  border-top: 1px solid var(--border);
  color: var(--ink);
  font-size: 13px;
  line-height: 1.4;
}

.product-card p {
  margin: 0;
  padding: 0 14px 14px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

/* ==========================================================================
   06. Manufacturing and engineering
   ========================================================================== */

.engineering {
  padding-block: var(--section-space);
  background: var(--dark-surface);
  color: white;
}

.engineering-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.engineering .eyebrow {
  color: #ff9d57;
}

.engineering h2 {
  max-width: 450px;
}

.engineering .light {
  color: #d5dce2;
}

.engineering-intro {
  color: #d5dce2;
  font-size: 14px;
}

.capability-list p {
  margin: 0;
  padding-block: 11px;
  border-top: 1px solid #ffffff26;
  font-size: 13px;
}

.capability-list span {
  margin-right: 20px;
  color: #b7c0c8;
  font-size: 10px;
}

/* ==========================================================================
   07. Materials
   ========================================================================== */

.materials-section {
  padding-block: 45px;
}

.materials-layout {
  display: grid;
  grid-template-columns: minmax(210px, 0.8fr) minmax(0, 2fr);
  gap: 28px;
  align-items: stretch;
  padding: 22px;
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  background: var(--soft);
}

.materials-intro {
  align-self: center;
}

.materials-intro .eyebrow {
  margin-bottom: 8px;
}

.materials-intro h2 {
  margin-bottom: 10px;
  font-size: clamp(22px, 2vw, 28px);
}

.materials-intro > p:last-child {
  max-width: 360px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
}

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

.material-group {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--border);
  background: white;
}

.material-index {
  display: block;
  margin-bottom: 8px;
  color: var(--accent-text);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
}

.material-group h3 {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.tags span {
  padding: 4px 7px;
  border: 1px solid #e7e8ea;
  background: #f8f9fa;
  color: #42484e;
  font-size: 11px;
}

/* ==========================================================================
   08. Industries, technical resources and quotation
   ========================================================================== */

.industry-section {
  padding-block: var(--section-space);
  border-block: 1px solid #ffffff18;
  background: var(--dark-surface);
  color: white;
}

.industry-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  align-items: center;
  gap: 48px;
}

.industry-grid h2 {
  margin: 0;
}

.industries {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.industries li {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 10px 14px;
  border: 1px solid #ffffff24;
  border-radius: 3px;
  background: #ffffff06;
  font-size: 13px;
  font-weight: 500;
}

.industry-icon {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  color: #ff9d57;
}

.resources {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.resources p:not(.eyebrow) {
  color: var(--muted);
  font-size: 13px;
}

.resource-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.resource-card {
  padding: 18px;
  border: 1px solid var(--border);
  border-bottom: 3px solid #ffd3b0;
  border-radius: 3px;
  background: var(--soft);
}

.resource-icon {
  display: block;
  width: 28px;
  height: 28px;
  margin-bottom: 12px;
  color: var(--accent-text);
}

.resource-card h3 {
  margin-bottom: 10px;
  font-size: 15px;
  line-height: 1.4;
}

/* ========================================================================== 
   10. Not-found page
   ========================================================================== */

.error-page {
  display: grid;
  min-height: 420px;
  place-items: center;
  padding-block: clamp(52px, 8vw, 88px);
  background: var(--dark-surface);
  color: #ffffff;
  text-align: center;
}

.error-content {
  max-width: 760px;
}

.error-code {
  margin-bottom: 10px;
  color: #ff7a22;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
}

.error-page h1 {
  margin-bottom: 14px;
  font-size: clamp(36px, 5vw, 58px);
  letter-spacing: -1.8px;
}

.error-page p:not(.error-code) {
  max-width: 580px;
  margin: 0 auto;
  color: var(--dark-text);
  line-height: 1.7;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 28px;
}

.error-actions .button {
  min-height: 48px;
  border-radius: 8px;
}

.error-actions .button-outline {
  border-color: #87919a;
  background: #ffffff08;
  color: #ffffff;
}

.error-actions .button-outline:hover {
  border-color: #ffffff;
  background: #ffffff12;
  color: #ffffff;
}

/* Full-width dark quotation band follows the light resources section. */

.quote-band {
  background: var(--dark-surface);
  color: white;
}

.quote {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px 24px;
  padding-block: 20px;
}

.quote h2 {
  margin-bottom: 6px;
  font-size: 24px;
}

.quote p {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--dark-text);
  font-size: 13px;
}

.industry-section .eyebrow {
  margin-bottom: 12px;
  color: #ff9d57;
}

/* ==========================================================================
   09. Compact five-column footer: Products, Materials, Standards, Technical, Reach Us
   ========================================================================== */
/* White and charcoal footer, with the reference's dotted map treatment. */

footer {
  --muted: #505860;
  --border: #d9dde0;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  background: #ffffff;
  color: var(--charcoal);
}

.footer-map {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  color: #ff6b00;
  opacity: 0.25;
  pointer-events: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(290px, 1.55fr);
  gap: 20px;
  align-items: start;
  padding-bottom: 16px;
}

.footer-grid h3 {
  margin: 0 0 10px;
  color: var(--charcoal);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
}

.footer-links > a,
.footer-links > .pending {
  display: block;
  padding-block: 2px;
  color: #202830;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.55;
}

.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 8px;
  color: #202830;
  font-size: 14px;
  font-weight: 500;
  font-style: normal;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.contact-row svg {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin-top: 3px;
  fill: none;
  stroke: var(--charcoal);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-bottom {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding-block: 12px;
  border-top: 1px solid #cbd0d4;
  color: #17232f;
  font-size: 13px;
  font-weight: 500;
}

.footer-bottom a,
.footer-bottom .pending {
  color: #17232f;
}

.footer-bottom > span:nth-child(2) {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

footer a:hover {
  color: #000000;
  text-decoration: underline;
  text-underline-offset: 3px;
}

footer a:focus-visible {
  outline-color: var(--charcoal);
}

.hero a:focus-visible,
.quote-band a:focus-visible {
  outline-color: #ff9d57;
}

/* Social links and clock remain grouped directly below the address. */

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-block: 10px 6px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--charcoal);
  border-radius: 50%;
  background: var(--charcoal);
  color: white;
  transition:
    background 160ms ease,
    color 160ms ease;
}

.social-links a:hover {
  background: white;
  color: var(--charcoal);
}

.social-links svg {
  width: 17px;
  height: 19px;
  fill: currentColor;
}

.footer-clock {
  min-height: 44px;
  padding-top: 2px;
}

.clock-reading {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  color: var(--charcoal);
  font-size: 13px;
  line-height: 1.7;
}

#footer-time {
  min-width: 91px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.clock-zone {
  display: block;
  margin-top: 2px;
  color: #303840;
  font-size: 11px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   10. Responsive layouts
   ========================================================================== */

@media (max-width: 1050px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 24px;
  }

  .footer-contact {
    grid-column: 1 / -1;
  }

  .container,
  .header-layout {
    width: calc(100% - 48px);
  }

  .hero-grid,
  .engineering-grid {
    gap: 28px;
  }

  .industry-grid,
  .resources {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .industry-grid h2 br,
  .resources h2 br {
    display: none;
  }
}

@media (max-width: 780px) {
  .topline span {
    display: none;
  }

  .materials-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

@media (max-width: 620px) {
  .container,
  .header-layout {
    width: calc(100% - 32px);
  }

  .materials-layout {
    padding: 16px;
  }

  .material-groups {
    grid-template-columns: 1fr;
  }

  .hero-grid,
  .engineering-grid,
  .quote {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-grid {
    padding-block: 24px;
  }

  h1 {
    font-size: clamp(32px, 8vw, 42px);
    letter-spacing: -1.8px;
  }

  h2 {
    font-size: 28px;
  }

  .intro {
    font-size: 14px;
  }

  .hero-art {
    width: 100%;
    max-width: 480px;
  }

  .section-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

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

  .product-visual {
    height: 156px;
    padding-inline: 8px;
  }

  .product-visual img {
    inset: 8px;
    width: calc(100% - 16px);
    height: calc(100% - 16px);
  }

  .industries {
    gap: 10px;
  }

  .industries li {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 14px;
    font-size: 12px;
  }

  .resource-card h3 {
    font-size: 14px;
  }

  .quote {
    margin-bottom: 0;
    gap: 14px;
    padding-block: 16px;
  }

  .quote h2 {
    font-size: 22px;
  }

  .quote .button {
    justify-self: start;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .footer-contact {
    grid-column: 1 / -1;
  }

  .topline {
    font-size: 9px;
  }
}

/* Compact header: one disclosure replaces uneven wrapped navigation rows. */

@media (max-width: 1150px) {
  .header-layout {
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0 24px;
    min-height: 76px;
    padding-block: 14px;
  }

  .company-logo img {
    width: 180px;
  }

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

  .navigation {
    flex: 1 0 100%;
    display: block;
    margin-top: 14px;
    padding-top: 8px;
    border-top: 1px solid var(--border);
  }

  .js-nav .navigation {
    display: none;
  }

  .js-nav .navigation.is-open {
    display: block;
    max-height: 70dvh;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .nav-trigger,
  .nav-item > a,
  .nav-item > span {
    justify-content: space-between;
    width: 100%;
    min-height: 46px;
    padding: 12px 4px;
    font-size: 14px;
    white-space: normal;
    text-align: left;
  }

  .nav-trigger::before,
  .nav-item > a::before {
    display: none;
  }

  .nav-panel,
  .grouped-menu .nav-panel {
    position: static;
    display: none;
    width: 100%;
    max-width: none;
    max-height: none;
    margin-bottom: 10px;
    padding: 18px;
    box-shadow: none;
    transform: none;
    transition: none;
  }

  .technical-menu .nav-panel a {
    padding: 8px 0;
  }

  .dropdown.is-open > .nav-panel,
  html:not(.js-nav) .dropdown:focus-within > .nav-panel {
    display: grid;
  }

  .nav-item > a.nav-rfq {
    justify-content: center;
    width: auto;
    margin-block: 12px 4px;
    padding-inline: 20px;
  }
}

@media (max-width: 620px) {
  .header-layout {
    min-height: 70px;
    padding-block: 12px;
  }

  .company-logo img {
    width: 165px;
  }

  .grouped-menu .nav-panel {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* ==========================================================================
   11. Respect reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
