/* ================================================================
   Invoti Service Pages — Shared Styles
   Applied to all page-service-*.php templates.
   Builds on shared.css tokens. Overrides/improves inline styles.
   DO NOT duplicate tokens here — reference var(--token) from shared.css.
================================================================ */

/* ── Service hero kicker pill ────────────────────────────────── */
.svc-hero-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(64,175,255,.10); border: 1px solid rgba(64,175,255,.24);
  border-radius: 999px; padding: 7px 14px 7px 10px;
  font-size: 11px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--b400); margin-bottom: 24px;
}
.svc-hero-kicker .pip {
  width: 7px; height: 7px; border-radius: 50%; background: var(--b400);
  box-shadow: 0 0 0 4px rgba(64,175,255,.18);
}

/* ── Service hero grid ───────────────────────────────────────── */
.svc-hero-grid { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center; }
@media (min-width: 900px) { .svc-hero-grid { grid-template-columns: 1fr 360px; gap: 64px; } }

/* ── Hero visual tile ────────────────────────────────────────── */
/* Structured "system" tile: blueprint grid + asymmetric brand glows  */
/* + framed inner icon panel + corner registration ticks. Sits on the */
/* dark .page-hero (var(--n900)). Decorative only (aria-hidden).       */
.svc-hero-visual {
  aspect-ratio: 1 / 1;
  background:
    linear-gradient(150deg, rgba(255,255,255,.085), rgba(255,255,255,.015));
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--r16);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.16),
    inset 0 0 60px rgba(7,42,62,.35),
    0 12px 40px rgba(7,42,62,.28);
  transition: transform 400ms var(--ease-spring), box-shadow 400ms var(--ease-out);
}
/* Blueprint grid lines */
.svc-hero-visual::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(168,216,255,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168,216,255,.07) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at 50% 50%, #000 60%, transparent 100%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 60%, transparent 100%);
}
/* Asymmetric brand glows */
.svc-hero-visual::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(40% 50% at 78% 14%, rgba(64,175,255,.32), transparent 60%),
    radial-gradient(46% 56% at 14% 92%, rgba(99,27,160,.30), transparent 62%);
  transition: transform 600ms var(--ease-out), opacity 400ms var(--ease-out);
}
/* Framed inner panel that gives the icon a home */
.svc-hero-visual svg {
  box-sizing: border-box;
  width: 62%; height: 62%;
  padding: 14%;
  stroke: var(--b400); fill: none;
  stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
  position: relative; z-index: 2;
  border: 1px solid rgba(168,216,255,.22);
  border-radius: var(--r12);
  background: linear-gradient(160deg, rgba(14,67,116,.45), rgba(7,42,62,.25));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 8px 24px rgba(7,42,62,.30);
  transition: transform 400ms var(--ease-spring);
}
.svc-hero-visual:hover { transform: translateY(-4px); box-shadow:
  inset 0 1px 0 rgba(255,255,255,.16),
  inset 0 0 60px rgba(7,42,62,.35),
  0 20px 56px rgba(7,42,62,.36); }
.svc-hero-visual:hover::after { transform: scale(1.08) translate(-2%, 2%); opacity: 1; }
.svc-hero-visual:hover svg { transform: scale(1.03); }

@media (max-width: 899px) {
  .svc-hero-visual { aspect-ratio: 16 / 7; }
  .svc-hero-visual svg { width: auto; height: 78%; padding: 6%; }
}

/* ── Approach band (replaces border-left side-stripe) ────────── */
/* The banned pattern was: border-left: 3px solid var(--b600)    */
/* Replacement: background tint with full border                  */
.approach-band {
  background: rgba(0,112,192,.05);
  border: 1px solid rgba(0,112,192,.18);
  border-radius: var(--r8);
  padding: 24px 28px; margin-top: 32px; max-width: 820px;
}
.approach-band p { margin: 0; color: var(--g700); font-size: 14.5px; line-height: 1.7; }
.approach-band strong { color: var(--n900); font-weight: 700; }

/* ── Capability list ─────────────────────────────────────────── */
.cap-list {
  display: grid; grid-template-columns: 1fr; gap: 0;
  border-top: 1px solid var(--border);
}
@media (min-width: 900px) { .cap-list { grid-template-columns: 1fr 1fr; } }

.cap-item {
  padding: 32px 0; border-bottom: 1px solid var(--border);
  padding-right: 24px;
  transition: background-color 180ms var(--ease-out);
}
@media (min-width: 900px) {
  .cap-item:nth-child(odd)  { padding-right: 40px; border-right: 1px solid var(--border); }
  .cap-item:nth-child(even) { padding-left: 40px; }
}

/* stagger cap-items on page load */
.cap-item:nth-child(1)  { animation-delay:  0ms; }
.cap-item:nth-child(2)  { animation-delay: 60ms; }
.cap-item:nth-child(3)  { animation-delay:120ms; }
.cap-item:nth-child(4)  { animation-delay:180ms; }
.cap-item:nth-child(5)  { animation-delay:240ms; }
.cap-item:nth-child(6)  { animation-delay:300ms; }
.cap-item:nth-child(7)  { animation-delay:360ms; }
.cap-item:nth-child(8)  { animation-delay:420ms; }

.cap-item-head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 12px; }

.cap-item-ico {
  width: 40px; height: 40px; border-radius: var(--r4);
  background: var(--s100); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: background-color 200ms var(--ease-out), transform 200ms var(--ease-spring);
}
.cap-item-ico svg {
  width: 20px; height: 20px; stroke: var(--n800); fill: none;
  stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
  transition: stroke 200ms ease, transform 200ms var(--ease-spring);
}
.cap-item:hover .cap-item-ico { background: var(--n800); transform: scale(1.08); }
.cap-item:hover .cap-item-ico svg { stroke: #fff; transform: scale(0.92); }

.cap-item h3 {
  font-family: var(--font-d); font-size: 18px; font-weight: 800;
  color: var(--n900); margin: 0; padding-top: 6px; line-height: 1.3;
  letter-spacing: -0.01em;
}
.cap-item p { margin: 0; color: var(--g700); line-height: 1.65; font-size: 14.5px; }

/* ── Platform cards (lcnc page) ──────────────────────────────── */
.platforms-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 800px) { .platforms-grid { grid-template-columns: 1fr 1fr; } }
.platform-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--r12);
  padding: 32px;
  transition: box-shadow 220ms var(--ease-out), transform 220ms var(--ease-spring), border-color 180ms ease;
}
.platform-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--s300); }
.platform-card h3 { font-family: var(--font-d); font-size: 22px; font-weight: 800; color: var(--n900); margin: 0 0 8px 0; letter-spacing: -0.01em; }
.platform-card .platform-tag { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--b600); margin-bottom: 4px; }
.platform-card p { color: var(--g700); margin: 0 0 20px 0; line-height: 1.65; font-size: 14.5px; }
.platform-card ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; font-size: 13.5px; color: var(--n900); }
.platform-card li { padding-left: 18px; position: relative; line-height: 1.5; }
.platform-card li::before {
  content: ''; position: absolute; left: 0; top: 8px;
  width: 8px; height: 8px; border: 1.5px solid var(--b600);
  border-right: none; border-bottom: none; transform: rotate(135deg);
}

/* ── Audience cards ──────────────────────────────────────────── */
.audience-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 800px) { .audience-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }

.audience-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--r12);
  padding: 32px; position: relative;
  transition: box-shadow 220ms var(--ease-out), transform 220ms var(--ease-spring), border-color 180ms ease;
}
.audience-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--s300); }
.audience-eyebrow {
  font-family: var(--font-d); font-size: 11px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--s500);
  margin-bottom: 10px;
}
.audience-card h3 {
  font-family: var(--font-d); font-size: 22px; font-weight: 800;
  color: var(--n900); letter-spacing: -0.01em; margin-bottom: 12px; line-height: 1.2;
}
.audience-card > p { font-size: 15px; color: var(--g700); line-height: 1.75; margin-bottom: 22px; }
.audience-list { list-style: none; padding: 0; margin: 0; }
.audience-list li {
  font-size: 14px; color: var(--n900); padding: 8px 0 8px 0;
  line-height: 1.55; border-top: 1px solid var(--border);
  display: flex; gap: 12px; align-items: flex-start;
}
.audience-list li:first-child { border-top: none; }
.audience-list li::before {
  content: ''; width: 5px; height: 5px; margin-top: 8px;
  flex-shrink: 0; background: var(--n800); border-radius: 50%;
}

/* ── Related service cards ───────────────────────────────────── */
.related-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 700px) { .related-grid { grid-template-columns: 1fr 1fr 1fr; gap: 20px; } }

.related-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--r12);
  padding: 24px; text-decoration: none; display: flex; flex-direction: column;
  min-height: 180px;
  transition: background-color 200ms var(--ease-out), border-color 200ms var(--ease-out),
              transform 220ms var(--ease-spring), box-shadow 220ms var(--ease-out);
}
.related-card:hover {
  background-color: #fff; border-color: var(--n800);
  transform: translateY(-3px); box-shadow: var(--shadow-md);
}
.related-card:active { transform: translateY(-1px) scale(0.99); box-shadow: var(--shadow-sm); }

/* stagger related cards */
.related-grid .related-card:nth-child(1) { animation-delay:  0ms; }
.related-grid .related-card:nth-child(2) { animation-delay: 60ms; }
.related-grid .related-card:nth-child(3) { animation-delay:120ms; }

.related-ico {
  width: 40px; height: 40px; border-radius: var(--r4);
  background: var(--n800); display: flex; align-items: center;
  justify-content: center; margin-bottom: 16px;
  transition: background-color 200ms var(--ease-out), transform 200ms var(--ease-spring);
}
.related-ico svg {
  width: 20px; height: 20px; stroke: #fff; fill: none;
  stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
  transition: transform 200ms var(--ease-spring), stroke 180ms var(--ease-out);
}
.related-card:hover .related-ico { background: var(--accent); transform: scale(1.08); }
/* Force white icon on the purple hover/focus box. Some service pages set a
   navy icon (stroke: var(--n800)) inline for the light resting state; this
   higher-specificity rule keeps the glyph visible once the box turns purple. */
.related-card:hover .related-ico svg { stroke: #fff; transform: scale(0.92); }

.related-card h4 {
  font-family: var(--font-d); font-size: 16px; font-weight: 800;
  color: var(--n900); margin: 0 0 6px 0; letter-spacing: -0.01em;
}
.related-card p { font-size: 13.5px; color: var(--g700); line-height: 1.55; margin-bottom: 14px; }

.related-link {
  margin-top: auto; display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; color: var(--b600);
  transition: gap 180ms var(--ease-spring), color 160ms var(--ease-out);
}
.related-card:hover .related-link { gap: 10px; color: var(--n800); }
.related-link svg {
  width: 11px; height: 11px; stroke: currentColor; fill: none;
  stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
  transition: transform 180ms var(--ease-spring);
}
.related-card:hover .related-link svg { transform: translateX(3px); }

/* ── Vehicle callout (staffing page) ─────────────────────────── */
/* Replaces banned border-left: 3px pattern                       */
.vehicle-callout {
  margin-top: 48px;
  background: rgba(0,112,192,.04);
  border: 1px solid rgba(0,112,192,.18);
  border-radius: var(--r8);
  padding: 24px 28px;
}

/* ── Focus states ────────────────────────────────────────────── */
.related-card:focus-visible,
.audience-card:focus-visible,
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--r4);
}

/* ── Reduced motion ──────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .svc-hero-visual, .svc-hero-visual::after, .svc-hero-visual svg,
  .cap-item, .cap-item-ico, .cap-item-ico svg,
  .platform-card, .audience-card,
  .related-card, .related-ico, .related-ico svg,
  .related-link, .related-link svg {
    transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease !important;
    transform: none !important;
    animation: none !important;
  }
}