/* ═══════════════════════════════════════════════════════════════
   Bartlett Electronics — design tokens
   Same values as apps.bartlettelectronics.com and checkin.bartlettelectronics.com.
   Light is the default (what Googlebot renders); dark follows the system
   setting unless the visitor picks one with the header toggle.
═══════════════════════════════════════════════════════════════ */
:root{
  --bg:#f3f6fa;--bg2:#e8eef6;--card:#ffffff;--ink:#0f1c2e;--ink2:#4a5a70;--ink3:#7b8899;
  --line:#d6dfea;--line2:#c5d2e2;--blue:#1462d6;--blue2:#0b4fb5;--blueSoft:#e4efff;--blueLine:#b9d1f7;
  --trace:rgba(20,98,214,.13);--pulse:#2f80ff;
  --ok:#14804a;--okSoft:#e3f5ea;--warn:#a15c00;--warnSoft:#fff3df;--bad:#c22b2b;--badSoft:#fde8e8;
  --shadow:0 1px 2px rgba(15,28,46,.06),0 8px 24px -12px rgba(15,28,46,.18);
  --shadow-lg:0 2px 4px rgba(15,28,46,.06),0 18px 40px -18px rgba(15,28,46,.30);
  --header-bg:rgba(243,246,250,.86);
  color-scheme:light;
  --body:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  --mono:ui-monospace,"SF Mono","Cascadia Mono",Menlo,Consolas,monospace;
  --r:14px;--r-sm:10px;
}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){
  --bg:#0a121e;--bg2:#0f1a2a;--card:#111d2e;--ink:#e8eef7;--ink2:#a7b4c6;--ink3:#74839a;
  --line:#22324a;--line2:#2b3d57;--blue:#4b8dff;--blue2:#76a8ff;--blueSoft:#15284a;--blueLine:#2a4a7f;
  --trace:rgba(75,141,255,.12);--pulse:#6aa4ff;
  --ok:#46c27e;--okSoft:#10301f;--warn:#e7a443;--warnSoft:#33240c;--bad:#ff6b6b;--badSoft:#3a1515;
  --shadow:0 1px 2px rgba(0,0,0,.3),0 10px 30px -14px rgba(0,0,0,.6);
  --shadow-lg:0 2px 4px rgba(0,0,0,.35),0 20px 44px -18px rgba(0,0,0,.7);
  --header-bg:rgba(10,18,30,.82);
  color-scheme:dark;
}}
:root[data-theme="dark"]{
  --bg:#0a121e;--bg2:#0f1a2a;--card:#111d2e;--ink:#e8eef7;--ink2:#a7b4c6;--ink3:#74839a;
  --line:#22324a;--line2:#2b3d57;--blue:#4b8dff;--blue2:#76a8ff;--blueSoft:#15284a;--blueLine:#2a4a7f;
  --trace:rgba(75,141,255,.12);--pulse:#6aa4ff;
  --ok:#46c27e;--okSoft:#10301f;--warn:#e7a443;--warnSoft:#33240c;--bad:#ff6b6b;--badSoft:#3a1515;
  --shadow:0 1px 2px rgba(0,0,0,.3),0 10px 30px -14px rgba(0,0,0,.6);
  --shadow-lg:0 2px 4px rgba(0,0,0,.35),0 20px 44px -18px rgba(0,0,0,.7);
  --header-bg:rgba(10,18,30,.82);
  color-scheme:dark;
}
/* Older token names still used throughout the page markup */
:root{
  --surface:var(--card);--surface2:var(--bg2);--surface3:var(--line);
  --border:var(--line);--border2:var(--line2);
  --accent:var(--blue);--accent2:var(--blue2);--accent3:var(--blueLine);
  --accent-dim:var(--blueSoft);--accent-glow:color-mix(in srgb,var(--blue) 18%,transparent);--accent-halo:var(--blueSoft);
  --green:var(--ok);--green-dim:var(--okSoft);--amber:var(--warn);--amber-dim:var(--warnSoft);
  --red:var(--bad);--red-dim:var(--badSoft);
  --text:var(--ink);--text2:var(--ink2);--text3:var(--ink3);
  --sans:var(--body);--display:var(--body);
  --radius:10px;--radius-lg:14px;--radius-xl:18px;
  --surface-bg:var(--card);
  --ease-out:cubic-bezier(.22,1,.36,1);
}

/* ── Base layout and components ── */
.surface-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.site-header {
  background: var(--header-bg) !important;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  touch-action: pan-y;
  overscroll-behavior-y: contain;  }
body {
  touch-action: pan-y;
  overscroll-behavior-y: contain;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  
}
.site-header {
  position: sticky; top: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px; height: 68px;
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.logo-wrap { display: flex; align-items: center; text-decoration: none; }
.logo-img {
  height: 52px; width: auto;
  filter: drop-shadow(0 0 8px color-mix(in srgb,var(--blue) 20%,transparent));
}
.main-nav { display: flex; align-items: center; gap: 2px; list-style: none; }
.main-nav a {
  display: block; padding: 6px 13px;
  font-family: var(--sans); font-size: 13.5px; font-weight: 400;
  color: var(--text2); text-decoration: none; border-radius: 6px;
  transition: color 0.15s, background 0.15s; letter-spacing: 0.01em;
}
.main-nav a:hover { color: var(--text); background: var(--bg2); }
.main-nav a.active { color: var(--accent); }
.nav-cta { display: flex; align-items: center; gap: 8px; margin-left: 8px; }
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--sans); font-weight: 500; font-size: 13.5px;
  text-decoration: none; border-radius: 8px; padding: 8px 18px;
  transition: all 0.15s; cursor: pointer; border: none; letter-spacing: 0.01em;
}
.btn-ghost {
  background: transparent; color: var(--text2); border: 1px solid var(--border2);
}
.btn-ghost:hover { color: var(--text); border-color: var(--accent3); background: var(--accent-halo); }
.btn-primary { background: var(--accent); color:#fff; font-weight: 600; box-shadow: 0 0 20px var(--accent-glow); }
.btn-primary:hover { background: var(--blue2); box-shadow: 0 0 30px var(--accent-glow); transform: translateY(-1px); }
.btn-lg { padding: 12px 28px; font-size: 15px; }
.header-phone {
  font-family:var(--body);font-variant-numeric:tabular-nums; font-size: 12px; color: var(--text3);
  letter-spacing: 0.05em; padding: 5px 10px;
  border: 1px solid var(--border); border-radius: 6px;
  text-decoration: none; transition: color 0.15s, border-color 0.15s;
}
.header-phone:hover { color: var(--accent); border-color: var(--accent3); }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text2); border-radius: 2px; transition: all 0.2s; }
.mobile-nav { display: none; position: fixed; inset: 0; z-index: 300; background: rgba(0,0,0,0.75); backdrop-filter: blur(4px); pointer-events: none; touch-action: none; }
.mobile-nav.open { display: block; }
.mobile-nav-drawer {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(300px,85vw);
  background: var(--surface); border-left: 1px solid var(--border);
  padding: 80px 28px 32px; display: flex; flex-direction: column; gap: 4px;
  animation: slideIn 0.25s var(--ease-out);
}
@keyframes slideIn { from { transform: translateX(100%); } to { transform: translateX(0); } }
.mobile-nav-link {
  display: block; padding: 12px 16px; font-family: var(--display);
  font-size: 17px; font-weight: 600; color: var(--text2); text-decoration: none;
  border-radius: 8px; transition: all 0.15s;
}
.mobile-nav-link:hover { color: var(--text); background: var(--surface2); }
.mobile-nav-close {
  position: absolute; top: 18px; right: 18px;
  background: var(--surface2); border: 1px solid var(--border2); border-radius: 8px;
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: var(--text2); cursor: pointer;
}
.mobile-nav-cta { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.page-wrap { position: relative; z-index: 1; }
.section { padding: 72px 32px; max-width: 1200px; margin: 0 auto; }
.section-label {
  font-family:var(--body);font-variant-numeric:tabular-nums; font-size: 11px; color: var(--accent);
  letter-spacing:0.08em; text-transform: uppercase; margin-bottom: 12px;
  display: flex; align-items: center; gap: 10px;
}
.section-label::before { content: ''; width: 24px; height: 1px; background: var(--accent); }
.section-h2 {
  font-family: var(--display); font-size: clamp(28px,3.5vw,46px);
  font-weight: 800; letter-spacing: -0.02em; color: var(--text); line-height: 1.1; margin-bottom: 14px;
}
.section-h2 .accent { color: var(--accent); }
.section-sub { font-size: 16px; color: var(--text2); max-width: 560px; margin-bottom: 44px; line-height: 1.7; }
.glow-divider {
  position: relative; z-index: 1; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent3), var(--accent), var(--accent3), transparent);
  opacity: 0.4;
}
.surface-section { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.page-hero {
  position: relative; z-index: 1; padding: 60px 32px 48px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, color-mix(in srgb,var(--blue) 4%,transparent) 0%, transparent 100%);
}
.page-hero-inner { max-width: 1200px; margin: 0 auto; }
.page-hero-eyebrow {
  font-family:var(--body);font-variant-numeric:tabular-nums; font-size: 11px; color: var(--accent);
  letter-spacing:0.08em; text-transform: uppercase; margin-bottom: 16px;
  display: flex; align-items: center; gap: 10px;
}
.page-hero-eyebrow::before { content: ''; width: 24px; height: 1px; background: var(--accent); }
.page-hero h1 {
  font-family: var(--display); font-size: clamp(34px,5vw,62px);
  font-weight: 800; letter-spacing: -0.03em; color: var(--text); line-height: 1.0; margin-bottom: 18px;
}
.page-hero h1 .accent { color: var(--accent); }
.page-hero-sub { font-size: 17px; color: var(--text2); max-width: 540px; line-height: 1.7; }
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px 24px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  position: relative; overflow: visible;
}
.card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0; transition: opacity 0.2s;
}
.card:hover { border-color: var(--accent3); transform: translateY(-2px); box-shadow: 0 12px 40px rgba(0,0,0,0.3), 0 0 24px color-mix(in srgb,var(--blue) 5%,transparent); }
.card:hover::before { opacity: 1; }
.card-icon {
  width: 48px; height: 48px; background: var(--accent-dim);
  border: 1px solid color-mix(in srgb,var(--blue) 20%,transparent); border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 18px;
}
.card-title { font-family: var(--display); font-size: 17px; font-weight: 700; color: var(--text); margin-bottom: 8px; letter-spacing: -0.01em; }
.card-desc { font-size: 13.5px; color: var(--text2); line-height: 1.65; }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 100px; font-family:var(--body);font-variant-numeric:tabular-nums;
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 500;
}
.badge-accent { background: var(--accent-dim); border: 1px solid color-mix(in srgb,var(--blue) 25%,transparent); color: var(--accent); }
.badge-green { background: var(--green-dim);  border: 1px solid rgba(34,197,94,0.25);  color: var(--green); }
.badge-amber { background: var(--amber-dim);  border: 1px solid rgba(245,158,11,0.25); color: var(--amber); }
.info-strip { position: relative; z-index: 1; background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 28px 32px; }
.info-strip-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.info-item { display: flex; align-items: center; gap: 12px; }
.info-item-icon { width: 36px; height: 36px; background: var(--accent-dim); border: 1px solid color-mix(in srgb,var(--blue) 20%,transparent); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 16px; }
.info-item-label { font-family:var(--body);font-variant-numeric:tabular-nums; font-size: 10px; color: var(--text3); letter-spacing:0.07em; text-transform: uppercase; margin-bottom: 2px; }
.info-item-value { font-size: 13.5px; color: var(--text); font-weight: 500; }
.info-item-value a { color: var(--accent); text-decoration: none; }
.info-divider { width: 1px; height: 36px; background: var(--border2); }
.site-footer { position: relative; z-index: 1; background: var(--surface); border-top: 1px solid var(--border); padding: 48px 32px 28px; }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 1.5fr repeat(3,1fr); gap: 40px; margin-bottom: 40px; }
.footer-logo-img { height: 64px; width: auto; filter: drop-shadow(0 0 8px color-mix(in srgb,var(--blue) 15%,transparent)); margin-bottom: 14px; display: block; }
.footer-desc { font-size: 13.5px; color: var(--text2); line-height: 1.65; max-width: 240px; margin-bottom: 18px; }
.footer-social { display: flex; gap: 8px; }
.footer-social a {
  width: 34px; height: 34px; border-radius: 8px; background: var(--surface2); border: 1px solid var(--border2);
  display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700;
  text-decoration: none; color: var(--text2); transition: all 0.15s; font-family:var(--body);font-variant-numeric:tabular-nums;
}
.footer-social a:hover { background: var(--accent-dim); border-color: var(--accent3); color: var(--accent); }
.footer-col-title { font-family: var(--display); font-size: 12px; font-weight: 700; color: var(--text); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 14px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: 13.5px; color: var(--text2); text-decoration: none; transition: color 0.15s; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 20px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-copy { font-family:var(--body);font-variant-numeric:tabular-nums; font-size: 12px; color: var(--text3); letter-spacing: 0.04em; }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { font-family:var(--body);font-variant-numeric:tabular-nums; font-size: 12px; color: var(--text3); text-decoration: none; transition: color 0.15s; }
.footer-legal a:hover { color: var(--text2); }
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out); }
.reveal.visible { opacity: 1; transform: translateY(0); }
@media (max-width: 900px) {
.main-nav, .nav-cta .btn-ghost, .header-phone { display: none; }
.hamburger { display: flex; }
.footer-top { grid-template-columns: 1fr 1fr; }
.info-strip-inner { flex-direction: column; align-items: flex-start; }
.info-divider { display: none; }
}
@media (max-width: 600px) {
.site-header { padding: 0 16px; }
.section { padding: 48px 16px; }
.page-hero { padding: 40px 16px; }
.footer-top { grid-template-columns: 1fr; }
.info-strip { padding: 24px 16px; }
}
#circuit-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 1;
}
.quote-modal-overlay {
  touch-action: pan-y;
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease;
}
.quote-modal-overlay.open {
  opacity: 1; pointer-events: all;
}
.quote-modal {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 20px;
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 32px 80px rgba(0,0,0,0.6), 0 0 0 1px var(--bg2);
  transform: translateY(16px) scale(0.98);
  transition: transform 0.25s var(--ease-out);
}
.quote-modal-overlay.open .quote-modal {
  transform: translateY(0) scale(1);
}
.quote-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.quote-modal-title {
  font-family: var(--display);
  font-size: 17px; font-weight: 700;
  color: var(--text); letter-spacing: -0.01em;
}
.quote-modal-sub {
  font-family:var(--body);font-variant-numeric:tabular-nums;
  font-size: 10px; color: var(--accent);
  letter-spacing:0.08em; text-transform: uppercase;
  margin-top: 2px;
}
.quote-modal-close {
  width: 34px; height: 34px;
  background: var(--surface2); border: 1px solid var(--border2);
  border-radius: 8px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: var(--text2);
  transition: all 0.15s; line-height: 1;
}
.quote-modal-close:hover {
  background: var(--surface3); color: var(--text);
  border-color: var(--accent3);
}
.quote-modal-.quote-modal-body {
  flex: 1; overflow-y: auto;
  padding: 0;
  background: var(--surface);
}
html {
  overflow-x: hidden;               
  height: 100%;
}
body {
  min-height: 100%;
  -webkit-overflow-scrolling: touch; 
  overscroll-behavior-y: contain;
}
#circuit-canvas {
  touch-action: none;               
  pointer-events: none;
}
.page-wrap {
  position: relative;
  z-index: 1;
  -webkit-overflow-scrolling: touch;
}
.site-header {
  touch-action: pan-x;              
}
@media (max-width: 768px) {
body > canvas {
    touch-action: none !important;
    pointer-events: none !important;
  }
}
.hero {
  overflow: visible !important;
}
.hero, .ticker-bar, .cta-card, #circuit-canvas, .page-hero, .section, .page-wrap {
  touch-action: pan-y pinch-zoom;
}
.hero-content, .hero-content * {
  pointer-events: auto;
  touch-action: auto;
}
@media (max-width: 768px) {
.hero {
    min-height: auto;
    padding: 40px 20px 32px;
  }
}
.repair-tile, .repair-tile::before, .card, .svc-card, .why-card, .review-card, .review-tile, .contact-block, .stat-card, .use-case-card, .platform-card, .faq-item, .mail-form-card, .quote-card, .cta-card, .ticket-card {
  overflow: visible;
  touch-action: pan-y;
}
.quote-iframe-wrap {
  overflow: visible;
  touch-action: pan-y;
}
.quote-iframe-wrap iframe {
  touch-action: pan-y;
}
.section, .page-hero, .page-hero-inner, .quote-section, .quote-section-inner {
  touch-action: pan-y;
}
#circuit-canvas {
  touch-action: none !important;
  pointer-events: none !important;
}
.mobile-nav {
  pointer-events: none;
  touch-action: none;
}
.mobile-nav.open {
  pointer-events: auto;
  touch-action: auto;
}
@media (hover: none), (pointer: coarse) {
html, body {
    overflow-x: hidden;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y !important;
    overscroll-behavior-y: contain;
    position: static !important;
    height: auto !important;
  }
}