/* ==========================================================================
   Service Hero — variants 1, 3 and 5, one file (2 and 4 were retired)
   `.service-hero` carries the shared design language (dark ground, ambient
   glow blobs, badge/title/description/button styling, spacing scale);
   `.service-hero--variant-{1,3,5}` modifiers change only composition
   (alignment, image placement/size, glow position) — never the visual
   tokens. Adding another variant later means adding one more modifier block
   here, not a new file (see assets/js/services/hero.js for the matching
   JS-side pattern).
   ========================================================================== */

.service-hero {
  position: relative;
  background: #04070d;
  overflow: hidden;
}

.service-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.service-hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
}

.service-hero-glow--cyan {
  top: -14%;
  left: -8%;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(0, 194, 255, 0.22) 0%, transparent 70%);
}

.service-hero-glow--violet {
  bottom: -18%;
  right: -10%;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.18) 0%, transparent 70%);
}

.service-hero-content {
  max-width: 640px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.service-hero-title {
  font-size: clamp(3.5rem, 3rem + 1.25vw, 3.5rem);
  font-weight: 600;
  letter-spacing: -0.25px;
  line-height: 1.2;
  color: #ffffff;
}

.service-hero-description {
  font-size: clamp(0.875rem, 0.875rem + 0vw, 0.875rem);
  line-height: 1.6;
  color: #c6c6c3;
}

.service-hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
}

.service-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 49px;
  padding: 0 30px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
}

.service-hero-cta-consultation {
  padding: 12px 20px;
  background: #ffffff;
  color: #111111;
  font-size: clamp(0.75rem, 0.75rem + 0vw, 0.75rem);
  font-weight: 600;
  border-radius: 3rem;
  line-height: 1.26;
}

/* ---- Variant 1 — Cover (baseline/default) ----
   Full-bleed background (image or video — see hero-1.php), centered
   content, optional seamless "trusted by" logo marquee. Has its own
   dedicated `.service-hero-cover-*` element set below (not the shared
   `.service-hero-content`), reusing only the truly generic typography/
   button classes (`.service-hero-title`, `.service-hero-description`,
   `.service-hero-cta`, `.badge-cyan`) for visual consistency with the rest
   of the family. Variant 5 (below) reuses this same `.service-hero-cover-*`
   set, left-aligned instead of centered. */

.service-hero--variant-1 {
  padding: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
}

.service-hero-cover-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.service-hero-cover-image,
.service-hero-cover-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.service-hero-cover-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to bottom,
      rgba(4, 7, 13, 0.25) 0%,
      rgba(4, 7, 13, 0.45) 45%,
      rgba(4, 7, 13, 0.88) 82%,
      #04070d 100%);
}

.service-hero-cover-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 44px;
  padding: 56px 0;
}

.service-hero-cover-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  max-width: 760px;
  text-align: center;
}

.service-hero--variant-1 .service-hero-title,
.service-hero--variant-1 .service-hero-description {
  text-align: center;
}

.service-hero--variant-1 .service-hero-cta {
  justify-content: center;
}

/* ---- Variant 1 — Trust Marquee ----
   Seamless CSS-only loop: the logo list is rendered twice back-to-back
   (see hero-1.php) inside `.service-hero-marquee-track`, which animates
   translateX(-50%) — once the first copy has fully scrolled past, the
   second copy is in the exact position the first started in, so the loop
   reads as continuous. No JS. */

.service-hero-marquee {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.service-hero-marquee-divider {
  display: flex;
  align-items: center;
  gap: 16px;
}

.service-hero-marquee-divider span {
  flex: 1 1 auto;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 1), transparent);
}

.service-hero-marquee-divider p {
  flex: 0 0 auto;
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ffffff;
  white-space: nowrap;
}

.service-hero-marquee-viewport {
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

.service-hero-marquee-track {
  display: flex;
  width: max-content;
  animation: serviceHeroMarquee 28s linear infinite;
}

.service-hero-marquee-list {
  display: flex;
  align-items: center;
  gap: 56px;
  padding-right: 56px;
  flex: 0 0 auto;
}

.service-hero-marquee-item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
}

.service-hero-marquee-logo {
  display: block;
  height: 100%;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  filter: grayscale(1) brightness(1.6);
  opacity: 0.65;
}

@keyframes serviceHeroMarquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .service-hero-marquee-track {
    animation: none;
  }
}

/* ---- Variant 3 — Centered Showcase ----
   Badge/title/description/CTA centered and ALWAYS visible/on top; if a
   background image or video is set it sits behind the text, filling a
   full-viewport stage (`.service-hero-showcase-*`), same full-bleed idiom
   as Variant 1's cover media. No scroll-tied animation — everything is in
   plain normal flow at all times; the only motion is a one-time fade/rise
   on load (see initHeroVariant3 in hero.js). `.is-static` (no media set)
   simply skips the full-viewport stage sizing and falls back to normal
   padded centered text. */

.service-hero--variant-3 {
  padding: 0;
  min-height: 100vh;
  min-height: 100svh;
}

.service-hero--variant-3 .service-hero-content {
  align-items: center;
  max-width: 720px;
  text-align: center;
}

.service-hero--variant-3 .service-hero-cta {
  justify-content: center;
}

.service-hero-showcase-track {
  position: relative;
}

.service-hero-showcase-stage {
  height: 100svh;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-hero-showcase-track.is-static .service-hero-showcase-stage {
  min-height: 0;
  padding: 60px 0;
}

.service-hero-showcase-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.service-hero-showcase-image,
.service-hero-showcase-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.service-hero-showcase-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to bottom,
      rgba(4, 7, 13, 0.5) 0%,
      rgba(4, 7, 13, 0.6) 55%,
      rgba(4, 7, 13, 0.8) 100%);
}

.service-hero-showcase-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  justify-content: center;
}

/* ---- Variant 5 — Left-Aligned Cover ----
   Same full-bleed background mechanics as Variant 1 (see hero-5.php), but
   left-aligned instead of centered, and a left-to-right scrim instead of a
   top-to-bottom one — the darkest part of the image sits behind the text on
   the left, the photo stays visible on the right. Built from a reference
   screenshot the user shared. */

.service-hero--variant-5 {
  padding: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
}

.service-hero--variant-5 .service-hero-cover-inner {
  align-items: flex-start;
}

.service-hero--variant-5 .service-hero-cover-overlay {
  background: linear-gradient(100deg,
      rgba(4, 7, 13, 0.92) 0%,
      rgba(4, 7, 13, 0.7) 40%,
      rgba(4, 7, 13, 0.32) 68%,
      rgba(4, 7, 13, 0.08) 100%);
}

.service-hero-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}

.service-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.service-hero-badge i,
.service-hero-badge svg {
  width: 15px;
  height: 15px;
  color: #00c2ff;
}

/* ---- Responsive (all variants) ---- */

@media (max-width: 900px) {
  .service-hero {
    padding: 120px 0 72px;
  }

  /* Positioned after the generic rule above so it wins the cascade at this
     same breakpoint (both are single-class selectors, equal specificity —
     Variants 1 and 5's full-bleed layout need padding:0 regardless of
     viewport, using .service-hero-cover-inner's own padding for spacing
     instead). */
  .service-hero--variant-1,
  .service-hero--variant-5 {
    padding: 0;
    min-height: auto;
  }

  .service-hero-cover-inner {
    padding: 140px 0 40px;
    gap: 36px;
  }

  .service-hero-showcase-stage {
    min-height: 0;
    padding: 60px 0;
  }
}

@media (max-width: 480px) {
  .service-hero-marquee-list {
    gap: 40px;
    padding-right: 40px;
  }

  .service-hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .service-hero--variant-3 .service-hero-cta {
    align-items: center;
  }

  .service-btn-secondary {
    width: 100%;
  }
}