/* ---------- Local tokens ---------- */
:root {
  --pink-card: #fadde4;
  --pink-card-soft: #fce7ec;
  --green-step: #defae7;
  --yellow-step: #fff1b8;
  --stat-blue: #2d6fb3;
  --navy-grad: linear-gradient(197deg, #0f2c57 3.5%, #255a96 100%);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: 16px;
  color: var(--color-navy);
  margin-bottom: 16px;
}

.eyebrow-icon {
  width: 16px;
  height: 16px;
  display: block;
}

.eyebrow-lg {
  align-items: flex-start;
  font-size: clamp(24px, 4.5vw, 44px);
  line-height: 1.1;
}

.eyebrow-lg .eyebrow-icon {
  margin-top: 10px;
}

.section-title {
  font-size: clamp(26px, 4.5vw, 44px);
  font-weight: 500;
  line-height: 1.15;
  color: #101010;
  margin-bottom: 20px;
}

/* ================= STACKING SECTIONS (GSAP ScrollTrigger) ================= */
/* Each overlap step is TWO elements: an outer ".stack-panel" wrapper (the
   pin target — stays empty/unstyled so GSAP's pin transform never fights
   with anything) and one inner content section (the visible "card" — gets
   the opaque background, rounded top, shadow, min-height, and is the ONLY
   thing js/stack-scroll.js animates scale/opacity on). Never pin and
   animate-transform the same element. */
.stack-panel {
  position: relative;
}

.stats-strip-wrap {
  z-index: 1;
}

.stats-strip {
  min-height: 100vh;
  background: #fcfcfa;
}

/* ================= TRIMESTER TIMELINE ================= */
.trimester-wrap {
  z-index: 2;
}

.trimester-section {
  min-height: 100vh;
  background: #fff;
  border-radius: 40px 40px 0 0;
  box-shadow: 0 -20px 40px rgba(0, 0, 0, 0.06);
  padding: 100px max(40px, 5%) 20px;
}

.trimester-image {
  width: 100%;
}

.trimester-image img {
  width: 100%;
  display: block;
}

.trimester-weeks {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  margin-top: 12px;
}

.week-heart {
  position: relative;
  justify-self: center;
  width: 44px;
  height: 41px;
}

.week-heart-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.week-heart-num {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}

.week-heart-tooltip {
  position: absolute;
  bottom: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  width: 200px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0px 14px 34px 0px rgba(0, 0, 0, 0.18);
  padding: 14px 16px;
  text-align: left;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 20;
  pointer-events: none;
}

.week-heart-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 8px solid transparent;
  border-top-color: #fff;
}

.week-heart-tooltip strong {
  display: block;
  color: var(--color-navy);
  font-size: 14px;
  margin-bottom: 4px;
}

.week-heart-tooltip p {
  font-size: 12px;
  line-height: 1.5;
  color: var(--color-text-muted);
  margin: 0;
}

.week-heart:hover .week-heart-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.week-heart:first-child .week-heart-tooltip {
  left: 0;
  transform: translateX(0) translateY(8px);
}

.week-heart:first-child:hover .week-heart-tooltip {
  transform: translateX(0) translateY(0);
}

.week-heart:first-child .week-heart-tooltip::after {
  left: 16px;
  transform: none;
}

.week-heart-tooltip-end {
  left: auto;
  right: 0;
  transform: translateX(0) translateY(8px) !important;
}

.week-heart:hover .week-heart-tooltip-end {
  transform: translateX(0) translateY(0) !important;
}

.week-heart-tooltip-end::after {
  left: auto;
  right: 16px;
  transform: none;
}

.trimester-labels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
  text-align: center;
}

.trimester-title {
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 16px;
}

.trimester-1 .trimester-title { color: var(--color-blue-light); }
.trimester-2 .trimester-title { color: var(--stat-blue); }
.trimester-3 .trimester-title { color: var(--color-navy); }

.trimester-line {
  position: relative;
  height: 2px;
  margin: 0 auto 16px;
  width: 85%;
}

.trimester-1 .trimester-line { background: var(--color-blue-light); }
.trimester-2 .trimester-line { background: var(--stat-blue); }
.trimester-3 .trimester-line { background: var(--color-navy); }

.trimester-line::before,
.trimester-line::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: inherit;
  transform: translateY(-50%);
}

.trimester-line::before { left: 0; }
.trimester-line::after { right: 0; }

.trimester-weight {
  font-size: 15px;
  color: var(--color-text-muted);
}

@media (max-width: 900px) {
  .stats-strip {
    min-height: 0;
  }

  /* The image + hearts stay at a legible fixed width and scroll together
     horizontally instead of squeezing 10 columns into the viewport. */
  .trimester-section {
    min-height: 0;
    overflow-x: auto;
    border-radius: 28px 28px 0 0;
    padding: 60px 20px 20px;
  }

  .trimester-image,
  .trimester-weeks {
    min-width: 640px;
  }

  .trimester-labels {
    grid-template-columns: 1fr;
    gap: 32px;
    min-width: 320px;
  }
}

/* ================= FETAL DEVELOPMENT VIDEO ================= */
.fetal-video-section {
  padding: 60px max(40px, 5%) 0;
}

.fetal-video {
  width: 100%;
  max-height: 380px;
  display: block;
  border-radius: 24px;
  box-shadow: 0px 8px 24px 0px rgba(0, 0, 0, 0.08);
  background: #000;
  object-fit: cover;
}

@media (max-width: 900px) {
  .fetal-video-section {
    padding: 40px 20px 0;
  }

  .fetal-video {
    max-height: 260px;
  }
}

/* ================= STATS STRIP ================= */
.stats-strip {
  display: flex;
  align-items: center;
  gap: 60px;
  padding: 80px max(40px, 5%) 40px;
  flex-wrap: wrap;
}

.stats-strip .stat-photo {
  flex: 1 1 0;
  min-width: 320px;
  border-radius: 24px;
  overflow: hidden;
}

.stats-strip .stat-photo img {
  width: 100%;
  display: block;
  transition: transform 0.4s ease;
}

.stats-strip .stat-photo:hover img {
  transform: scale(1.06);
}

.stats-strip-text {
  flex: 1;
  min-width: 320px;
}

.stats-strip-text p {
  font-size: 18px;
  line-height: 1.7;
  color: #000;
  margin-bottom: 32px;
}

.stats-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.stats-strip .stat-item {
  flex: 1 1 160px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0px 8px 24px 0px rgba(0, 0, 0, 0.06);
  padding: 24px 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stats-strip .stat-item:hover {
  transform: translateY(-6px);
  box-shadow: 0px 14px 32px 0px rgba(0, 0, 0, 0.12);
}

.stat-item .stat-num {
  font-size: 40px;
  font-weight: 600;
  color: var(--stat-blue);
}

.stat-item .stat-num sup {
  font-size: 20px;
}

.stat-item .stat-num-sm {
  font-size: 28px;
  white-space: nowrap;
}

.stat-item p {
  font-size: 15px;
  color: rgba(0,0,0,0.6);
  margin-top: 4px;
}

/* ================= INTRO CARDS ================= */
.intro-section {
  max-width: var(--container-max);
  margin: 40px auto 0;
  padding: 64px 60px;
  background: #fff;
  border-radius: 40px;
  box-shadow: 0px 14px 84px 0px rgba(0, 0, 0, 0.05);
}

.intro-top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 48px;
}

.intro-top .section-title {
  max-width: 480px;
  margin-bottom: 0;
}

.intro-top-text {
  width: 480px;
  flex: none;
  margin-top: 42px;
}

.intro-top-text p {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(0,0,0,0.65);
  margin-bottom: 24px;
}

.intro-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.intro-card {
  border-radius: 24px;
  aspect-ratio: 1467 / 1758;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.intro-card:hover {
  transform: scale(1.04);
  box-shadow: 0px 14px 34px 0px rgba(0, 0, 0, 0.2);
}

.intro-card-body {
  padding: 0 24px 28px;
}

.intro-card-body h3 {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 8px;
}

.intro-card-body p {
  font-size: 14px;
  color: rgba(0,0,0,0.6);
  line-height: 1.5;
}

.video-banner {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
}

.video-banner img {
  width: 100%;
  display: block;
  object-fit: cover;
  aspect-ratio: 4653 / 1758;
  transition: transform 0.5s ease;
}

.video-banner:hover img {
  transform: scale(1.04);
}

.video-play {
  position: absolute;
  left: 40px;
  bottom: 40px;
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(15,44,87,0.35);
  backdrop-filter: blur(6px);
  border-radius: 50px;
  padding: 8px 28px 8px 8px;
  color: #fff;
  font-size: 15px;
  line-height: 1.4;
  transition: background 0.3s ease;
}

.video-banner:hover .video-play {
  background: rgba(15,44,87,0.55);
}

.video-play .play-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--navy-grad);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  transition: transform 0.3s ease;
}

.video-banner:hover .video-play .play-circle {
  transform: scale(1.1);
}

/* ================= NUMBERED BLOB GRID ================= */
.numbered-section {
  margin: 100px auto 0;
  padding: 64px 40px;
}

.numbered-grid {
  display: flex;
  gap: 20px;
  align-items: stretch;
}

.numbered-shape-wrap {
  position: relative;
  flex: 0 0 68%;
  min-width: 0;
  aspect-ratio: 964 / 770;
  border-radius: 24px;
  overflow: hidden;
}

.numbered-shape-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 24px;
  transition: transform 0.4s ease;
}

.numbered-shape-wrap:hover .numbered-shape-img {
  transform: scale(1.04);
}

.shape-num {
  position: absolute;
  font-size: 28px;
  font-weight: 500;
  white-space: nowrap;
}

.shape-num.n01 { left: 41.8%; top: 4%; color: #fff; }
.shape-num.n02 { left: 94.1%; top: 4%; color: #101010; }
.shape-num.n03 { left: 41.1%; top: 53.9%; color: #101010; }
.shape-num.n04 { left: 93.6%; top: 55.6%; color: #fff; }

.shape-text {
  position: absolute;
  width: 44%;
}

.shape-text h3 {
  font-size: 26px;
  font-weight: 500;
  margin-bottom: 10px;
}

.shape-text p {
  font-size: 16px;
  line-height: 1.55;
  opacity: 0.85;
}

.shape-text.n01 { left: 3.3%; top: 30%; color: #fff; }
.shape-text.n02 { left: 53.7%; top: 30%; color: #101010; }
.shape-text.n03 { left: 3.1%; top: 80%; color: #101010; }
.shape-text.n04 { left: 53.7%; top: 80%; color: #fff; }

.numbered-cta {
  flex: 1;
  min-width: 0;
  border-radius: 24px;
  background: linear-gradient(-43deg, rgba(200, 247, 215, 0) 20%, rgb(200, 247, 215) 95%);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
}

.numbered-cta .section-title {
  font-size: 30px;
  margin: 16px 0 20px;
}

.numbered-cta p {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(0,0,0,0.65);
  margin-bottom: 16px;
}

.numbered-cta .btn-pill {
  margin-top: auto;
  align-self: flex-start;
}

.numbered-cta-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

.numbered-cta-foot img {
  height: 32px;
}

.numbered-cta-foot span {
  font-size: 13px;
  color: rgba(0,0,0,0.6);
}

/* ================= TEXT + BENTO ================= */
.bento-section {
  margin: 100px auto 0;
  padding: 64px 56px;
  display: flex;
  gap: 60px;
  align-items: flex-end;
  background: #fff;
  border-radius: 50px;
  box-shadow: 0px 14px 84px 0px rgba(0, 0, 0, 0.05);
}

.bento-text {
  flex: 0 0 480px;
}

.bento-text hr {
  border: none;
  border-top: 1px solid var(--color-border-soft);
  margin: 28px 0;
}

.bento-text p {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(0,0,0,0.65);
}

.bento-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 20px;
}

.bento-pink-card {
  grid-column: 1;
  position: relative;
  border-radius: 24px;
  overflow: hidden;
}

.bento-pink-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.bento-pink-card:hover img {
  transform: scale(1.06);
}

.bento-pink-card-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 20px 24px 28px;
}

.bento-pink-card-body h3 {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 6px;
  color: #101010;
}

.bento-pink-card-body p {
  font-size: 14px;
  color: rgba(0,0,0,0.6);
}

.bento-side {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.bento-side-photo {
  border-radius: 24px;
  overflow: hidden;
}

.bento-side img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 24px;
  transition: transform 0.4s ease;
}

.bento-side-photo:hover img {
  transform: scale(1.08);
}

.bento-navy {
  border-radius: 24px;
  background: #1f478f;
  color: #fff;
  display: flex;
  align-items: flex-start;
  padding: 32px 28px;
  font-size: 18px;
  font-weight: 500;
  flex: 1;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bento-navy:hover {
  transform: translateY(-4px);
  box-shadow: 0px 14px 30px 0px rgba(31, 71, 143, 0.35);
}

/* ================= FULL BANNER ================= */
.full-banner {
  margin: 60px auto 0;
  border-radius: 40px;
  overflow: hidden;
}

.full-banner img {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.full-banner:hover img {
  transform: scale(1.03);
}

/* ================= JOURNEY SPLIT (speech-bubble cards) ================= */
.journey-section-v2 {
  margin: 100px auto 0;
  padding: 20px 40px 64px;
}

.journey-shape-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4647 / 3591;
}

.journey-shape-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.journey-shape-text {
  position: absolute;
  left: 1%;
  top: 2%;
  width: 40%;
}

.journey-shape-text p {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(0,0,0,0.65);
  margin: 20px 0 0;
}

.journey-shape-quote {
  position: absolute;
  left: 52%;
  top: 10%;
  width: 42%;
  height: 26%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
}

.journey-shape-quote p {
  color: #fff;
  font-size: clamp(20px, 2vw, 30px);
  line-height: 1.5;
}

.journey-quote-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.journey-quote-author img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
}

.journey-quote-author span {
  font-size: 16px;
  opacity: 0.85;
}

.journey-shape-stats {
  position: absolute;
  left: 3.2%;
  right: 58.9%;
  bottom: 4.5%;
  display: flex;
  padding: 20px 0;
}

.journey-shape-stats .stat-item {
  flex: 1;
  text-align: center;
}

.journey-shape-info {
  position: absolute;
  left: 48.5%;
  right: 0;
  top: 41%;
  bottom: 34%;
  padding: 28px 32px;
  overflow: auto;
}

.journey-info-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--color-border-soft);
  padding-bottom: 20px;
  margin-bottom: 20px;
}

.journey-info-head h3 {
  font-size: 20px;
  font-weight: 500;
}

.journey-steps {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.journey-steps span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
}

.journey-steps .step-dot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--color-navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
}

.journey-shape-info p {
  font-size: 14px;
  color: rgba(0,0,0,0.6);
  line-height: 1.6;
}

/* ================= APPOINTMENT FORM ================= */
.appointment-section {
  position: relative;
  margin: 100px auto 0;
  padding: 64px 40px 100px;
  overflow: hidden;
}

.appointment-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: stretch;
}

.appointment-text .eyebrow {
  font-weight: 600;
}

.appointment-text p {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(0,0,0,0.65);
  margin: 20px 0 36px;
  max-width: 560px;
}

.step-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.step-card {
  position: relative;
  border-radius: 24px;
  padding: 24px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-card:hover {
  transform: translateY(-6px);
  box-shadow: 0px 16px 32px 0px rgba(0, 0, 0, 0.12);
}

.step-card.pink { background: #ffe0ea; }
.step-card.green { background: var(--green-step); }
.step-card.yellow { background: var(--yellow-step); }
.step-card.navy { background: #1f478f; color: #fff; }

.step-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #5aa8f7;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: auto;
}

.step-num {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 14px;
  font-weight: 600;
}

.step-card h4 {
  font-size: 17px;
  font-weight: 500;
  margin: 20px 0 6px;
}

.step-card p {
  font-size: 13px;
  line-height: 1.5;
  opacity: 0.85;
}

.step-card.navy p {
  color: rgba(255,255,255,0.8);
}

.booking-form {
  background: var(--color-navy);
  border-radius: 32px;
  padding: 32px 32px 64px;
  color: #fff;
}

.booking-form h3 {
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 18px;
}

.form-field label {
  display: block;
  font-size: 13px;
  opacity: 0.75;
  margin-bottom: 6px;
}

.form-field input,
.form-field textarea {
  width: 100%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 14px;
  padding: 14px 16px;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-blue-light);
  background: rgba(255,255,255,0.16);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(255,255,255,0.5);
}

.form-field textarea {
  resize: none;
  height: 90px;
}

.booking-form .submit-btn {
  width: 100%;
  margin-top: 8px;
  padding: 18px;
  border-radius: var(--radius-pill);
  background: var(--color-blue-light);
  color: #fff;
  font-weight: 500;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.booking-form .submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0px 12px 26px 0px rgba(77, 184, 232, 0.4);
}

.submit-btn .arrow-circle {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease;
}

.booking-form .submit-btn:hover .arrow-circle {
  transform: translateX(4px);
}

/* ================= EXAM SPLIT ================= */
.exam-section-v2 {
  position: relative;
  margin: 40px auto 0;
  padding: 64px 40px;
}

.exam-shape-img {
  display: block;
  width: 100%;
  height: auto;
}

.exam-text {
  position: absolute;
  left: 58%;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
}

.exam-text p {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(0,0,0,0.65);
  margin: 20px 0 28px;
}

.exam-avatars {
  display: flex;
  align-items: center;
  gap: 12px;
}

.exam-avatars img {
  height: 32px;
  border-radius: 20px;
}

.exam-avatars span {
  font-size: 14px;
  color: rgba(0,0,0,0.6);
}

/* ================= TESTIMONIAL GRID ================= */
.testimonial-section {
  margin: 40px auto 0;
  padding: 40px 40px 100px;
  text-align: center;
}

.testimonial-section .section-title {
  margin: 0 auto 48px;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: left;
}

.testimonial-card {
  border-radius: 28px;
  overflow: hidden;
  background: var(--pink-card-soft);
  display: flex;
  flex-direction: column;
  padding: 12px;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: 0px 18px 40px 0px rgba(0, 0, 0, 0.1);
}

.testimonial-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
  border-radius: 20px;
  transition: transform 0.4s ease;
}

.testimonial-card:hover img {
  transform: scale(1.02);
}

.testimonial-card-body {
  padding: 20px 12px 12px;
}

.testimonial-card-body h3 {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 8px;
}

.testimonial-card-body p {
  font-size: 14px;
  color: rgba(0,0,0,0.6);
  line-height: 1.5;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1100px) {
  .intro-card-grid,
  .step-grid,
  .testimonial-grid { grid-template-columns: 1fr; }
  .bento-section,
  .appointment-grid { grid-template-columns: 1fr; flex-direction: column; }
  .numbered-grid { flex-direction: column; }
  .bento-grid { grid-template-columns: 1fr; }
  .bento-pink-card, .bento-side { grid-column: 1; }
  .intro-top { flex-direction: column; }

  /* Shape-wraps rely on absolute overlays sized for a wide desktop aspect
     ratio; below 1100px there isn't room for the text, so drop to a plain
     stacked flow instead of overlaying it on the image. */
  .numbered-shape-wrap {
    position: static;
    aspect-ratio: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .numbered-shape-img {
    position: static;
    width: 100%;
    height: auto;
    aspect-ratio: 964 / 770;
  }
  .shape-num {
    position: static;
    color: var(--color-navy) !important;
    font-size: 24px;
  }
  .shape-text {
    position: static;
    width: 100%;
    color: #101010 !important;
  }

  .journey-shape-wrap {
    position: static;
    aspect-ratio: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  .journey-shape-img {
    position: static;
    width: 100%;
    height: auto;
    border-radius: 24px;
  }
  .journey-shape-text,
  .journey-shape-quote,
  .journey-shape-stats,
  .journey-shape-info {
    position: static;
    width: 100%;
    height: auto;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    padding: 0;
    overflow: visible;
  }
  .journey-shape-quote {
    background: var(--color-navy);
    color: #fff;
    padding: 24px;
    border-radius: 24px;
  }

  .exam-text {
    position: static;
    width: 100%;
    left: auto;
    right: auto;
    top: auto;
    transform: none;
    margin-top: 24px;
  }
}

/* Keep homepage at its original width */
:root { --container-max: 1549px; }

/* Smaller Why Q + Philosophy sections */
.numbered-section.container, .journey-section-v2.container { max-width: 1240px; }

/* Philosophy section: fit text inside smaller shapes */
@media (min-width: 901px) {
  .journey-section-v2 .section-title { font-size: 40px; }
  .journey-shape-text p { font-size: 15px; line-height: 1.6; margin-top: 14px; }
  .journey-shape-text { width: 44%; }
  .journey-shape-quote { top: 5%; height: 34%; justify-content: center; gap: 18px; }
  .journey-shape-quote p { font-size: 22px; line-height: 1.45; }
  .journey-quote-author span { font-size: 14px; }
  .journey-shape-info { overflow: hidden; padding: 20px 28px; top: 40%; bottom: 33%; }
  .journey-info-head { padding-bottom: 12px; margin-bottom: 12px; }
  .journey-info-head h3 { font-size: 18px; }
  .journey-info-head .btn-pill { padding: 10px 22px; font-size: 14px; }
  .journey-steps { margin-bottom: 10px; gap: 18px; }
  .journey-steps .step-dot { width: 28px; height: 28px; }
  .journey-shape-info p { font-size: 14px; line-height: 1.55; }
}

/* Numbered cards: keep text neatly inside each shape */
@media (min-width: 901px) {
  .shape-text { width: 40%; }
  .shape-text h3 { font-size: 22px; margin-bottom: 8px; }
  .shape-text p { font-size: 14px; line-height: 1.5; }
  .shape-text.n01 { top: auto; bottom: 57%; }
  .shape-text.n02 { top: auto; bottom: 54%; }
  .shape-text.n03, .shape-text.n04 { top: auto; bottom: 6%; }
  .shape-num { font-size: 24px; }
  .shape-num.n02 { left: auto; right: 4%; }
  .shape-num.n04 { left: auto; right: 4%; }
}
@media (max-width: 700px) {
  section, .section { padding-left: 20px !important; padding-right: 20px !important; }
}

/* ---------- Unified vertical rhythm between home sections ---------- */
body > section:not(.hero):not(.full-banner) { margin-top: 0 !important; margin-bottom: 0 !important; padding-top: 56px !important; padding-bottom: 56px !important; }
body > section.fetal-video-section { padding-top: 72px !important; padding-bottom: 24px !important; }
body > section.exam-section-v2 { padding-top: 24px !important; padding-bottom: 24px !important; }
.site-footer { margin-top: 56px; }
@media (max-width: 700px) {
  body > section:not(.hero):not(.full-banner) { padding-top: 36px !important; padding-bottom: 36px !important; }
  body > section.fetal-video-section { padding-top: 48px !important; padding-bottom: 12px !important; }
  body > section.exam-section-v2 { padding-top: 12px !important; padding-bottom: 12px !important; }
  .site-footer { margin-top: 36px; }
}

/* Hero: give the headline room to breathe */
.hero-content h1 { margin-bottom: 28px; }
.hero-content p { margin: 0 0 28px; }
.hero-content .btn-pill { margin-top: 0; }
@media (max-width: 700px) {
  .hero-content h1 { margin-bottom: 18px; }
  .hero-content p { margin-bottom: 20px; }
}

/* ---------- Trimester: less empty space at the top ---------- */
.trimester-section { padding-top: 40px !important; }

/* ---------- Full-width videos ---------- */
body > section.fetal-video-section,
body > section.wide-video-section { max-width: none !important; margin: 0 max(40px, 2%) !important; padding: 56px 0 !important; }
.fetal-video { max-height: none; aspect-ratio: 21 / 9; border-radius: 40px; }
.wide-video-section .video-banner { border-radius: 40px; }
.video-banner-media { width: 100%; display: block; aspect-ratio: 21 / 9; object-fit: cover; background: #000; }
@media (max-width: 700px) {
  body > section.fetal-video-section,
  body > section.wide-video-section { margin: 0 12px !important; padding: 36px 0 !important; }
  .fetal-video, .video-banner-media { aspect-ratio: 16 / 10; max-height: none; border-radius: 24px; }
  .wide-video-section .video-banner { border-radius: 24px; }
  .video-play { left: 14px; bottom: 14px; font-size: 12px; padding: 6px 16px 6px 6px; }
  .video-play .play-circle { width: 36px; height: 36px; }
}

/* ---------- "Your health journey" heading closer to its text ---------- */
.intro-top { gap: 24px; margin-bottom: 36px; }
.intro-top-text { margin-top: 12px; }
@media (max-width: 900px) {
  .intro-top { gap: 12px; }
  .intro-top-text { margin-top: 0; width: auto; }
}
.trimester-section { min-height: auto !important; padding-bottom: 40px !important; }

/* Mobile: trimester picture fits the screen; videos go edge to edge */
@media (max-width: 900px) {
  .trimester-section { overflow-x: visible !important; padding-left: 12px !important; padding-right: 12px !important; }
  .trimester-image, .trimester-weeks { min-width: 0 !important; width: 100%; }
  .trimester-weeks { gap: 2px; }
  .week-heart { width: 100%; max-width: 30px; height: auto; aspect-ratio: 32 / 29; }
  .week-heart-svg { width: 100%; height: 100%; }
  .week-heart-num { font-size: 10px !important; }
  .trimester-labels { min-width: 0 !important; }
  body > section.fetal-video-section,
  body > section.wide-video-section { margin: 0 !important; padding: 24px 0 !important; }
  .fetal-video, .video-banner-media { width: 100% !important; aspect-ratio: 4 / 3 !important; max-height: none !important; border-radius: 0 !important; box-shadow: none; }
  .wide-video-section .video-banner { border-radius: 0 !important; }
}
@media (max-width: 900px) {
  .week-heart:nth-child(n+8) .week-heart-tooltip { left: auto !important; right: 0 !important; transform: none !important; }
  .week-heart:nth-child(-n+3) .week-heart-tooltip { left: 0 !important; right: auto !important; transform: none !important; }
}
