/**
 * Service-area vertical heroes (E-Commerce, Digital Marketing, etc.).
 *
 * @package Innov8th
 */

.service-vertical-hero {
  --vertical-hero-accent: #662192;
  position: relative;
  padding: 8rem 0 2.5rem;
  overflow: visible;
}

@media (min-width: 993px) {
  .service-vertical-hero {
    padding-top: 9rem;
  }
}

.service-vertical-hero__blur,
.service-vertical-hero__blur2,
.service-vertical-hero__blur3 {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  opacity: 0.75;
}

.service-vertical-hero .starfield-container--fill {
  z-index: 1;
}

.service-vertical-hero .custom-container {
  position: relative;
  z-index: 2;
}

.service-vertical-hero__layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  gap: clamp(2rem, 4vw, 3.25rem);
  align-items: center;
}

.service-vertical-hero__copy {
  max-width: 36rem;
}

.service-vertical-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  margin-bottom: 0.35rem;
}

.service-vertical-hero__back {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.55);
  transition: color 200ms ease;
}

.service-vertical-hero__back:hover {
  color: #ff5fce;
}

.service-vertical-hero__title {
  margin: 0 0 1rem;
  font-size: clamp(2.15rem, 4.8vw, 3.5rem);
  line-height: 1.06;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  text-transform: none;
}

.service-vertical-hero__title-accent {
  display: block;
  margin-top: 0.15rem;
  background: linear-gradient(100deg, color-mix(in srgb, var(--vertical-hero-accent) 40%, #ff00af) 0%, #ac00ff 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.service-vertical-hero__intro {
  margin: 0 0 1.35rem;
  max-width: 32rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.65;
}

.service-vertical-hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 1.75rem;
  padding: 0;
  list-style: none;
}

.service-vertical-hero__tags li {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--vertical-hero-accent) 35%, rgba(255, 255, 255, 0.15));
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
}

.service-vertical-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.service-vertical-hero__media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 280px;
  overflow: visible;
}

.service-vertical-hero__background-image-container {
  position: absolute;
  top: -180px;
  right: 0;
  overflow: visible;
  pointer-events: none;
  z-index: 0;
}

.service-vertical-hero__background-image {
  display: block;
  height: auto;
  width: auto;
  max-height: min(calc(72vh * 1.12), calc(520px * 1.12));
  max-width: min(calc(420px * 1.12), calc(88vw * 1.12));
}

.service-vertical-hero__visual {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.service-vertical-hero__visual-image {
  display: block;
  width: min(100%, 540px);
  max-height: min(52vh, 520px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.35));
}

.service-vertical-hero__spotlight {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-vertical-hero__frame {
  position: relative;
  width: min(100%, 400px);
  aspect-ratio: 4 / 5;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--vertical-hero-accent) 45%, rgba(178, 85, 255, 0.35));
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.38),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}

.service-vertical-hero__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
  transition: transform 600ms ease;
}

.service-vertical-hero__frame:hover .service-vertical-hero__poster {
  transform: scale(1.08);
}

.service-vertical-hero__frame-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 4, 18, 0.08) 0%, rgba(8, 4, 18, 0.88) 100%),
    linear-gradient(135deg, color-mix(in srgb, var(--vertical-hero-accent) 35%, transparent) 0%, transparent 55%);
}

.service-vertical-hero__frame-glow {
  position: absolute;
  inset: auto -20% -25% -20%;
  height: 45%;
  background: radial-gradient(
    ellipse at center,
    color-mix(in srgb, var(--vertical-hero-accent) 55%, transparent) 0%,
    transparent 70%
  );
  opacity: 0.85;
  pointer-events: none;
}

.service-vertical-hero__badge {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(8, 4, 18, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.service-vertical-hero__badge-num {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
  color: color-mix(in srgb, var(--vertical-hero-accent) 50%, #ff00b8);
}

.service-vertical-hero__badge-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
}

#subservice-browse-nav {
  scroll-margin-top: 7rem;
}

@media (max-width: 992px) {
  .service-vertical-hero__layout {
    grid-template-columns: 1fr;
  }

  .service-vertical-hero__copy {
    max-width: none;
  }

  .service-vertical-hero__spotlight,
  .service-vertical-hero__media {
    order: -1;
  }

  .service-vertical-hero__media {
    margin-top: 1.25rem;
  }

  .service-vertical-hero__background-image-container {
    left: auto;
    right: 0;
    top: -120px;
    transform: none;
    width: auto;
    max-width: none;
  }

  .service-vertical-hero__background-image {
    max-width: min(calc(380px * 1.12), calc(95vw * 1.12));
    max-height: min(calc(48vh * 1.12), calc(360px * 1.12));
  }

  .service-vertical-hero__visual-image {
    width: min(100%, 480px);
    margin: 0 auto;
  }

  .service-vertical-hero__frame {
    width: min(320px, 88vw);
    aspect-ratio: 16 / 11;
  }
}

@media (min-width: 993px) {
  .service-vertical-hero__media {
    min-height: 420px;
    justify-content: flex-end;
  }

  .service-vertical-hero__visual {
    justify-content: flex-end;
  }

  .service-vertical-hero__visual-image {
    width: min(100%, 620px);
    max-height: min(58vh, 560px);
  }
}

@media (max-width: 600px) {
  .service-vertical-hero {
    padding-top: 7rem;
    padding-bottom: 2rem;
  }

  .service-vertical-hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .service-vertical-hero__actions .cta {
    text-align: center;
  }
}
