/* Block: cta-band. Markup: templates/modular/cta-band.html.twig
   V6: .cta (dark, with button) and .watercare (light, heading left / text right) */
.cta-band {
  position: relative;
  overflow: hidden;

  & .cta-band__inner { position: relative; z-index: 1; }
  & .cta-band__title { margin: 0; }
  & .cta-band__text { margin: 0; line-height: 1.75; }

  /* inverse button (only used here) */
  & .button--inverse {
    flex: none;
    border-color: #e9f7f9;
    background: #e9f7f9;
    color: var(--navy);
    &:hover { background: var(--white); }
  }
}

/* --- dark (V6 .cta) --- */
.cta-band--dark {
  background: #0b2d3b;
  color: var(--white);

  /* decorative rings, top right */
  &::after {
    content: '';
    position: absolute;
    top: -150px;
    right: -150px;
    width: 650px;
    height: 650px;
    border: 1px solid #53bdca3e;
    border-radius: 50%;
    box-shadow: 0 0 0 90px #53bdca10, 0 0 0 185px #53bdca08;
    pointer-events: none;
  }

  & .cta-band__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 45px;
    padding-block: 74px;
  }

  & .eyebrow { color: #83c8d5; }
  & .cta-band__title { margin-bottom: 14px; font-size: clamp(32px, 3.5vw, 47px); }
  & .cta-band__title em { color: #83c8d5; }
  & .cta-band__text { color: #b9d2dc; }

  @media (max-width: 800px) {
    & .cta-band__inner { flex-direction: column; align-items: flex-start; }
  }

  @media (max-width: 520px) {
    & .button--inverse { width: 100%; justify-content: space-between; }
  }
}

/* --- light (V6 .watercare) --- */
.cta-band--light {
  background: #ecf6f8;

  & .cta-band__inner {
    display: grid;
    grid-template-columns: 1fr .7fr;
    align-items: center;
    gap: 75px;
    padding-block: 65px;
  }

  & .cta-band__title { font-size: clamp(30px, 3.2vw, 40px); }
  & .cta-band__text { color: #4f6f7c; }
  & .button--inverse { grid-column: 1 / -1; justify-self: start; border-color: var(--navy); background: var(--navy); color: var(--white); }
  & .button--inverse:hover { background: var(--teal); border-color: var(--teal); }

  @media (max-width: 800px) {
    & .cta-band__inner { grid-template-columns: 1fr; gap: 25px; }
  }
}
