/* ============================================================
   SPAR STAFFING — Enterprise Design System
   Inspired by Accenture / Deloitte / IBM Consulting
   ============================================================ */

/* ---- Design Tokens ---- */
:root {
  --bg: #060d1b;
  --bg-alt: #0b1527;
  --surface: rgba(255,255,255,0.035);
  --surface-hover: rgba(255,255,255,0.07);
  --border: rgba(255,255,255,0.07);
  --border-hover: rgba(255,255,255,0.16);
  --text: #eaf0f9;
  --text-secondary: #94a3b8;
  --text-tertiary: #64748b;
  --accent: #0066FF;
  --accent-light: #4d94ff;
  --accent-dark: #0044cc;
  --accent-glow: rgba(0,102,255,0.12);
  --accent-gradient: linear-gradient(135deg, #0066FF 0%, #00b4ff 100%);
  --cyan: #00C2FF;
  --green: #10b981;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --container: 1260px;
  --section-y: 110px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-full: 9999px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.18);
  --shadow-md: 0 8px 30px rgba(0,0,0,0.22);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.28);
  --shadow-glow: 0 0 60px rgba(0,102,255,0.10);
  --ease: cubic-bezier(.4,0,.2,1);
  /* Theme-specific tokens */
  --header-bg: rgba(6,13,27,0.82);
  --header-bg-scrolled: rgba(6,13,27,0.95);
  --dropdown-bg: rgba(11,21,39,0.97);
  --footer-bg: linear-gradient(180deg, rgba(6,13,27,0.6) 0%, rgba(3,8,18,0.95) 100%);
  --topbar-bg: rgba(0,102,255,0.08);
  --topbar-border: rgba(0,102,255,0.12);
  --gradient-text-from: #ffffff;
  --gradient-text-to: #b0d0ff;
  --btn-white-bg: #fff;
  --btn-white-bg-hover: #f0f4f8;
  --btn-white-text: var(--bg);
  --label-green-bg: rgba(16,185,129,0.12);
  --label-green-text: #6ee7b7;
  --label-green-border: rgba(16,185,129,0.2);
  --card-sheen: rgba(255,255,255,0.04);
  --soft-from: rgba(255,255,255,0.045);
  --soft-to: rgba(255,255,255,0.015);
  --map-bg: #1a1a2e;
}

/* ---- Light Theme ---- */
.theme-light {
  --bg: #f5f7fa;
  --bg-alt: #ffffff;
  --surface: rgba(0,0,0,0.035);
  --surface-hover: rgba(0,0,0,0.065);
  --border: rgba(0,0,0,0.09);
  --border-hover: rgba(0,0,0,0.18);
  --text: #0f172a;
  --text-secondary: #475569;
  --text-tertiary: #94a3b8;
  --accent: #0052cc;
  --accent-light: #2970e6;
  --accent-dark: #003d99;
  --accent-glow: rgba(0,82,204,0.08);
  --accent-gradient: linear-gradient(135deg, #0052cc 0%, #0088e6 100%);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 30px rgba(0,0,0,0.08);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.10);
  --shadow-glow: 0 0 40px rgba(0,82,204,0.06);
  --header-bg: rgba(255,255,255,0.88);
  --header-bg-scrolled: rgba(255,255,255,0.96);
  --dropdown-bg: rgba(255,255,255,0.98);
  --footer-bg: linear-gradient(180deg, #eef1f6 0%, #e2e6ec 100%);
  --topbar-bg: rgba(0,82,204,0.05);
  --topbar-border: rgba(0,82,204,0.1);
  --gradient-text-from: #0f172a;
  --gradient-text-to: #1e40af;
  --btn-white-bg: #0f172a;
  --btn-white-bg-hover: #1e293b;
  --btn-white-text: #fff;
  --label-green-bg: rgba(16,185,129,0.1);
  --label-green-text: #059669;
  --label-green-border: rgba(16,185,129,0.2);
  --card-sheen: rgba(255,255,255,0.6);
  --soft-from: rgba(0,0,0,0.025);
  --soft-to: rgba(0,0,0,0.01);
  --map-bg: #e2e6ec;
}
.theme-light .btn.secondary { color: var(--text); }
.theme-light .mega-item h4 { color: var(--text); }
.theme-light .mega-item p { color: var(--text-tertiary); }

/* ---- Spar Brand Theme ---- */
.theme-spar {
  --bg: #041e20;
  --bg-alt: #082a2d;
  --surface: rgba(0,210,132,0.04);
  --surface-hover: rgba(0,210,132,0.08);
  --border: rgba(0,210,132,0.1);
  --border-hover: rgba(0,210,132,0.22);
  --text: #e6fff5;
  --text-secondary: #8ec6b8;
  --text-tertiary: #5a9a8c;
  --accent: #00d084;
  --accent-light: #33e0a3;
  --accent-dark: #00a86b;
  --accent-glow: rgba(0,208,132,0.12);
  --accent-gradient: linear-gradient(135deg, #00c6ff 0%, #00d084 100%);
  --cyan: #00c6ff;
  --green: #00d084;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.22);
  --shadow-md: 0 8px 30px rgba(0,0,0,0.26);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.32);
  --shadow-glow: 0 0 60px rgba(0,208,132,0.10);
  --header-bg: rgba(4,30,32,0.82);
  --header-bg-scrolled: rgba(4,30,32,0.95);
  --dropdown-bg: rgba(8,42,45,0.97);
  --footer-bg: linear-gradient(180deg, rgba(4,30,32,0.6) 0%, rgba(2,18,20,0.95) 100%);
  --topbar-bg: rgba(0,208,132,0.06);
  --topbar-border: rgba(0,208,132,0.12);
  --gradient-text-from: #ffffff;
  --gradient-text-to: #33e0a3;
  --btn-white-bg: #fff;
  --btn-white-bg-hover: #e6fff5;
  --btn-white-text: #041e20;
  --label-green-bg: rgba(0,208,132,0.12);
  --label-green-text: #33e0a3;
  --label-green-border: rgba(0,208,132,0.2);
  --card-sheen: rgba(0,208,132,0.04);
  --soft-from: rgba(0,208,132,0.045);
  --soft-to: rgba(0,208,132,0.015);
  --map-bg: #082a2d;
}

/* ---- Theme Transition ---- */
body,
body *:not(script):not(style) {
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}

/* ============================================================
   THEME SWITCHER
   ============================================================ */
.theme-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: var(--r-full);
  border: 1px solid var(--border);
  background: var(--surface);
  flex-shrink: 0;
}
.theme-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-tertiary);
  display: grid;
  place-items: center;
  font-size: 14px;
  cursor: pointer;
  transition: all .25s var(--ease);
  padding: 0;
  line-height: 1;
}
.theme-btn:hover {
  color: var(--text);
  background: var(--surface-hover);
  border-color: var(--border);
}
.theme-btn.active {
  background: var(--accent-gradient);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.theme-btn[title]::after { content: none; }

/* ---- Reset & Base ---- */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; transition: color var(--ease) .2s; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }

/* ---- Utility ---- */
.container { width: min(var(--container), calc(100% - 48px)); margin: 0 auto; }
.section { padding: var(--section-y) 0; }
.muted { color: var(--text-secondary); }
.copy { max-width: 680px; }
.copy p { margin-top: 16px; color: var(--text-secondary); font-size: 17px; line-height: 1.7; }
.inline { display: flex; gap: 12px; flex-wrap: wrap; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ---- Typography ---- */
h1, h2, h3, h4, h5 { font-weight: 700; letter-spacing: -0.025em; line-height: 1.15; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); line-height: 1.06; letter-spacing: -0.04em; font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); line-height: 1.1; letter-spacing: -0.03em; }
h3 { font-size: 1.4rem; }
p { margin: 0; }
.eyebrow {
  display: inline-block;
  color: var(--accent-light);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 12px;
  position: relative;
}
.gradient-text {
  background: linear-gradient(180deg, var(--gradient-text-from) 20%, var(--gradient-text-to) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 28px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  border-radius: var(--r-full);
  transition: all .3s var(--ease);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.btn.primary {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 0 4px 20px rgba(0,102,255,0.25);
}
.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,102,255,0.35);
}
.btn.primary:active { transform: translateY(0); }
.btn.secondary {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
  backdrop-filter: blur(8px);
}
.btn.secondary:hover {
  background: var(--surface-hover);
  border-color: var(--border-hover);
  transform: translateY(-1px);
}
.btn.small { min-height: 42px; padding: 0 18px; font-size: 14px; }
.btn.white {
  background: var(--btn-white-bg);
  color: var(--btn-white-text);
  font-weight: 700;
}
.btn.white:hover {
  background: var(--btn-white-bg-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255,255,255,0.15);
}

/* ---- Cards ---- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  position: relative;
  overflow: hidden;
  transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--card-sheen) 0%, transparent 40%);
  pointer-events: none;
  z-index: 1;
}
.card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}

.soft {
  background: linear-gradient(180deg, var(--soft-from), var(--soft-to));
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
}

/* ---- Badges / Pills ---- */
.badge, .pill, .meta, .chip, .stat-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--r-full);
  backdrop-filter: blur(8px);
}
.badge { padding: 8px 16px; font-size: 12px; font-weight: 600; letter-spacing: 0.02em; }
.pill, .chip, .meta { padding: 10px 16px; font-size: 14px; }
.label {
  display: inline-flex;
  padding: 6px 14px;
  border-radius: var(--r-full);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.label.primary { background: var(--label-green-bg); color: var(--label-green-text); border: 1px solid var(--label-green-border); }
.label.secondary { background: var(--surface); color: var(--text-secondary); border: 1px solid var(--border); }

/* ---- Icon Box ---- */
.icon {
  width: 52px;
  height: 52px;
  border-radius: var(--r-md);
  background: var(--accent-glow);
  border: 1px solid rgba(0,102,255,0.15);
  display: grid;
  place-items: center;
  color: var(--accent-light);
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 16px;
  transition: all .3s var(--ease);
}

/* ---- Media ---- */
.media {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 16 / 10;
  background: var(--bg-alt);
  position: relative;
}
.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.2) 100%);
  pointer-events: none;
}
.media:hover img { transform: scale(1.05); }

/* ============================================================
   TOP BAR
   ============================================================ */
.topbar {
  background: var(--topbar-bg);
  border-bottom: 1px solid var(--topbar-border);
  padding: 10px 0;
  font-size: 13px;
  color: var(--text-secondary);
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.topbar-left {
  display: flex;
  align-items: center;
  gap: 24px;
}
.topbar-left a {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  transition: color .2s;
}
.topbar-left a:hover { color: var(--accent-light); }
.topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.topbar-social {
  display: flex;
  gap: 8px;
}
.topbar-social a {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-size: 13px;
  transition: all .2s;
}
.topbar-social a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ============================================================
   HEADER / NAVIGATION
   ============================================================ */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .3s, background .3s;
}
header.scrolled {
  background: var(--header-bg-scrolled);
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}
.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Logo */
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img {
  width: 60px;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  transition: transform .3s var(--ease);
}
.brand:hover img { transform: scale(1.05); }

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-links > a,
.nav-links .mega-trigger {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--r-md);
  transition: all .2s;
  position: relative;
}
.nav-links > a:hover,
.nav-links .mega-trigger:hover,
.nav-links > a.active {
  color: var(--text);
  background: var(--surface);
}
.nav-links > a.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

/* Nav Right */
.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-right .pill {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

/* Mega Menu */
.mega-wrap {
  position: relative;
}
.mega-trigger {
  display: flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
}
.mega-trigger .chevron {
  font-size: 10px;
  transition: transform .25s;
  display: inline-block;
}
.mega-wrap:hover .mega-trigger .chevron,
.mega-wrap.open .mega-trigger .chevron {
  transform: rotate(180deg);
}
.mega-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 520px;
  background: var(--dropdown-bg);
  backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
  z-index: 50;
}
.mega-wrap:hover .mega-dropdown,
.mega-wrap.open .mega-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}
.mega-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.mega-item {
  display: flex;
  gap: 14px;
  padding: 14px;
  border-radius: var(--r-md);
  transition: background .2s;
  text-decoration: none;
}
.mega-item:hover {
  background: var(--surface-hover);
}
.mega-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--r-sm);
  background: var(--accent-glow);
  border: 1px solid rgba(0,102,255,0.12);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 18px;
}
.mega-item h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}
.mega-item p {
  font-size: 12px;
  color: var(--text-tertiary);
  line-height: 1.4;
}

/* Mobile Toggle */
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  padding: 0 0 20px;
}
.mobile-menu.open {
  display: grid;
  gap: 6px;
}
.mobile-menu a {
  padding: 14px 18px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 500;
  transition: all .2s;
}
.mobile-menu a:hover,
.mobile-menu a.active {
  background: var(--surface-hover);
  color: var(--text);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0,102,255,0.12), transparent 70%);
  pointer-events: none;
  animation: heroGlow 8s ease-in-out infinite alternate;
}
.hero::after {
  content: '';
  position: absolute;
  top: -100px;
  right: -200px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0,194,255,0.08), transparent 60%);
  pointer-events: none;
  animation: heroGlow 10s ease-in-out infinite alternate-reverse;
}
@keyframes heroGlow {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(40px, 30px) scale(1.15); }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero-copy { padding-top: 20px; }
.hero-copy h1 {
  margin-top: 16px;
}
.hero-copy > p {
  margin-top: 20px;
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 32px;
}

/* Stats Row */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 40px;
}
.stat {
  padding: 20px;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  display: block;
  text-align: center;
  transition: all .3s var(--ease);
}
.stat:hover {
  border-color: var(--border-hover);
  background: var(--surface-hover);
  transform: translateY(-3px);
}
.stat strong {
  display: block;
  font-size: 28px;
  letter-spacing: -0.03em;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat span {
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
}

/* Hero Visual / Cards */
.hero-visual {
  background: linear-gradient(135deg, rgba(0,102,255,0.06), rgba(0,194,255,0.04));
  border-radius: var(--r-xl);
  padding: 24px;
  border: 1px solid var(--border);
  position: relative;
}
.hero-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.mini {
  padding: 18px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: all .3s var(--ease);
}
.mini:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  background: var(--surface-hover);
}
.mini h4 { margin-top: 12px; font-size: 15px; }
.mini p { margin-top: 6px; font-size: 13px; color: var(--text-secondary); }

/* ============================================================
   CAPABILITY & CONTENT SECTIONS
   ============================================================ */
.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.feature-stack {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 20px;
}
.feature, .service, .industry, .job, .testimonial, .faq-item, .contact-card, .form-card, .cta {
  padding: 28px;
}
.feature-wide { grid-column: span 2; }
.feature {
  transition: all .3s var(--ease);
}
.feature:hover {
  transform: translateY(-3px);
  border-color: var(--border-hover);
}

/* Checks Grid */
.checks {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 24px;
}
.checks .row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: all .25s var(--ease);
}
.checks .row:hover {
  background: var(--surface-hover);
  border-color: var(--border-hover);
}
.checks .row i {
  font-style: normal;
  color: var(--accent-light);
  font-weight: 700;
  flex-shrink: 0;
}

/* ============================================================
   SERVICES
   ============================================================ */
.services, .jobs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.service {
  transition: all .35s var(--ease);
}
.service:hover {
  transform: translateY(-6px);
  border-color: rgba(0,102,255,0.25);
  box-shadow: 0 12px 40px rgba(0,102,255,0.08);
}
.services ul, .assess {
  padding-left: 20px;
  color: var(--text-secondary);
  list-style: disc;
}
.services li, .assess li {
  margin: 8px 0;
}

/* ============================================================
   TAB SECTIONS
   ============================================================ */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 20px;
}
.tab-btn {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  padding: 10px 18px;
  border-radius: var(--r-full);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .25s var(--ease);
}
.tab-btn:hover {
  background: var(--surface-hover);
  color: var(--text);
  border-color: var(--border-hover);
}
.tab-btn.active {
  background: var(--accent-gradient);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(0,102,255,0.3);
}
.tab-panel { display: none; }
.tab-panel.active {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}
.panel ul { padding-left: 20px; color: var(--text-secondary); list-style: disc; }

/* ============================================================
   JOBS
   ============================================================ */
.jobs-top {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 32px;
}
.search {
  position: relative;
  width: min(420px, 100%);
}
.search input,
.form-grid input,
.form-grid select,
.form-grid textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--r-md);
  padding: 14px 16px;
  font: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.search input:focus,
.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.search input { height: 52px; padding-left: 46px; border-radius: var(--r-full); }
.search span {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-tertiary);
}
.job .top {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.job .company { margin-top: 8px; color: var(--text-secondary); font-weight: 500; }
.job .desc { margin-top: 10px; color: var(--text-secondary); font-size: 15px; }
.job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.job-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.job {
  transition: all .35s var(--ease);
}
.job:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial {
  transition: all .35s var(--ease);
}
.testimonial:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
}
.testimonial .quote {
  font-size: 48px;
  line-height: 1;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 800;
}
.testimonial p { color: var(--text-secondary); font-size: 15px; line-height: 1.7; margin-top: 8px; }
.testimonial .person {
  padding-top: 18px;
  margin-top: 18px;
  border-top: 1px solid var(--border);
}
.testimonial .person strong { font-size: 15px; }
.testimonial .person span {
  display: block;
  color: var(--text-tertiary);
  font-size: 13px;
  margin-top: 2px;
}

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band {
  padding: 32px 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  background: linear-gradient(135deg, rgba(0,102,255,0.08), rgba(0,194,255,0.04));
  border: 1px solid rgba(0,102,255,0.15);
}
.cta-band:hover {
  border-color: rgba(0,102,255,0.25);
}

/* ============================================================
   CAPABILITIES SECTION (NEW)
   ============================================================ */
.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.cap-card {
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  transition: all .35s var(--ease);
  position: relative;
  overflow: hidden;
}
.cap-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-gradient);
  opacity: 0;
  transition: opacity .3s;
}
.cap-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glow);
}
.cap-card:hover::before { opacity: 1; }
.cap-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--r-md);
  background: var(--accent-glow);
  border: 1px solid rgba(0,102,255,0.12);
  display: grid;
  place-items: center;
  font-size: 24px;
  margin-bottom: 20px;
}
.cap-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.cap-card p { color: var(--text-secondary); font-size: 15px; line-height: 1.6; }

/* ============================================================
   GLOBAL PRESENCE (NEW)
   ============================================================ */
.presence-band {
  background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
}
.presence-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.presence-card {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  text-align: center;
  transition: all .35s var(--ease);
}
.presence-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glow);
}
.presence-card .presence-flag {
  font-size: 36px;
  margin-bottom: 14px;
}
.presence-card h4 { font-size: 16px; margin-bottom: 6px; }
.presence-card p { color: var(--text-secondary); font-size: 13px; line-height: 1.5; }

/* ============================================================
   METRICS / TRUST ROW (NEW)
   ============================================================ */
.metrics-band {
  padding: 80px 0;
  background: linear-gradient(135deg, rgba(0,102,255,0.06) 0%, rgba(0,194,255,0.03) 100%);
  border-top: 1px solid rgba(0,102,255,0.1);
  border-bottom: 1px solid rgba(0,102,255,0.1);
}
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.metric-item strong {
  display: block;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.metric-item span {
  display: block;
  margin-top: 6px;
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 500;
}

/* ============================================================
   INDUSTRIES GRID (NEW)
   ============================================================ */
.industries-showcase {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.ind-card {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  text-align: center;
  transition: all .35s var(--ease);
  cursor: pointer;
}
.ind-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0,102,255,0.25);
  background: var(--surface-hover);
}
.ind-card .ind-icon {
  font-size: 32px;
  margin-bottom: 14px;
}
.ind-card h4 { font-size: 15px; }

/* ============================================================
   FAQ
   ============================================================ */
.faq-list {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}
.faq-item {
  transition: all .3s var(--ease);
}
.faq-item:hover {
  border-color: var(--border-hover);
}
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  cursor: pointer;
}
.faq-question strong { font-size: 16px; }
.faq-question span {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: all .3s;
  font-size: 18px;
}
.faq-item.open .faq-question span {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s var(--ease), margin-top .35s var(--ease);
  color: var(--text-secondary);
  line-height: 1.7;
}
.faq-item.open .faq-answer {
  margin-top: 14px;
  max-height: 250px;
}

/* ============================================================
   CONTACT / FORMS
   ============================================================ */
.contact-list {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}
.contact-row {
  display: flex;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  transition: all .25s var(--ease);
  align-items: center;
}
.contact-row:hover {
  background: var(--surface-hover);
  border-color: var(--border-hover);
  transform: translateX(4px);
}
.contact-row strong { display: block; font-size: 14px; }
.contact-row span { color: var(--text-secondary); font-size: 14px; }
.contact-row a { color: var(--accent-light); }
.contact-row a:hover { color: var(--cyan); }

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 20px;
}
.span2 { grid-column: span 2; }
.form-grid textarea { min-height: 140px; resize: vertical; }
.form-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
}
.note { color: var(--text-tertiary); font-size: 12px; max-width: 400px; }

.contact-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.action-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
  transition: all .25s var(--ease);
}
.action-link:hover {
  border-color: var(--accent);
  background: var(--accent-glow);
  color: #fff;
}

/* ============================================================
   PRESENCE MAP (CONTACT PAGE)
   ============================================================ */
.presence-wrap { margin-top: 20px; }
.presence-map-card { padding: 28px; }
#global-presence-map {
  height: 460px;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-top: 20px;
  background: var(--map-bg);
  z-index: 1;
}

/* Leaflet dark-theme popup overrides */
.spar-popup .leaflet-popup-content-wrapper {
  background: var(--bg-alt);
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}
.spar-popup .leaflet-popup-content {
  margin: 12px 14px;
  line-height: 1.5;
}
.spar-popup .leaflet-popup-content strong {
  color: var(--accent-light);
}
.spar-popup .leaflet-popup-content span {
  color: var(--text-secondary);
}
.spar-popup .leaflet-popup-content em {
  color: var(--green);
  font-style: normal;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.spar-popup .leaflet-popup-tip {
  background: var(--bg-alt);
  border: 1px solid rgba(255,255,255,0.1);
  border-top: none;
  border-left: none;
}
/* Leaflet zoom control */
.leaflet-control-zoom a {
  background: var(--bg-alt) !important;
  color: var(--text) !important;
  border-color: var(--border) !important;
}
.leaflet-control-zoom a:hover {
  background: var(--accent-glow) !important;
}
/* Leaflet attribution */
.leaflet-control-attribution {
  background: var(--bg-alt) !important;
  color: var(--text-tertiary) !important;
  font-size: 10px !important;
}
.leaflet-control-attribution a {
  color: var(--text-secondary) !important;
}

.presence-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 20px;
}
.presence-item {
  padding: 18px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: all .25s var(--ease);
}
.presence-item:hover {
  background: var(--surface-hover);
  border-color: var(--border-hover);
}
.presence-item strong { display: block; margin-bottom: 6px; }
.presence-item span { color: var(--text-secondary); font-size: 14px; }
.map-embed {
  margin-top: 20px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.map-embed iframe {
  width: 100%;
  height: 460px;
  border: 0;
  display: block;
}

/* ============================================================
   TIMELINE
   ============================================================ */
.timeline {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}
.timeline-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  padding: 22px;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: all .3s var(--ease);
}
.timeline-item:hover {
  transform: translateX(6px);
  border-color: var(--border-hover);
  background: var(--surface-hover);
}
.timeline-num {
  width: 56px;
  height: 56px;
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  background: var(--accent-gradient);
  color: #fff;
  font-weight: 800;
  font-size: 18px;
}

/* ============================================================
   BREADCRUMBS
   ============================================================ */
.crumbs {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 12px;
}
.crumbs a {
  color: var(--accent-light);
  transition: color .2s;
}
.crumbs a:hover { color: var(--cyan); }

/* ============================================================
   PAGE HERO
   ============================================================ */
.page-hero { padding: 60px 0 30px; }
.page-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}
.page-media { aspect-ratio: 16 / 10; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--border);
  background: var(--footer-bg);
  margin-top: 0;
  padding-top: 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 0.8fr 0.8fr 0.8fr;
  gap: 40px;
  padding: 60px 0 48px;
}
.footer-main { max-width: 400px; }
.footer-main .footer-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  margin-top: 18px;
  letter-spacing: -0.01em;
}
.footer-main .footer-sub {
  color: var(--text-secondary);
  font-size: 14px;
  margin-top: 10px;
  line-height: 1.65;
}
.footer-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.footer-main p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
}
.footer .brand img {
  width: 56px;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
}
.footer-links {
  padding-top: 6px;
}
.footer-links h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text);
  margin-bottom: 18px;
  font-weight: 700;
}
.footer-links a {
  display: block;
  margin: 12px 0;
  color: var(--text-secondary);
  font-size: 14px;
  transition: color .2s, transform .2s;
}
.footer-links a:hover {
  color: var(--accent-light);
  transform: translateX(4px);
}
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 24px 0 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.footer-bottom p {
  color: var(--text-tertiary);
  font-size: 13px;
}
.footer-bottom-links {
  display: flex;
  gap: 24px;
}
.footer-bottom-links a {
  color: var(--text-tertiary);
  font-size: 13px;
  transition: color .2s;
}
.footer-bottom-links a:hover { color: var(--accent-light); }
.footer-social {
  display: flex;
  gap: 10px;
}
.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 700;
  transition: all .25s var(--ease);
  text-decoration: none;
}
.footer-social a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0,102,255,0.25);
}

/* ============================================================
   FLOATING ACTIONS & CHATBOT
   ============================================================ */
.floating-actions {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.float-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: var(--r-full);
  border: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--text);
  box-shadow: var(--shadow-md);
  font-weight: 600;
  font-size: 14px;
  backdrop-filter: blur(12px);
  transition: all .3s var(--ease);
}
.float-btn:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 8px 30px rgba(0,102,255,0.15);
}
.float-btn[data-chatbot-toggle] {
  background: linear-gradient(135deg, #0066FF 0%, #00b4ff 100%);
  border-color: rgba(0,102,255,0.4);
  box-shadow: 0 4px 20px rgba(0,102,255,0.3);
  animation: chatPulse 3s ease-in-out infinite;
}
.float-btn[data-chatbot-toggle]:hover {
  box-shadow: 0 8px 30px rgba(0,102,255,0.4);
  animation: none;
}
@keyframes chatPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(0,102,255,0.3); }
  50% { box-shadow: 0 4px 28px rgba(0,102,255,0.5); }
}

/* ---- Chatbot Panel ---- */
.chatbot-panel {
  position: fixed;
  right: 20px;
  bottom: 84px;
  width: 380px;
  max-height: min(600px, calc(100dvh - 120px));
  max-width: calc(100vw - 24px);
  z-index: 1000;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.96);
  transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s;
  pointer-events: none;
}
.chatbot-panel.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

/* Header */
.chatbot-head {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, rgba(0,102,255,0.12), rgba(0,194,255,0.06));
  flex-shrink: 0;
}
.chatbot-head-info {
  display: flex;
  align-items: center;
  gap: 12px;
}
.chatbot-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-gradient);
  display: grid;
  place-items: center;
  font-size: 16px;
  flex-shrink: 0;
}
.chatbot-head-text strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}
.chatbot-head-text span {
  font-size: 11px;
  color: var(--green);
  display: flex;
  align-items: center;
  gap: 4px;
}
.chatbot-head-text span::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  display: inline-block;
}
.chatbot-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  display: grid;
  place-items: center;
  font-size: 16px;
  cursor: pointer;
  transition: all .2s;
}
.chatbot-close:hover {
  background: var(--surface-hover);
  color: #fff;
  border-color: var(--border-hover);
}

/* Body / Messages */
.chatbot-body {
  padding: 16px 16px 12px;
  overflow-y: auto;
  flex: 1;
  scroll-behavior: smooth;
}
.chatbot-body::-webkit-scrollbar { width: 4px; }
.chatbot-body::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.chat-msg {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  animation: chatMsgIn .4s var(--ease) both;
}
.chat-msg.user { flex-direction: row-reverse; }
.chat-msg-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-size: 12px;
  align-self: flex-end;
}
.chat-msg:not(.user) .chat-msg-avatar {
  background: var(--accent-gradient);
}
.chat-msg.user .chat-msg-avatar {
  background: var(--surface);
  border: 1px solid var(--border);
}
.chat-msg-bubble {
  padding: 12px 16px;
  border-radius: 16px;
  max-width: 85%;
  font-size: 13.5px;
  line-height: 1.55;
}
.chat-msg:not(.user) .chat-msg-bubble {
  background: var(--surface);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
  color: var(--text);
}
.chat-msg.user .chat-msg-bubble {
  background: linear-gradient(135deg, rgba(0,102,255,0.2), rgba(0,194,255,0.1));
  border: 1px solid rgba(0,102,255,0.2);
  border-bottom-right-radius: 4px;
  color: var(--text);
}
@keyframes chatMsgIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Typing Indicator */
.chat-typing {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  animation: chatMsgIn .3s var(--ease) both;
}
.chat-typing .chat-msg-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-gradient);
  display: grid;
  place-items: center;
  font-size: 12px;
  align-self: flex-end;
}
.typing-dots {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  border-bottom-left-radius: 4px;
}
.typing-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-tertiary);
  animation: typingBounce 1.4s ease-in-out infinite;
}
.typing-dots span:nth-child(2) { animation-delay: 0.15s; }
.typing-dots span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-4px); opacity: 1; }
}

/* Quick Actions */
.chat-options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
  animation: chatMsgIn .4s var(--ease) both;
}
.chat-option-btn {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: var(--r-full);
  padding: 8px 14px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.chat-option-btn:hover {
  border-color: var(--accent);
  background: rgba(0,102,255,0.08);
  transform: translateY(-1px);
}
.chat-option-btn:active { transform: translateY(0); }

/* Action Links (WhatsApp, Email, Contact) */
.chat-action-links {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
  animation: chatMsgIn .4s var(--ease) both;
}
.chat-action-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--border);
  font-weight: 600;
  font-size: 13px;
  color: var(--text);
  transition: all .2s var(--ease);
  text-decoration: none;
}
.chat-action-link:hover {
  border-color: var(--accent);
  background: rgba(0,102,255,0.08);
  transform: translateX(2px);
}
.chat-action-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 14px;
  flex-shrink: 0;
}
.chat-action-link.whatsapp .chat-action-icon {
  background: rgba(37,211,102,0.15);
  color: #25d366;
}
.chat-action-link.email .chat-action-icon {
  background: rgba(0,102,255,0.1);
  color: var(--accent-light);
}
.chat-action-link.contact .chat-action-icon {
  background: rgba(0,194,255,0.1);
  color: var(--cyan);
}

/* Reset / Back */
.chat-reset-btn {
  background: none;
  border: none;
  color: var(--text-tertiary);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  padding: 6px 0;
  margin-top: 4px;
  transition: color .2s;
  display: flex;
  align-items: center;
  gap: 4px;
}
.chat-reset-btn:hover { color: var(--accent-light); }

/* Footer powered-by */
.chatbot-footer {
  padding: 10px 16px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 11px;
  color: var(--text-tertiary);
  flex-shrink: 0;
  background: var(--surface);
}

/* ---- Mobile chatbot ---- */
@media (max-width: 480px) {
  .chatbot-panel {
    right: 8px;
    bottom: 74px;
    width: calc(100vw - 16px);
    max-height: calc(100dvh - 100px);
  }
  .floating-actions {
    right: 12px;
    bottom: 12px;
    gap: 8px;
  }
  .float-btn { padding: 12px 14px; font-size: 13px; }
  .float-btn span { display: none; }
}

/* ============================================================
   SCROLL REVEAL ANIMATION
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .hero-grid, .page-hero-grid, .tab-panel.active, .two, .footer-grid, .testimonials {
    grid-template-columns: 1fr 1fr;
  }
  .stats, .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .capabilities-grid { grid-template-columns: repeat(2, 1fr); }
  .presence-grid { grid-template-columns: repeat(2, 1fr); }
  .industries-showcase { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 860px) {
  :root { --section-y: 80px; }
  .container { width: min(var(--container), calc(100% - 32px)); }
  .topbar { display: none; }
  .nav-links, .nav-right .pill, .nav-right .btn { display: none; }
  .nav-right { gap: 8px; }
  .menu-toggle { display: inline-grid; place-items: center; }
  .hero-grid, .page-hero-grid, .tab-panel.active, .two,
  .feature-stack, .services, .jobs, .testimonials,
  .footer-grid, .checks, .form-grid { grid-template-columns: 1fr; }
  .feature-wide, .span2 { grid-column: span 1; }
  .jobs-top, .cta-band, .form-foot { flex-direction: column; align-items: flex-start; }
  .hero-cards { grid-template-columns: 1fr 1fr; }
  .capabilities-grid { grid-template-columns: 1fr; }
  .presence-grid { grid-template-columns: 1fr 1fr; }
  .industries-showcase { grid-template-columns: repeat(2, 1fr); }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .mega-dropdown { display: none !important; }
  .floating-actions { right: 14px; bottom: 14px; }
  .float-btn span { display: none; }
  .float-btn { padding: 14px; }
  .theme-switcher { padding: 2px; }
  .theme-btn { width: 28px; height: 28px; font-size: 12px; }
  .presence-list { grid-template-columns: 1fr; }
  #global-presence-map { height: 340px; }
  .map-embed iframe { height: 340px; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 560px) {
  :root { --section-y: 64px; }
  .container { width: min(var(--container), calc(100% - 24px)); }
  .hero-cards, .stats { grid-template-columns: 1fr; }
  .brand img { width: 48px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
  .industries-showcase { grid-template-columns: 1fr 1fr; }
  .presence-grid { grid-template-columns: 1fr; }
  .metrics-grid { grid-template-columns: 1fr 1fr; }
  .footer .brand img { width: 48px; }
}

/* ============================================================
   SMOOTH SCROLL ANCHOR OFFSET
   ============================================================ */
:target::before {
  content: '';
  display: block;
  height: 100px;
  margin: -100px 0 0;
}
