/* ============================================================
   app-cta-navy.css — BuddiesSpace App CTA (navy) section
   Figma node 55:1011 — file wpkxELWVlzeoRjthUL7RQ4
   ============================================================ */

/* ── Section shell ── */
.bs-app-cta-navy {
  position: relative;
  overflow: hidden;
  background-color: #21254a;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding-left: clamp(24px, 6.67vw, 96px);
  min-height: 538px;
}

/* ── Left: content column ── */
.bs-app-cta-navy__content {
  padding-top: clamp(60px, 6.94vw, 100px);
  padding-bottom: clamp(60px, 6.94vw, 100px);
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 1.31vw, 18.8px);
  width: clamp(300px, 43.13vw, 621px);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

/* ── Inner group: heading + sub (52px gap between them) ── */
.bs-app-cta-navy__text-group {
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 3.61vw, 52px);
  width: 100%;
}

.bs-app-cta-navy__heading {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: clamp(32px, 3.75vw, 54px);
  line-height: 1.3;
  color: #ffffff;
  margin: 0;
  letter-spacing: 0;
  text-transform: uppercase;
}

/* ── Sub: body + CTA (24px gap) ── */
.bs-app-cta-navy__sub {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.bs-app-cta-navy__body {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: clamp(16px, 1.53vw, 22px);
  line-height: 1.55;
  color: #ffffff;
  margin: 0;
  letter-spacing: 0;
}

.bs-app-cta-navy__cta {
  display: inline-block;
  background-color: #59acf8;
  color: #000000;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: clamp(16px, 1.39vw, 20px);
  line-height: normal;
  text-decoration: none;
  padding: 16px 32px;
  border-radius: 8px;
  align-self: flex-start;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}

.bs-app-cta-navy__cta:hover {
  opacity: 0.88;
  color: #000000;
  text-decoration: none;
}

/* ── Footnote ── */
.bs-app-cta-navy__footnote {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: clamp(14px, 1.25vw, 18px);
  line-height: 1.5;
  color: #ffffff;
  margin: 0;
}

/* ── Right: overflowing photo ── */
/*
 * The image-wrap is positioned absolute at the right edge so it bleeds
 * to the top-right corner of the section (overflow:hidden on parent clips it).
 * The inner <img> is sized to 176% of the wrap height starting at -26.57%
 * (matching Figma's h-[176.08%] top-[-26.57%]) so the physician's head is
 * visible above the section mid-line.
 */
.bs-app-cta-navy__image-wrap {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: clamp(280px, 36.74vw, 529px);
  overflow: hidden;
  pointer-events: none;
}

.bs-app-cta-navy__image-wrap img {
  position: absolute;
  left: 0;
  width: 100%;
  /* Bleed: 176% tall, offset up by 26.57% of container height */
  height: 176.08%;
  top: -26.57%;
  max-width: none;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* ── Responsive: tablet (≤ 1024px) ── */
@media (max-width: 1024px) {
  .bs-app-cta-navy {
    padding-left: clamp(24px, 4vw, 64px);
  }

  .bs-app-cta-navy__content {
    width: clamp(280px, 52vw, 560px);
  }

  .bs-app-cta-navy__image-wrap {
    width: clamp(240px, 40vw, 420px);
  }
}

/* ── Responsive: mobile (≤ 599px) ── */
@media (max-width: 599px) {
  .bs-app-cta-navy {
    flex-direction: column;
    padding-left: 0;
    min-height: unset;
    overflow: hidden;
  }

  /* On mobile the photo becomes a full-bleed background overlay */
  .bs-app-cta-navy__image-wrap {
    position: absolute;
    inset: 0;
    width: 100%;
    bottom: 0;
    opacity: 0.2;
  }

  .bs-app-cta-navy__image-wrap img {
    position: static;
    width: 100%;
    height: 100%;
    top: auto;
    object-fit: cover;
    object-position: center top;
  }

  .bs-app-cta-navy__content {
    padding: 64px 24px;
    width: 100%;
    gap: 20px;
    position: relative;
    z-index: 1;
  }

  .bs-app-cta-navy__text-group {
    gap: 28px;
  }

  .bs-app-cta-navy__cta {
    align-self: stretch;
    text-align: center;
    white-space: normal;
  }
}
