/* Sino Nexvia — site styles
   Fonts are self-hosted (no requests to third parties). */

@font-face { font-family: "Archivo"; font-weight: 400; font-display: swap; src: url("fonts/archivo-400.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-weight: 500; font-display: swap; src: url("fonts/archivo-500.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-weight: 600; font-display: swap; src: url("fonts/archivo-600.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-weight: 700; font-display: swap; src: url("fonts/archivo-700.woff2") format("woff2"); }

:root {
  --ink: #16191a;
  --text: #2b3133;
  --muted: #646d70;
  --line: #dcdfdd;
  --bg: #ffffff;
  --bg-alt: #f3f4f2;
  --tile: #f6f6f4;
  --green: #2f6d1e;
  --green-dark: #24551a;
  --green-tint: #eaf2e3;

  --maxw: 1200px;
  --pad: clamp(16px, 4vw, 40px);
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); }
a:hover { color: var(--green-dark); }
h1, h2, h3, h4 { color: var(--ink); margin: 0; line-height: 1.15; font-weight: 600; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--ink);
  color: #c9cecf;
  font-size: 13px;
}
.topbar .wrap {
  display: flex; justify-content: space-between; gap: 16px;
  padding-top: 7px; padding-bottom: 7px;
}
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; color: #fff; }
.topbar-right { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.lang { display: flex; border: 1px solid #3c4345; }
.lang a, .lang span { padding: 1px 8px; font-weight: 600; letter-spacing: 0.04em; }
.lang a { color: #aab1b3; }
.lang a:hover { color: #fff; text-decoration: none; background: #2a3032; }
.lang [aria-current] { background: #fff; color: var(--ink); }
@media (max-width: 700px) { .topbar .hide-sm { display: none; } }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 20;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; gap: 24px;
}
.logo {
  display: flex; flex-direction: column; text-decoration: none; line-height: 1;
}
.logo-name { font-weight: 700; font-size: 20px; letter-spacing: 0.06em; color: var(--ink); }
.logo-sub { font-size: 11px; letter-spacing: 0.04em; color: var(--muted); margin-top: 4px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--text); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--green); }
.nav .button { color: #fff; }
.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav { display: none; }
  .nav.open {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: absolute; left: 0; right: 0; top: 68px;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px var(--pad) 16px;
  }
  .nav.open a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav.open .button { margin-top: 12px; text-align: center; border: 0; }
  .nav-toggle {
    display: block; background: none; border: 1px solid var(--line);
    font: inherit; font-size: 14px; padding: 8px 12px; cursor: pointer; color: var(--ink);
  }
}

/* ---------- Buttons ---------- */
.button {
  display: inline-block;
  background: var(--green);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  padding: 12px 20px;
  border-radius: 3px;
  border: 1px solid var(--green);
}
.button:hover { background: var(--green-dark); border-color: var(--green-dark); color: #fff; }
.button.secondary { background: #fff; color: var(--ink); border-color: #b9bfbc; }
.button.secondary:hover { border-color: var(--ink); color: var(--ink); }
.nav .button { padding: 9px 16px; font-size: 14px; }

/* ---------- Hero ---------- */
.hero { border-bottom: 1px solid var(--line); }
.hero .wrap {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
  padding-top: 64px; padding-bottom: 64px;
}
.hero h1 { font-size: clamp(30px, 4.2vw, 46px); letter-spacing: -0.01em; margin-bottom: 20px; }
.hero p.intro { font-size: 18px; color: var(--text); max-width: 34em; margin-bottom: 28px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-products {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
}
.hero-products figure { margin: 0; background: var(--tile); }
.hero-products img { width: 100%; aspect-ratio: 1; object-fit: contain; mix-blend-mode: multiply; padding: 6%; }
.hero-products figcaption { font-size: 12px; color: var(--muted); padding: 0 10px 8px; }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 36px; padding-top: 40px; padding-bottom: 40px; }
}

/* ---------- Key figures ---------- */
.figures { background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.figures ul {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.figures li { padding: 22px 20px 22px 0; }
.figures li + li { padding-left: 20px; border-left: 1px solid var(--line); }
.figures strong { display: block; font-size: 22px; color: var(--ink); font-weight: 600; }
.figures span { font-size: 14px; color: var(--muted); }
@media (max-width: 760px) {
  .figures ul { grid-template-columns: 1fr 1fr; }
  .figures li, .figures li + li { padding: 16px 12px; border-left: 0; }
  .figures li:nth-child(even) { border-left: 1px solid var(--line); }
  .figures li:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section.alt { background: var(--bg-alt); }
.section-head { max-width: 46em; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(26px, 3vw, 34px); margin-bottom: 12px; }
.section-head p { color: var(--muted); font-size: 17px; margin: 0; }
@media (max-width: 700px) { .section { padding: 48px 0; } }

/* ---------- Product range ---------- */
.range-nav {
  display: flex; flex-wrap: wrap; gap: 6px 22px;
  border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 8px;
  font-size: 15px;
}
.range-nav a { color: var(--text); text-decoration: none; }
.range-nav a:hover { color: var(--green); text-decoration: underline; }

.category {
  display: grid; grid-template-columns: 260px 1fr; gap: 40px;
  padding: 40px 0; border-bottom: 1px solid var(--line);
  scroll-margin-top: 90px;
}
.category:last-child { border-bottom: 0; }
.category h3 { font-size: 21px; margin-bottom: 10px; }
.category .desc { color: var(--muted); font-size: 15px; }
.category .desc ul { padding-left: 18px; margin: 12px 0 0; }
.category .desc li { margin-bottom: 4px; }
@media (max-width: 900px) {
  .category { grid-template-columns: 1fr; gap: 20px; }
}

.products {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px;
}
.product { border: 1px solid var(--line); background: #fff; display: flex; flex-direction: column; }
.product img { width: 100%; aspect-ratio: 1; object-fit: contain; padding: 8%; background: #fff; }
.product .info { padding: 12px 14px 14px; border-top: 1px solid var(--line); flex: 1; }
.product .model { font-size: 12px; font-weight: 600; letter-spacing: 0.04em; color: var(--green); }
.product h4 { font-size: 15px; font-weight: 600; margin: 3px 0 8px; }
.product dl { margin: 0; font-size: 13px; display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; }
.product dt { color: var(--muted); }
.product dd { margin: 0; color: var(--text); font-variant-numeric: tabular-nums; }
@media (max-width: 480px) {
  .products { grid-template-columns: 1fr 1fr; gap: 10px; }
  .product .info { padding: 10px; }
  .product dl { grid-template-columns: 1fr; }
  .product dt { margin-top: 4px; }
}

.range-note {
  margin-top: 32px; padding: 20px 24px; background: var(--green-tint);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
}
.range-note p { margin: 0; color: var(--ink); max-width: 44em; }

/* ---------- Two-column text blocks ---------- */
.columns { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
@media (max-width: 860px) { .columns { grid-template-columns: 1fr; gap: 32px; } }

.terms { margin: 0; }
.terms div { padding: 18px 0; border-top: 1px solid var(--line); }
.terms div:last-child { border-bottom: 1px solid var(--line); }
.terms dt { font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.terms dd { margin: 0; color: var(--text); }

.customers { list-style: none; margin: 0; padding: 0; }
.customers li { padding: 18px 0; border-top: 1px solid var(--line); }
.customers li:last-child { border-bottom: 1px solid var(--line); }
.customers strong { display: block; color: var(--ink); }
.customers span { color: var(--muted); font-size: 15px; }

/* ---------- Manufacturer ---------- */
.maker { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: start; }
.maker table { width: 100%; border-collapse: collapse; font-size: 15px; }
.maker th, .maker td { text-align: left; padding: 11px 0; border-top: 1px solid var(--line); vertical-align: top; }
.maker tr:last-child th, .maker tr:last-child td { border-bottom: 1px solid var(--line); }
.maker th { font-weight: 500; color: var(--muted); width: 42%; padding-right: 16px; }
@media (max-width: 860px) { .maker { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.person, .office { border: 1px solid var(--line); background: #fff; padding: 24px; }
.person h3, .office h3 { font-size: 18px; margin-bottom: 2px; }
.person .role { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.person a, .office a { display: block; text-decoration: none; margin-bottom: 4px; word-break: break-word; }
.office address { font-style: normal; margin: 8px 0 16px; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }

.inquiry-hint { margin-top: 28px; font-size: 15px; color: var(--muted); max-width: 52em; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #aab1b3; font-size: 14px; padding: 40px 0 28px; }
.footer .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer h4 { color: #fff; font-size: 14px; margin-bottom: 10px; }
.footer a { color: #d9dddd; text-decoration: none; display: block; margin-bottom: 6px; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer .legal { grid-column: 1 / -1; border-top: 1px solid #343a3c; padding-top: 18px; margin-top: 8px; font-size: 13px; }
@media (max-width: 760px) { .footer .wrap { grid-template-columns: 1fr; } }

/* ---------- Legal pages ---------- */
.legal-page { padding: 56px 0 72px; }
.legal-page .wrap { max-width: 820px; }
.legal-page h1 { font-size: 34px; margin-bottom: 28px; }
.legal-page h2 { font-size: 19px; margin: 32px 0 10px; }
.legal-page .todo { background: #fff3c4; padding: 0 4px; }
