/* Service detail hero unification. Keeps page content and images unchanged. */

body:has(.service-detail-hero) .site-header {
  background: #0D1B2A;
  box-shadow: none;
}

body:has(.service-detail-hero) .main-nav {
  background: #0D1B2A;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

body:has(.service-detail-hero) .main-nav .nav-list .nav-item > a,
body:has(.service-detail-hero) .main-nav .nav-item > a {
  color: rgba(255, 255, 255, 0.88);
}

body:has(.service-detail-hero) .main-nav .nav-item > a:hover,
body:has(.service-detail-hero) .main-nav .nav-item.active > a {
  color: #fff;
}

body:has(.service-detail-hero) .main-nav .nav-chevron {
  stroke: rgba(255, 255, 255, 0.6);
}

body:has(.service-detail-hero) .main-nav .hamburger span {
  background: #fff;
}

body:has(.service-detail-hero) .site-header .container {
  max-width: 1180px;
}

@media (max-width: 768px) {
  body:has(.service-detail-hero) .nav-menu {
    background: #fff !important;
  }

  body:has(.service-detail-hero) .nav-menu .nav-item > a {
    color: var(--text) !important;
  }

  body:has(.service-detail-hero) .nav-menu .nav-item > a:hover,
  body:has(.service-detail-hero) .nav-menu .nav-item.active > a {
    color: var(--teal) !important;
  }

  body:has(.service-detail-hero) .nav-menu .nav-chevron {
    stroke: var(--text) !important;
  }

  body:has(.service-detail-hero) .nav-menu .mobile-lang a {
    color: var(--text-muted) !important;
  }

  body:has(.service-detail-hero) .nav-menu .mobile-lang a.active {
    color: var(--teal) !important;
  }
}

.service-detail-hero {
  position: relative !important;
  min-height: clamp(390px, 36vw, 500px) !important;
  display: flex !important;
  align-items: center !important;
  color: #fff !important;
  overflow: hidden !important;
  isolation: isolate;
  background-size: cover !important;
  background-position: center !important;
}

.service-detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(13, 27, 42, 0.99) 0%, rgba(13, 27, 42, 0.9) 42%, rgba(13, 27, 42, 0.36) 76%, rgba(13, 27, 42, 0.08) 100%),
    linear-gradient(180deg, rgba(13, 27, 42, 0.08) 0%, rgba(13, 27, 42, 0.04) 58%, rgba(13, 27, 42, 0.72) 100%);
  pointer-events: none;
}

.service-detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.48), transparent 74%);
  pointer-events: none;
}

.service-detail-hero > div:first-child {
  opacity: 0 !important;
}

.service-detail-hero .container {
  position: relative !important;
  z-index: 2 !important;
  width: 100%;
  max-width: 1180px !important;
  padding-top: clamp(50px, 6vw, 72px) !important;
  padding-bottom: clamp(54px, 6vw, 76px) !important;
  padding-left: 24px !important;
  padding-right: 24px !important;
}

.service-detail-hero .breadcrumb,
.service-detail-hero .page-hero__breadcrumb {
  display: none !important;
}

.service-detail-hero h1 {
  max-width: 650px !important;
  color: #fff !important;
  font-size: clamp(32px, 4vw, 50px) !important;
  line-height: 1.12 !important;
  letter-spacing: 0 !important;
  margin-bottom: 18px !important;
  text-shadow: 0 14px 34px rgba(0, 0, 0, 0.26);
}

.service-detail-hero p {
  max-width: 560px !important;
  color: rgba(255, 255, 255, 0.88) !important;
  font-size: clamp(16px, 1.35vw, 18px) !important;
  line-height: 1.66 !important;
  margin-bottom: 30px !important;
}

.service-detail-hero .btn {
  min-height: 46px;
  border-radius: 8px !important;
}

.service-detail-hero .btn-primary {
  box-shadow: 0 12px 26px rgba(211, 84, 0, 0.26);
}

body:has(.service-detail-hero) {
  background: #f6f8fa;
}

body:has(.service-detail-hero) .cap-boxes {
  align-items: stretch !important;
  gap: 16px !important;
}

body:has(.service-detail-hero) .cap-box {
  min-height: 108px !important;
  height: 100%;
  justify-content: center !important;
  padding: 20px 18px !important;
  border: 1px solid rgba(0, 123, 127, 0.14) !important;
  border-left: 4px solid var(--teal) !important;
  border-radius: 8px !important;
  background: #fff !important;
  box-shadow: 0 10px 28px rgba(11, 35, 54, 0.06);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

body:has(.service-detail-hero) .cap-box:hover {
  border-color: rgba(0, 123, 127, 0.34) !important;
  box-shadow: 0 18px 36px rgba(0, 123, 127, 0.12);
  transform: translateY(-2px);
}

body:has(.service-detail-hero) .cap-box .val {
  color: #132635 !important;
  font-size: clamp(17px, 1.6vw, 20px) !important;
  line-height: 1.22 !important;
  margin-bottom: 6px !important;
}

body:has(.service-detail-hero) .cap-box .lbl {
  color: #526676 !important;
  line-height: 1.38 !important;
}

body:has(.service-detail-hero) .inline-form,
body:has(.service-detail-hero) .sidebar-box,
body:has(.service-detail-hero) .highlight-box {
  border-radius: 8px !important;
  border-color: #dce6ec !important;
  box-shadow: 0 14px 34px rgba(11, 35, 54, 0.06);
}

body:has(.service-detail-hero) .inline-form {
  background: #fff !important;
  padding: clamp(24px, 4vw, 40px) !important;
}

body:has(.service-detail-hero) .inline-form h3 {
  color: #132635 !important;
}

body:has(.service-detail-hero) .inline-form .sub {
  color: #526676 !important;
}

body:has(.service-detail-hero) .form-control {
  border-radius: 8px !important;
  border-color: #d6e1e8 !important;
  background: #fff !important;
  transition: border-color .18s ease, box-shadow .18s ease;
}

body:has(.service-detail-hero) .form-control:focus {
  border-color: var(--teal) !important;
  box-shadow: 0 0 0 3px rgba(0, 123, 127, 0.12) !important;
}

body:has(.service-detail-hero) .sidebar-cta-box,
body:has(.service-detail-hero) .cta-card,
body:has(.service-detail-hero) .service-cta {
  border-radius: 8px !important;
  background:
    linear-gradient(145deg, rgba(13, 27, 42, 0.96), rgba(0, 95, 99, 0.92)),
    radial-gradient(circle at 85% 0%, rgba(94, 227, 215, 0.28), transparent 34%) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 18px 40px rgba(13, 27, 42, 0.16);
}

body:has(.service-detail-hero) .sidebar-cta-box .btn,
body:has(.service-detail-hero) .cta-card .btn,
body:has(.service-detail-hero) .service-cta .btn {
  border-radius: 8px !important;
}

body:has(.service-detail-hero) .process-steps,
body:has(.service-detail-hero) .pstep {
  min-width: 0;
}

@media (max-width: 900px) {
  .service-detail-hero {
    min-height: 380px !important;
    background-position: 68% center !important;
  }

  .service-detail-hero::before {
    background:
      linear-gradient(90deg, rgba(13, 27, 42, 0.97) 0%, rgba(13, 27, 42, 0.86) 62%, rgba(13, 27, 42, 0.34) 100%),
      linear-gradient(180deg, rgba(13, 27, 42, 0.08) 0%, rgba(13, 27, 42, 0.72) 100%);
  }
}

@media (max-width: 640px) {
  .service-detail-hero {
    min-height: 360px !important;
  }

  .service-detail-hero .container {
    padding-top: 44px !important;
    padding-bottom: 52px !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .service-detail-hero h1 {
    font-size: clamp(28px, 8vw, 38px) !important;
  }

  .service-detail-hero .btn {
    width: 100%;
    justify-content: center;
  }

  body:has(.service-detail-hero) .cap-boxes {
    grid-template-columns: 1fr 1fr !important;
  }
}

@media (max-width: 520px) {
  body:has(.service-detail-hero) .cap-boxes {
    grid-template-columns: 1fr !important;
  }

  body:has(.service-detail-hero) .cap-box {
    min-height: auto !important;
  }
}
