/* ==========================================================================
   PRECISION COMPLIANCE TESTING — CLINICAL DESIGN SYSTEM & COLOR SPECIFICATION
   Main CTA: #5521EB
   Links and Hover: #212FEB
   Theme Base: Clean White / Clinical Slate with High-Converting Surfaces
   ========================================================================== */

:root {
  /* User-Specified Core Brand Colors */
  --color-cta: #5521EB;
  --color-cta-hover: #212FEB;
  --color-link: #212FEB;
  --color-link-hover: #1720b8;

  /* Clinical Neutrals */
  --bg-pure: #ffffff;
  --bg-clinical: #f8fafc;
  --bg-surface: #ffffff;
  --bg-muted: #f1f5f9;
  --bg-dark-footer: #0c0a24;
  --bg-dark-footer-border: #1d184a;

  /* Accent Tints */
  --color-primary-light: #eff2fe;
  --color-primary-border: #dbe2fd;
  --color-teal: #212FEB;
  --color-teal-light: #ccfbf1;

  /* Text */
  --text-dark: #0f172a;
  --text-muted: #475569;
  --text-light: #64748b;
  --border-subtle: #e2e8f0;

  /* Shadows */
  --neo-outset-sm: 0 2px 8px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.02);
  --neo-outset-md: 0 10px 30px -5px rgba(33, 47, 235, 0.08), 0 4px 12px rgba(15, 23, 42, 0.03);
  --neo-outset-hover: 0 16px 36px -4px rgba(85, 33, 235, 0.14), 0 6px 16px rgba(15, 23, 42, 0.04);
  --neo-inset-sm: inset 0 2px 4px rgba(15, 23, 42, 0.05);

  /* Fonts */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Merriweather', Georgia, serif;

  /* Fluid Clamped Typography Scales (Mobile-first to Desktop) */
  --font-hero: clamp(1.85rem, 5.5vw + 0.5rem, 3.5rem);
  --font-h1: clamp(1.65rem, 4.2vw + 0.5rem, 2.75rem);
  --font-h2: clamp(1.35rem, 3vw + 0.4rem, 2.25rem);
  --font-h3: clamp(1.15rem, 1.8vw + 0.35rem, 1.5rem);
  --font-h4: clamp(1rem, 1.2vw + 0.3rem, 1.25rem);
  --font-base: clamp(0.9rem, 0.4vw + 0.78rem, 1.05rem);
  --font-sm: clamp(0.8125rem, 0.3vw + 0.72rem, 0.925rem);
  --font-xs: clamp(0.725rem, 0.25vw + 0.65rem, 0.8125rem);
}

/* Base resets & Clamped Typography */
html {
  scroll-behavior: smooth;
  color-scheme: light;
  /* Fluid root scaling: all rem-based Tailwind font sizes scale smoothly between phone and desktop */
  font-size: clamp(14.5px, 0.875rem + 0.25vw, 16px);
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-clinical);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Fluid clamped hero heading utility when needed */
.text-clamped-hero {
  font-size: var(--font-hero);
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.text-clamped-h1 {
  font-size: var(--font-h1);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.text-clamped-h2 {
  font-size: var(--font-h2);
  line-height: 1.25;
  letter-spacing: -0.015em;
}

/* Links & Hover rule */
a {
  transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

a.brand-link,
.brand-link {
  color: var(--color-link);
}

a.brand-link:hover,
.brand-link:hover {
  color: var(--color-cta);
}

/* Primary CTA Button */
.btn-cta-primary {
  background-color: #5521EB !important;
  color: #ffffff !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(85, 33, 235, 0.3);
}

.btn-cta-primary:hover {
  background-color: #212FEB !important;
  box-shadow: 0 6px 20px rgba(33, 47, 235, 0.4);
  transform: translateY(-1px);
}

.btn-cta-primary:active {
  transform: translateY(1px);
}

/* Secondary Button */
.btn-cta-secondary {
  background-color: #ffffff;
  color: #0f172a;
  border: 1px solid #e2e8f0;
  transition: all 0.2s ease;
}

.btn-cta-secondary:hover {
  border-color: var(--color-link);
  color: var(--color-link);
  background-color: var(--color-primary-light);
  transform: translateY(-1px);
}

/* Logo inverter for dark backgrounds */
.logo-invert {
  filter: brightness(0) invert(1);
}

/* Dropdown styling matching screenshot 2 */
.nav-dropdown-menu {
  background: #ffffff;
  border-radius: 1.25rem;
  box-shadow: 0 20px 40px -10px rgba(12, 10, 36, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.dropdown-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background-color: #f1f3fe;
  color: var(--color-link);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.dropdown-item-row:hover .dropdown-icon-box {
  background-color: var(--color-cta);
  color: #ffffff;
  transform: scale(1.05);
}

/* Services Catalog Card Style (matching attached HTML) */
.services-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}

.services-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 600;
  background: #ffffff;
  color: #334155;
  border: 1px solid #e2e8f0;
  transition: all 0.2s ease;
  cursor: pointer;
}

.services-tab-btn:hover {
  border-color: var(--color-link);
  color: var(--color-link);
}

.services-tab-btn.active {
  background: var(--color-cta);
  color: #ffffff;
  border-color: var(--color-cta);
  box-shadow: 0 4px 14px rgba(85, 33, 235, 0.25);
}

.services-tab-btn.active:hover {
  background: var(--color-cta-hover);
  border-color: var(--color-cta-hover);
  color: #ffffff;
}

.services-tab-btn .tab-count {
  background: rgba(0, 0, 0, 0.06);
  color: inherit;
  font-size: 0.75rem;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
}

.services-tab-btn.active .tab-count {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.services-cards-panel.hidden {
  display: none !important;
}

/* Service Card */
.service-catalog-card {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-catalog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(33, 47, 235, 0.08);
  border-color: #cbd5e1;
}

.card-image-wrap {
  position: relative;
  width: 100%;
  height: 180px;
  background-color: #f1f5f9;
  overflow: hidden;
}

.card-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-category-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  color: var(--color-cta);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.card-icon-placeholder {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-link);
}

/* Card foot button */
.btn-card-book {
  background-color: #5521EB !important;
  color: #ffffff !important;
  padding: 0.625rem 1rem;
  border-radius: 10px;
  font-size: 0.8125rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(85, 33, 235, 0.25);
}

.btn-card-book:hover {
  background-color: #212FEB !important;
  box-shadow: 0 4px 12px rgba(33, 47, 235, 0.35);
  transform: translateY(-1px);
}

/* Dark Footer styles (matching screenshot 1) */
.dark-footer {
  background-color: var(--bg-dark-footer);
  color: #94a3b8;
  border-top: 1px solid var(--bg-dark-footer-border);
}

.dark-footer a {
  color: #94a3b8;
}

.dark-footer a:hover {
  color: #ffffff;
}

.dark-footer-title {
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

/* ==========================================================================
   FAQ ACCORDION COMPONENT (Hidden by default, smooth animated reveal)
   ========================================================================== */
.accordion-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
  opacity: 0;
  overflow: hidden;
}

.accordion-content.is-open {
  grid-template-rows: 1fr;
  opacity: 1;
}

.accordion-content > .accordion-inner {
  overflow: hidden;
}

/* ==========================================================================
   HERO AMBIENT 3D CLINICAL GRADIENT & SPLIT-INTENT FUNNEL
   ========================================================================== */
.hero-ambient-canvas {
  position: relative;
  background: 
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(85, 33, 235, 0.15), transparent 70%),
    radial-gradient(circle at 15% 40%, rgba(33, 47, 235, 0.08), transparent 45%),
    radial-gradient(circle at 85% 60%, rgba(13, 148, 136, 0.08), transparent 45%),
    linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  overflow: hidden;
}

.hero-ambient-canvas::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(15, 23, 42, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.035) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
  pointer-events: none;
}

/* Split-Intent Dual Interactive Cards */
.split-intent-card {
  position: relative;
  background: #ffffff;
  border-radius: 1.5rem;
  border: 1px solid #e2e8f0;
  padding: 2rem;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
}

.split-intent-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px -6px rgba(85, 33, 235, 0.12);
  border-color: #cbd5e1;
}

.split-intent-card.featured {
  border-color: #c4b5fd;
  box-shadow: 0 10px 30px -4px rgba(85, 33, 235, 0.14);
}

.split-intent-card.featured:hover {
  box-shadow: 0 24px 48px -8px rgba(85, 33, 235, 0.22);
}

/* Subtle glowing accent pill */
.glass-pill {
  background: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

/* ==========================================================================
   INFINITE MARQUEE TICKERS (Pure CSS, 60FPS Hardware Accelerated)
   ========================================================================== */
.marquee-wrapper-infinite {
  position: relative;
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  padding: 0.5rem 0;
}

.marquee-track-infinite {
  display: flex;
  width: max-content;
  gap: 1.25rem;
  animation: marquee-infinite 28s linear infinite;
}

.marquee-wrapper-infinite:hover .marquee-track-infinite {
  animation-play-state: paused;
}

.marquee-track-reviews {
  display: flex;
  width: max-content;
  gap: 1.5rem;
  animation: marquee-infinite 36s linear infinite;
}

.marquee-wrapper-infinite:hover .marquee-track-reviews {
  animation-play-state: paused;
}

@keyframes marquee-infinite {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track-infinite,
  .marquee-track-reviews {
    animation: none;
    transform: none;
    overflow-x: auto;
  }
}

/* ==========================================================================
   PARALLAX BACKGROUND ENGINE
   ========================================================================== */
.parallax-section {
  position: relative;
  overflow: hidden;
}

.parallax-bg {
  position: absolute;
  inset: -15% 0;
  width: 100%;
  height: 130%;
  pointer-events: none;
  z-index: 0;
  transform: translate3d(0, 0, 0);
  background-size: cover;
  background-position: center;
}

/* High-tech Blueprint Parallax Grid Layer */
.parallax-grid-layer {
  position: absolute;
  inset: -20% -10%;
  width: 120%;
  height: 140%;
  background-image: 
    radial-gradient(circle at 50% 50%, rgba(33, 47, 235, 0.15), transparent 70%),
    linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 100% 100%, 48px 48px, 48px 48px;
  pointer-events: none;
  z-index: 0;
}

/* ==========================================================================
   CIRCUIT HORIZON FOOTER CTA (Kexsio Component Inspired)
   ========================================================================== */
.circuit-horizon-banner {
  position: relative;
  background: radial-gradient(100% 120% at 50% 0%, #151b2e 0%, #0c101d 55%, #080a13 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 2rem;
  overflow: hidden;
  box-shadow: 
    0 25px 50px -12px rgba(8, 10, 19, 0.7),
    0 0 40px -10px rgba(33, 47, 235, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Schematic circuit lines & wireframe boxes */
.circuit-horizon-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, black 20%, transparent 75%);
  mask-image: radial-gradient(ellipse at 70% 30%, black 20%, transparent 75%);
}

.circuit-horizon-wireframe {
  position: absolute;
  top: 15%;
  right: 8%;
  width: 420px;
  height: 220px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 1px solid rgba(33, 47, 235, 0.35);
  border-bottom: 1px solid rgba(33, 47, 235, 0.35);
  pointer-events: none;
}

.circuit-horizon-dots {
  position: absolute;
  top: 18%;
  right: 4%;
  width: 180px;
  height: 140px;
  background-image: radial-gradient(rgba(255, 255, 255, 0.18) 1.5px, transparent 1.5px);
  background-size: 16px 16px;
  pointer-events: none;
}

/* Pill CTA Button (White pill, black bold text with sparkle icon) */
.btn-circuit-pill {
  background-color: #ffffff;
  color: #090d16;
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: -0.01em;
  padding: 0.875rem 1.75rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.9);
}

.btn-circuit-pill:hover {
  background-color: #f1f5f9;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.35);
}

.btn-circuit-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.75rem 1.25rem;
  border-radius: 9999px;
  transition: all 0.2s ease;
}

.btn-circuit-secondary:hover {
  color: #93c5fd;
  transform: translateX(2px);
}

.circuit-circle-bullet {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.9);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* External classes replacing inline styles */
.audit-defense-banner {
  background: linear-gradient(135deg, #0c0a24 0%, #15103a 50%, #201353 100%);
  border: 1px solid rgba(85, 33, 235, 0.35);
}

.audit-pill-badge {
  background: rgba(85, 33, 235, 0.25);
  border-color: rgba(167, 139, 250, 0.4);
  color: #c4b5fd;
}

.services-cta-banner-gradient {
  background: linear-gradient(135deg, #5521EB 0%, #212FEB 100%);
}

.dropdown-icon-active {
  background-color: #5521EB;
  color: #ffffff;
}

/* ==========================================================================
   STAGGERED SKELETON LOADING OVERLAY
   ========================================================================== */
.skeleton-screen-overlay {
  position: fixed;
  inset: 0;
  background-color: #ffffff;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s;
  pointer-events: none;
}

.skeleton-screen-overlay.is-loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.skeleton-bone {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s ease-in-out infinite;
  border-radius: 0.5rem;
}

@keyframes skeleton-shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.skeleton-stagger-1 { animation-delay: 0.05s; }
.skeleton-stagger-2 { animation-delay: 0.15s; }
.skeleton-stagger-3 { animation-delay: 0.25s; }
.skeleton-stagger-4 { animation-delay: 0.35s; }
.skeleton-stagger-5 { animation-delay: 0.45s; }

/* ==========================================================================
   STICKY ACTION CLUSTER (STICKY CALL CTA & BACK TO TOP)
   ========================================================================== */
.sticky-action-stack {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
  pointer-events: none;
}

.sticky-action-stack > * {
  pointer-events: auto;
}

/* Sticky Call CTA */
.sticky-call-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #212FEB 0%, #5521EB 100%);
  color: #ffffff;
  border-radius: 9999px;
  box-shadow: 0 10px 25px -5px rgba(33, 47, 235, 0.45), 0 8px 10px -6px rgba(33, 47, 235, 0.2);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  position: relative;
}

.sticky-call-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 14px 28px -4px rgba(33, 47, 235, 0.5), 0 10px 10px -5px rgba(33, 47, 235, 0.3);
  color: #ffffff;
}

.sticky-call-btn:active {
  transform: translateY(0) scale(0.98);
}

.sticky-call-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sticky-call-pulse {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 10px;
  height: 10px;
  border-radius: 9999px;
  background-color: #10b981;
  box-shadow: 0 0 0 2px #ffffff;
  animation: ping-ring 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping-ring {
  75%, 100% {
    transform: scale(2);
    opacity: 0;
  }
}

/* Responsive behavior: Desktop shows icon + text, Tablet and Mobile shows ICON ONLY */
@media (max-width: 1023px) {
  .sticky-call-btn {
    width: 3.25rem;
    height: 3.25rem;
    padding: 0;
  }

  .sticky-call-text {
    display: none !important;
  }
}

@media (min-width: 1024px) {
  .sticky-call-btn {
    height: 3rem;
    padding: 0 1.25rem 0 1rem;
    gap: 0.625rem;
  }

  .sticky-call-text {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    white-space: nowrap;
  }
}

/* Sticky Back To Top */
.sticky-back-to-top {
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  background: #0f172a;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 20px -4px rgba(15, 23, 42, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.9);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.sticky-back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.sticky-back-to-top:hover {
  background-color: #1e293b;
  color: #38bdf8;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -4px rgba(15, 23, 42, 0.45);
}

.sticky-back-to-top:active {
  transform: translateY(0) scale(0.96);
}

/* ==========================================================================
   CONTENT-VISIBILITY: Skip rendering offscreen sections until scrolled
   Dramatically reduces initial paint cost on mobile
   ========================================================================== */
section:not(:first-of-type) {
  content-visibility: auto;
  contain-intrinsic-size: auto 600px;
}

/* Modal backdrop overlay */
.modal-backdrop {
  background-color: rgba(15, 23, 42, 0.5);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

/* ==========================================================================
   LAZY IFRAME LOADING PLACEHOLDER
   ========================================================================== */
iframe[src="about:blank"] {
  background: #f1f5f9;
}

/* Clinical grid background pattern */
.bg-clinical-grid {
  background-image:
    linear-gradient(to right, rgba(15, 23, 42, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.02) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* ==========================================================================
   ABOUT PAGE — TEXTURED PARALLAX HERO
   Uses resources/images/textured-background.webp as a parallax-scrolling
   background that shifts at a slower rate than the page content.
   ========================================================================== */
.about-hero-section {
  position: relative;
  overflow: hidden;
  min-height: 520px;
}

/* The parallax bg div — absolutely filled, scrolls via JS transform */
.about-hero-bg {
  position: absolute;
  inset: -15% 0;          /* extra bleed top & bottom to prevent gaps when shifted */
  background-image:
    linear-gradient(
      135deg,
      #ffffff 0%,
      #f0f4ff 35%,
      #e8eeff 65%,
      #f5f7ff 100%
    );
  background-size: cover;
  background-position: center center;
  will-change: transform;  /* promoted to GPU layer — only while scrolling */
  transform: translate3d(0, 0, 0);
  transition: transform 0s linear; /* overridden by JS requestAnimationFrame */
}

/* Layered overlay — soft directional fade for depth on light background */
.about-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.0) 0%,
      rgba(240, 244, 255, 0.25) 50%,
      rgba(248, 250, 252, 0.5) 100%
    );
}

/* ==========================================================================
   TURNAROUND & PROCESS TRANSPARENCY — SCROLL TIMELINE ANIMATION
   Interactive step illumination, progress tracker, and scroll-activated glow
   ========================================================================== */
.process-timeline-container {
  position: relative;
}

/* ==========================================================================
   TURNAROUND & PROCESS TRANSPARENCY — VERTICAL SCROLL TIMELINE ANIMATION
   Step 1: Left to Center | Step 2: Right to Center | Step 3: Left to Center
   ========================================================================== */
.process-timeline-vertical {
  position: relative;
  max-width: 52rem;
  margin-left: auto;
  margin-right: auto;
}

/* Vertical Track Line */
.process-vertical-track {
  position: absolute;
  top: 40px;
  bottom: 40px;
  left: 50%;
  width: 3px;
  background: #e2e8f0;
  transform: translateX(-50%);
  z-index: 1;
  border-radius: 9999px;
  overflow: hidden;
}

.process-vertical-progress {
  width: 100%;
  height: 0%;
  background: linear-gradient(180deg, #212FEB, #5521EB, #0ea5e9);
  transition: height 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (max-width: 768px) {
  .process-vertical-track {
    left: 2.25rem;
  }
}

/* Horizontal slide in & slow hide classes for vertical stack */
.step-slide-left {
  opacity: 0;
  transform: translate3d(-80px, 0, 0);
  transition: transform 1.1s cubic-bezier(0.25, 1, 0.5, 1), opacity 1.1s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  will-change: transform, opacity;
}

.step-slide-right {
  opacity: 0;
  transform: translate3d(80px, 0, 0);
  transition: transform 1.1s cubic-bezier(0.25, 1, 0.5, 1), opacity 1.1s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  will-change: transform, opacity;
}

.step-in-view,
.step-slide-left.step-in-view,
.step-slide-right.step-in-view {
  opacity: 1 !important;
  transform: translate3d(0, 0, 0) !important;
  transition: transform 0.85s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease !important;
}

@media (max-width: 640px) {
  .step-slide-left {
    transform: translate3d(-35px, 0, 0);
  }
  .step-slide-right {
    transform: translate3d(35px, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .step-slide-left,
  .step-slide-right {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* Connecting track line between steps on desktop (legacy horizontal support) */
.process-track-line {
  position: absolute;
  top: 52px;
  left: 12%;
  right: 12%;
  height: 4px;
  background: #e2e8f0;
  border-radius: 9999px;
  z-index: 1;
  overflow: hidden;
}

.process-track-progress {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #212FEB, #5521EB, #0ea5e9);
  transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.step-card {
  position: relative;
  z-index: 2;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, box-shadow, border-color;
}

.step-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 35px -5px rgba(33, 47, 235, 0.12), 0 8px 16px rgba(15, 23, 42, 0.04);
}

.step-card.step-active {
  border-color: #5521EB;
  background: #ffffff;
  box-shadow: 0 20px 40px -8px rgba(85, 33, 235, 0.16), 0 10px 20px rgba(15, 23, 42, 0.06);
  transform: translateY(-4px);
}

.step-number-badge {
  transition: all 0.3s ease;
}

.step-card.step-active .step-number-badge {
  transform: scale(1.12);
  box-shadow: 0 0 24px rgba(85, 33, 235, 0.5);
}

.step-pulse-ring {
  position: absolute;
  inset: -6px;
  border-radius: 9999px;
  border: 2px solid rgba(85, 33, 235, 0.4);
  opacity: 0;
  animation: pulse-ring 2.2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

.step-card.step-active .step-pulse-ring {
  opacity: 1;
}

@keyframes pulse-ring {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 0; }
  100% { transform: scale(1.3); opacity: 0; }
}

/* Service Catalog Image Wrapper Styles */
.service-stock-image-wrap {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  border-top-left-radius: 1rem;
  border-top-right-radius: 1rem;
  background: #f1f5f9;
}

.service-stock-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-catalog-card:hover .service-stock-image-wrap img,
.neo-card:hover .service-stock-image-wrap img {
  transform: scale(1.05);
}

/* ==========================================================================
   PRIVATE ON-SITE MOBILE FLEET TESTING BANNER & RESPONSIVE GRID
   Guaranteed flawless layout across mobile portrait, mobile landscape,
   tablets, and desktop/computer screens.
   ========================================================================== */
.onsite-fleet-banner {
  position: relative;
  background: linear-gradient(135deg, #09081f 0%, #17124a 60%, #201a61 100%);
  border: 1px solid rgba(147, 197, 253, 0.2);
  border-radius: 1.5rem;
  box-shadow: 0 24px 48px -12px rgba(12, 10, 36, 0.35);
  overflow: hidden;
}

.onsite-fleet-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  position: relative;
  z-index: 10;
  width: 100%;
}

/* Landscape on phones & tablets (min-width: 640px or landscape orientation) */
@media (orientation: landscape) and (min-width: 600px) and (max-width: 1023px) {
  .onsite-fleet-grid {
    grid-template-columns: 1.45fr 1fr;
    gap: 1.75rem;
    align-items: center;
  }
}

/* Standard Tablet / iPad portrait & landscape (min-width: 768px to 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
  .onsite-fleet-grid {
    grid-template-columns: 1.45fr 1fr;
    gap: 2rem;
    align-items: center;
  }
}

/* Computer / Desktop View (>= 1024px) */
@media (min-width: 1024px) {
  .onsite-fleet-grid {
    grid-template-columns: 1.85fr 1.15fr;
    gap: 2.5rem;
    align-items: center;
  }
}

/* Large Desktop View (>= 1280px) */
@media (min-width: 1280px) {
  .onsite-fleet-grid {
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: center;
  }
}

.onsite-fleet-main {
  width: 100%;
  min-width: 0;
}

.onsite-fleet-sidebar {
  width: 100%;
  min-width: 0;
}

/* Feature cards in On-Site Testing */
.onsite-pills-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .onsite-pills-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ==========================================================================
   FAQ ACCORDION STYLES — PURE TRANSPARENT TRIGGER (NO GRAY BACKGROUND)
   Eliminates browser user-agent buttonface/gray styling on FAQ question buttons
   ========================================================================== */
[data-accordion-trigger],
button[data-accordion-trigger],
.faq-accordion-trigger {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  cursor: pointer;
  width: 100%;
  padding: 0;
  margin: 0;
  text-align: left;
}

[data-accordion-trigger]:hover,
[data-accordion-trigger]:focus,
[data-accordion-trigger]:active,
button[data-accordion-trigger]:hover,
button[data-accordion-trigger]:focus,
button[data-accordion-trigger]:active,
.faq-accordion-trigger:hover,
.faq-accordion-trigger:focus,
.faq-accordion-trigger:active {
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  outline: none !important;
}

[data-accordion-item] {
  background-color: #ffffff !important;
}

/* ==========================================================================
   CLINICAL COMPONENT & CATALOG CARD STYLES (MATCHING DRUG-TESTING.HTML)
   ========================================================================== */
.neo-card-subtle {
  background: #FAFCFF;
  border-radius: 1rem;
  border: 1px solid #e2e8f0;
  transition: all 0.25s ease;
}

.neo-card-subtle:hover {
  border-color: #7dd3fc;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.06), 0 4px 10px -2px rgba(15, 23, 42, 0.03);
  transform: translateY(-2px);
}

.badge-clinical {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.25;
}

.badge-amber { background-color: #fef3c7; color: #92400e; border: 1px solid #fcd34d; }
.badge-blue { background-color: #e0f2fe; color: #075985; border: 1px solid #bae6fd; }
.badge-teal { background-color: #ccfbf1; color: #115e59; border: 1px solid #99f6e4; }
.badge-neutral { background-color: #f1f5f9; color: #334155; border: 1px solid #cbd5e1; }

.neo-btn-primary {
  background: #5521EB !important;
  background-color: #5521EB !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(85, 33, 235, 0.25);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
}

.neo-btn-primary:hover {
  background: #212FEB !important;
  background-color: #212FEB !important;
  box-shadow: 0 6px 20px rgba(33, 47, 235, 0.35);
  transform: translateY(-1px);
  color: #ffffff !important;
}

.neo-btn-secondary {
  background: #5521EB !important;
  background-color: #5521EB !important;
  color: #ffffff !important;
  border: 1px solid #5521EB !important;
  box-shadow: 0 4px 14px rgba(85, 33, 235, 0.25);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
}

.neo-btn-secondary:hover {
  background: #212FEB !important;
  background-color: #212FEB !important;
  border-color: #212FEB !important;
  color: #ffffff !important;
  box-shadow: 0 6px 20px rgba(33, 47, 235, 0.35);
  transform: translateY(-1px);
}

/* ==========================================================================
   GAZETTE THEMED MAGAZINE LAYOUT STYLES
   Newspaper masthead, editorial columns, datelines, and article cards
   ========================================================================== */
.gazette-masthead {
  border-top: 4px solid #0f172a;
  border-bottom: 2px solid #0f172a;
  position: relative;
  background: #ffffff;
}

.gazette-masthead-inner {
  border-top: 1px solid #0f172a;
  border-bottom: 1px solid #0f172a;
  margin: 3px 0;
  padding: 1.5rem 1rem;
}

.gazette-title {
  font-family: 'Playfair Display', Georgia, Cambria, 'Times New Roman', serif;
  letter-spacing: -0.025em;
  line-height: 1;
}

.gazette-subhead {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  letter-spacing: 0.15em;
  font-weight: 700;
  text-transform: uppercase;
}

.gazette-dateline {
  font-family: 'Courier Prime', Menlo, Monaco, Consolas, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-top: 1px solid #cbd5e1;
  border-bottom: 1px solid #cbd5e1;
  padding: 0.5rem 0;
}

.gazette-lead-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 20px -4px rgba(15, 23, 42, 0.07);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.gazette-lead-card:hover {
  box-shadow: 0 16px 36px -8px rgba(85, 33, 235, 0.12);
  border-color: #cbd5e1;
}

.gazette-editorial-col {
  position: relative;
}

.gazette-editorial-col:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 0;
  right: -1.25rem;
  bottom: 0;
  width: 1px;
  background: #e2e8f0;
}

@media (max-width: 1024px) {
  .gazette-editorial-col:not(:last-child)::after {
    display: none;
  }
}

.gazette-article-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.gazette-article-card:hover {
  border-color: #5521EB;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.08);
}

.gazette-quote-callout {
  border-left: 3px solid #5521EB;
  padding-left: 1rem;
  font-style: italic;
  color: #334155;
  background: #f8fafc;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  border-radius: 0 0.5rem 0.5rem 0;
}

.gazette-category-badge {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}
