/* ============================================================
   XIT GLOBAL — Services page additions
   (loads AFTER xit-styles.css — reuses its tokens & components)
   ============================================================ */

/* Featured-visual second chip icon → match section theme (was cyan) */
.svc-hub .svc-chip.c2 .cr,
.it-detail .svc-chip.c2 .cr { background: var(--royal) !important; }

/* Orbiting node on the orb — exact match to homepage hero orb (Services section) */
.svc-hub .svc-orb .node,
.it-detail .svc-orb .node {
  position: absolute; width: 12px; height: 12px; border-radius: 50%;
  background: #fff; border: 2px solid var(--cyan); top: -6px; left: 50%; margin-left: -6px;
}
/* Match home orb geometry exactly (Services section) */
.svc-hub .svc-orb,
.it-detail .svc-orb { width: 132px; height: 132px; }
.svc-hub .svc-orb .ring.r2,
.it-detail .svc-orb .ring.r2 { inset: 22px; }
.svc-hub .svc-orb .core,
.it-detail .svc-orb .core { inset: 44px; }

/* White footer "Start a conversation" button on the Services hub */
.svc-hub .footer .f-contact .btn-primary {
  background: #fff; color: var(--navy); box-shadow: 0 8px 20px rgba(0,0,0,.18); filter: none;
}
.svc-hub .footer .f-contact .btn-primary:hover {
  background: #fff; color: var(--navy); transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(0,0,0,.24); filter: none;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb { border-bottom: 1px solid var(--line); background: var(--paper); margin-top: 90px; }
.breadcrumb .wrap { display: flex; align-items: center; height: 52px; }
.breadcrumb .bc-list { display: flex; align-items: center; gap: 9px; list-style: none; margin: 0; padding: 0; font-size: 13.5px; }
.breadcrumb a { color: var(--ink-3); transition: color .2s; }
.breadcrumb a:hover { color: var(--royal); }
.breadcrumb .sep { color: var(--silver); }
.breadcrumb .here { color: var(--ink); font-weight: 600; }

/* ---------- Services hero ---------- */
.svc-hero {
  position: relative; overflow: hidden;
  padding-top: 120px; padding-bottom: 52px;
  background:
    radial-gradient(820px 460px at 84% -20%, rgba(46,168,255,.12), transparent 60%),
    radial-gradient(680px 460px at -5% 0%, rgba(48,73,184,.09), transparent 55%),
    var(--paper);
  border-bottom: 1px solid var(--line);
}
.svc-hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(31,43,108,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31,43,108,.04) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(900px 380px at 30% 0%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(900px 380px at 30% 0%, #000 30%, transparent 80%);
}
.svc-hero .eyebrow { display: inline-flex; align-items: center; gap: 9px; }
.svc-hero .eyebrow .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--royal); box-shadow: 0 0 0 4px rgba(48,73,184,.16); }
.svc-hero h1 { font-size: clamp(38px, 6vw, 64px); font-weight: 800; letter-spacing: -.03em; margin-top: 16px; }
.svc-hero p { font-size: clamp(17px, 1.8vw, 21px); color: var(--ink-2); margin-top: 16px; max-width: 620px; }

/* ---------- Tabs ---------- */
.tabs-wrap { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 76px; z-index: 40; }
.tabs {
  position: relative; display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 4px; padding: 8px 0;
}
.tab-indicator {
  position: absolute; top: 8px; bottom: 8px; left: 0; width: 0;
  background: var(--grad); border-radius: 12px; z-index: 0;
  box-shadow: 0 8px 20px rgba(31,43,108,.22);
  transition: transform .42s var(--ease), width .42s var(--ease);
}
.tab {
  position: relative; z-index: 1; appearance: none; border: 0; background: none; cursor: pointer;
  font-family: inherit; font-size: 15.5px; font-weight: 600; color: var(--ink-2);
  padding: 13px 14px; border-radius: 12px; transition: color .35s var(--ease); white-space: nowrap;
  display: flex; align-items: center; justify-content: center; gap: 9px;
}
.tab .tnum { font-family: 'Roboto Mono', monospace; font-size: 11px; opacity: .6; transition: opacity .3s; }
.tab:hover { color: var(--ink); }
.tab.active { color: #fff; }
.tab.active .tnum { opacity: .85; }

/* ---------- Featured service ---------- */
.featured { padding: 60px 0 40px; }
.featured-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.now-showing {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--royal);
  padding: 6px 13px 6px 10px; border-radius: 999px; background: rgba(48,73,184,.08); border: 1px solid rgba(48,73,184,.16);
}
.now-showing .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); position: relative; }
.now-showing .pulse::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--cyan); animation: pulse 2s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(1.6); opacity: 0; } }

.featured h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; letter-spacing: -.025em; margin-top: 18px; }
.featured .lead { font-size: 19px; color: var(--ink); font-weight: 500; margin-top: 12px; }
.featured .body { color: var(--ink-2); font-size: 16px; margin-top: 14px; line-height: 1.6; max-width: 520px; }
.featured-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 28px; }

/* swap animation for content */
.swap { transition: opacity .4s var(--ease), transform .4s var(--ease); }
.swap.out { opacity: 0; transform: translateY(10px); }

/* Featured visual */
.svc-visual { position: relative; height: 420px; }
.svc-panel {
  position: absolute; left: 6%; top: 7%; width: 80%;
  background: rgba(255,255,255,.82); backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.9); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); padding: 20px; z-index: 2;
}
.svc-panel .ptop { display: flex; align-items: center; gap: 11px; padding-bottom: 16px; border-bottom: 1px solid var(--line-2); margin-bottom: 6px; }
.svc-panel .ptop .picon { width: 42px; height: 42px; border-radius: 12px; background: var(--grad); display: grid; place-items: center; color: #fff; box-shadow: var(--shadow-cyan); flex-shrink: 0; transition: background .4s; }
.svc-panel .ptop .ptitle { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.svc-panel .ptop .ptitle b { display: block; font-size: 15px; font-weight: 700; line-height: 1.2; }
.svc-panel .ptop .ptitle span { display: block; margin-top: 3px; font-size: 11.5px; color: var(--ink-3); font-family: 'Roboto Mono', monospace; letter-spacing: .04em; }
.layer { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line-2); }
.layer:first-of-type { border-top: 0; }
.layer .ldot { width: 9px; height: 9px; border-radius: 50%; background: var(--royal); flex-shrink: 0; }
.layer .lname { flex: 1; font-size: 13.5px; font-weight: 500; color: var(--ink); }
.layer .lbar { width: 78px; height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; }
.layer .lbar i { display: block; height: 100%; background: var(--grad); border-radius: 6px; }

.svc-chip {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 9px;
  background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: 11px 14px; box-shadow: var(--shadow-md);
}
.svc-chip .cr { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: #fff; background: var(--c-services); flex-shrink: 0; }
.svc-chip b { font-size: 13.5px; font-weight: 700; display: block; line-height: 1.1; white-space: nowrap; }
.svc-chip span { font-size: 11px; color: var(--ink-3); white-space: nowrap; }
.svc-chip.c1 { right: 0; top: 2%; }
.svc-chip.c2 { left: 0; bottom: 6%; }
.svc-orb { position: absolute; right: 7%; bottom: 5%; width: 120px; height: 120px; z-index: 1; }
.svc-orb .ring { position: absolute; inset: 0; border-radius: 50%; border: 1.5px dashed rgba(48,73,184,.3); animation: spin 20s linear infinite; }
.svc-orb .ring.r2 { inset: 20px; border-color: rgba(46,168,255,.4); animation-duration: 13s; animation-direction: reverse; }
.svc-orb .core { position: absolute; inset: 40px; border-radius: 50%; background: var(--grad); box-shadow: var(--shadow-cyan); }

/* ---------- Promo cards ---------- */
.promos { padding: 16px 0 96px; }
.promo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.promo-card {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, #fff, #fcfdfe);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 30px 30px 26px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.promo-card::before {
  content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(135deg, rgba(48,73,184,.5), rgba(46,168,255,.5));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .4s;
}
.promo-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.promo-card:hover::before { opacity: 1; }
.promo-card .plabel { font-family: 'Roboto Mono', monospace; font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--royal); }
.promo-card h3 { font-size: 23px; font-weight: 700; letter-spacing: -.02em; margin-top: 10px; }
.promo-card p { color: var(--ink-2); font-size: 15px; margin-top: 11px; line-height: 1.55; }
.promo-card .learn {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; white-space: nowrap;
  font-size: 14.5px; font-weight: 600; color: var(--ink);
  padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
}
.promo-card .learn .arr { transition: transform .3s var(--ease); }
.promo-card .learn:hover { transform: translateY(-2px); border-color: var(--silver); box-shadow: var(--shadow-md); }
.promo-card .learn:hover .arr { transform: translateX(4px); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .featured-grid { grid-template-columns: 1fr; gap: 36px; }
  .svc-visual { order: -1; max-width: 520px; }
}
@media (max-width: 820px) {
  .tabs-wrap { top: 0; }
  .tabs {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
    -ms-overflow-style: none; scrollbar-width: none;
  }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex: 0 0 auto; scroll-snap-align: start; }
  .tab-indicator { display: none; }
  .tab.active { background: var(--grad); box-shadow: 0 8px 20px rgba(31,43,108,.22); }
}
@media (max-width: 640px) {
  .promo-grid { grid-template-columns: 1fr; }
  .svc-visual { height: 360px; }
  .featured-actions .btn { flex: 1; justify-content: center; }
}
