/* GeoLinkUSA — site styles
   Brand: Navy Datum #0A2540 · Precision Blue #0066FF · Hi-Vis Orange #FF6B35 · Topo Cream #F5F1E8
   Type: Outfit (display), IBM Plex Sans (text), IBM Plex Mono (measured values only) */

:root {
  --navy: #0A2540;
  --navy-2: #12355C;
  --blue: #0066FF;
  --blue-ink: #0052CC;
  --orange: #FF6B35;
  --orange-ink: #D94A14;
  --cream: #F5F1E8;
  --paper: #FFFFFF;
  --ink: #0A2540;
  --ink-2: #3D5470;
  --ink-3: #6B7F96;
  --line: #DCE3EB;
  --line-cream: #E6DFCF;
  --mist: #EEF3F8;

  --f-display: 'Outfit', system-ui, sans-serif;
  --f-text: 'IBM Plex Sans', system-ui, sans-serif;
  --f-mono: 'IBM Plex Mono', ui-monospace, monospace;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --r-sm: 4px;
  --r-md: 8px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.6 var(--f-text);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-ink); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 2px; }
.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: 8px; background: var(--orange); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

h1, h2, h3, h4 { font-family: var(--f-display); color: var(--navy); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 600; }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.3rem); font-weight: 600; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; max-width: 68ch; }
.lede { font-size: 1.15rem; color: var(--ink-2); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--cream { background: var(--cream); }
.section--navy { background: var(--navy); color: #C9D6E5; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 36px; flex-wrap: wrap; }
.section-head p { margin: 0; color: var(--ink-2); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 1rem/1 var(--f-display); letter-spacing: .01em;
  padding: 14px 22px; border-radius: var(--r-sm); border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s;
}
.btn--orange { background: var(--orange); color: #fff; }
.btn--orange:hover { background: var(--orange-ink); color: #fff; }
.btn--blue { background: var(--blue); color: #fff; }
.btn--blue:hover { background: var(--blue-ink); color: #fff; }
.btn--ghost { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--ghost:hover { background: var(--navy); color: #fff; }
.btn--ghost-light { border-color: rgba(255,255,255,.5); color: #fff; }
.btn--ghost-light:hover { border-color: #fff; background: rgba(255,255,255,.08); color: #fff; }
.btn--sm { padding: 10px 14px; font-size: .92rem; }
.btn[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); flex-shrink: 0; }
.brand svg { width: 34px; height: 34px; }
.brand-word { font: 700 1.35rem/1 var(--f-display); letter-spacing: -0.02em; }
.brand-word span { color: var(--blue); }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a { color: var(--ink); text-decoration: none; font: 500 .98rem/1 var(--f-display); padding: 10px 12px; border-radius: var(--r-sm); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--blue-ink); background: var(--mist); }
.nav a.btn--orange, .nav a.btn--orange:hover { color: #fff; }
.nav a.btn--orange { background: var(--orange); margin-left: 8px; padding: 10px 14px; }
.nav a.btn--orange:hover { background: var(--orange-ink); }
.quote-link { position: relative; }
.quote-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: #fff; color: var(--orange-ink); font: 600 .78rem/1 var(--f-mono); }
.quote-count[data-n="0"] { display: none; }
.menu-btn { display: none; margin-left: auto; background: none; border: 0; padding: 10px; cursor: pointer; color: var(--navy); }
.menu-btn svg { width: 26px; height: 26px; }
@media (max-width: 900px) {
  .menu-btn { display: block; }
  .nav { position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: #fff; border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px; display: none; }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 8px; }
  .nav .btn { margin-top: 8px; }
}

/* ---------- Hero ---------- */
.hero { background: var(--navy); color: #C9D6E5; position: relative; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1fr 1.05fr; gap: 40px; align-items: center; min-height: min(640px, 82vh); padding-top: 48px; padding-bottom: 48px; }
.hero h1 { color: #fff; }
.hero .lede { color: #C9D6E5; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-badge { display: inline-flex; align-items: center; gap: 10px; color: #fff; font: 500 .95rem/1.3 var(--f-display); margin-bottom: 22px; }
.hero-badge svg { width: 20px; height: 20px; color: var(--orange); flex-shrink: 0; }
.scan-stage { position: relative; aspect-ratio: 1.15; border: 1px solid rgba(255,255,255,.12); border-radius: var(--r-md); background: #08203A; }
.scan-stage canvas { width: 100%; height: 100%; display: block; border-radius: var(--r-md); }
.scan-readout { position: absolute; left: 14px; bottom: 12px; right: 14px; display: flex; justify-content: space-between; gap: 12px; font: 400 .78rem/1.3 var(--f-mono); color: #8FA6C0; }
.scan-readout b { color: #fff; font-weight: 500; }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; min-height: 0; }
  .scan-stage { aspect-ratio: 1.4; }
}

/* ---------- Proof strip ---------- */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fact { padding: 26px 22px; border-right: 1px solid var(--line); }
.fact:last-child { border-right: 0; }
.fact strong { display: block; font: 600 1.05rem/1.25 var(--f-display); color: var(--navy); margin-bottom: 4px; }
.fact span { color: var(--ink-2); font-size: .95rem; }
@media (max-width: 860px) { .facts { grid-template-columns: 1fr 1fr; } .fact:nth-child(2) { border-right: 0; } .fact:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }
@media (max-width: 520px) { .facts { grid-template-columns: 1fr; } .fact { border-right: 0; border-bottom: 1px solid var(--line); } }

/* ---------- Category index ---------- */
.cat-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-cream); }
.cat-row { border-bottom: 1px solid var(--line-cream); }
.cat-row a { display: grid; grid-template-columns: 96px 1fr auto; gap: 24px; align-items: center; padding: 18px 8px; text-decoration: none; color: inherit; }
.cat-row a:hover { background: rgba(255,255,255,.6); }
.cat-row img { width: 96px; height: 72px; object-fit: contain; background: #fff; border-radius: var(--r-sm); padding: 4px; }
.cat-row h3 { margin: 0 0 2px; font-size: 1.25rem; }
.cat-row p { margin: 0; color: var(--ink-2); font-size: .98rem; }
.cat-row .count { font: 500 .9rem/1 var(--f-mono); color: var(--ink-3); white-space: nowrap; }
@media (max-width: 560px) { .cat-row a { grid-template-columns: 64px 1fr; } .cat-row img { width: 64px; height: 52px; } .cat-row .count { display: none; } }

/* ---------- Product grid ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 28px 24px; }
.card { display: flex; flex-direction: column; }
.card-media { display: block; aspect-ratio: 4/3; background: var(--mist); border-radius: var(--r-md); overflow: hidden; margin-bottom: 14px; }
.card-media img { width: 100%; height: 100%; object-fit: contain; padding: 14px; transition: transform .25s ease; }
.card-media:hover img { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) { .card-media img { transition: none; } .card-media:hover img { transform: none; } }
.card-cat { font-size: .85rem; color: var(--ink-3); margin-bottom: 4px; }
.card h3 { font-size: 1.12rem; margin: 0 0 6px; }
.card h3 a { color: var(--navy); text-decoration: none; }
.card h3 a:hover { color: var(--blue-ink); }
.card p { font-size: .95rem; color: var(--ink-2); margin: 0 0 14px; }
.card-actions { margin-top: auto; display: flex; gap: 8px; flex-wrap: wrap; }

.filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filter a { text-decoration: none; font: 500 .92rem/1 var(--f-display); padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); }
.filter a:hover { border-color: var(--navy); }
.filter a[aria-current="page"] { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ---------- Page head / breadcrumb ---------- */
.page-head { background: var(--cream); padding: 40px 0 44px; border-bottom: 1px solid var(--line-cream); }
.page-head p { margin-bottom: 0; }
.crumbs { font-size: .9rem; color: var(--ink-3); margin-bottom: 18px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line); }
.crumbs a { color: var(--ink-2); }

/* ---------- Product page ---------- */
.pdp { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .pdp { grid-template-columns: 1fr; } }
.gallery-main { aspect-ratio: 1.1; background: var(--mist); border-radius: var(--r-md); overflow: hidden; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; padding: 20px; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; margin-top: 10px; }
.thumbs button { aspect-ratio: 1; padding: 4px; background: var(--mist); border: 2px solid transparent; border-radius: var(--r-sm); cursor: pointer; }
.thumbs button[aria-current="true"] { border-color: var(--blue); }
.thumbs img { width: 100%; height: 100%; object-fit: contain; }
.pdp-info .tagline { font-size: 1.15rem; color: var(--ink-2); }
.checks { list-style: none; padding: 0; margin: 22px 0 28px; }
.checks li { position: relative; padding: 9px 0 9px 30px; border-top: 1px solid var(--line); }
.checks li:last-child { border-bottom: 1px solid var(--line); }
.checks li::before { content: ""; position: absolute; left: 4px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border: 2px solid var(--blue); border-radius: 50%; box-shadow: inset 0 0 0 2px #fff, inset 0 0 0 6px var(--blue); }
.pdp-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.note { font-size: .92rem; color: var(--ink-3); margin-top: 14px; }

.pdp-body { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); }
@media (max-width: 900px) { .pdp-body { grid-template-columns: 1fr; } }
.models { width: 100%; border-collapse: collapse; margin-bottom: 8px; }
.models th, .models td { text-align: left; padding: 12px 10px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.models th { font: 600 1rem/1.3 var(--f-display); color: var(--navy); white-space: nowrap; padding-right: 20px; }

.spec-group { margin-bottom: 28px; }
.spec-group h3 { font-size: 1.05rem; margin-bottom: 8px; color: var(--ink-2); font-weight: 500; }
.spec { width: 100%; border-collapse: collapse; }
.spec th, .spec td { padding: 9px 0; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; font-size: .95rem; }
.spec th { font-weight: 400; color: var(--ink-2); width: 42%; padding-right: 16px; }
.spec td { font-family: var(--f-mono); font-size: .9rem; color: var(--navy); }

.included { columns: 2; column-gap: 28px; padding-left: 1.1em; margin: 0; }
.included li { margin-bottom: 6px; break-inside: avoid; }
@media (max-width: 520px) { .included { columns: 1; } }
.docs { list-style: none; padding: 0; margin: 0; }
.docs a { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--navy); }
.docs a:hover { color: var(--blue-ink); }
.docs svg { width: 18px; height: 18px; color: var(--orange); flex-shrink: 0; }

/* ---------- Steps (how buying works) ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: s; }
.steps li { counter-increment: s; padding-top: 18px; border-top: 3px solid var(--orange); }
.steps li::before { content: counter(s); font: 600 1rem/1 var(--f-mono); color: var(--orange); display: block; margin-bottom: 10px; }
.steps h3 { color: #fff; }
.steps p { color: #C9D6E5; margin: 0; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Split (about / contact) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.contact-block dl { margin: 0; }
.contact-block dt { font-size: .9rem; color: var(--ink-3); margin-top: 18px; }
.contact-block dd { margin: 2px 0 0; font: 500 1.1rem/1.4 var(--f-display); }
.contact-block dd a { color: var(--navy); text-decoration: none; }
.contact-block dd a:hover { color: var(--blue-ink); }

/* ---------- Quote list + form ---------- */
.quote-layout { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .quote-layout { grid-template-columns: 1fr; } }
.qlist { list-style: none; margin: 0 0 16px; padding: 0; border-top: 1px solid var(--line); }
.qitem { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.qitem img { width: 64px; height: 52px; object-fit: contain; background: var(--mist); border-radius: var(--r-sm); padding: 3px; }
.qitem a { color: var(--navy); text-decoration: none; font: 500 1rem/1.3 var(--f-display); }
.qitem-controls { display: flex; align-items: center; gap: 8px; }
.qitem input { width: 58px; padding: 8px; font: 500 .95rem var(--f-mono); border: 1px solid var(--line); border-radius: var(--r-sm); text-align: center; }
.icon-btn { background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink-3); border-radius: var(--r-sm); }
.icon-btn:hover { color: var(--orange-ink); background: var(--mist); }
.icon-btn svg { width: 18px; height: 18px; display: block; }
.empty { padding: 22px; background: var(--mist); border-radius: var(--r-md); color: var(--ink-2); }
.empty p { margin: 0 0 12px; }

.form { background: var(--cream); padding: clamp(22px, 4vw, 36px); border-radius: var(--r-md); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; font: 500 .95rem/1.3 var(--f-display); color: var(--navy); margin-bottom: 6px; }
.field .opt { color: var(--ink-3); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; font: 400 1rem/1.4 var(--f-text); color: var(--ink);
  background: #fff; border: 1px solid #CBD5E1; border-radius: var(--r-sm);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); outline: 2px solid rgba(0,102,255,.25); outline-offset: 0; }
.field [aria-invalid="true"] { border-color: var(--orange-ink); }
.field .err { color: var(--orange-ink); font-size: .88rem; margin-top: 4px; display: none; }
.field [aria-invalid="true"] + .err { display: block; }
.check { display: flex; gap: 10px; align-items: start; font-size: .92rem; color: var(--ink-2); }
.check input { margin-top: 4px; width: 18px; height: 18px; flex-shrink: 0; }
.hp { position: absolute; left: -9999px; }
.form-status { margin-top: 16px; padding: 14px 16px; border-radius: var(--r-sm); display: none; }
.form-status.is-error { display: block; background: #FFF1EB; color: #8A2E0B; }
.form-status.is-ok { display: block; background: #E8F1FF; color: var(--navy); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--blue); color: #fff; padding: clamp(40px, 6vw, 64px) 0; }
.cta-band .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0 0 6px; }
.cta-band p { margin: 0; color: #DCE8FF; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #9FB2C8; padding: 56px 0 28px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #C9D6E5; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.site-footer .brand-word span { color: #5C9DFF; }
.footer-base { margin-top: 44px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; }

/* ---------- Prose ---------- */
.prose h2 { font-size: 1.5rem; margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; max-width: 68ch; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: var(--navy); color: #fff; padding: 12px 18px; border-radius: var(--r-sm); font: 500 .95rem/1.3 var(--f-display); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 60; display: flex; gap: 14px; align-items: center; }
.toast a { color: #FFB79A; }
.toast.is-on { opacity: 1; transform: translateX(-50%); pointer-events: auto; }
@media (prefers-reduced-motion: reduce) { .toast { transition: none; } }
.pdp-body h2:not(:first-child) { margin-top: 40px; }
