/* ═══════════════════════════════════════════════════
   TECHNOLOGY SANDBOX — SHARED STYLESHEET
   Used by: index, services, industries, technology-support,
            about, locations, contact
═══════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&family=Syne:wght@400;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

/* ── TOKENS ── */
:root {
  --bg:           #04090f;
  --surface:      #081424;
  --border:       #132240;
  --blue:         #1565ff;
  --blue-lt:      #3d85ff;
  --blue-glow:    rgba(21,101,255,.28);
  --orange:       #ff6a00;
  --orange-lt:    #ff8c35;
  --orange-glow:  rgba(255,106,0,.28);
  --text:         #ddeaf8;
  --muted:        #6888aa;
  --card:         #071120;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  line-height: 1.6;
}
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(21,101,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21,101,255,.05) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none; z-index: 0;
}

/* ── ALERT BAR ── */
.alert-bar {
  background: linear-gradient(90deg, #071120, #060e1c, #071120);
  border-bottom: 1px solid var(--border);
  padding: 10px 20px; font-size: .82rem;
  color: var(--blue-lt); letter-spacing: .03em;
  position: relative; z-index: 10;
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.alert-bar .pulse { animation: pulse-dot 2s infinite; display: inline-block; }
@keyframes pulse-dot { 0%,100%{opacity:1} 50%{opacity:.4} }
.alert-bar a { color: var(--orange-lt); font-weight: 600; text-decoration: none; border-bottom: 1px dashed var(--orange); cursor: pointer; }
.alert-bar a:hover { color: #fff; border-color: #fff; }

/* ── NAV ── */
nav {
  position: sticky; top: 0; z-index: 200;
  background: rgba(4,9,15,.95);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  padding: 0 40px; height: 70px;
  display: flex; align-items: center; justify-content: space-between;
}

/* Wordmark */
.wordmark { display: flex; flex-direction: column; line-height: 1.1; text-decoration: none; }
.wordmark-line { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.22rem; letter-spacing: -.02em; display: flex; align-items: baseline; }
.wm-technology .wm-first { color: var(--orange); }
.wm-technology .wm-rest  { color: var(--blue-lt); }
.wm-space { width: .35em; }
.wm-sandbox .wm-first { color: var(--blue-lt); }
.wm-sandbox .wm-rest  { color: var(--orange-lt); }
.wordmark-sub { font-family: 'Space Mono', monospace; font-size: .56rem; letter-spacing: .18em; color: var(--muted); text-transform: uppercase; margin-top: 2px; }

/* Nav links + dropdowns */
.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; }
.nav-links > li { position: relative; }
.nav-links > li > a, .nav-links > li > span {
  color: var(--muted); text-decoration: none;
  font-size: .84rem; font-weight: 500; letter-spacing: .02em;
  padding: 8px 12px; border-radius: 6px;
  transition: color .2s, background .2s;
  display: flex; align-items: center; gap: 4px;
  cursor: pointer; white-space: nowrap;
}
.nav-links > li > a:hover,
.nav-links > li > span:hover,
.nav-links > li > a.active { color: var(--text); background: rgba(255,255,255,.05); }
.nav-links > li > a.active { color: var(--orange-lt); }

/* Dropdown arrow */
.nav-links .has-drop > span::after,
.nav-links .has-drop > a::after {
  content: '▾'; font-size: .65rem; opacity: .6; margin-left: 2px;
}

/* Dropdown panel */
.nav-dropdown {
  position: absolute; top: calc(100% + 8px); left: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  min-width: 230px; padding: 8px;
  opacity: 0; pointer-events: none;
  transform: translateY(-8px);
  transition: opacity .2s, transform .2s;
  box-shadow: 0 12px 40px rgba(0,0,0,.5);
  z-index: 9999;
}
/* Open state — triggered by JS class AND CSS hover (desktop) */
.has-drop:hover .nav-dropdown,
.has-drop:focus-within .nav-dropdown,
.has-drop.open .nav-dropdown {
  opacity: 1; pointer-events: all; transform: translateY(0);
}
.nav-dropdown a {
  display: block; padding: 9px 14px; border-radius: 8px;
  color: var(--muted); font-size: .82rem; text-decoration: none;
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.nav-dropdown a:hover { background: rgba(255,106,0,.1); color: var(--orange-lt); }
.nav-dropdown .drop-label {
  font-family: 'Space Mono', monospace;
  font-size: .58rem; letter-spacing: .14em;
  color: rgba(255,255,255,.2); text-transform: uppercase;
  padding: 8px 14px 4px; display: block;
}
.nav-dropdown hr { border: none; border-top: 1px solid var(--border); margin: 6px 0; }

/* CTA button */
.btn-assess {
  background: linear-gradient(135deg, var(--orange), #c94e00);
  color: #fff; font-weight: 700; font-size: .82rem;
  padding: 9px 18px; border-radius: 6px;
  text-decoration: none; cursor: pointer; border: none;
  letter-spacing: .04em; transition: opacity .2s, transform .2s;
  box-shadow: 0 0 18px var(--orange-glow); white-space: nowrap;
  margin-left: 8px;
}
.btn-assess:hover { opacity: .88; transform: translateY(-1px); }

/* Mobile hamburger */
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  background: none; border: none; padding: 8px;
}
.nav-hamburger span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s; }

/* Mobile drawer */
.mobile-nav {
  display: none; position: fixed; inset: 0; top: 70px;
  background: rgba(4,9,15,.98); backdrop-filter: blur(20px);
  z-index: 190; padding: 24px; overflow-y: auto;
  flex-direction: column; gap: 6px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  display: block; padding: 12px 16px; border-radius: 10px;
  color: var(--muted); text-decoration: none; font-size: .95rem;
  font-weight: 500; transition: background .15s, color .15s;
}
.mobile-nav a:hover { background: rgba(255,106,0,.1); color: var(--orange-lt); }
.mobile-nav .mob-section { font-family: 'Space Mono', monospace; font-size: .6rem; letter-spacing: .16em; color: rgba(255,255,255,.25); text-transform: uppercase; padding: 16px 16px 4px; }
.mobile-nav .mob-cta { background: linear-gradient(135deg, var(--orange), #c94e00); color: #fff !important; font-weight: 700; text-align: center; margin-top: 8px; }

/* ── SHARED LAYOUT ── */
.page-wrap { max-width: 1200px; margin: 0 auto; padding: 0 40px; }

/* ── PAGE HERO ── */
.page-hero {
  position: relative; z-index: 1;
  padding: 72px 40px 56px;
  max-width: 1200px; margin: 0 auto;
  border-bottom: 1px solid var(--border);
}
.page-hero-eyebrow {
  font-family: 'Space Mono', monospace; font-size: .68rem;
  letter-spacing: .2em; color: var(--orange-lt);
  text-transform: uppercase; margin-bottom: 16px;
  display: flex; align-items: center; gap: 10px;
}
.page-hero-eyebrow::before { content:''; display:inline-block; width:28px; height:2px; background:var(--orange); }
.page-hero h1 {
  font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -.04em;
  line-height: 1.06; margin-bottom: 18px;
}
.page-hero h1 .accent-orange { color: var(--orange-lt); }
.page-hero h1 .accent-blue   { color: var(--blue-lt); }
.page-hero p { font-size: 1rem; color: var(--muted); max-width: 600px; line-height: 1.75; }
.page-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

/* ── SECTION ── */
.section { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; padding: 72px 40px; }
.section-tag { font-family: 'Space Mono', monospace; font-size: .64rem; letter-spacing: .2em; color: var(--orange-lt); text-transform: uppercase; margin-bottom: 10px; }
.section h2 { font-family: 'Syne', sans-serif; font-weight: 800; font-size: clamp(1.8rem, 3vw, 2.6rem); letter-spacing: -.03em; margin-bottom: 14px; }
.section h2 .accent-orange { color: var(--orange-lt); }
.section h2 .accent-blue   { color: var(--blue-lt); }
.section-sub { color: var(--muted); font-size: .95rem; max-width: 580px; margin-bottom: 48px; line-height: 1.7; }
.divider { height: 1px; background: linear-gradient(90deg,transparent,var(--border),transparent); max-width: 1200px; margin: 0 auto; position: relative; z-index: 1; }

/* ── CARDS ── */
.card-grid-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: 22px; }
.card-grid-4 { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); gap: 18px; }
.card-grid-2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px,1fr)); gap: 22px; }

.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 18px; padding: 28px;
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.card:hover { border-color: var(--orange); transform: translateY(-4px); box-shadow: 0 8px 36px var(--orange-glow); }
.card.blue-hover:hover { border-color: var(--blue); box-shadow: 0 8px 36px var(--blue-glow); }

.card-icon {
  width: 50px; height: 50px;
  background: rgba(255,106,0,.1); border: 1px solid rgba(255,106,0,.3);
  border-radius: 14px; display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 18px; flex-shrink: 0;
}
.card-icon.blue-icon {
  background: rgba(21,101,255,.1); border-color: rgba(21,101,255,.3);
}
.card-sub { font-family: 'Space Mono', monospace; font-size: .6rem; letter-spacing: .14em; color: var(--orange-lt); text-transform: uppercase; margin-bottom: 5px; }
.card h3 { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1.08rem; margin-bottom: 10px; }
.card h4 { font-family: 'Syne', sans-serif; font-weight: 700; font-size: .98rem; margin-bottom: 8px; }
.card p  { font-size: .85rem; color: var(--muted); line-height: 1.65; }

.tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.tag { font-size: .68rem; padding: 3px 10px; border-radius: 20px; border: 1px solid var(--border); color: var(--muted); font-family: 'Space Mono', monospace; letter-spacing: .05em; }

.card-link { display: inline-flex; align-items: center; gap: 5px; color: var(--blue-lt); font-size: .82rem; font-weight: 600; text-decoration: none; margin-top: 14px; transition: color .2s; }
.card-link:hover { color: var(--orange-lt); }

/* Checklist */
.check-list { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.check-list li { display: flex; align-items: flex-start; gap: 9px; font-size: .84rem; color: var(--muted); line-height: 1.5; }
.check-list li .ci {
  flex-shrink: 0; width: 18px; height: 18px; border-radius: 50%; margin-top: 1px;
  display: flex; align-items: center; justify-content: center; font-size: .62rem;
  background: rgba(21,101,255,.15); border: 1px solid rgba(21,101,255,.4); color: var(--blue-lt);
}
.check-list li .ci.org { background: rgba(255,106,0,.15); border-color: rgba(255,106,0,.4); color: var(--orange-lt); }

/* ── BUTTONS ── */
.btn-orange {
  background: linear-gradient(135deg, var(--orange), #c94e00); color: #fff;
  font-weight: 700; font-size: .9rem; padding: 13px 26px; border-radius: 8px;
  text-decoration: none; cursor: pointer; border: none; letter-spacing: .03em;
  transition: transform .2s, box-shadow .2s; box-shadow: 0 0 24px var(--orange-glow);
  display: inline-block;
}
.btn-orange:hover { transform: translateY(-2px); box-shadow: 0 0 40px var(--orange-glow); }
.btn-blue {
  background: linear-gradient(135deg, var(--blue), #0044cc); color: #fff;
  font-weight: 700; font-size: .9rem; padding: 13px 26px; border-radius: 8px;
  text-decoration: none; cursor: pointer; border: none; letter-spacing: .03em;
  transition: transform .2s, box-shadow .2s; box-shadow: 0 0 24px var(--blue-glow);
  display: inline-block;
}
.btn-blue:hover { transform: translateY(-2px); box-shadow: 0 0 40px var(--blue-glow); }
.btn-ghost {
  background: transparent; color: var(--text); font-weight: 600; font-size: .9rem;
  padding: 12px 26px; border-radius: 8px; border: 1px solid var(--border);
  text-decoration: none; cursor: pointer; transition: border-color .2s, color .2s;
  display: inline-block;
}
.btn-ghost:hover { border-color: var(--blue-lt); color: var(--blue-lt); }
.btn-sm { font-size: .8rem !important; padding: 9px 18px !important; }

/* ── CTA BAND ── */
.cta-band {
  position: relative; z-index: 1; margin: 0 40px 80px;
  border-radius: 22px;
  background: linear-gradient(135deg, #07152a 0%, #04090f 100%);
  border: 1px solid rgba(255,106,0,.3);
  box-shadow: 0 0 80px rgba(255,106,0,.07), inset 0 1px 0 rgba(255,106,0,.12);
  padding: 52px 44px; overflow: hidden;
}
.cta-band::before {
  content:''; position:absolute; width:400px; height:400px;
  background:radial-gradient(circle,rgba(255,106,0,.1),transparent 70%);
  top:-150px; right:-100px; border-radius:50%; pointer-events:none;
}
.cta-band::after {
  content:''; position:absolute; width:280px; height:280px;
  background:radial-gradient(circle,rgba(21,101,255,.09),transparent 70%);
  bottom:-100px; left:-60px; border-radius:50%; pointer-events:none;
}
.cta-band-inner { position:relative; z-index:1; display:flex; align-items:center; justify-content:space-between; gap:32px; flex-wrap:wrap; }
.cta-band h2 { font-family:'Syne',sans-serif; font-weight:800; font-size:clamp(1.4rem,3vw,2.1rem); letter-spacing:-.03em; margin-bottom:8px; }
.cta-band p  { color:var(--muted); font-size:.92rem; max-width:520px; }
.cta-band-btns { display:flex; gap:12px; flex-wrap:wrap; flex-shrink:0; }

/* ── MODAL ── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(4,9,15,.9);
  backdrop-filter: blur(12px); z-index: 1000;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal {
  background: var(--surface); border-radius: 20px; width: 100%;
  max-width: 860px; max-height: 90vh; overflow: hidden;
  display: flex; flex-direction: column;
  transform: translateY(28px) scale(.97); transition: transform .3s;
}
.modal-overlay.active .modal { transform: translateY(0) scale(1); }
.modal.orange-modal { border: 1px solid rgba(255,106,0,.35); box-shadow: 0 0 80px var(--orange-glow), 0 0 40px var(--blue-glow); }
.modal.blue-modal   { border: 1px solid rgba(21,101,255,.35); box-shadow: 0 0 80px var(--blue-glow), 0 0 40px var(--orange-glow); }
.modal-header { display:flex; align-items:center; justify-content:space-between; padding:20px 26px; border-bottom:1px solid var(--border); background:var(--card); }
.modal-header div h3 { font-family:'Syne',sans-serif; font-weight:700; font-size:1.1rem; }
.modal-header div p  { font-size:.78rem; color:var(--muted); margin-top:2px; }
.modal-close { background:var(--border); border:none; color:var(--text); width:34px; height:34px; border-radius:8px; cursor:pointer; font-size:1rem; display:flex; align-items:center; justify-content:center; transition:background .2s; flex-shrink:0; }
.modal-close:hover { background:var(--orange); }
.modal-body { flex:1; overflow:auto; }
.modal-body iframe { width:100%; height:600px; border:none; display:block; }
.modal-footer { padding:14px 26px; border-top:1px solid var(--border); display:flex; align-items:center; justify-content:space-between; background:var(--card); gap:16px; }
.modal-footer p { font-size:.72rem; color:var(--muted); }
.modal-qr { display:flex; align-items:center; gap:10px; }
.modal-qr .qr-box { background:#fff; padding:5px; border-radius:6px; }
.modal-qr .qr-box img, .modal-qr .qr-box canvas { width:48px; height:48px; display:block; }
.modal-qr span { font-size:.7rem; color:var(--muted); max-width:130px; line-height:1.4; }

/* ── FOOTER ── */
footer { position:relative; z-index:1; background:var(--card); border-top:1px solid var(--border); padding:52px 40px 28px; }
.footer-inner { max-width:1200px; margin:0 auto; }
.footer-grid { display:grid; grid-template-columns:2.2fr 1fr 1fr 1fr 1fr; gap:40px; padding-bottom:40px; border-bottom:1px solid var(--border); margin-bottom:28px; }
.footer-brand p { color:var(--muted); font-size:.82rem; margin-top:12px; line-height:1.75; max-width:240px; }
.footer-brand .phone { color:var(--orange-lt); font-family:'Space Mono',monospace; font-size:.78rem; margin-top:14px; display:block; text-decoration:none; letter-spacing:.04em; }
.footer-brand .phone:hover { color:#fff; }
.footer-col h6 { font-family:'Syne',sans-serif; font-size:.75rem; font-weight:700; letter-spacing:.12em; text-transform:uppercase; color:var(--text); margin-bottom:14px; }
.footer-col a { display:block; color:var(--muted); font-size:.82rem; text-decoration:none; margin-bottom:9px; transition:color .2s; }
.footer-col a:hover { color:var(--orange-lt); }
.footer-bottom { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px; }
.footer-bottom p { font-size:.73rem; color:var(--muted); }
.footer-locations { font-family:'Space Mono',monospace; font-size:.62rem; color:var(--muted); letter-spacing:.14em; }
.footer-legal a { color:var(--muted); text-decoration:none; font-size:.72rem; margin-left:16px; transition:color .2s; }
.footer-legal a:hover { color:var(--orange-lt); }

/* ── TABLE ── */
.data-table { width:100%; border-collapse:collapse; font-size:.84rem; }
.data-table th { font-family:'Syne',sans-serif; font-size:.75rem; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--muted); text-align:left; padding:12px 16px; border-bottom:2px solid var(--border); }
.data-table td { padding:12px 16px; border-bottom:1px solid var(--border); color:var(--text); vertical-align:top; line-height:1.5; }
.data-table tr:last-child td { border-bottom:none; }
.data-table tr:hover td { background:rgba(255,255,255,.025); }
.data-table strong { color:var(--orange-lt); }
.table-wrap { background:var(--card); border:1px solid var(--border); border-radius:14px; overflow:hidden; }

/* ── FAQ ── */
.faq-list { display:flex; flex-direction:column; gap:4px; }
.faq-item { background:var(--card); border:1px solid var(--border); border-radius:12px; overflow:hidden; }
.faq-q { display:flex; align-items:center; justify-content:space-between; padding:18px 22px; cursor:pointer; font-weight:600; font-size:.9rem; transition:background .2s; gap:12px; }
.faq-q:hover { background:rgba(255,255,255,.03); }
.faq-q .arr { font-size:.75rem; color:var(--muted); transition:transform .25s; flex-shrink:0; }
.faq-item.open .faq-q .arr { transform:rotate(180deg); }
.faq-a { max-height:0; overflow:hidden; transition:max-height .3s ease; }
.faq-item.open .faq-a { max-height:400px; }
.faq-a-inner { padding:0 22px 18px; color:var(--muted); font-size:.86rem; line-height:1.7; border-top:1px solid var(--border); padding-top:16px; }

/* ── LOCATION CARD ── */
.loc-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:16px; }
.loc-card { background:var(--card); border:1px solid var(--border); border-radius:14px; padding:22px; transition:border-color .25s, transform .2s; }
.loc-card:hover { border-color:var(--orange); transform:translateY(-3px); }
.loc-card .loc-icon { font-size:1.5rem; margin-bottom:12px; display:block; }
.loc-card h4 { font-family:'Syne',sans-serif; font-weight:700; font-size:.96rem; margin-bottom:6px; }
.loc-card a { color:var(--orange-lt); font-family:'Space Mono',monospace; font-size:.78rem; text-decoration:none; display:block; transition:color .2s; }
.loc-card a:hover { color:#fff; }

/* ── STAT BAR ── */
.stat-bar { position:relative; z-index:1; background:var(--card); border-top:1px solid var(--border); border-bottom:1px solid var(--border); }
.stat-bar-inner { max-width:1200px; margin:0 auto; padding:28px 40px; display:flex; justify-content:space-around; gap:20px; flex-wrap:wrap; }
.stat-item { text-align:center; }
.stat-num { font-family:'Syne',sans-serif; font-weight:800; font-size:2rem; }
.stat-num.org { color:var(--orange-lt); }
.stat-num.blu { color:var(--blue-lt); }
.stat-label { font-size:.74rem; color:var(--muted); letter-spacing:.06em; text-transform:uppercase; }

/* ── RESPONSIVE ── */
@media (max-width: 1100px) { .footer-grid { grid-template-columns: 1fr 1fr 1fr; } .footer-grid .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 900px) {
  nav { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .page-hero, .section { padding-left: 24px; padding-right: 24px; }
  .cta-band { margin: 0 20px 60px; padding: 36px 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid .footer-brand { grid-column: 1 / -1; }
  footer { padding: 40px 24px 24px; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .card-grid-3, .card-grid-4, .card-grid-2 { grid-template-columns: 1fr; }
  .loc-grid { grid-template-columns: 1fr 1fr; }
}

/* ── Mobile Modal Fix ── */
@media (max-width: 600px) {
  .modal {
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    border-radius: 0 !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
  }
  .modal-body {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .modal-body iframe {
    min-height: 70vh !important;
    height: 100% !important;
  }
  .modal-footer { flex-shrink: 0; }
}
