/* ==========================================================
   State Technology, Inc. — site stylesheet
   Palette carried over from the original site:
   royal blue #000099 / #1e69de, gold #df9e02, light yellow #f1da36
   To re-theme, change the variables below.
   ========================================================== */
:root {
  --navy: #00006b;
  --blue: #000099;
  --blue-2: #1e69de;
  --blue-3: #3351ab;
  --sky: #e8f1fd;
  --gold: #df9e02;
  --gold-soft: #f1da36;
  --brown: #663306;
  --ink: #1c2233;
  --muted: #5a6478;
  --line: #dde3ef;
  --bg: #f6f8fc;
  --white: #fff;
  --radius: 14px;
  --shadow: 0 8px 28px rgba(0, 0, 153, .10);
  --max: 1160px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg);
  line-height: 1.65; font-size: 1rem; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-2); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; color: var(--navy); margin: 0 0 .6em; }
h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.45rem, 3vw, 2.1rem); letter-spacing: -.01em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2rem; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: #000; padding: 10px 16px; z-index: 200; }
.skip:focus { left: 10px; top: 10px; }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy); color: #cfd6ff; font-size: .85rem; }
.topbar .container { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.topbar a { color: #fff; }
.topbar span + span { margin-left: 18px; }
.topbar .tag { color: var(--gold-soft); font-weight: 600; }

/* ---------- Header / nav ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 16px; }
.brand { display: flex; flex-direction: column; line-height: 1.1; color: var(--navy); }
.brand:hover { text-decoration: none; }
.brand strong { font-size: 1.35rem; letter-spacing: -.02em; }
.brand strong b { color: var(--gold); font-weight: 800; }
.brand small { font-size: .72rem; font-style: italic; color: var(--brown); letter-spacing: .04em; margin-top: 3px; }

.nav-toggle { display: none; background: var(--blue); color: #fff; border: 0; border-radius: 10px; padding: 10px 14px; font: inherit; font-weight: 600; cursor: pointer; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; align-items: center; }
.nav li { position: relative; }
.nav a { display: block; padding: 10px 13px; color: var(--navy); font-weight: 600; font-size: .93rem; border-radius: 10px; }
.nav a:hover, .nav a[aria-current="page"], .nav li.active > a { background: var(--sky); color: var(--blue); text-decoration: none; }
.nav .cta { background: var(--gold); color: #1b1200; margin-left: 8px; }
.nav .cta:hover { background: var(--gold-soft); color: #1b1200; }
.nav .sub { position: absolute; left: 0; top: 100%; min-width: 190px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 6px; display: none; flex-direction: column; align-items: stretch; }
.nav li:hover > .sub, .nav li:focus-within > .sub { display: flex; }
.nav .sub a { font-weight: 500; }
.caret::after { content: "▾"; font-size: .7em; margin-left: 5px; opacity: .6; }

/* ---------- Hero ---------- */
.hero { background: radial-gradient(1200px 500px at 85% -10%, #2a3fd0 0%, transparent 60%), linear-gradient(135deg, var(--navy), var(--blue) 55%, var(--blue-3)); color: #fff; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -120px; bottom: -160px; width: 420px; height: 420px; border-radius: 50%; border: 60px solid rgba(223,158,2,.18); }
.hero .container { display: grid; grid-template-columns: 1.1fr .9fr; gap: 44px; align-items: center; padding-top: 72px; padding-bottom: 72px; position: relative; z-index: 1; }
.hero h1 { color: #fff; }
.hero h1 em { color: var(--gold-soft); font-style: normal; }
.hero p.lead { font-size: 1.12rem; color: #dbe2ff; max-width: 56ch; }
.eyebrow { display: inline-block; font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 700; color: var(--gold-soft); margin-bottom: 14px; }
.hero-img img { border-radius: 20px; box-shadow: 0 24px 60px rgba(0,0,0,.35); border: 4px solid rgba(255,255,255,.15); width: 100%; object-fit: cover; }
.btns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.btn { display: inline-block; padding: 13px 24px; border-radius: 12px; font-weight: 700; border: 2px solid transparent; transition: transform .15s, background .15s; }
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: #1b1200; }
.btn-gold:hover { background: var(--gold-soft); }
.btn-ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-2); }

/* page banner for inner pages */
.page-banner { background: linear-gradient(135deg, var(--navy), var(--blue) 60%, var(--blue-3)); color: #fff; padding: 46px 0 40px; }
.page-banner h1 { color: #fff; margin-bottom: .3em; font-size: clamp(1.7rem, 4vw, 2.5rem); }
.page-banner p { color: #d4dcff; max-width: 70ch; margin: 0; }
.crumbs { font-size: .85rem; margin-bottom: 12px; color: #aab6ff; }
.crumbs a { color: #fff; }
.crumbs span { margin: 0 6px; opacity: .6; }

/* ---------- Sections ---------- */
section { padding: 64px 0; }
.section-alt { background: #fff; }
.section-head { max-width: 760px; margin-bottom: 34px; }
.section-head p { color: var(--muted); }
.kicker { color: var(--gold); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; display: block; margin-bottom: 8px; }

.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: 0 2px 6px rgba(0,0,40,.04); transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.icon { width: 46px; height: 46px; border-radius: 12px; background: var(--sky); color: var(--blue); display: grid; place-items: center; font-size: 1.3rem; margin-bottom: 14px; }
.card a.more { font-weight: 700; display: inline-block; margin-top: 10px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.split.top { align-items: start; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: -42px; position: relative; z-index: 2; }
.stat { background: #fff; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); text-align: center; border-top: 4px solid var(--gold); }
.stat b { display: block; font-size: 1.6rem; color: var(--blue); }
.stat span { font-size: .88rem; color: var(--muted); }

.checks { list-style: none; padding: 0; margin: 0 0 1.2em; }
.checks li { position: relative; padding: 6px 0 6px 32px; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 7px; width: 22px; height: 22px; border-radius: 50%; background: var(--sky); color: var(--blue); font-weight: 800; font-size: .8rem; display: grid; place-items: center; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; margin: 0 0 1.2em; }
.chips li { background: var(--sky); color: var(--blue); border-radius: 999px; padding: 6px 14px; font-size: .9rem; font-weight: 600; }

.callout { background: linear-gradient(135deg, #fff9e0, #fff3b8); border-left: 5px solid var(--gold); border-radius: var(--radius); padding: 22px 26px; color: #4a3200; }
.callout strong { color: var(--brown); }

.band { background: linear-gradient(135deg, var(--blue), var(--blue-3)); color: #fff; border-radius: 22px; padding: 40px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.band h2 { color: #fff; margin: 0 0 .2em; }
.band p { margin: 0; color: #d4dcff; }

.cert { background: #fff; border: 2px solid var(--gold); border-radius: 18px; padding: 40px; text-align: center; max-width: 780px; margin: 0 auto; box-shadow: var(--shadow); }
.cert img { margin: 0 auto 20px; max-height: 110px; width: auto; }
.cert .big { font-size: 1.5rem; font-weight: 800; color: var(--navy); margin: 8px 0; }
.cert .scope { background: var(--sky); border-radius: 12px; padding: 16px 20px; color: var(--navy); font-weight: 600; margin-top: 18px; }

.parts-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { border-collapse: collapse; width: 100%; font-size: .93rem; }
th, td { padding: 11px 16px; text-align: left; border-bottom: 1px solid var(--line); }
th { background: var(--navy); color: #fff; position: sticky; top: 0; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; }
tbody tr:nth-child(even) { background: #f8faff; }
tbody tr:hover { background: var(--sky); }
td:first-child { font-family: ui-monospace, Menlo, Consolas, monospace; font-weight: 600; color: var(--blue); white-space: nowrap; }
.table-tools { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.table-tools input { flex: 1; min-width: 220px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; font: inherit; background: #fff; }
.table-tools input:focus { outline: 2px solid var(--blue-2); border-color: transparent; }
.count { color: var(--muted); font-size: .9rem; }

.map { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 3; min-height: 300px; border: 1px solid var(--line); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-list li:last-child { border: 0; }
.contact-list .ic { flex: 0 0 42px; height: 42px; border-radius: 12px; background: var(--sky); display: grid; place-items: center; }
.contact-list b { display: block; color: var(--navy); }

.spec { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.spec dl { margin: 0; }
.spec .row { display: grid; grid-template-columns: 200px 1fr; gap: 18px; padding: 16px 24px; border-bottom: 1px solid var(--line); }
.spec .row:last-child { border: 0; }
.spec dt { font-weight: 700; color: var(--blue); text-transform: uppercase; font-size: .82rem; letter-spacing: .08em; padding-top: 3px; }
.spec dd { margin: 0; }

.img-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.img-row img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; object-fit: cover; }
.pill-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 20px; padding: 0; list-style: none; }
.pill-row li { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--gold); padding: 8px 16px; border-radius: 10px; font-weight: 600; color: var(--navy); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #c7cffb; padding: 56px 0 0; margin-top: 0; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.site-footer a { color: #c7cffb; }
.site-footer a:hover { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 34px; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; }
.foot-grid li { padding: 4px 0; }
.foot-brand strong { color: #fff; font-size: 1.3rem; }
.foot-brand strong b { color: var(--gold); }
.social { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.social a { border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: 5px 13px; font-size: .82rem; }
.copy { border-top: 1px solid rgba(255,255,255,.14); margin-top: 40px; padding: 18px 0; font-size: .85rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.to-top { position: fixed; right: 18px; bottom: 18px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--gold); color: #1b1200; font-size: 1.2rem; font-weight: 800; cursor: pointer; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity .2s; }
.to-top.show { opacity: 1; pointer-events: auto; }

/* ---------- Desktop: left sidebar nav ---------- */
@media (min-width: 981px) {
  :root { --sidebar: 300px; }
  body { padding-left: var(--sidebar); }
  .site-header { position: fixed; top: 0; left: 0; bottom: 0; width: var(--sidebar); background: linear-gradient(170deg, var(--navy) 0%, var(--blue) 60%, var(--blue-3) 100%); border-bottom: 0; box-shadow: 4px 0 24px rgba(0,0,60,.18); }
  .site-header .container { flex-direction: column; align-items: stretch; justify-content: flex-start; height: 100%; max-width: none; padding: 22px 16px; gap: 14px; overflow-y: auto; scrollbar-width: thin; }
  .brand { padding: 0 4px 16px; border-bottom: 1px solid rgba(255,255,255,.18); color: #fff; }
  .brand strong { white-space: nowrap; font-size: 1.5rem; color: #fff; }
  .brand small { font-size: .9rem; }
  .brand strong b { color: var(--gold-soft); }
  .brand small { white-space: nowrap; color: var(--gold-soft); }
  .nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav a { padding: 7px 12px; line-height: 1.4; color: #fff; }
  .nav a:hover, .nav a[aria-current="page"], .nav li.active > a { background: rgba(255,255,255,.14); color: var(--gold-soft); }
  .nav .sub { position: static; display: flex; min-width: 0; border: 0; border-left: 2px solid rgba(255,255,255,.22); border-radius: 0; box-shadow: none; background: none; padding: 0; margin: 0 0 4px 18px; }
  .nav .sub a { font-size: .85rem; padding: 4px 12px; color: #c7cffb; font-weight: 500; }
  .nav .sub a:hover, .nav .sub a[aria-current="page"] { color: #fff; background: rgba(255,255,255,.1); }
  .nav .cta { margin: 10px 0 0; padding: 10px 12px; text-align: center; color: #1b1200; }
  .nav .cta:hover { color: #1b1200; background: var(--gold-soft); }
  .caret::after { display: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero .container, .split { grid-template-columns: 1fr; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .nav-toggle { display: block; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); display: none; max-height: calc(100vh - 72px); overflow-y: auto; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; padding: 10px 16px 18px; }
  .nav .sub { position: static; display: flex; border: 0; box-shadow: none; padding: 0 0 0 14px; }
  .nav .cta { margin: 8px 0 0; text-align: center; }
  .caret::after { display: none; }
}
@media (max-width: 640px) {
  section { padding: 46px 0; }
  .grid-2, .grid-3, .grid-4, .img-row { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; margin-top: -28px; }
  .foot-grid { grid-template-columns: 1fr; }
  .hero .container { padding-top: 46px; padding-bottom: 54px; }
  .spec .row { grid-template-columns: 1fr; gap: 4px; }
  .band { padding: 28px 22px; }
  .cert { padding: 26px 18px; }
  .topbar span + span { margin-left: 0; display: block; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print { .topbar, .site-header, .site-footer, .to-top, .hero::after { display: none; } body { background: #fff; } }
