/* ═══════════════════════════════════════════════════════════════════
   HSK Plastic Welding Technology — Shared Stylesheet
   ACS Automation & Control Services Ltd · Authorised UK Distributor
   Light mode · DM Sans + DM Serif Display · Red #8b0000 accent
   ═══════════════════════════════════════════════════════════════════ */

/* ─── TOKENS ────────────────────────────────────────────────────── */
:root {
  --red: #8b0000;
  --red-mid: #a80000;
  --red-light: #f5e6e6;
  --red-rule: rgba(139, 0, 0, 0.12);
  --ink: #1a1616;
  --body: #3d3535;
  --muted: #7a6f6f;
  --rule: #e8e2e2;
  --bg: #ffffff;
  --bg-warm: #faf8f8;
  --amber: #f59e0b; /* thePLCGuy accent — used sparingly */
}

/* ─── RESET ─────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}

body {
  font-family: "DM Sans", system-ui, sans-serif;
  background: var(--bg);
  color: var(--body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  font-family: "DM Serif Display", Georgia, serif;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.01em;
}
h1 {
  font-size: clamp(2rem, 4vw, 3rem);
}
h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
}
h3 {
  font-size: 1.15rem;
}
h4 {
  font-size: 0.95rem;
  font-family: "DM Sans", sans-serif;
  font-weight: 700;
}

p {
  color: var(--body);
  line-height: 1.75;
}
a {
  color: var(--red);
}
img {
  max-width: 100%;
  display: block;
}

/* ─── UTILITY ───────────────────────────────────────────────────── */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.75rem;
}
.kicker::before {
  content: "";
  display: block;
  width: 28px;
  height: 2px;
  background: var(--red);
  flex-shrink: 0;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 4rem 0;
}

.section-header {
  margin-bottom: 2.5rem;
}
.section-header p {
  color: var(--muted);
  font-size: 1rem;
  max-width: 620px;
  margin-top: 0.5rem;
}

/* ─── BUTTONS ───────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--red);
  color: #fff;
  font-family: "DM Sans", sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.8rem 1.75rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-primary:hover {
  background: var(--red-mid);
  color: #fff;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--red);
  font-family: "DM Sans", sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.8rem 1.75rem;
  text-decoration: none;
  border: 1.5px solid var(--red);
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s;
}
.btn-outline:hover {
  background: var(--red);
  color: #fff;
}

/* ─── NAV ───────────────────────────────────────────────────────── */
.hsk-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
  padding: 0 2rem;
}
.hsk-nav-inner {
  /* max-width: 1080px; */
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

/* Logo block */
.hsk-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}
.hsk-logo img {
  height: 38px;
  width: auto;
}
.hsk-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.hsk-logo-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink);
}
.hsk-logo-sub {
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Nav links */
.hsk-nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}
.hsk-nav-links a {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.hsk-nav-links a:hover {
  color: var(--red);
}
.hsk-nav-links a.nav-cta {
  background: var(--red);
  color: #fff;
  padding: 0.45rem 1.1rem;
  font-weight: 600;
  transition: background 0.2s;
}
.hsk-nav-links a.nav-cta:hover {
  background: var(--red-mid);
}

/* Breadcrumb */
.breadcrumb {
  background: var(--bg-warm);
  border-bottom: 1px solid var(--rule);
  padding: 0.6rem 2rem;
}
.breadcrumb-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--muted);
}
.breadcrumb-inner a {
  color: var(--muted);
  text-decoration: none;
}
.breadcrumb-inner a:hover {
  color: var(--red);
}
.breadcrumb-inner .sep {
  color: var(--rule);
}
.breadcrumb-inner .current {
  color: var(--red);
  font-weight: 600;
}

/* Hamburger */
.hsk-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--rule);
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.hsk-hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  transition:
    transform 0.25s,
    opacity 0.25s;
}
.hsk-hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hsk-hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hsk-hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ─── HERO STRIP ────────────────────────────────────────────────── */
.hsk-hero {
  background: var(--bg-warm);
  border-bottom: 1px solid var(--rule);
  padding: 3.5rem 2rem 3rem;
  position: relative;
  overflow: hidden;
}
.hsk-hero::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: var(--red);
}
.hsk-hero-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
}
.hsk-hero h1 {
  margin-top: 0.5rem;
}
.hsk-hero p {
  color: var(--muted);
  font-size: 1rem;
  max-width: 560px;
  margin-top: 0.75rem;
  line-height: 1.8;
}
.hsk-hero-badge {
  background: var(--red);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.6rem 1.1rem;
  white-space: nowrap;
  align-self: flex-start;
}

/* ─── PRODUCT GRID ──────────────────────────────────────────────── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5px;
  background: var(--rule);
}

.product-card {
  background: var(--bg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: background 0.2s;
  position: relative;
}
.product-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s;
}
.product-card:hover {
  background: var(--bg-warm);
}
.product-card:hover::before {
  transform: scaleX(1);
}

/* ─── PRODUCT GALLERY ───────────────────────────────────────────── */
.product-gallery {
  width: 100%;
  flex-shrink: 0;
}
.product-img {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--bg-warm);
  border: 1px solid var(--rule);
  border-bottom: none;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  cursor: zoom-in;
}
.product-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1rem;
  display: block;
}
.product-img-zoom-hint {
  position: absolute;
  bottom: 6px;
  right: 8px;
  font-size: 0.65rem;
  color: var(--muted);
  background: rgba(255,255,255,0.85);
  padding: 2px 6px;
  border-radius: 2px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
}
.product-img:hover .product-img-zoom-hint { opacity: 1; }
.product-img-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  padding: 1rem;
  cursor: default;
}
.product-img-placeholder svg {
  width: 48px;
  height: 48px;
  opacity: 0.25;
}

/* Thumbnail strip */
.product-thumbs {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--bg-warm);
  border: 1px solid var(--rule);
  border-top: 1px solid var(--rule);
  flex-wrap: wrap;
}
.product-thumb {
  width: 52px;
  height: 40px;
  object-fit: contain;
  background: var(--bg);
  border: 1.5px solid transparent;
  cursor: pointer;
  padding: 2px;
  transition: border-color 0.12s;
  flex-shrink: 0;
}
.product-thumb:hover { border-color: var(--red-mid); }
.product-thumb.active { border-color: var(--red); }

/* ─── LIGHTBOX ──────────────────────────────────────────────────── */
.hsk-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(0,0,0,0.92);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
}
.hsk-lightbox.open { display: flex; }
.hsk-lightbox-img-wrap {
  position: relative;
  max-width: min(90vw, 900px);
  max-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hsk-lightbox-img-wrap img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  display: block;
  border: 1px solid rgba(255,255,255,0.08);
  background: #111;
}
.hsk-lightbox-close {
  position: fixed;
  top: 1rem;
  right: 1.25rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.7;
  padding: 0.25rem 0.5rem;
  z-index: 9001;
}
.hsk-lightbox-close:hover { opacity: 1; }
.hsk-lightbox-arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  font-size: 1.5rem;
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9001;
  transition: background 0.12s;
  border-radius: 2px;
}
.hsk-lightbox-arrow:hover { background: rgba(255,255,255,0.18); }
.hsk-lightbox-prev { left: 1rem; }
.hsk-lightbox-next { right: 1rem; }
.hsk-lightbox-arrow[hidden] { display: none; }
.hsk-lightbox-counter {
  color: rgba(255,255,255,0.45);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
}
.hsk-lightbox-strip {
  display: flex;
  gap: 6px;
  max-width: min(90vw, 900px);
  overflow-x: auto;
  padding-bottom: 2px;
}
.hsk-lightbox-strip img {
  height: 52px;
  width: 68px;
  object-fit: contain;
  background: #222;
  border: 1.5px solid transparent;
  cursor: pointer;
  flex-shrink: 0;
  padding: 2px;
  transition: border-color 0.12s;
}
.hsk-lightbox-strip img:hover { border-color: rgba(255,255,255,0.4); }
.hsk-lightbox-strip img.active { border-color: #fff; }

/* Product card content */
.product-model {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
}
.product-card h3 {
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 1.15rem;
  color: var(--ink);
  margin-top: 0.1rem;
}
.product-card .product-desc {
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.7;
  flex-grow: 1;
}

/* Spec table */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}
.spec-table tr {
  border-top: 1px solid var(--rule);
}
.spec-table td {
  padding: 0.4rem 0;
  vertical-align: top;
}
.spec-table td:first-child {
  color: var(--muted);
  width: 55%;
  padding-right: 0.5rem;
}
.spec-table td:last-child {
  color: var(--ink);
  font-weight: 600;
}

/* Art.No badge */
.art-no {
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--rule);
}
.art-no strong {
  color: var(--ink);
}

/* Features list */
.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.feature-list li {
  font-size: 0.82rem;
  color: var(--muted);
  padding-left: 1rem;
  position: relative;
  line-height: 1.5;
}
.feature-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--red-rule);
}

/* ─── CATEGORY CARDS (hub page) ─────────────────────────────────── */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5px;
  background: var(--rule);
}
.category-card {
  background: var(--bg);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-decoration: none;
  transition: background 0.2s;
}
.category-card:hover {
  background: var(--red-light);
}
.category-card-icon {
  font-size: 2rem;
  line-height: 1;
}
.category-card h3 {
  font-size: 1rem;
  font-family: "DM Sans", sans-serif;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
}
.category-card p {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.6;
}
.category-card .cat-arrow {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--red);
  margin-top: auto;
  letter-spacing: 0.05em;
}

/* ─── ACCESSORIES TABLE ─────────────────────────────────────────── */
.acc-section {
  margin-bottom: 3rem;
}
.acc-section h3 {
  font-family: "DM Sans", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--red);
  margin-bottom: 1rem;
}
.acc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}
.acc-table th {
  background: var(--bg-warm);
  border: 1px solid var(--rule);
  padding: 0.5rem 0.75rem;
  text-align: left;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.acc-table td {
  border: 1px solid var(--rule);
  padding: 0.5rem 0.75rem;
  color: var(--body);
  vertical-align: middle;
}
.acc-table tr:hover td {
  background: var(--bg-warm);
}
.acc-table td:first-child {
  font-weight: 600;
  color: var(--ink);
}

/* ─── CTA / ENQUIRY BAND ────────────────────────────────────────── */
.enquiry-band {
  background: var(--ink);
  padding: 3.5rem 2rem;
}
.enquiry-band-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.enquiry-band h2 {
  color: #fff;
  font-size: 1.6rem;
}
.enquiry-band p {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.88rem;
  margin-top: 0.4rem;
  max-width: 480px;
}
.enquiry-band .btn-primary {
  flex-shrink: 0;
}
.enquiry-band .btn-primary:hover {
  background: var(--red-mid);
}

/* Enquiry button with outline for dark bg */
.btn-white-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: #fff;
  font-family: "DM Sans", sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.8rem 1.75rem;
  text-decoration: none;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition:
    border-color 0.2s,
    color 0.2s;
}
.btn-white-outline:hover {
  border-color: #fff;
  color: #fff;
}

/* ─── DISTRIBUTOR STRIP ─────────────────────────────────────────── */
.distributor-strip {
  background: var(--bg-warm);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 2rem;
}
.distributor-strip-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.distributor-strip h3 {
  font-family: "DM Sans", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.4rem;
}
.distributor-strip p {
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.7;
}
.dist-meta {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--muted);
}
.dist-meta a {
  color: var(--red);
  font-weight: 600;
}
.dist-meta strong {
  color: var(--ink);
}

/* ─── FOOTER ────────────────────────────────────────────────────── */
footer {
  background: var(--bg-warm);
  border-top: 1px solid var(--rule);
  padding: 2.5rem 3rem;
}
.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: flex-start;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}
.footer-logo img {
  height: 40px;
  width: auto;
  display: block;
  flex-shrink: 0;
}
.footer-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
}
.footer-reg {
  font-size: 0.72rem;
  color: var(--muted);
}
.footer-links {
  font-size: 0.78rem;
  color: var(--muted);
  text-align: right;
  line-height: 1.8;
}
.footer-links a {
  color: var(--red);
  text-decoration: none;
}
.footer-links a:hover {
  text-decoration: underline;
}

/* ─── RESPONSIVE ────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .hsk-nav {
    padding: 0 1.25rem;
  }
  .hsk-hamburger {
    display: flex;
  }
  .hsk-nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg);
    border-bottom: 1px solid var(--rule);
    padding: 0.5rem 0 1rem;
    gap: 0;
    z-index: 199;
  }
  .hsk-nav-links.open {
    display: flex;
  }
  .hsk-nav-links li {
    display: block;
    width: 100%;
  }
  .hsk-nav-links a {
    display: block;
    padding: 0.85rem 1.5rem;
    font-size: 1rem;
    border-bottom: 1px solid var(--rule);
  }
  .hsk-nav-links li:last-child a {
    border-bottom: none;
    margin: 0.5rem 1.25rem 0;
    text-align: center;
  }

  .hsk-hero {
    padding: 2.5rem 1.25rem;
  }
  .hsk-hero-inner {
    grid-template-columns: 1fr;
  }
  .hsk-hero::after {
    display: none;
  }
  .hsk-hero-badge {
    align-self: flex-start;
  }

  .breadcrumb {
    padding: 0.6rem 1.25rem;
  }

  .container {
    padding: 0 1.25rem;
  }
  section {
    padding: 2.5rem 0;
  }
  .section-header {
    margin-bottom: 1.75rem;
  }

  .product-grid {
    grid-template-columns: 1fr;
    gap: 1px;
  }
  .category-grid {
    grid-template-columns: 1fr;
    gap: 1px;
  }

  .distributor-strip {
    padding: 1.5rem 1.25rem;
  }
  .distributor-strip-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .enquiry-band {
    padding: 2.5rem 1.25rem;
  }
  .enquiry-band-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  footer {
    padding: 2rem 1.25rem;
  }
  .footer-inner {
    flex-direction: column;
  }
  .footer-links {
    text-align: left;
  }
}
