/* Service Details — match screenshot sections + safe stacking */

/* Home-style viewport vignette is for the dark hero stack — not service detail pages. */
body[data-compass-namespace="serviceDetails"] .header-bg-bot,
body[data-barba-namespace="serviceDetails"] .header-bg-bot {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

.sc-nabt-main.mod-service-details-hero,
.sc-nabt-main.mod-service-details-mission,
.sc-invest-how.mod-service-details-guide {
  position: relative;
  z-index: 1;
  isolation: isolate;
  overflow: hidden;
  margin-top: 0;
  background-color: var(--cl-bg, #101929);
}

.sc-home-prog.mod-service-details-prog {
  position: relative;
  z-index: 2;
  isolation: isolate;
  margin-top: 0;
  overflow: visible;
  background-color: #121929;
  color: #fff;
}

/* 1. Team / intro panel after Inner Hero */
.sc-nabt-main.mod-service-details-hero {
  padding-top: clamp(6rem, 10vh, 12rem);
  padding-bottom: clamp(8rem, 12vh, 14rem);
  z-index: 2;
  overflow: visible;
}

.sc-nabt-main.mod-service-details-hero .nabt-main-item-list,
.sc-nabt-main.mod-service-details-hero .nabt-main-item-wrap {
  position: relative;
  z-index: 2;
}

.sc-nabt-main.mod-service-details-hero .nabt-main-item.g-nabt-main-item-standalone {
  display: grid;
  width: 100%;
  min-width: 0;
  align-items: center;
  grid-column-gap: clamp(3rem, 5vw, 6.4rem);
  padding-top: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.sc-nabt-main.mod-service-details-hero .nabt-main-content-wrap,
.sc-nabt-main.mod-service-details-hero .g-nabt-main-content-wrap-1,
.sc-nabt-main.mod-service-details-hero .g-nabt-main-content-wrap-2 {
  justify-content: center;
  align-self: center;
  max-width: 54rem;
  padding-top: 0;
}

.sc-nabt-main.mod-service-details-hero .g-nabt-main-item-img-wrap-1,
.sc-nabt-main.mod-service-details-hero .g-nabt-main-item-img-wrap-2 {
  align-self: center;
}

.sc-nabt-main.mod-service-details-hero .nabt-main-item-title {
  margin-bottom: clamp(2rem, 3.2vh, 3.6rem);
  color: #fff;
}

.sc-nabt-main.mod-service-details-hero .nabt-main-item-sub {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.65;
  max-width: 46rem;
}

.sc-nabt-main.mod-service-details-hero .nabt-main-item-img {
  width: 100%;
  overflow: hidden;
}

.sc-nabt-main.mod-service-details-hero .nabt-main-item-img.item-2 {
  aspect-ratio: 573 / 672;
  max-height: min(78vh, 72rem);
}

.sc-nabt-main.mod-service-details-hero .nabt-main-item-img.item-1 {
  aspect-ratio: 727 / 672;
  max-height: min(78vh, 72rem);
}

.sc-nabt-main.mod-service-details-hero .nabt-main-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sc-nabt-main.mod-service-details-hero .nabt-main-item-img-info {
  justify-content: space-between;
  align-items: baseline;
  width: 100%;
  margin-top: 2.4rem;
  gap: 1.6rem;
}

.sc-nabt-main.mod-service-details-hero .nabt-main-item-img-info .heading {
  color: #fff;
}

.sc-nabt-main.mod-service-details-hero .nabt-main-item-img-info-sub {
  color: #9a9a9a;
  text-align: right;
  flex: none;
}

[data-compass-namespace="serviceDetails"] .elementor-widget-compass-about-panel,
[data-compass-namespace="serviceDetails"] .elementor-widget-compass-about-panel > .elementor-widget-container,
[data-compass-namespace="serviceDetails"] .elementor-widget-compass-about-main,
[data-compass-namespace="serviceDetails"] .elementor-widget-compass-about-main > .elementor-widget-container,
[data-barba-namespace="serviceDetails"] .elementor-widget-compass-about-panel,
[data-barba-namespace="serviceDetails"] .elementor-widget-compass-about-panel > .elementor-widget-container,
[data-barba-namespace="serviceDetails"] .elementor-widget-compass-about-main,
[data-barba-namespace="serviceDetails"] .elementor-widget-compass-about-main > .elementor-widget-container,
[data-compass-namespace="serviceDetails"] .e-con:has(.sc-nabt-main),
[data-barba-namespace="serviceDetails"] .e-con:has(.sc-nabt-main) {
  overflow: visible !important;
  background-color: var(--cl-bg, #101929);
}

[data-compass-namespace="serviceDetails"] .nabt-main-item-title .word,
[data-compass-namespace="serviceDetails"] .nabt-main-title .char,
[data-barba-namespace="serviceDetails"] .nabt-main-item-title .word,
[data-barba-namespace="serviceDetails"] .nabt-main-title .char {
  -webkit-text-fill-color: currentColor;
}

[data-compass-namespace="serviceDetails"] .nabt-main-item-title .line,
[data-compass-namespace="serviceDetails"] .nabt-main-title .line,
[data-barba-namespace="serviceDetails"] .nabt-main-item-title .line,
[data-barba-namespace="serviceDetails"] .nabt-main-title .line {
  overflow: hidden;
  padding-bottom: 0.06em;
}

[data-compass-namespace="serviceDetails"] .nabt-main-item-img,
[data-barba-namespace="serviceDetails"] .nabt-main-item-img {
  min-height: 20rem;
  overflow: hidden;
}

/* 2. Mission — warm band + rotating compass background */
.sc-nabt-main.mod-service-details-mission {
  padding-top: 0;
  padding-bottom: 0;
  overflow: visible;
  background-color: #ede9e8;
  color: #121929;
}

.sc-nabt-main.mod-service-details-mission .nabt-main-inner {
  position: relative;
  min-height: clamp(52rem, 78vh, 96rem);
  padding-top: clamp(8rem, 12vh, 14rem);
  padding-bottom: clamp(8rem, 12vh, 14rem);
  background-color: #ede9e8;
  overflow: hidden;
}

.sc-nabt-main.mod-service-details-mission .nabt-main-bg {
  z-index: 0;
  background-image: linear-gradient(180deg, rgba(237, 233, 232, 0) 0%, #ede9e8 42%, #ede9e8 100%);
  height: 130%;
  top: -15vh;
  opacity: 1;
}

.sc-nabt-main.mod-service-details-mission .nabt-main-compass {
  z-index: 0;
  color: rgba(18, 25, 41, 0.34);
}

.sc-nabt-main.mod-service-details-mission .nabt-main-compass-svg {
  opacity: 0.42;
  transform: translateY(-4%);
}

.sc-nabt-main.mod-service-details-mission .nabt-main-title,
.sc-nabt-main.mod-service-details-mission .nabt-main-title .heading {
  color: #121929;
  -webkit-text-fill-color: #121929;
  text-align: center;
  margin-bottom: clamp(4rem, 7vh, 8rem);
}

.sc-nabt-main.mod-service-details-mission .nabt-main-title .heading .word,
.sc-nabt-main.mod-service-details-mission .nabt-main-title .heading .char {
  -webkit-text-fill-color: currentColor;
}

.sc-nabt-main.mod-service-details-mission .nabt-main-sub .abt-main-item-sub,
.sc-nabt-main.mod-service-details-mission .nabt-main-sub .txt {
  color: #121929;
  -webkit-text-fill-color: #121929;
  line-height: 1.65;
}

[data-compass-namespace="serviceDetails"] .e-con:has(.mod-service-details-mission),
[data-barba-namespace="serviceDetails"] .e-con:has(.mod-service-details-mission),
[data-compass-namespace="serviceDetails"] .elementor-widget-compass-about-main:has(.mod-service-details-mission),
[data-compass-namespace="serviceDetails"] .elementor-widget-compass-about-main:has(.mod-service-details-mission) > .elementor-widget-container,
[data-barba-namespace="serviceDetails"] .elementor-widget-compass-about-main:has(.mod-service-details-mission),
[data-barba-namespace="serviceDetails"] .elementor-widget-compass-about-main:has(.mod-service-details-mission) > .elementor-widget-container {
  overflow: visible !important;
  background-color: #ede9e8 !important;
}

@media screen and (max-width: 991px) {
  .sc-nabt-main.mod-service-details-mission .nabt-main-inner {
    min-height: auto;
    padding-top: clamp(6rem, 10vh, 10rem);
    padding-bottom: clamp(6rem, 10vh, 10rem);
  }

  .sc-nabt-main.mod-service-details-mission .nabt-main-compass-svg {
    opacity: 0.34;
    width: min(92vw, 30rem);
  }
}

/* 3. Guide — alone on page, force row 1 (buyer-guide uses row 2) */
.sc-invest-how.mod-service-details-guide {
  position: relative;
  z-index: 3;
  padding-top: 7vh;
  padding-bottom: 5vh;
  overflow: visible;
  background-color: var(--cl-bg, #101929);
}

.sc-invest-how.mod-service-details-guide .g-invest-how-item-wrap-2 {
  grid-area: 1 / 2 / 2 / 12;
  align-items: start;
}

.sc-invest-how.mod-service-details-guide .invest-how-item-wrap,
.sc-invest-how.mod-service-details-guide .invest-how-item-wrap.mod-bot {
  margin-bottom: 0;
  align-items: start;
}

.sc-invest-how.mod-service-details-guide .invest-how-item-content-wrap {
  justify-content: flex-start;
  align-items: flex-start;
  transform: none !important;
  overflow: visible;
}

.sc-invest-how.mod-service-details-guide .invest-how-item-label {
  color: #9a9a9a;
  margin-bottom: 1.6rem;
}

.sc-invest-how.mod-service-details-guide .invest-how-item-title,
.sc-invest-how.mod-service-details-guide .invest-how-item-title .char {
  color: #fff;
  -webkit-text-fill-color: currentColor;
}

.sc-invest-how.mod-service-details-guide .invest-how-item-title .line {
  overflow: hidden;
  padding-bottom: 0.08em;
}

.sc-invest-how.mod-service-details-guide .invest-how-item-inner {
  width: 100%;
  overflow: visible;
}

.sc-invest-how.mod-service-details-guide .invest-how-item-inner-item {
  border-top: 1px solid rgba(111, 111, 111, 0.3);
  overflow: visible;
}

.sc-invest-how.mod-service-details-guide .invest-how-item-inner-item-wrap,
.sc-invest-how.mod-service-details-guide .invest-how-item-inner-item {
  transform-style: preserve-3d;
}

.sc-invest-how.mod-service-details-guide .invest-how-item-inner-item-wrap:last-child .invest-how-item-inner-item {
  border-bottom: 1px solid rgba(111, 111, 111, 0.3);
  padding-bottom: 2.4rem;
}

.sc-invest-how.mod-service-details-guide .invest-how-item-inner-txt {
  color: #b0b0b0;
}

.sc-invest-how.mod-service-details-guide .invest-how-item-img-wrap,
.sc-invest-how.mod-service-details-guide .invest-how-item-img-wrap.mod-bot,
.sc-invest-how.mod-service-details-guide .g-invest-how-item-img-wrap-2 {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  margin-bottom: 0 !important;
  display: block;
  align-self: center;
  overflow: hidden;
  position: relative;
  aspect-ratio: 16 / 11;
  min-height: min(44rem, 50vh);
  max-height: min(80vh, 68rem);
}

.sc-invest-how.mod-service-details-guide .invest-how-item-img-wrap .img-basic,
.sc-invest-how.mod-service-details-guide .invest-how-item-img-wrap.mod-bot .img-basic,
.sc-invest-how.mod-service-details-guide .g-invest-how-item-img-wrap-2 .img-basic {
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center;
  display: block;
}

[data-compass-namespace="serviceDetails"] .e-con:has(.mod-service-details-guide),
[data-barba-namespace="serviceDetails"] .e-con:has(.mod-service-details-guide),
[data-compass-namespace="serviceDetails"] .elementor-widget-compass-invest-how:has(.mod-service-details-guide),
[data-compass-namespace="serviceDetails"] .elementor-widget-compass-invest-how:has(.mod-service-details-guide) > .elementor-widget-container,
[data-barba-namespace="serviceDetails"] .elementor-widget-compass-invest-how:has(.mod-service-details-guide),
[data-barba-namespace="serviceDetails"] .elementor-widget-compass-invest-how:has(.mod-service-details-guide) > .elementor-widget-container {
  overflow: visible !important;
  background-color: var(--cl-bg, #101929);
}

.elementor-editor-active .sc-invest-how.mod-service-details-guide .invest-how-item-title,
.elementor-editor-active .sc-invest-how.mod-service-details-guide .invest-how-item-label,
.elementor-editor-active .sc-invest-how.mod-service-details-guide .invest-how-item-inner-item,
.elementor-editor-active .sc-invest-how.mod-service-details-guide .invest-how-item-inner-txt,
.elementor-editor-active .sc-invest-how.mod-service-details-guide .invest-how-item-title .char {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  color: inherit !important;
  -webkit-text-fill-color: currentColor !important;
}

/* 4. Home prog FAQ — navy band */
.sc-home-prog.mod-service-details-prog {
  padding-top: clamp(8rem, 12vh, 14rem);
  padding-bottom: clamp(3.2rem, 5vh, 5.6rem);
  z-index: 2;
  background-color: #121929;
  color: #fff;
}

.sc-home-prog.mod-service-details-prog .home-prog-main-stick-wrap,
.sc-home-prog.mod-service-details-prog .home-prog-main-stick {
  position: relative;
  top: auto;
  overflow: visible;
}

.sc-home-prog.mod-service-details-prog .home-prog-main-stick {
  padding-top: 0;
}

.sc-home-prog.mod-service-details-prog .home-prog-main {
  padding-bottom: 0;
  overflow: visible;
}

.sc-home-prog.mod-service-details-prog .home-prog-img-wrap .img-basic,
.sc-home-prog.mod-service-details-prog .home-prog-img-wrap,
.sc-home-prog.mod-service-details-prog .home-prog-main {
  transform: none !important;
}

.sc-home-prog.mod-service-details-prog .home-prog-item-wrap {
  transform-style: preserve-3d;
}

.sc-home-prog.mod-service-details-prog .home-prog-main-list.mod-faq-accordion .home-prog-item {
  flex-direction: column;
  align-items: stretch;
  padding-top: 0;
  padding-bottom: 0;
}

.sc-home-prog.mod-service-details-prog .home-prog-main-list.mod-faq-accordion .home-prog-item-wrap {
  pointer-events: auto;
}

.sc-home-prog.mod-service-details-prog .home-prog-item-trigger {
  appearance: none;
  background: none;
  border: 0;
  width: 100%;
  margin: 0;
  padding: 3.9rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  text-align: left;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.sc-home-prog.mod-service-details-prog .home-prog-item-trigger:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.45);
  outline-offset: 4px;
}

.sc-home-prog.mod-service-details-prog .home-prog-item-meta {
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  flex-shrink: 0;
}

.sc-home-prog.mod-service-details-prog .home-prog-item-toggle {
  position: relative;
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
}

.sc-home-prog.mod-service-details-prog .home-prog-item-toggle::before,
.sc-home-prog.mod-service-details-prog .home-prog-item-toggle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.sc-home-prog.mod-service-details-prog .home-prog-item-toggle::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.sc-home-prog.mod-service-details-prog .home-prog-item-wrap.is-open .home-prog-item-toggle::after {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(90deg) scaleX(0);
}

.sc-home-prog.mod-service-details-prog .home-prog-item-panel {
  display: grid;
  grid-template-rows: 0fr;
  width: 100%;
  transition: grid-template-rows 0.4s ease;
}

.sc-home-prog.mod-service-details-prog .home-prog-item-wrap.is-open .home-prog-item-panel {
  grid-template-rows: 1fr;
}

.sc-home-prog.mod-service-details-prog .home-prog-item-panel-inner {
  overflow: hidden;
  width: 100%;
  max-width: none;
  color: rgba(255, 255, 255, 0.72);
}

.sc-home-prog.mod-service-details-prog .home-prog-item-wrap.is-open .home-prog-item-panel-inner {
  padding-bottom: 2.4rem;
}

.sc-home-prog.mod-service-details-prog .home-prog-item-panel-inner p:last-child {
  margin-bottom: 0;
}

.sc-home-prog.mod-service-details-prog .home-prog-title,
.sc-home-prog.mod-service-details-prog .home-prog-title .char {
  color: #fff;
  -webkit-text-fill-color: currentColor;
}

.sc-home-prog.mod-service-details-prog .home-prog-title .line {
  overflow: hidden;
  padding-bottom: 0.06em;
}

.sc-home-prog.mod-service-details-prog .home-prog-item-label {
  color: inherit;
}

.sc-home-prog.mod-service-details-prog .home-prog-item {
  color: rgba(255, 255, 255, 0.42);
  border-top-color: rgba(255, 255, 255, 0.22);
  transition: color 0.35s ease;
}

.sc-home-prog.mod-service-details-prog .home-prog-item.mod-last {
  border-bottom-color: rgba(255, 255, 255, 0.22);
}

.sc-home-prog.mod-service-details-prog .home-prog-item.is-active,
.sc-home-prog.mod-service-details-prog .home-prog-item-wrap.is-active .home-prog-item,
.sc-home-prog.mod-service-details-prog .home-prog-item-wrap.is-open .home-prog-item {
  color: #fff;
}

.sc-home-prog.mod-service-details-prog .home-prog-item .txt {
  color: inherit;
}

.sc-home-prog.mod-service-details-prog .home-prog-item-idx,
.sc-home-prog.mod-service-details-prog .home-prog-item .txt.txt-12 {
  color: inherit;
  opacity: 0.65;
}

.sc-home-prog.mod-service-details-prog .home-prog-img-wrap {
  height: auto;
  aspect-ratio: 3 / 4;
  max-height: 78vh;
  overflow: hidden;
}

.sc-home-prog.mod-service-details-prog .home-prog-img-wrap .img-basic {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sc-home-prog.mod-service-details-prog .btn.mod-outline {
  display: none;
}

[data-compass-namespace="serviceDetails"] .e-con:has(.mod-service-details-prog),
[data-barba-namespace="serviceDetails"] .e-con:has(.mod-service-details-prog),
[data-compass-namespace="serviceDetails"] .elementor-widget-compass-home-doc-prog:has(.mod-service-details-prog),
[data-compass-namespace="serviceDetails"] .elementor-widget-compass-home-doc-prog:has(.mod-service-details-prog) > .elementor-widget-container,
[data-barba-namespace="serviceDetails"] .elementor-widget-compass-home-doc-prog:has(.mod-service-details-prog),
[data-barba-namespace="serviceDetails"] .elementor-widget-compass-home-doc-prog:has(.mod-service-details-prog) > .elementor-widget-container {
  overflow: visible !important;
  background-color: #121929 !important;
}

.elementor-editor-active .sc-home-prog.mod-service-details-prog .home-prog-title,
.elementor-editor-active .sc-home-prog.mod-service-details-prog .home-prog-item,
.elementor-editor-active .sc-home-prog.mod-service-details-prog .home-prog-item-label,
.elementor-editor-active .sc-home-prog.mod-service-details-prog .home-prog-title .char {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  color: #fff !important;
  -webkit-text-fill-color: currentColor !important;
}

.elementor-editor-active .sc-home-prog.mod-service-details-prog .home-prog-item-panel {
  grid-template-rows: 1fr;
}

.elementor-editor-active .sc-home-prog.mod-service-details-prog .home-prog-item-panel-inner {
  padding-bottom: 2.4rem;
}

@media screen and (max-width: 991px) {
  .sc-nabt-main.mod-service-details-hero {
    padding-top: clamp(4rem, 8vh, 8rem);
    padding-bottom: clamp(6rem, 10vh, 10rem);
  }

  .sc-nabt-main.mod-service-details-hero .nabt-main-item.g-nabt-main-item-standalone {
    grid-row-gap: 4rem;
  }

  .sc-nabt-main.mod-service-details-hero .g-nabt-main-content-wrap-1,
  .sc-nabt-main.mod-service-details-hero .g-nabt-main-content-wrap-2,
  .sc-nabt-main.mod-service-details-hero .g-nabt-main-item-img-wrap-1,
  .sc-nabt-main.mod-service-details-hero .g-nabt-main-item-img-wrap-2 {
    grid-area: auto / 1 / auto / -1;
    align-self: stretch;
    max-width: none;
  }

  .sc-nabt-main.mod-service-details-hero .nabt-main-item-img.item-2,
  .sc-nabt-main.mod-service-details-hero .nabt-main-item-img.item-1 {
    max-height: none;
    aspect-ratio: 4 / 5;
  }

  .sc-invest-how.mod-service-details-guide .g-invest-how-item-wrap-2 {
    grid-area: span 1 / span 4 / span 1 / span 4;
  }

  .sc-invest-how.mod-service-details-guide .invest-how-item-img-wrap,
  .sc-invest-how.mod-service-details-guide .invest-how-item-img-wrap.mod-bot,
  .sc-invest-how.mod-service-details-guide .g-invest-how-item-img-wrap-2 {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 0;
    max-height: none;
    aspect-ratio: 16 / 10;
    margin-top: 3.2rem;
  }

  .sc-home-prog.mod-service-details-prog .home-prog-img-wrap {
    max-height: none;
    aspect-ratio: 4 / 5;
  }
}

@media screen and (max-width: 767px) {
  .sc-home-prog.mod-service-details-prog {
    padding-bottom: 2.4rem;
  }

  /* Hide name/role tags under hero image on all service detail pages */
  .sc-nabt-main.mod-service-details-hero .nabt-main-item-img-info,
  [data-compass-namespace="serviceDetails"] .sc-nabt-main.mod-service-details-hero .nabt-main-item-img-info,
  [data-barba-namespace="serviceDetails"] .sc-nabt-main.mod-service-details-hero .nabt-main-item-img-info {
    display: none !important;
  }

  /*
   * Mobile order for service-details hero:
   * Title → Image → Subtext → CTA
   */
  .sc-nabt-main.mod-service-details-hero .nabt-main-item.g-nabt-main-item-standalone {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    gap: 2.4rem;
    grid-template-columns: none !important;
  }

  .sc-nabt-main.mod-service-details-hero .nabt-main-content-wrap,
  .sc-nabt-main.mod-service-details-hero .g-nabt-main-content-wrap-1,
  .sc-nabt-main.mod-service-details-hero .g-nabt-main-content-wrap-2 {
    display: contents;
  }

  .sc-nabt-main.mod-service-details-hero .nabt-main-item-title {
    order: 1;
    margin-bottom: 0;
  }

  .sc-nabt-main.mod-service-details-hero .nabt-main-item-img-wrap,
  .sc-nabt-main.mod-service-details-hero .g-nabt-main-item-img-wrap-1,
  .sc-nabt-main.mod-service-details-hero .g-nabt-main-item-img-wrap-2 {
    order: 2;
    width: 100%;
  }

  .sc-nabt-main.mod-service-details-hero .nabt-main-item-sub {
    order: 3;
    max-width: 100%;
  }

  .sc-nabt-main.mod-service-details-hero .nabt-main-phone-actions {
    order: 4;
    margin-top: 0;
  }
}
