:root {
  --bg: #f4f6f9;
  --surface: #ffffff;
  --surface-alt: #edf2f7;
  --ink: #111923;
  --muted: #4b5563;
  --accent: #183652;
  --accent-soft: #e7eff7;
  --accent-hover: #0f2438;
  --border: #d5dde6;
  --max-w: 70rem;
}

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

html {
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  text-align: start;
}

main {
  flex: 1;
}

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

.container {
  width: min(100% - 2.5rem, var(--max-w));
  margin-inline: auto;
}

:where(a:any-link, button, [tabindex="0"]):focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  position: sticky;
  inset-block-start: 0;
  z-index: 20;
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-block: 0.85rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.06em;
  font-size: 0.95rem;
  min-block-size: 2.5rem;
}

.brand-mark {
  color: var(--accent);
  flex-shrink: 0;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.35rem;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  min-block-size: 2.25rem;
}

.site-nav a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.header-contact {
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  min-block-size: 2.25rem;
  display: inline-flex;
  align-items: center;
}

.header-contact:hover {
  background: #d8e6f4;
}

/* Hero */
.hero {
  background: linear-gradient(180deg, #ffffff 0%, #f4f6f9 100%);
  padding-block: clamp(2.5rem, 5.5vw, 4.25rem);
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 21rem), 1fr));
  gap: 2.25rem 2.75rem;
  align-items: center;
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  color: var(--accent);
}

h1 {
  margin: 0 0 1.05rem;
  font-size: clamp(1.85rem, 1.25rem + 2.2vw, 2.65rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.lead {
  margin: 0 0 1.35rem;
  font-size: 1.02rem;
  color: var(--muted);
  max-width: 58ch;
  text-wrap: pretty;
}

.hero-facts {
  list-style: none;
  margin: 0 0 1.6rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.hero-facts li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.35rem 0.7rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-block-size: 2.8rem;
  padding: 0.65rem 1.35rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.94rem;
  border-radius: 5px;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
}

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

.btn-secondary {
  background: var(--surface);
  color: var(--accent);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.hero-figure {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(17, 25, 35, 0.06);
}

.hero-figure img {
  width: 100%;
  aspect-ratio: 1376 / 768;
  object-fit: cover;
}

.hero-figure figcaption {
  padding: 0.75rem 1rem;
  font-size: 0.82rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  background: var(--surface);
}

/* Sections */
.section {
  padding-block: clamp(2.5rem, 4.8vw, 3.5rem);
  border-bottom: 1px solid var(--border);
}

.section-surface {
  background: var(--surface);
}

h2 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.32rem, 1rem + 1.05vw, 1.7rem);
  line-height: 1.26;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.section-intro {
  margin: 0 0 1.75rem;
  color: var(--muted);
  max-width: 68ch;
  text-wrap: pretty;
}

/* Product Cards */
.product-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15.5rem), 1fr));
  gap: 1.3rem;
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(17, 25, 35, 0.03);
}

.product-card img {
  width: 100%;
  aspect-ratio: 640 / 400;
  object-fit: cover;
  border-bottom: 1px solid var(--border);
}

.product-body {
  padding: 1.15rem 1.25rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
}

.product-code {
  margin: 0;
  display: inline-block;
  align-self: flex-start;
  background: var(--accent-soft);
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--accent);
}

.product-card h3 {
  margin: 0.1rem 0 0;
  font-size: 1.05rem;
  line-height: 1.3;
  color: var(--ink);
}

.product-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.product-meta {
  margin: auto 0 0;
  padding-top: 0.7rem;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--ink);
  font-weight: 500;
}

/* Responsive Specification Table */
.table-wrapper {
  overflow: auto;
  max-inline-size: 100%;
  max-block-size: min(560px, 78vh);
  container-type: inline-size;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.spec-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.9rem;
  --label-2: "Category";
  --label-3: "Reference Technical Scope";
  --label-4: "Packaging";
  --label-5: "Order & Quotation";
}

.spec-table caption {
  text-align: start;
  padding: 0.85rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface-alt);
  border-bottom: 1px solid var(--border);
}

.spec-table thead {
  position: sticky;
  inset-block-start: 0;
  z-index: 2;
}

.spec-table thead th {
  background: var(--surface-alt);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-align: start;
  padding: 0.78rem 0.95rem;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.spec-table tbody th,
.spec-table tbody td {
  padding: 0.82rem 0.95rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  text-align: start;
}

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

.spec-table tbody th {
  position: sticky;
  inset-inline-start: 0;
  z-index: 1;
  background: var(--surface);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}

@container (width < 600px) {
  .spec-table,
  .spec-table thead,
  .spec-table tbody,
  .spec-table tr,
  .spec-table th,
  .spec-table td {
    display: block;
  }

  .spec-table thead {
    display: none;
  }

  .spec-table tbody tr {
    margin: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--surface);
  }

  .spec-table tbody th {
    position: sticky;
    inset-block-start: 0;
    z-index: 2;
    background: var(--surface-alt);
    border-bottom: 1px solid var(--border);
  }

  .spec-table tbody td {
    border-bottom: 1px solid var(--surface-alt);
    padding: 0.58rem 0.85rem;
  }

  .spec-table tbody td::before {
    font-weight: 700;
    color: var(--muted);
    margin-inline-end: 0.35rem;
  }

  .spec-table tbody td:nth-child(2)::before {
    content: var(--label-2) ": ";
  }

  .spec-table tbody td:nth-child(3)::before {
    content: var(--label-3) ": ";
  }

  .spec-table tbody td:nth-child(4)::before {
    content: var(--label-4) ": ";
  }

  .spec-table tbody td:nth-child(5)::before {
    content: var(--label-5) ": ";
  }
}

/* Trade Workflow Steps */
.step-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14.5rem), 1fr));
  gap: 1.15rem;
}

.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem;
}

.step-num {
  margin: 0 0 0.45rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
}

.step-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1rem;
  color: var(--ink);
}

.step-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Company & Contact */
.contact-band {
  border-bottom: 0;
}

.contact-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: 1rem;
  margin: 0;
}

.contact-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.05rem 1.25rem;
}

.contact-item dt {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.contact-item dd {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  overflow-wrap: break-word;
}

.entity-sub {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.84rem;
  font-weight: 400;
  color: var(--muted);
}

.contact-item a {
  color: var(--accent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-block-size: 2rem;
}

.contact-item a:hover {
  text-decoration: underline;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  margin-top: 1rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.65rem 1.5rem;
  padding-block: 1.25rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.footer-inner p {
  margin: 0;
}
