/* Green Edge Technologies NG — Related Services Grid Carousel
   Loaded last so this section keeps its intended layout on all service pages. */

.service-nav-carousel.section,
section.service-nav-carousel {
  position: relative;
  isolation: isolate;
  padding: clamp(4.5rem, 8vw, 7rem) 0;
  background:
    radial-gradient(circle at 12% 18%, rgba(0, 200, 83, .13), transparent 34%),
    radial-gradient(circle at 86% 78%, rgba(0, 168, 255, .14), transparent 32%),
    linear-gradient(180deg, #0A0F1C 0%, #121826 100%) !important;
  color: var(--text, #ffffff);
  overflow: hidden;
  transition: background 0.4s ease, color 0.4s ease;
}

/* Dark mode — explicit selector ensures the dark gradient is applied whenever
   body.light is absent (the site's dark-mode convention). */
body:not(.light) .service-nav-carousel.section,
body:not(.light) section.service-nav-carousel {
  background:
    radial-gradient(circle at 12% 18%, rgba(0, 200, 83, .13), transparent 34%),
    radial-gradient(circle at 86% 78%, rgba(0, 168, 255, .14), transparent 32%),
    linear-gradient(180deg, #0A0F1C 0%, #121826 100%) !important;
  color: var(--text, #ffffff) !important;
}

body.light .service-nav-carousel.section,
body.light section.service-nav-carousel {
  background:
    radial-gradient(circle at 12% 18%, rgba(0, 200, 83, .12), transparent 34%),
    radial-gradient(circle at 86% 78%, rgba(0, 168, 255, .12), transparent 32%),
    linear-gradient(180deg, #ffffff 0%, #f5f7fa 100%) !important;
  color: #0A0F1C !important;
}

.service-nav-carousel .container {
  position: relative;
  z-index: 2;
}

.service-nav-head {
  display: flex !important;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.25rem;
}

.service-nav-head > div:first-child {
  max-width: 760px;
}

.service-nav-head .section-tag {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin-bottom: .85rem;
}

.service-nav-head .section-title,
.service-nav-head .section-sub {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

.service-nav-head .section-title {
  color: #ffffff;
}

body.light .service-nav-head .section-title {
  color: #0A0F1C;
}

.service-nav-head .section-sub {
  max-width: 620px;
  color: var(--text-muted, #B0B8C5);
}

body.light .service-nav-head .section-sub {
  color: #6F7A8A;
}

.service-nav-controls {
  display: flex !important;
  align-items: center;
  gap: .75rem;
  flex: 0 0 auto;
  position: relative;
  z-index: 8;
  pointer-events: auto !important;
}

.svc-nav-btn {
  width: 46px;
  height: 46px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(0, 200, 83, .28);
  color: var(--green, #00C853);
  background: rgba(255, 255, 255, .055);
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  cursor: pointer !important;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .24);
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
  appearance: none;
  position: relative;
  z-index: 9;
  pointer-events: auto !important;
}

body.light .svc-nav-btn {
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(10, 15, 28, .10);
}

.svc-nav-btn svg {
  display: block;
  pointer-events: none;
}

.svc-nav-btn:hover,
.svc-nav-btn:focus-visible {
  background: var(--green, #00C853);
  color: #ffffff;
  border-color: var(--green, #00C853);
  transform: translateY(-2px);
  box-shadow: 0 16px 42px rgba(0, 200, 83, .24);
  outline: none;
}

.service-nav-shell {
  position: relative;
  width: 100%;
  z-index: 3;
}

.service-nav-track {
  display: grid !important;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 31.5%);
  gap: 1.25rem;
  overflow-x: auto;
  overflow-y: visible;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: .35rem .15rem 1.1rem;
  margin: 0;
  scrollbar-width: none;
  list-style: none;
  white-space: normal;
  position: relative;
  z-index: 4;
  pointer-events: auto !important;
}

.service-nav-track::-webkit-scrollbar {
  display: none;
}

.service-nav-card,
.service-nav-track a.service-nav-card {
  scroll-snap-align: start;
  min-height: 285px;
  display: flex !important;
  flex-direction: column;
  align-items: stretch;
  gap: 1rem;
  text-decoration: none !important;
  color: #ffffff !important;
  background: linear-gradient(145deg, rgba(26, 34, 53, .96), rgba(18, 24, 38, .98));
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 24px;
  padding: 1.45rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 18px 60px rgba(0, 0, 0, .20);
  transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease;
  cursor: pointer !important;
  pointer-events: auto !important;
}

body.light .service-nav-card,
body.light .service-nav-track a.service-nav-card {
  color: #1A1A1A !important;
  background: #ffffff;
  border-color: rgba(0, 200, 83, .18);
  box-shadow: 0 18px 60px rgba(10, 15, 28, .08);
}

.service-nav-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 200, 83, .14), rgba(0, 168, 255, .10) 52%, transparent 74%);
  opacity: 0;
  transition: opacity .28s ease;
  pointer-events: none !important;
}

.service-nav-card > * {
  position: relative;
  z-index: 1;
}

.service-nav-card:hover,
.service-nav-card:focus-visible {
  transform: translateY(-7px);
  border-color: rgba(0, 200, 83, .42);
  box-shadow: 0 24px 70px rgba(0, 200, 83, .14), 0 16px 40px rgba(0, 0, 0, .20);
  outline: none;
}

.service-nav-card:hover::before,
.service-nav-card:focus-visible::before {
  opacity: 1;
}

.service-nav-card-top {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.service-nav-icon {
  width: 54px;
  height: 54px;
  border-radius: 17px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex: 0 0 54px;
  color: var(--green, #00C853);
  background: rgba(0, 200, 83, .12);
  border: 1px solid rgba(0, 200, 83, .28);
}

.service-nav-icon svg {
  display: block;
}

.service-nav-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ai-blue, #00A8FF);
  background: rgba(0, 168, 255, .12);
  border: 1px solid rgba(0, 168, 255, .20);
  padding: .38rem .7rem;
  border-radius: 999px;
  white-space: nowrap;
}

.service-nav-title {
  display: block;
  font-family: var(--font-display, var(--font-d, inherit));
  font-size: 1.25rem;
  line-height: 1.22;
  font-weight: 800;
  letter-spacing: -.02em;
  color: inherit;
}

.service-nav-desc {
  display: block;
  color: var(--text-muted, #B0B8C5);
  line-height: 1.72;
  font-size: .96rem;
  flex: 1;
}

body.light .service-nav-desc {
  color: #6F7A8A;
}

.service-nav-link {
  display: inline-flex !important;
  align-items: center;
  gap: .45rem;
  margin-top: auto;
  color: var(--green, #00C853);
  font-weight: 800;
}

.service-nav-link svg {
  display: block;
  transition: transform .25s ease;
}

.service-nav-card:hover .service-nav-link svg,
.service-nav-card:focus-visible .service-nav-link svg {
  transform: translateX(4px);
}

.svc-nav-orb {
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  filter: blur(54px);
  opacity: .22;
  pointer-events: none !important;
  z-index: 0;
}

.svc-nav-orb-a {
  left: -90px;
  top: 50px;
  background: var(--green, #00C853);
}

.svc-nav-orb-b {
  right: -80px;
  bottom: 40px;
  background: var(--ai-blue, #00A8FF);
}

@media (max-width: 1100px) {
  .service-nav-track {
    grid-auto-columns: minmax(270px, 45%);
  }
}

@media (max-width: 900px) {
  .service-nav-head {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 1.5rem;
  }

  .service-nav-controls {
    align-self: flex-end;
  }

  .service-nav-track {
    grid-auto-columns: minmax(255px, 78%);
    gap: 1rem;
  }

  .service-nav-card,
  .service-nav-track a.service-nav-card {
    min-height: 268px;
    padding: 1.25rem;
    border-radius: 20px;
  }
}

@media (max-width: 560px) {
  .service-nav-carousel.section,
  section.service-nav-carousel {
    padding: 78px 0;
  }

  .service-nav-controls {
    display: none !important;
  }

  .service-nav-track {
    grid-auto-columns: 86%;
    padding-left: .05rem;
  }

  .service-nav-card,
  .service-nav-track a.service-nav-card {
    min-height: 255px;
  }
}

/* Theme-mode lock ---------------------------------------------------------
   The site uses body.light for light mode; no body.light means dark mode.
   These rules are intentionally stronger and loaded last so page section
   backgrounds cannot leave this carousel white while the theme is dark.
   IMPORTANT: Use the `background` shorthand (not split background-color /
   background-image) so it fully overrides any earlier `background` shorthand
   set by body.light rules — split sub-properties cannot override a shorthand. */
body:not(.light) .service-nav-carousel.section,
body:not(.light) section.service-nav-carousel,
html:not(.light) body:not(.light) .service-nav-carousel.section,
html:not(.light) body:not(.light) section.service-nav-carousel,
body.ge-dark .service-nav-carousel.section,
body.dark .service-nav-carousel.section,
body.dark-mode .service-nav-carousel.section,
[data-theme="dark"] .service-nav-carousel.section {
  background:
    radial-gradient(circle at 12% 18%, rgba(0, 200, 83, .13), transparent 34%),
    radial-gradient(circle at 86% 78%, rgba(0, 168, 255, .14), transparent 32%),
    linear-gradient(180deg, #0A0F1C 0%, #121826 100%) !important;
  color: var(--text, #ffffff) !important;
}

body:not(.light) .service-nav-head .section-title,
body:not(.light) .service-nav-title {
  color: var(--text, #ffffff) !important;
}

body:not(.light) .service-nav-head .section-sub,
body:not(.light) .service-nav-desc {
  color: var(--text-muted, #B0B8C5) !important;
}

body:not(.light) .service-nav-card,
body:not(.light) .service-nav-track a.service-nav-card {
  color: var(--text, #ffffff) !important;
  background: linear-gradient(145deg, rgba(26, 34, 53, .96), rgba(18, 24, 38, .98)) !important;
  border-color: rgba(255, 255, 255, .10) !important;
  box-shadow: 0 18px 60px rgba(0, 0, 0, .20) !important;
}

body:not(.light) .svc-nav-btn {
  background: rgba(255, 255, 255, .055) !important;
  color: var(--green, #00C853) !important;
}

body:not(.light) .svc-nav-btn:hover,
body:not(.light) .svc-nav-btn:focus-visible {
  background: var(--green, #00C853) !important;
  color: #ffffff !important;
}

