:root {
  --ssm-blue-900: #0b2a57;
  --ssm-blue-800: #123b76;
  --ssm-blue-700: #17478f;
  --ssm-blue-600: #1f5db8;
  --ssm-blue-500: #3d95e3; /* Picton-ish */
  --ssm-blue-100: #eaf3ff;
  --ssm-ink: #0b1220;
  --ssm-muted: #5b6476;
  --ssm-border: rgba(11, 18, 32, 0.14);
  --ssm-bg: #ffffff;
  --ssm-surface: #f7f9fc;
  --ssm-accent: #ffe600; /* hero placeholder yellow */
  --shadow: 0 12px 32px rgba(11, 18, 32, 0.12);
  --radius: 14px;
}

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

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--ssm-ink);
  background: var(--ssm-bg);
  line-height: 1.5;
}

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

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

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

.skip-link {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--ssm-blue-900);
  color: #fff;
  transform: translateY(-140%);
  transition: transform 140ms ease;
  z-index: 1000;
}
.skip-link:focus {
  transform: translateY(0);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--ssm-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 180px;
}

.brand-mark {
  display: flex;
  align-items: center;
}
.brand-logo {
  display: block;
  height: 46px;
  width: auto;
  object-fit: contain;
}

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

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 4px;
  border: 0;
  background: transparent;
  color: var(--ssm-blue-900);
  border-radius: 10px;
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  transition:
    transform 120ms ease,
    filter 120ms ease,
    background 120ms ease;
}
.nav-link:hover {
  color: var(--ssm-blue-800);
  text-decoration: underline;
  text-underline-offset: 5px;
}
.nav-link:focus-visible {
  outline: 3px solid rgba(61, 149, 227, 0.6);
  outline-offset: 2px;
}

.nav-cta {
  color: var(--ssm-blue-900);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--ssm-border);
  border-radius: 10px;
  padding: 10px 12px;
}
.nav-toggle:focus-visible {
  outline: 3px solid rgba(61, 149, 227, 0.6);
  outline-offset: 2px;
}
.nav-toggle-bars {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ssm-blue-900);
  position: relative;
}
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: var(--ssm-blue-900);
}
.nav-toggle-bars::before {
  top: -7px;
}
.nav-toggle-bars::after {
  top: 7px;
}

/* Hero */
.hero {
  padding: 34px 0 28px;
  background:
    radial-gradient(1200px 420px at 20% 0%, var(--ssm-blue-100), transparent 60%),
    radial-gradient(900px 360px at 90% 20%, rgba(61, 149, 227, 0.2), transparent 55%),
    linear-gradient(180deg, #fff, #fff);
}

.hero-top {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 22px;
  align-items: stretch;
}

.hero-title-box {
  padding: 22px;
  border: 1px solid var(--ssm-border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 8px 22px rgba(11, 18, 32, 0.06);
}

.hero-eyebrow {
  margin: 0 0 10px;
  font-weight: 700;
  color: var(--ssm-blue-800);
}

.hero-title {
  margin: 0 0 10px;
  font-size: clamp(2rem, 2.7vw + 1rem, 3.1rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.hero-lead {
  margin: 0 0 16px;
  color: var(--ssm-muted);
  font-weight: 600;
  max-width: 52ch;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 12px 14px;
  font-weight: 800;
  border: 1px solid var(--ssm-border);
  transition:
    transform 120ms ease,
    filter 120ms ease,
    background 120ms ease;
}
.button:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}
.button:focus-visible {
  outline: 3px solid rgba(61, 149, 227, 0.6);
  outline-offset: 2px;
}

.button-primary {
  background: var(--ssm-blue-800);
  color: #fff;
  border-color: rgba(11, 18, 32, 0.3);
}
.button-ghost {
  background: #fff;
  color: var(--ssm-blue-900);
}

.hero-image {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(11, 18, 32, 0.22);
  background: #dbe6f7;
  box-shadow: var(--shadow);
  min-height: 260px;
}

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  opacity: 0;
  transition: opacity 700ms ease;
}
.hero-photo.is-active {
  opacity: 1;
}

.hero-image-inner {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  padding: 12px 12px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(11, 42, 87, 0.05), rgba(11, 42, 87, 0.78));
  color: #fff;
  text-align: left;
  max-width: 100%;
}

.hero-image-title {
  margin: 0 0 6px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-image-note {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 650;
}

.hero-pillars {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.pillar {
  border: 2px solid rgba(11, 18, 32, 0.75);
  background: rgba(61, 149, 227, 0.12);
  border-radius: 12px;
  padding: 16px 14px;
}
.pillar-title {
  margin: 0 0 6px;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.pillar-text {
  margin: 0;
  color: var(--ssm-muted);
  font-weight: 600;
}

/* Sections */
.section {
  padding: 42px 0;
}
.section-alt {
  background: var(--ssm-surface);
  border-top: 1px solid var(--ssm-border);
  border-bottom: 1px solid var(--ssm-border);
}

.section-contact {
  border-top: 1px solid var(--ssm-border);
}

.section-privacy {
  border-top: 1px solid var(--ssm-border);
}

.container-narrow {
  max-width: 720px;
}

.privacy-content {
  font-size: 1rem;
  line-height: 1.65;
}

.privacy-content p {
  margin: 0 0 1em;
}

.privacy-heading {
  margin: 1.75em 0 0.5em;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ssm-blue-900);
}

.privacy-heading:first-of-type {
  margin-top: 0;
}

.privacy-subheading {
  margin: 1.25em 0 0.35em;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ssm-ink);
}

.privacy-pdf-link {
  color: var(--ssm-blue-600);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.privacy-pdf-link:hover {
  color: var(--ssm-blue-800);
}

.privacy-contact {
  margin: 0.5em 0 0;
  font-weight: 600;
}

.privacy-contact a {
  color: #0d6b54;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.privacy-contact a:hover {
  color: #0a5544;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.section-title {
  margin: 0;
  font-size: 1.7rem;
  letter-spacing: -0.02em;
}
.section-subtitle {
  margin: 0;
  color: var(--ssm-muted);
  font-weight: 600;
  max-width: 72ch;
}

.grid {
  display: grid;
  gap: 14px;
}

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

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

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

.cards-two .card-span-two {
  grid-column: 1 / -1;
}

.card {
  border: 1px solid var(--ssm-border);
  border-radius: var(--radius);
  background: #fff;
  padding: 16px;
  box-shadow: 0 10px 26px rgba(11, 18, 32, 0.06);
}
.card-title {
  margin: 0 0 6px;
  font-weight: 900;
}
.card-text {
  margin: 0 0 10px;
  color: var(--ssm-muted);
  font-weight: 600;
}
.card-link {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-weight: 800;
  color: var(--ssm-blue-800);
}
.card-link::after {
  content: "→";
}
.card-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.two-col {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
  align-items: start;
}

.checklist {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}
.checklist li {
  position: relative;
  padding-left: 30px;
  margin: 10px 0;
  color: var(--ssm-muted);
  font-weight: 650;
}
.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  border-radius: 8px;
  background: rgba(61, 149, 227, 0.18);
  display: grid;
  place-items: center;
  color: var(--ssm-blue-800);
  font-weight: 900;
}

.callout {
  border-radius: var(--radius);
  border: 1px solid rgba(11, 18, 32, 0.18);
  background: linear-gradient(180deg, #fff, #f3f7ff);
  padding: 18px;
  box-shadow: 0 14px 30px rgba(11, 18, 32, 0.08);
}
.callout-title {
  margin: 0 0 6px;
  font-weight: 900;
}
.callout-text {
  margin: 0 0 14px;
  color: var(--ssm-muted);
  font-weight: 650;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--ssm-border);
  background: #fff;
  padding: 22px 0;
}
.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.footer-brand {
  margin: 0;
  font-weight: 900;
  color: var(--ssm-blue-900);
}
.footer-note {
  margin: 6px 0 0;
  color: var(--ssm-muted);
  font-weight: 600;
}
.footer-right {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.footer-link {
  color: var(--ssm-blue-800);
  font-weight: 800;
}
.footer-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 20px;
  align-items: flex-start;
}

.contact-form-panel {
  border-radius: var(--radius);
  border: 1px solid var(--ssm-border);
  background: #fff;
  padding: 18px 18px 20px;
  box-shadow: 0 14px 32px rgba(11, 18, 32, 0.08);
}

.contact-form-title {
  margin: 0 0 6px;
  font-size: 1.2rem;
}

.contact-form-text {
  margin: 0 0 16px;
  color: var(--ssm-muted);
  font-weight: 600;
}

.contact-form-iframe-wrapper {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--ssm-border);
  background: #f7f9fc;
  min-height: 260px;
}

.contact-form-iframe-wrapper iframe {
  display: block;
  width: 100%;
  border: 0;
}

.contact-offices {
  border-radius: var(--radius);
  border: 1px solid var(--ssm-border);
  background: #fff;
  padding: 18px 18px 20px;
  box-shadow: 0 14px 32px rgba(11, 18, 32, 0.06);
}

.contact-offices-title {
  margin: 0 0 10px;
  font-size: 1.1rem;
}

.office-list {
  display: grid;
  gap: 14px;
}

.office-card {
  border-radius: 12px;
  border: 1px solid rgba(11, 18, 32, 0.12);
  background: var(--ssm-surface);
  padding: 12px 12px 14px;
}

.office-location {
  margin: 0 0 6px;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ssm-blue-800);
}

.office-map {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(11, 18, 32, 0.16);
  margin-bottom: 8px;
}

.office-map iframe {
  display: block;
  width: 100%;
  height: 180px;
  border: 0;
}

.office-map-link {
  position: absolute;
  left: 10px;
  bottom: 8px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ssm-blue-800);
}

.office-name {
  margin: 0 0 4px;
  font-weight: 800;
}

/* About Us page */
.about-intro {
  margin-bottom: 32px;
  align-items: stretch;
}

.about-photo-wrap {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--ssm-border);
  background: var(--ssm-surface);
  box-shadow: 0 10px 26px rgba(11, 18, 32, 0.06);
  min-height: 200px;
}

.about-photo {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
}

.about-intro-text {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.about-company-name {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ssm-blue-900);
}

.about-reg-no {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ssm-muted);
  font-weight: 600;
}

.about-lead {
  margin: 0;
  font-weight: 650;
  color: var(--ssm-ink);
}

.about-content {
  margin-top: 24px;
}

.about-content .section-title {
  margin-bottom: 12px;
}

.about-content p {
  margin: 0 0 14px;
  color: var(--ssm-ink);
  font-weight: 600;
}

.about-vision-mission {
  margin-top: 28px;
  padding: 22px;
}

.about-vision-mission .section-title {
  margin-bottom: 16px;
}

.vision-mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.vm-block {
  border-radius: 12px;
  border: 1px solid rgba(11, 18, 32, 0.12);
  background: #fff;
  padding: 16px 18px;
}

.vm-title {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 800;
  color: var(--ssm-blue-800);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.vm-text {
  margin: 0;
  color: var(--ssm-muted);
  font-weight: 650;
  line-height: 1.5;
}

@media (max-width: 980px) {
  .about-intro.two-col {
    grid-template-columns: 1fr;
  }
  .about-photo-wrap {
    min-height: 220px;
  }
  .vision-mission-grid {
    grid-template-columns: 1fr;
  }
}

.office-address,
.office-contact {
  margin: 0;
  color: var(--ssm-muted);
  font-weight: 600;
  font-size: 0.9rem;
}

/* Toast */
.toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 50;
}
.toast-inner {
  background: rgba(11, 42, 87, 0.95);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  padding: 12px 14px;
  min-width: min(360px, calc(100vw - 32px));
  box-shadow: var(--shadow);
}
.toast-title {
  margin: 0;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 0.82rem;
}
.toast-message {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 650;
}

/* Responsive */
@media (max-width: 980px) {
  .hero-top {
    grid-template-columns: 1fr;
  }
  .hero-image {
    min-height: 220px;
  }
  .cards:not(.cards-two) {
    grid-template-columns: repeat(2, 1fr);
  }
  .two-col {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 72px;
    padding: 14px 16px 16px;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--ssm-border);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .site-nav[data-open="true"] {
    display: flex;
  }

  .nav-link {
    width: 100%;
    justify-content: flex-start;
    padding: 12px 4px;
  }

  .hero-pillars {
    grid-template-columns: 1fr;
  }

  .cards:not(.cards-two) {
    grid-template-columns: 1fr;
  }
}

/* Products & Services page */
.products-hero {
  padding-top: 28px;
}

.products-intro {
  margin-bottom: 28px;
}

.products-lead {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ssm-ink);
  font-weight: 600;
}

.technical-library {
  border-radius: var(--radius);
  border: 1px solid var(--ssm-border);
  background: var(--ssm-surface);
  padding: 22px 24px 24px;
  margin-bottom: 42px;
  box-shadow: 0 10px 26px rgba(11, 18, 32, 0.06);
}

.technical-library-title {
  margin: 0 0 10px;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ssm-blue-900);
}

.technical-library-text {
  margin: 0 0 14px;
  color: var(--ssm-muted);
  font-weight: 650;
  line-height: 1.55;
}

.technical-library-list {
  margin: 0 0 18px;
  padding-left: 1.4em;
  color: var(--ssm-ink);
  font-weight: 600;
  line-height: 1.6;
}

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

.technical-library-list li:last-child {
  margin-bottom: 0;
}

.products-categories-title {
  margin-bottom: 20px;
}

.product-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.product-card {
  border-radius: var(--radius);
  border: 2px solid rgba(11, 42, 87, 0.2);
  background: #fff;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(11, 18, 32, 0.08);
  transition: box-shadow 220ms ease, transform 220ms ease;
}

.product-card:hover {
  box-shadow: 0 16px 40px rgba(11, 18, 32, 0.12);
  transform: translateY(-2px);
}

.product-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.product-card-image-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 400 / 280;
  min-height: 220px;
  background: var(--ssm-blue-700);
}

.product-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms ease;
}

.product-card-link:hover .product-card-image,
.product-card-link:focus-visible .product-card-image {
  transform: scale(1.08);
}

.product-card-body {
  padding: 20px 20px 24px;
  border-top: 1px solid rgba(11, 42, 87, 0.1);
}

.product-card-title {
  margin: 0 0 8px;
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--ssm-blue-900);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.product-card-text {
  margin: 0;
  color: var(--ssm-muted);
  font-weight: 650;
  line-height: 1.5;
  font-size: 0.95rem;
}

@media (max-width: 980px) {
  .product-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .product-card-image-wrap {
    min-height: 200px;
  }
}

/* Product Wire page */
.product-wire-hero {
  padding-top: 28px;
}

.product-wire-breadcrumb {
  margin: 0 0 10px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ssm-muted);
}

.product-wire-breadcrumb a {
  color: var(--ssm-blue-800);
}

.product-wire-breadcrumb a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.product-wire-section {
  padding-top: 36px;
  padding-bottom: 36px;
}

.product-wire-section-title {
  margin: 0 0 20px;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--ssm-blue-900);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.wire-montage {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}

.wire-montage-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--ssm-border);
  background: var(--ssm-surface);
  aspect-ratio: 4 / 3;
  min-height: 140px;
}

.wire-montage-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.wire-montage-precut {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.wire-content {
  max-width: 72ch;
}

.wire-description {
  margin: 0 0 14px;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ssm-ink);
  font-weight: 600;
}

.wire-description:last-of-type {
  margin-bottom: 20px;
}

.wire-spec {
  border-radius: var(--radius);
  border: 1px solid var(--ssm-border);
  background: #fff;
  padding: 16px 20px;
  box-shadow: 0 6px 18px rgba(11, 18, 32, 0.06);
}

.wire-spec + .wire-spec {
  margin-top: 16px;
}

.wire-spec-title {
  margin: 0 0 10px;
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ssm-blue-900);
}

.wire-spec-values {
  margin: 0;
  font-size: 1rem;
  font-weight: 650;
  color: var(--ssm-ink);
  line-height: 1.5;
}

@media (min-width: 640px) {
  .wire-montage {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
  .wire-montage-precut {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 980px) {
  .wire-montage {
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
  }
  .wire-montage-precut {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Product Cut and Bend page — hero-style photo rotator */
.product-cnb-section {
  padding-top: 36px;
  padding-bottom: 42px;
}

.cnb-hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--ssm-border);
  background: var(--ssm-surface);
  box-shadow: 0 10px 26px rgba(11, 18, 32, 0.08);
  aspect-ratio: 16 / 9;
  min-height: 180px;
  max-width: 66.666%;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 28px;
}

.cnb-hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 600ms ease;
}

.cnb-hero-photo.is-active {
  opacity: 1;
}

.cnb-hero-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 0 12px;
}

.cnb-hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background 200ms ease, transform 200ms ease;
}

.cnb-hero-dot:hover {
  background: rgba(255, 255, 255, 0.8);
}

.cnb-hero-dot.is-active {
  background: #fff;
  transform: scale(1.2);
}

.product-cnb-content {
  margin-bottom: 24px;
  max-width: none;
}

.product-cnb-section .wire-content {
  max-width: none;
}

.cnb-specs {
  display: grid;
  gap: 16px;
}

.cnb-spec-block {
  margin-bottom: 0;
}

/* Product Mesh page — dynamic layout */
.product-mesh-hero {
  padding-top: 28px;
}

.product-mesh-body {
  padding-top: 0;
  padding-bottom: 42px;
}

.container-mesh {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
}

.mesh-nav {
  border-radius: var(--radius);
  border: 1px solid var(--ssm-border);
  background: var(--ssm-surface);
  padding: 16px;
  position: sticky;
  top: 90px;
}

.mesh-nav-group-title {
  margin: 0 0 10px;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ssm-blue-900);
}

.mesh-nav-group:not(:first-child) {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--ssm-border);
}

.mesh-nav-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mesh-nav-list li + li {
  margin-top: 4px;
}

.mesh-nav-btn {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  font: inherit;
  font-weight: 700;
  color: var(--ssm-ink);
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.mesh-nav-btn:hover {
  background: rgba(61, 149, 227, 0.12);
  border-color: rgba(11, 42, 87, 0.2);
  color: var(--ssm-blue-900);
}

.mesh-nav-btn.is-active {
  background: var(--ssm-blue-800);
  color: #fff;
  border-color: var(--ssm-blue-800);
}

.mesh-nav-btn:focus-visible {
  outline: 3px solid rgba(61, 149, 227, 0.6);
  outline-offset: 2px;
}

.mesh-content {
  min-height: 320px;
}

.mesh-panel {
  display: none;
}

.mesh-panel.is-active {
  display: block;
}

.mesh-panel-title {
  margin: 0 0 12px;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--ssm-blue-900);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.mesh-panel-intro,
.mesh-panel-description {
  margin: 0 0 20px;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ssm-ink);
  font-weight: 600;
}

.mesh-spec-block {
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mesh-spec-box {
  border-radius: var(--radius);
  border: 1px solid var(--ssm-border);
  background: #fff;
  padding: 16px 20px;
  box-shadow: 0 6px 18px rgba(11, 18, 32, 0.06);
}

.mesh-spec-heading {
  margin: 0 0 10px;
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ssm-blue-900);
}

.mesh-spec-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--ssm-border);
  background: #fff;
  box-shadow: 0 6px 18px rgba(11, 18, 32, 0.06);
}

.mesh-spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.mesh-spec-table th,
.mesh-spec-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--ssm-border);
}

.mesh-spec-table thead th {
  background: var(--ssm-surface);
  font-weight: 800;
  color: var(--ssm-blue-900);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.mesh-spec-table tbody tr:last-child td {
  border-bottom: 0;
}

.mesh-spec-table td {
  font-weight: 650;
  color: var(--ssm-ink);
}

.standard-pdf-link {
  color: var(--ssm-blue-600);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 700;
}
.standard-pdf-link:hover {
  color: var(--ssm-blue-800);
  text-decoration: underline;
}
.standard-pdf-link:focus-visible {
  outline: 2px solid rgba(61, 149, 227, 0.6);
  outline-offset: 2px;
}

.stdsheet-gallery {
  margin-top: 20px;
}

.stdsheet-gallery-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.stdsheet-gallery-stack img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--ssm-border);
  cursor: pointer;
}

.stdsheet-gallery:not(.stdsheet-gallery-stack) {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

.stdsheet-gallery:not(.stdsheet-gallery-stack) img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.mesh-custom-photo {
  margin-bottom: 20px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--ssm-border);
  background: var(--ssm-surface);
}

.mesh-custom-photo img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  object-fit: cover;
}

.mesh-drawing-block {
  margin-top: 24px;
  padding: 20px;
  border-radius: var(--radius);
  border: 1px dashed var(--ssm-border);
  background: var(--ssm-surface);
}

.mesh-drawing-placeholder {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ssm-muted);
  font-weight: 650;
}

.mesh-spec-diameters {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 650;
  color: var(--ssm-ink);
}

.mesh-spec-diameters:last-of-type {
  margin-bottom: 14px;
}

.mesh-spec-app {
  margin: 0;
  font-size: 1rem;
  font-weight: 650;
  color: var(--ssm-ink);
}

.mesh-spec-inline {
  margin: 0;
  font-size: 1rem;
  font-weight: 650;
  color: var(--ssm-ink);
  line-height: 1.6;
}

.mesh-example-img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin-top: 10px;
  border-radius: 8px;
  border: 1px solid var(--ssm-border);
  cursor: pointer;
}

.mesh-list {
  margin: 0 0 18px 0;
  padding-left: 20px;
  color: var(--ssm-ink);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.55;
}

.mesh-list li {
  margin: 6px 0;
}

/* Lightbox — full-page image view */
body.lightbox-open {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(11, 18, 32, 0.92);
}

.lightbox[hidden] {
  display: none;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  cursor: pointer;
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transition: background 160ms ease;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.lightbox-close:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.8);
  outline-offset: 2px;
}

.lightbox-img {
  position: relative;
  z-index: 1;
  max-width: 100%;
  max-height: calc(100vh - 40px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  pointer-events: none;
}

@media (min-width: 760px) {
  .container-mesh {
    grid-template-columns: 260px 1fr;
    gap: 32px;
  }
}

@media (max-width: 759px) {
  .mesh-nav {
    position: static;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Portfolio page */
.portfolio-section {
  padding-top: 28px;
  padding-bottom: 42px;
}

.portfolio-section .section-head {
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
}

.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  align-items: flex-end;
  margin-bottom: 28px;
}

.portfolio-filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.portfolio-filter-group label {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ssm-blue-900);
}

.portfolio-select {
  min-width: 160px;
  padding: 10px 12px;
  border: 1px solid var(--ssm-border);
  border-radius: 10px;
  background: #fff;
  font: inherit;
  font-weight: 700;
  color: var(--ssm-ink);
  cursor: pointer;
}

.portfolio-select:focus-visible {
  outline: 3px solid rgba(61, 149, 227, 0.6);
  outline-offset: 2px;
}

.portfolio-content {
  min-height: 120px;
}

.portfolio-loading {
  margin: 0;
  color: var(--ssm-muted);
  font-weight: 650;
}

.portfolio-section-title {
  margin: 24px 0 14px;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--ssm-blue-900);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.portfolio-section-title:first-child {
  margin-top: 0;
}

.portfolio-grids {
  display: block;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.portfolio-grid:last-child {
  margin-bottom: 0;
}

.portfolio-card {
  border: 1px solid var(--ssm-border);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(11, 18, 32, 0.06);
  transition: box-shadow 220ms ease;
}

.portfolio-card:hover {
  box-shadow: 0 14px 32px rgba(11, 18, 32, 0.1);
}

.portfolio-card-image-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  min-height: 160px;
  background: var(--ssm-surface);
}

.portfolio-card-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portfolio-card-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ssm-blue-100);
}

.portfolio-card-image-placeholder .portfolio-card-image {
  display: none;
}

.portfolio-card-image-placeholder::after {
  content: "No image";
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ssm-muted);
}

.portfolio-card-body {
  padding: 16px 18px 20px;
  border-top: 1px solid var(--ssm-border);
}

.portfolio-card-title {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--ssm-blue-900);
  line-height: 1.3;
}

.portfolio-card-meta {
  margin: 0 0 4px;
  font-size: 0.9rem;
  color: var(--ssm-muted);
  font-weight: 650;
}

.portfolio-card-meta:last-child {
  margin-bottom: 0;
}

.portfolio-card-supplied {
  font-size: 0.85rem;
  color: var(--ssm-ink);
}

.portfolio-empty {
  margin: 0;
  padding: 24px 0;
  color: var(--ssm-muted);
  font-weight: 650;
}

@media (max-width: 640px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}

