/**
 * Shared page-section architecture.
 * Outer shells own viewport-wide backgrounds; inner shells own the content rail.
 */

.nw-page-hero {
  --nw-page-hero-ratio: 1280 / 248;
  --nw-page-hero-min-height: 248px;
  --nw-page-hero-max-height: 310px;
  --nw-page-hero-tablet-height: 430px;
  --nw-page-hero-mobile-height: 489px;
  position: relative;
  box-sizing: border-box;
  display: flex;
  width: 100%;
  margin-top: 40px !important;
  min-height: var(--nw-page-hero-min-height);
  max-height: var(--nw-page-hero-max-height);
  aspect-ratio: var(--nw-page-hero-ratio);
  align-items: center;
  overflow: hidden;
  border-radius: 20px;
}

.nw-page-hero--content {
  --nw-page-hero-ratio: 1280 / 238;
  --nw-page-hero-min-height: 238px;
  --nw-page-hero-max-height: 298px;
  --nw-page-hero-tablet-height: 360px;
  --nw-page-hero-mobile-height: 455px;
}

.nw-page-hero--contact {
  --nw-page-hero-ratio: 1280 / 250;
  --nw-page-hero-min-height: 250px;
  --nw-page-hero-max-height: 313px;
}

.nw-final-cta {
  position: relative;
  box-sizing: border-box;
  width: 100vw !important;
  max-width: none !important;
  margin-right: calc(50% - 50vw) !important;
  margin-left: calc(50% - 50vw) !important;
  padding: 0 !important;
  overflow: hidden;
  isolation: isolate;
  border-radius: 0 !important;
}

.nw-final-cta__inner {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  display: flex;
  width: var(--nw-container-width, min(1600px, calc(100vw - 40px))) !important;
  max-width: var(--nw-container, 1600px) !important;
  min-height: inherit;
  margin-right: auto !important;
  margin-left: auto !important;
  padding-block: var(--nw-final-cta-padding-block, 54px) !important;
  padding-inline: var(--nw-final-cta-padding-inline, 20px) !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--nw-final-cta-gap, 0);
  text-align: center;
}

.nw-final-cta :is(h2, h3, p) {
  color: #fff !important;
}

.nw-final-cta :is(h2, h3, p, a, button) {
  position: relative;
  z-index: 1;
}

/**
 * Shared decorative geometry for service-page CTAs.
 * The SVGs are the exported Figma ellipses; their positions intentionally
 * remain fixed even when the copy changes.
 */
.nw-service-cta-pattern,
.nw-service-final-pattern {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.nw-service-cta-pattern::before,
.nw-service-cta-pattern::after,
.nw-service-final-pattern::before,
.nw-service-final-pattern::after {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
  border-radius: 50%;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.nw-service-cta-pattern::before,
.nw-service-cta-pattern::after {
  width: 265px;
  height: 265px;
  background-image: url("../icons/film-cta-circle.svg");
}

.nw-service-cta-pattern::before {
  top: 143px;
  left: -72px;
}

.nw-service-cta-pattern::after {
  top: -75px;
  left: 481px;
}

.nw-service-final-pattern::before {
  top: -272.635px;
  left: calc(50% + 319px);
  width: 480px;
  height: 480px;
  background-image: url("../icons/film-final-circle-large.svg");
}

.nw-service-final-pattern::after {
  top: 157px;
  left: -32px;
  width: 265px;
  height: 265px;
  background-image: url("../icons/film-final-circle-small.svg");
}

.nw-service-cta-pattern > *,
.nw-service-final-pattern > * {
  position: relative;
  z-index: 1;
}

@media (max-width: 991px) {
  .nw-page-hero {
    min-height: var(--nw-page-hero-tablet-height);
    max-height: none;
    aspect-ratio: auto;
  }
}

@media (max-width: 767px) {
  .nw-page-hero {
    min-height: var(--nw-page-hero-mobile-height);
  }

  .nw-final-cta__inner {
    --nw-final-cta-padding-block: 44px;
  }

  .nw-service-final-pattern::before {
    top: -236.295px;
    left: 203px;
    width: 346px;
    height: 346px;
    background-image: url("../icons/film-final-circle-mobile-large.svg");
  }

  .nw-service-final-pattern::after {
    top: 244.705px;
    left: -122px;
    width: 265px;
    height: 265px;
    background-image: url("../icons/film-final-circle-mobile-small.svg");
  }
}
