/* NEXAPEN design system — B2B industrial, colors drawn from the NEXAPEN logo */
:root {
  --navy-900: #0f2c50;
  --navy-700: #143a6b;
  --blue-600: #2e6fc5;
  --blue-500: #3b82d8;
  --sky-400: #64aee8;
  --sky-100: #eaf3fb;
  --ink: #1e2a38;
  --muted: #5b6b7d;
  --line: #dde6ef;
  --bg: #ffffff;
  --bg-alt: #f5f9fd;
  --todo-bg: #fff3cd;
  --todo-ink: #6b5308;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; }
a { color: var(--blue-600); }
h1, h2, h3 { line-height: 1.25; color: var(--navy-900); }
h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin: 0 0 .6em; }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin: 0 0 .6em; }
h2:not(:first-child) { margin-top: 1.5em; }
h3 { font-size: 1.15rem; margin: 0 0 .4em; }
p { margin: 0 0 1em; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.section { padding: 56px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 760px; margin-bottom: 28px; }
.eyebrow {
  display: block; font-size: .78rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--blue-600); margin-bottom: 8px;
}
.lede { font-size: 1.08rem; color: var(--muted); }

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: sticky; top: 0; z-index: 50;
}
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 110px; }
.brand img { display: block; height: 92px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.site-nav a { color: var(--ink); text-decoration: none; font-size: .95rem; font-weight: 500; }
.site-nav a:hover { color: var(--blue-600); }
.site-nav a[aria-current="page"] { color: var(--blue-600); }
.nav-cta {
  border: 1.5px solid var(--navy-700); border-radius: 8px; padding: 8px 16px;
}
.nav-toggle {
  display: none; margin-left: auto; background: none; border: 1px solid var(--line);
  border-radius: 8px; padding: 8px 14px; font-size: .95rem; color: var(--ink); cursor: pointer;
}

/* Hero */
.hero { position: relative; padding: 72px 0 56px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(90deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.96) 42%, rgba(255,255,255,.80) 68%, rgba(243,249,253,.40) 100%),
    url('/assets/hero-hand.webp');
  background-size: cover;
  background-position: 72% 30%;
}
.hero .container { position: relative; z-index: 1; }
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start; }
.hero-sub { font-size: 1.12rem; color: var(--muted); max-width: 34em; }
.hero-points { margin: 20px 0 0; padding: 0; list-style: none; }
.hero-points li { padding: 6px 0 6px 28px; position: relative; }
.hero-points li::before {
  content: ""; position: absolute; left: 0; top: 13px; width: 14px; height: 14px;
  border-radius: 4px; background: linear-gradient(135deg, var(--blue-600), var(--sky-400));
}

/* Forms */
.hero-form, .form-card {
  background: rgba(255,255,255,.92);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border: 1px solid rgba(221,230,239,.9); border-radius: 14px;
  padding: 26px; box-shadow: 0 10px 30px rgba(15, 44, 80, .07);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .82rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--navy-700); }
.field select, .field input {
  border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px;
  font-size: 1rem; color: var(--ink); background: var(--bg); font-family: inherit;
}
.btn {
  display: inline-block; border-radius: 8px; padding: 12px 22px; font-size: 1rem;
  font-weight: 600; text-decoration: none; border: none; cursor: pointer; font-family: inherit;
}
.btn-primary { background: var(--navy-700); color: #fff; }
.btn-primary:hover { background: var(--blue-600); }
.btn-block { width: 100%; }
.form-note { font-size: .85rem; color: var(--muted); margin: 10px 0 0; }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--bg); border: 1px solid var(--line); border-radius: 12px;
  padding: 24px;
}
.card h3 a { color: var(--navy-900); text-decoration: none; }
.card p { color: var(--muted); font-size: .96rem; margin: 0; }
.card--photo {
  padding: 0; overflow: hidden; display: flex; flex-direction: column;
}
.photo-pending {
  aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center;
  background: repeating-linear-gradient(45deg, var(--bg-alt), var(--bg-alt) 12px, #edf3f9 12px, #edf3f9 24px);
  color: var(--muted); font-size: .85rem; letter-spacing: .08em; text-transform: uppercase;
  border-bottom: 1px solid var(--line);
}
.card--photo img.card-img {
  display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: contain;
  background: #fff; border-bottom: 1px solid var(--line);
}
.card--photo .card-body { padding: 20px 22px 24px; }

/* Product platform layout: media column + spec body */
.platform {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}
.platform-media {
  margin: 0;
  position: sticky;
  top: 96px;
}
.platform-media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(15, 44, 80, .08), 0 8px 24px rgba(15, 44, 80, .06);
}
@media (max-width: 900px) {
  .platform { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .platform-media {
    position: static; max-width: 320px; margin: 0 auto;
  }
}

/* Factory photos & certificate evidence */
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 22px 0; }
.photo-grid img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: 10px; border: 1px solid var(--line);
}
.cert-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 22px 0; }
.cert-grid a { display: block; }
.cert-grid img {
  width: 100%; height: auto; background: #fff;
  border: 1px solid var(--line); border-radius: 8px;
}
.cert-grid a:hover img { border-color: var(--blue-600); }
.evidence-list { margin: 18px 0; padding: 0; list-style: none; }
.evidence-list li { padding: 5px 0 5px 26px; position: relative; }
.evidence-list li::before {
  content: ""; position: absolute; left: 0; top: 12px; width: 13px; height: 13px;
  border-radius: 4px; background: linear-gradient(135deg, var(--blue-600), var(--sky-400));
}
@media (max-width: 720px) {
  .photo-grid { grid-template-columns: 1fr; }
  .cert-grid { grid-template-columns: 1fr 1fr; }
}

/* Tables */
.table-wrap { overflow-x: auto; margin-bottom: 18px; }
table.fact {
  width: 100%; border-collapse: collapse; font-size: .95rem; background: var(--bg);
}
table.fact th, table.fact td {
  border: 1px solid var(--line); padding: 10px 14px; text-align: left; vertical-align: top;
}
table.fact th { background: var(--sky-100); color: var(--navy-900); white-space: nowrap; }
@media (max-width: 720px) {
  table.fact th { white-space: normal; }
}

/* Article body tables (generated from markdown, no class) */
.article table {
  width: 100%; border-collapse: collapse; font-size: .93rem;
  background: var(--bg); margin: 0 0 22px;
}
.article th, .article td {
  border: 1px solid var(--line); padding: 10px 14px; text-align: left; vertical-align: top;
}
.article th { background: var(--sky-100); color: var(--navy-900); font-weight: 600; white-space: nowrap; }
.article td { overflow-wrap: break-word; }
@media (max-width: 720px) {
  .article table { font-size: .87rem; }
  .article th, .article td { padding: 8px 10px; }
  .article th { white-space: normal; }
}

/* Callouts */
.callout { border-left: 4px solid var(--blue-600); background: var(--sky-100); border-radius: 0 10px 10px 0; padding: 18px 22px; margin: 26px 0; }
.callout h3 { margin-top: 0; }
.callout p:last-child { margin-bottom: 0; }
.boundary { border-left-color: var(--navy-700); background: var(--bg-alt); }
.todo {
  background: var(--todo-bg); color: var(--todo-ink); border-radius: 4px;
  padding: 1px 6px; font-weight: 600; white-space: nowrap;
}

/* CTA band */
.cta-band {
  background: var(--navy-700); color: #eaf3fb; border-radius: 14px;
  padding: 36px; margin: 56px 0 0;
}
.cta-band h2 { color: #fff; margin-top: 0; }
.cta-band p { color: #c9dcf2; max-width: 46em; }
.cta-band a.btn-primary { background: #fff; color: var(--navy-700); }

/* Breadcrumb */
.breadcrumb { font-size: .85rem; color: var(--muted); padding: 18px 0 0; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: var(--line); }
.breadcrumb a { color: var(--muted); text-decoration: none; }

/* Footer */
.site-footer { background: var(--navy-900); color: #b9cbe0; margin-top: 80px; padding: 48px 0 28px; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
.site-footer h3 { color: #fff; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; }
.site-footer a { color: #b9cbe0; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: 4px 0; }
.footer-base { border-top: 1px solid rgba(255,255,255,.14); margin-top: 36px; padding-top: 20px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* Skip link */
.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--navy-700); color: #fff;
  padding: 10px 18px; border-radius: 0 0 8px 0; z-index: 100;
}
.skip-link:focus { left: 0; }

/* Responsive */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
/* The eight-item nav needs the drawer earlier than the rest of the mobile layout */
@media (max-width: 1000px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--bg); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 16px;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-cta { border: none; padding: 12px 0; }
}
@media (max-width: 720px) {
  .card-grid, .form-grid, .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 40px 0; }
}


/* Floating WhatsApp button */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .28);
  transition: transform .15s ease;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }
@media (max-width: 720px) {
  .wa-float { width: 48px; height: 48px; right: 14px; bottom: 14px; }
  .wa-float svg { width: 26px; height: 26px; }
}
