/* NeonPro — responsive site styles (mobile first) */

:root {
  --navy-900: #071a2c;
  --navy-800: #0b2239;
  --navy-700: #12324f;
  --blue-600: #0a6fb3;
  --blue-500: #1b8fd6;
  --blue-400: #3fb4f0;
  --blue-50: #eef6fc;
  --ink: #1d2733;
  --ink-soft: #4a5868;
  --muted: #6b7887;
  --line: #e2e8ef;
  --surface: #f5f8fb;
  --white: #fff;
  --accent: #e0457b;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(11, 34, 57, .06), 0 4px 16px rgba(11, 34, 57, .06);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial,
          "PingFang SC", "Microsoft YaHei", sans-serif;
  --gutter: 16px;
  --header-h: 60px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--surface);
  overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; vertical-align: middle; }

a { color: var(--blue-600); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--blue-500); }
:focus-visible { outline: 3px solid var(--blue-400); outline-offset: 2px; border-radius: 3px; }

h1, h2, h3 { line-height: 1.25; color: var(--navy-800); }

.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  background: var(--white); padding: 8px 14px; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 8px; }

/* ------------------------------------------------------------ header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: linear-gradient(90deg, var(--navy-900), var(--navy-800) 55%, #0c4f7f);
  color: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .18);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--header-h); gap: 16px;
}
.brand { display: inline-flex; padding: 6px 0; }
.brand img { width: 150px; height: auto; }

.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 0 10px; margin-right: -10px;
  background: none; border: 0; cursor: pointer; border-radius: var(--radius-sm);
}
.nav-toggle span {
  display: block; height: 2px; width: 24px; background: var(--white); border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: block; color: #d6e6f5; text-decoration: none; font-weight: 600;
  font-size: 15px; letter-spacing: .02em;
}
.site-nav a:hover { color: var(--white); }
.site-nav a[aria-current="page"] { color: var(--white); }

/* mobile menu */
.site-nav {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--navy-800);
  border-top: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 12px 24px rgba(0, 0, 0, .25);
}
.js .site-nav { display: none; }
.js .site-nav.is-open { display: block; }
.site-nav li + li { border-top: 1px solid rgba(255, 255, 255, .06); }
.site-nav a { padding: 14px var(--gutter); }
.site-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--blue-400); background: rgba(255, 255, 255, .04); }

/* ------------------------------------------------------------ notice */
.notice {
  background: var(--blue-50);
  border-bottom: 1px solid #d6e8f6;
  font-size: 14px; color: var(--ink-soft);
}
.notice .container { padding-block: 8px; }
.notice strong { color: var(--accent); }
.notice a { font-weight: 600; }

/* ------------------------------------------------------------ layout */
.layout {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px;
  padding-block: 16px 40px;
}
.content {
  min-width: 0;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px var(--gutter) 28px;
}
.content > :first-child { margin-top: 0; }

/* ------------------------------------------------------------ category nav */
.catnav {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  align-self: start;
}
.catnav-toggle {
  display: flex; width: 100%; align-items: center; justify-content: space-between;
  min-height: 48px; padding: 12px var(--gutter);
  font: inherit; font-weight: 700; color: var(--navy-800);
  background: none; border: 0; cursor: pointer; border-radius: var(--radius);
}
.catnav-toggle svg { transition: transform .2s; }
.catnav-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.no-js .catnav-toggle, html:not(.js) .catnav-toggle { display: none; }
.js .catnav-panel { display: none; }
.js .catnav.is-open .catnav-panel { display: block; }
.catnav-panel { padding: 0 var(--gutter) 14px; }
.catnav-heading { display: none; }
.catnav-list, .catnav-list ul { list-style: none; margin: 0; padding: 0; }
.cat-group, .cat-link { padding-block: 6px; border-top: 1px solid var(--line); }
.cat-group:first-child, .cat-link:first-child { border-top: 0; }
.cat-title, .cat-link > a {
  display: block; font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--muted); padding: 6px 0 2px;
}
.cat-link > a { color: var(--navy-700); text-decoration: none; font-size: 12px; }
.cat-link > a:hover { color: var(--blue-600); }
.catnav-list ul a {
  display: block; padding: 7px 10px; margin-inline: -10px; border-radius: var(--radius-sm);
  color: var(--ink); text-decoration: none; font-size: 15px;
}
.catnav-list ul a:hover { background: var(--surface); color: var(--blue-600); }
.catnav-list a[aria-current="page"] {
  background: var(--blue-50); color: var(--blue-600); font-weight: 600;
}
.cat-link > a[aria-current="page"] { padding-inline: 10px; margin-inline: -10px; border-radius: var(--radius-sm); }

/* ------------------------------------------------------------ breadcrumb */
.breadcrumb ol {
  list-style: none; margin: 0 0 16px; padding: 0;
  display: flex; flex-wrap: wrap; gap: 4px; font-size: 13px; color: var(--muted);
}
.breadcrumb li + li::before { content: "/"; margin-right: 4px; color: #b3bfcc; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--blue-600); text-decoration: underline; }

/* ------------------------------------------------------------ legacy product content */
.legacy { font-size: 15px; color: var(--ink); }
.legacy .stack { display: flex; flex-direction: column; gap: 12px; margin-block: 12px; }
.legacy .stack:first-child { margin-top: 0; }
.legacy .row { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: flex-start; }
.legacy .row > .cell { flex: 1 1 14rem; min-width: 0; }
.legacy .row.figures { align-items: stretch; }
.legacy figure {
  flex: 1 1 8.25rem; min-width: 0; max-width: 100%; margin: 0; text-align: center;
  display: flex; flex-direction: column; gap: 6px; justify-content: flex-end;
}
.legacy figcaption { font-size: 13px; color: var(--ink-soft); line-height: 1.4; }
.legacy .ta-center { text-align: center; }
.legacy .ta-right { text-align: right; }
.legacy .float-left { float: none; display: block; margin: 0 auto 12px; }
.legacy .float-right { float: none; display: block; margin: 0 auto 12px; }
.legacy hr { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }
.legacy b, .legacy strong { color: var(--navy-800); }

.table-wrap {
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  margin-block: 12px; border-radius: var(--radius-sm);
}
table.spec {
  width: 100%; border-collapse: separate; border-spacing: 0;
  font-size: 14px; line-height: 1.4;
  border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden;
}
table.spec th, table.spec td {
  padding: 7px 10px; text-align: left; vertical-align: top;
  border-bottom: 1px solid var(--line);
}
table.spec tr:last-child > * { border-bottom: 0; }
table.spec th {
  background: var(--navy-700); color: var(--white); font-weight: 600;
  border-bottom-color: rgba(255, 255, 255, .12);
}
table.spec th b, table.spec th strong { color: inherit; }
table.spec td { background: var(--white); }
table.spec tr:nth-child(even) td { background: var(--surface); }
table.spec td + td, table.spec th + td, table.spec td + th, table.spec th + th { border-left: 1px solid var(--line); }
table.spec .ta-center { text-align: center; }
table.spec img { max-width: none; }

table.layout-table { border-collapse: collapse; width: 100%; }
table.layout-table td { padding: 6px; vertical-align: top; }

/* ------------------------------------------------------------ page components */
.page-title { font-size: 26px; margin: 0 0 8px; }
.lead { font-size: 17px; color: var(--ink-soft); margin: 0 0 20px; }
.section-title { font-size: 20px; margin: 32px 0 14px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px; border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  background: var(--blue-600); color: var(--white);
}
.btn:hover { background: var(--blue-500); color: var(--white); }
.btn--ghost { background: transparent; color: var(--blue-600); border-color: #b9d6ec; }
.btn--ghost:hover { background: var(--blue-50); color: var(--blue-600); }

/* hero */
.hero {
  position: relative; overflow: hidden;
  margin: -20px calc(var(--gutter) * -1) 24px;
  padding: 28px var(--gutter);
  border-radius: var(--radius) var(--radius) 0 0;
  background:
    radial-gradient(600px 240px at 90% 0%, rgba(63, 180, 240, .35), transparent 70%),
    radial-gradient(400px 200px at 0% 100%, rgba(224, 69, 123, .22), transparent 70%),
    var(--navy-800);
  color: #d6e6f5;
}
.hero h1 { color: var(--white); font-size: 26px; margin: 0 0 10px; }
.hero p { margin: 0 0 18px; max-width: 46ch; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero .btn--ghost { color: var(--white); border-color: rgba(255, 255, 255, .35); }
.hero .btn--ghost:hover { background: rgba(255, 255, 255, .08); }

/* card grid */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 140px), 1fr)); gap: 12px; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; } }
.card {
  display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; text-decoration: none; color: var(--ink);
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: #c9dcec; color: var(--ink); }
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: var(--white); }
.card .card-body { padding: 10px 12px 12px; font-size: 14px; line-height: 1.4; border-top: 1px solid var(--line); }
.card .card-body strong { display: block; color: var(--navy-800); }
.cards--banners .card img { aspect-ratio: auto; object-fit: initial; }

/* quick links */
.quick { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.quick section { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.quick h3 { margin: 0 0 8px; font-size: 16px; }
.quick ul { margin: 0; padding: 0; list-style: none; }
.quick li a { display: block; padding: 4px 0; text-decoration: none; }
.quick li a::before { content: "→"; margin-right: 8px; color: var(--blue-400); }

/* offices */
.offices { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.office {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 18px;
  background: var(--white);
}
.office-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.office-head img { width: 48px; height: auto; border-radius: 3px; }
.office h2, .office h3 { margin: 0; font-size: 18px; }
.office dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: 15px; }
.office dt { color: var(--muted); }
.office dd { margin: 0; }
.office .btn { margin-top: 14px; }

/* search */
.site-search {
  display: flex; gap: 8px; margin-top: 28px; padding: 14px; border-radius: var(--radius);
  background: var(--surface); flex-wrap: wrap; align-items: center;
}
.site-search label { font-weight: 600; color: var(--ink-soft); flex: 1 0 100%; font-size: 14px; }
.site-search input { flex: 1 1 200px; }

/* about */
.about-media { margin: 0 0 16px; }
.about-media img { border-radius: var(--radius); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 12px; margin: 20px 0; }
.stat { background: var(--surface); border-radius: var(--radius); padding: 14px; }
.stat b { display: block; font-size: 22px; color: var(--blue-600); line-height: 1.2; }
.stat span { font-size: 14px; color: var(--ink-soft); }
.cert { text-align: center; margin-top: 24px; color: var(--muted); font-size: 14px; }

/* forms */
input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="search"], textarea, select {
  width: 100%; min-height: 44px; padding: 10px 12px;
  font: inherit; font-size: 16px; color: var(--ink);
  background: var(--white); border: 1px solid #cdd7e1; border-radius: var(--radius-sm);
}
input:focus, textarea:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(27, 143, 214, .2); }
textarea { min-height: 120px; resize: vertical; }
.form-grid { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
.field label, .field legend { display: block; font-weight: 600; font-size: 14px; margin-bottom: 4px; color: var(--ink-soft); }
.field .req { color: var(--accent); }
fieldset.field { border: 0; margin: 0; padding: 0; }
.radios { display: flex; gap: 18px; min-height: 44px; align-items: center; }
.radios label { display: inline-flex; align-items: center; gap: 6px; font-weight: 400; margin: 0; }
.radios input { width: 18px; height: 18px; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.form-note { font-size: 14px; color: var(--muted); }
.form-status { margin-top: 14px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--blue-50); display: none; }
.form-status.is-visible { display: block; }
.form-status textarea { margin-top: 8px; font-size: 14px; }
.field-error { color: #b42318; font-size: 13px; margin-top: 4px; }

/* ------------------------------------------------------------ footer */
.site-footer { background: var(--navy-900); color: #9fb3c8; font-size: 14px; }
.site-footer a { color: #cfe3f5; }
.footer-inner { display: grid; gap: 20px; padding-block: 28px 20px; grid-template-columns: minmax(0, 1fr); }
.footer-inner h2 { color: var(--white); font-size: 14px; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 6px; }
.footer-inner p { margin: 0; }
.footer-brand img { width: 130px; margin-bottom: 8px; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px;
  padding-block: 14px 20px; border-top: 1px solid rgba(255, 255, 255, .08);
}
.footer-bottom p { margin: 0; }

/* ------------------------------------------------------------ tablet ≥ 640px */
@media (min-width: 640px) {
  :root { --gutter: 24px; }
  .content { padding: 28px 32px 36px; }
  .hero { margin: -28px -32px 28px; padding: 40px 32px; }
  .hero h1 { font-size: 32px; }
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid .span-2 { grid-column: 1 / -1; }
  .footer-inner { grid-template-columns: 1.2fr 1fr 1fr; }
  .legacy .float-left { float: left; margin: 4px 20px 12px 0; }
  .legacy .float-right { float: right; margin: 4px 0 12px 20px; }
  .about-media { float: left; max-width: 45%; margin: 4px 24px 12px 0; }
}

/* ------------------------------------------------------------ desktop nav ≥ 860px */
@media (min-width: 860px) {
  .nav-toggle { display: none; }
  .js .site-nav, .site-nav {
    display: block; position: static; background: none; border: 0; box-shadow: none;
  }
  .site-nav ul { display: flex; gap: 4px; }
  .site-nav li + li { border: 0; }
  .site-nav a { padding: 8px 14px; border-radius: 999px; }
  .site-nav a:hover { background: rgba(255, 255, 255, .08); }
  .site-nav a[aria-current="page"] { background: rgba(63, 180, 240, .18); box-shadow: none; color: var(--white); }
  .brand img { width: 180px; }
  :root { --header-h: 68px; }
}

/* ------------------------------------------------------------ desktop ≥ 1024px */
@media (min-width: 1024px) {
  .layout { grid-template-columns: 250px minmax(0, 1fr); gap: 24px; padding-block: 24px 56px; }
  .layout--full { grid-template-columns: minmax(0, 1fr); }
  .catnav-toggle { display: none; }
  .js .catnav-panel, .catnav-panel { display: block; padding: 16px 18px 18px; }
  .catnav-heading { display: block; font-size: 17px; margin: 0 0 6px; }
  .page-title { font-size: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

@media print {
  .site-header, .notice, .catnav, .site-footer, .breadcrumb { display: none; }
  .layout { display: block; }
  .content { box-shadow: none; padding: 0; }
  body { background: #fff; }
}

/* ------------------------------------------------------------ additions */
.legacy .legacy-heading {
  font-size: 19px; margin: 18px 0 8px; color: var(--navy-800);
  padding-bottom: 6px; border-bottom: 2px solid var(--blue-50);
}
.legacy .ta-center > .legacy-heading, .legacy .ta-center.legacy-heading { border-bottom: 0; }
.legacy > .legacy-heading:first-child, .legacy .stack:first-child > :first-child .legacy-heading { margin-top: 0; }
.table-wrap {
  background:
    linear-gradient(90deg, var(--white) 30%, rgba(255, 255, 255, 0)) left / 24px 100% no-repeat local,
    linear-gradient(270deg, var(--white) 30%, rgba(255, 255, 255, 0)) right / 24px 100% no-repeat local,
    radial-gradient(farthest-side at 0 50%, rgba(11, 34, 57, .18), transparent) left / 10px 100% no-repeat scroll,
    radial-gradient(farthest-side at 100% 50%, rgba(11, 34, 57, .18), transparent) right / 10px 100% no-repeat scroll;
}
table.spec td { background-color: rgba(255, 255, 255, .92); }
table.spec tr:nth-child(even) td { background-color: rgba(245, 248, 251, .92); }
@media (max-width: 639px) {
  table.spec { font-size: 13px; }
  table.spec th, table.spec td { padding: 6px 8px; }
}
table.spec { overflow-wrap: normal; }
table.spec .legacy-heading { font-size: 15px; margin: 0; padding: 0; border: 0; }
table.spec th .legacy-heading { color: inherit; }
.legacy .fig-media img { display: block; margin-inline: auto; }
.legacy .row.gallery { align-items: center; justify-content: center; }
.legacy .row.gallery > .cell { flex: 1 1 8.25rem; text-align: center; }
.content > .hero:first-child { margin-top: -20px; }
@media (min-width: 640px) { .content > .hero:first-child { margin-top: -28px; } }
button, a { -webkit-tap-highlight-color: transparent; }
