/* ──────────────────────────────────────────────────────────────────────────
 * Serviqo AI · shared utilities
 * Used by every page outside index.html (index.html has these inlined for
 * the critical hero). Keep this file lean — most styling is Tailwind.
 * ────────────────────────────────────────────────────────────────────────── */

html { scroll-behavior: smooth; scroll-padding-top: 112px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transition: none !important; animation: none !important; }
  .marquee-track { animation: none !important; }
}
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.show { opacity: 1; transform: translateY(0); }

/* Editorial hand-drawn underline behind a word */
.ink-underline {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}
.ink-underline::after {
  content: "";
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: -0.18em;
  height: 0.42em;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 18' preserveAspectRatio='none'><path d='M2 12 C 30 4, 70 4, 100 10 S 180 18, 238 6' stroke='%23f59e0b' stroke-width='5' stroke-linecap='round' fill='none'/></svg>");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  pointer-events: none;
  z-index: -1;
  opacity: 0.95;
}
.ink-underline.is-light::after { filter: drop-shadow(0 1px 8px rgba(245, 158, 11, 0.35)); }

/* Editorial micro-eyebrow */
.micro-eyebrow {
  font-family: "Space Grotesk", "Inter", system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 11px;
}

/* Editorial divider */
.editorial-rule {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #94a3b8;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
}
.editorial-rule::before,
.editorial-rule::after {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.4;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #3b82f6;
  color: white;
  padding: 0.5rem 0.75rem;
  border-radius: 0 0 0.5rem 0;
  z-index: 100;
}
.skip-link:focus { left: 0; }

/* Filter chip (used on hubs) */
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-family: "Space Grotesk", "Inter", system-ui, sans-serif;
  font-weight: 600;
  font-size: 13px;
  color: #475569;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  transition: all 0.18s ease;
}
.filter-chip:hover { border-color: #cbd5e1; background: #f8fafc; }
.filter-chip[aria-pressed="true"] {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}
.filter-chip[aria-pressed="true"] .chip-dot { background: #fbbf24; }
.chip-dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 999px;
  background: #cbd5e1;
}

/* Details chev */
details[open] > summary .chev { transform: rotate(180deg); }
.chev { transition: transform 0.25s ease; }

/* Spotlight border ring on cards */
.card-spotlight { position: relative; overflow: hidden; }
.card-spotlight::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(37, 99, 235, 0.1), rgba(148, 163, 184, 0.05));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
          mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.card-spotlight:hover::before { opacity: 1; }

/* Hero gradient text (dark hero variants) */
.hero-gradient-text {
  background: linear-gradient(120deg, #60a5fa 0%, #93c5fd 50%, #dbeafe 100%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}
