/* KinBridge closing "book a free assessment" card (#cta). Lava's own layout is kept: white section,
   rounded navy card, its label / heading / subtitle / gold button (copy edited in index.html + the page .mjs).
   kb-cta.js adds the second button and the home-visit photo + steps in the card's empty right half.
   (A full-screen, edge-to-edge version was tried on 27 Nov 2026 and dropped: the card looks better.)

   Breakpoints follow Framer's: >=1200 desktop, 810-1199 tablet, <810 phone. The card keeps Lava's size at every
   width: photo beside the text from 810 up, no photo on phones (as Lava). */

/* card: Lava's own size. Lava's "0%" art (2112x1920, hidden by kinbridge-overrides) set the card's height:
   it filled the width next to the text at that aspect ratio. The photo box takes exactly that height
   (100cqw = the card's inner width), minus a gap so the photo doesn't touch the text. */
#cta .framer-1jq2afw { container-type: inline-size; }
#cta .framer-15wa6dg { justify-content: center; }

/* buttons side by side under the heading group (Content Stack becomes a wrapping row) */
#cta .framer-1xmx6g8 { flex-flow: row wrap; align-items: center; gap: 12px; }
#cta .framer-1xmx6g8 > .framer-1fb1c9k { flex: 0 0 100%; margin-bottom: 40px; }   /* Lava's 52px to the button */

.kbc-btn2 {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 26px;
  box-sizing: border-box;
  border-radius: 39px;
  border: 1px solid rgb(255 255 255 / .38);
  color: #fff;
  text-decoration: none;
  font-family: "Rethink Sans", "Rethink Sans Placeholder", sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  -webkit-font-smoothing: antialiased;
  transition: border-color .25s ease, background-color .25s ease, color .25s ease;
}
.kbc-btn2 svg { width: 18px; height: 18px; flex: none; }
.kbc-btn2:hover { border-color: var(--kb-gold, #FFD600); color: var(--kb-navy, #142B6F); background-color: var(--kb-gold, #FFD600); }   /* Ritual's secondary hover */
.kbc-btn2:focus-visible { outline: 2px solid var(--kb-gold, #FFD600); outline-offset: 3px; }

/* ---- photo with the three steps ---- */
.kbc-visual {
  position: relative;
  flex: none;
  align-self: center;
  margin-left: auto !important;                /* Lava's desktop card packs to the left; keep the photo on the right edge */
  width: calc(100cqw - 496px - 56px);          /* desktop: Lava's 496px text column, 56px gap */
  height: calc((100cqw - 496px) * 1920 / 2112);
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  background: var(--kb-navy-deep, #142B6F);
  font-family: "Rethink Sans", "Rethink Sans Placeholder", sans-serif;
  -webkit-font-smoothing: antialiased;
}
.kbc-visual img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 30%;        /* keeps the mother, the doctor and the nurse in frame */
}
.kbc-steps {
  position: absolute;
  z-index: 1;
  left: 14px;
  right: 14px;
  bottom: 14px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  padding: 6px;
  list-style: none;
  border-radius: 14px;
  background: rgb(255 255 255 / .94);
  box-shadow: 0 10px 28px rgb(20 43 111 / .25);
}
.kbc-steps li {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  color: var(--kb-navy-ink, #142B6F);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
}
.kbc-steps li + li { box-shadow: inset 1px 0 0 var(--kb-line, #EAEEF0); }
.kbc-steps b {
  flex: none;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--kb-navy, #142B6F);
  color: var(--kb-gold, #FFD600);
  font-size: 12px;
  font-weight: 600;
}

/* ---- tablet: Lava gives the art half the card ---- */
@media (min-width: 810px) and (max-width: 1199.98px) {
  .kbc-visual { width: calc(50cqw - 32px); height: calc(50cqw * 1920 / 2112); }
  #cta .framer-15wa6dg { padding-right: 32px; box-sizing: border-box; }   /* 32px gap to the photo */
  .kbc-steps { grid-template-columns: 1fr; }
  .kbc-steps li + li { box-shadow: inset 0 1px 0 var(--kb-line, #EAEEF0); }
}

/* ---- phone: Lava hides the art, so the card is text + buttons only ---- */
@media (max-width: 809.98px) {
  .kbc-visual { display: none; }
  #cta .framer-1xmx6g8 > .framer-1fb1c9k { margin-bottom: 24px; }
  .kbc-btn2, #cta .framer-1xmx6g8 > .ssr-variant { flex: 1 1 100%; }
  .kbc-btn2 { justify-content: center; }
  #cta .framer-6h76p-container, #cta .framer-6h76p-container > a,
  #cta .framer-6h76p-container [data-framer-name="Button content"] { width: 100% !important; }
  #cta .framer-6h76p-container [data-framer-name="Button content"] { justify-content: center; }
}
