/* ==========================================================================
   My Womb Journey — Testimonials slider + image gallery
   Used on the homepage and service pages. Depends on base.css tokens.
   ========================================================================== */

.t-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(45% 60% at 0% 20%, rgba(232, 225, 240, 0.9), transparent 70%),
    radial-gradient(40% 50% at 100% 90%, rgba(226, 235, 215, 0.85), transparent 70%),
    var(--white);
}
.t-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-5);
  margin-bottom: var(--space-6);
}
.t-head h2 { margin-bottom: 0.4rem; }
.t-nav { display: flex; gap: 0.6rem; }
.t-nav button {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--white);
  color: var(--purple-700);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: background-color var(--t), color var(--t), transform var(--t);
}
.t-nav button:hover { background: var(--purple-700); color: var(--white); transform: scale(1.06); }
.t-nav svg { width: 22px; height: 22px; }

.t-slider__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 3rem) / 3);
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 0.75rem 0.25rem 1.5rem;
}
.t-slider__track::-webkit-scrollbar { display: none; }

.t-card {
  position: relative;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 2rem 1.8rem 1.6rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  scroll-snap-align: start;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.t-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--lavender-300); }
.t-card__quote {
  position: absolute;
  top: 1.4rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  fill: var(--lavender-100);
  transition: fill var(--t), transform var(--t);
}
.t-card:hover .t-card__quote { fill: var(--green-100); transform: rotate(-8deg) scale(1.1); }
.t-card__stars { display: flex; gap: 2px; margin-bottom: 1rem; }
.t-card__stars svg { width: 18px; height: 18px; fill: var(--line); }
.t-card__stars svg.on { fill: #e0b54a; }
.t-card blockquote {
  flex: 1;
  margin: 0 0 1.1rem;
  font-family: var(--font-heading);
  font-size: 1.22rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--ink);
}
.t-card__service {
  align-self: flex-start;
  margin-bottom: 1.1rem;
  padding: 0.3rem 0.75rem;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--green-700);
  background: var(--green-100);
  border-radius: var(--radius-pill);
}
.t-card figcaption {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding-top: 1.1rem;
  font-size: 0.82rem;
  line-height: 1.35;
  color: var(--muted);
  border-top: 1px dashed var(--line);
}
.t-card figcaption strong { display: block; font-size: 0.98rem; color: var(--ink); }
.t-card__avatar {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-weight: 700;
  color: var(--white);
  background: linear-gradient(135deg, var(--lavender-500), var(--mauve-500));
}
.t-card:nth-child(3n+2) .t-card__avatar { background: linear-gradient(135deg, var(--green-500), var(--green-700)); }
.t-card:nth-child(3n) .t-card__avatar { background: linear-gradient(135deg, var(--mauve-500), var(--wine)); }


.t-slider__dots { display: flex; justify-content: center; gap: 0.5rem; margin-top: 0.5rem; }
.t-slider__dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: var(--radius-pill);
  background: var(--lavender-300);
  opacity: 0.5;
  transition: width var(--t), opacity var(--t), background-color var(--t);
}
.t-slider__dots button.is-active { width: 30px; opacity: 1; background: var(--purple-700); }

@media (max-width: 1024px) { .t-slider__track { grid-auto-columns: calc((100% - 1.5rem) / 2); } }
@media (max-width: 640px) {
  .t-head { flex-direction: column; align-items: flex-start; }
  .t-slider__track { grid-auto-columns: 88%; }
}

/* --------------------------------------------------------------------------
   Image gallery (masonry-style)
   -------------------------------------------------------------------------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 200px;
  gap: 1rem;
}
.gallery__item {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--lavender-100);
  box-shadow: var(--shadow-sm);
}
.gallery__item--wide { grid-column: span 2; grid-row: span 2; }
.gallery__item--tall { grid-row: span 2; }
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
}
.gallery__item:hover img { transform: scale(1.08); }
.gallery__item figcaption {
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.75rem;
  padding: 0.55rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  border-radius: var(--radius-pill);
  transform: translateY(140%);
  transition: transform 0.5s var(--ease);
}
.gallery__item:hover figcaption,
.gallery__item:focus-within figcaption { transform: none; }

@media (max-width: 900px) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 180px; }
}
@media (max-width: 520px) {
  .gallery { grid-auto-rows: 150px; gap: 0.6rem; }
  .gallery__item figcaption { transform: none; font-size: 0.75rem; padding: 0.4rem 0.7rem; }
}

/* ==========================================================================
   "Hey mom" — talk-to-us CTA with founder photo + video-call phone
   ========================================================================== */
.talk-cta { padding-block: clamp(3rem, 2rem + 4vw, 5.5rem); }
.talk-cta__box {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: end;
  gap: 2rem;
  min-height: 400px;
  padding: clamp(2rem, 1.5rem + 3vw, 4rem) clamp(1.5rem, 1rem + 4vw, 5rem) 0;
  background:
    radial-gradient(60% 90% at 85% 100%, rgba(178, 156, 205, 0.45), transparent 70%),
    linear-gradient(135deg, #f6f2fb 0%, var(--lavender-100) 100%);
  border: 2px solid var(--lavender-300);
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.talk-cta__box::before { /* soft rings */
  content: "";
  position: absolute;
  right: 18%;
  top: -140px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  border: 1px solid rgba(146, 115, 185, 0.25);
  box-shadow: 0 0 0 40px rgba(255, 255, 255, 0.25), 0 0 0 80px rgba(255, 255, 255, 0.15);
  pointer-events: none;
}
.talk-cta__content { position: relative; z-index: 1; align-self: center; padding-bottom: clamp(2rem, 1.5rem + 3vw, 4rem); }
.talk-cta__content h2 {
  font-family: "Acme", var(--font-heading);
  font-weight: 400;
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3.2rem);
  line-height: 1.15;
  color: var(--purple-700);
}
.talk-cta__content h2 span { display: block; color: var(--wine); }
.talk-cta__content p { max-width: 520px; margin-top: 1rem; font-size: var(--fs-lead); }
.talk-cta__actions { margin-top: 1.8rem; }
.talk-cta__actions .btn--talk {
  --btn-bg: var(--white);
  --btn-color: var(--purple-700);
  --btn-border: var(--purple-700);
  min-width: 240px;
  border-radius: var(--radius);
}
.talk-cta__actions .btn--talk:hover { --btn-bg: var(--purple-700); --btn-color: var(--white); }
.talk-cta__content .talk-cta__note { display: flex; align-items: center; gap: 0.5rem; margin-top: 1rem; font-size: 0.85rem; color: var(--muted); }
.talk-cta__note i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #3ccf6e;
  box-shadow: 0 0 0 0 rgba(60, 207, 110, 0.5);
  animation: live-dot 1.8s ease-out infinite;
}
@keyframes live-dot { to { box-shadow: 0 0 0 10px rgba(60, 207, 110, 0); } }

/* Right side: founder + phone */
.talk-cta__media { position: relative; height: 100%; min-height: 360px; }
.talk-cta__person {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 66%;
  aspect-ratio: 3 / 4;
  border-radius: 200px 200px 0 0;
  overflow: hidden;
  background: var(--white);
  border: 6px solid var(--white);
  border-bottom: 0;
  box-shadow: var(--shadow-lg);
}
.talk-cta__person img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; }
.talk-cta__name {
  position: absolute;
  left: -6%;
  bottom: 18%;
  z-index: 3;
  padding: 0.55rem 1rem;
  font-size: 0.8rem;
  line-height: 1.3;
  color: var(--muted);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  animation: pg-float2 6s ease-in-out infinite;
}
.talk-cta__name strong { display: block; font-size: 0.92rem; color: var(--wine); }

.phone {
  position: absolute;
  right: 0;
  bottom: 22px;
  z-index: 2;
  width: 46%;
  max-width: 210px;
  aspect-ratio: 9 / 18;
  padding: 8px;
  background: #1d1622;
  border-radius: 34px;
  box-shadow: 0 30px 50px rgba(42, 29, 57, 0.35);
  transform: rotate(5deg);
  animation: phone-bob 6s ease-in-out infinite;
}
@keyframes phone-bob { 0%, 100% { transform: rotate(5deg) translateY(0); } 50% { transform: rotate(4deg) translateY(-10px); } }
@keyframes pg-float2 { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.phone__screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 27px;
  overflow: hidden;
  background: var(--lavender-100);
}
.phone__screen img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 35%; }
.phone__screen .phone__main { object-position: 46% 30%; }
.phone__notch {
  position: absolute;
  top: 8px;
  left: 50%;
  z-index: 2;
  width: 34%;
  height: 16px;
  border-radius: 10px;
  background: #1d1622;
  transform: translateX(-50%);
}
.phone__tag {
  position: absolute;
  top: 32px;
  left: 10px;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.6rem;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--white);
  background: rgba(29, 22, 34, 0.55);
  border-radius: var(--radius-pill);
}
.phone__tag i { width: 6px; height: 6px; border-radius: 50%; background: #ff4d4d; animation: twink 1.2s ease-in-out infinite; }
@keyframes twink { 50% { opacity: 0.3; } }
.phone__self {
  position: absolute;
  top: 30px;
  right: 10px;
  width: 30%;
  aspect-ratio: 3 / 4;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid var(--white);
}
.phone__self img { object-position: 50% 25%; }
.phone__bar {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 12px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0.45rem 0.3rem;
  background: rgba(29, 22, 34, 0.75);
  border-radius: var(--radius-pill);
}
.phone__bar span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; color: var(--white); }
.phone__bar span.end { width: 30px; height: 30px; background: #e5484d; }
.phone__bar svg { width: 12px; height: 12px; }

@media (max-width: 900px) {
  .talk-cta__box { grid-template-columns: 1fr; text-align: left; }
  .talk-cta__content { padding-bottom: 0; }
  .talk-cta__media { min-height: 340px; max-width: 420px; width: 100%; margin-inline: auto; }
}
@media (max-width: 480px) {
  .talk-cta__media { min-height: 300px; }
  .talk-cta__actions .btn--talk { min-width: 0; width: 100%; }
  .talk-cta__name { left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .phone, .talk-cta__name, .talk-cta__note i, .phone__tag i { animation: none !important; }
}

/* Real reviews — "view original message" button + lightbox */
.t-card blockquote { font-size: 1.08rem; }
.t-card__proof {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: -0.4rem 0 1.1rem;
  padding: 0.35rem 0.8rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #128c4b;
  background: #e7f8ee;
  border-radius: var(--radius-pill);
  transition: background-color var(--t);
}
.t-card__proof:hover { background: #d2f2df; }
.t-card__proof svg { width: 14px; height: 14px; }
.t-proof {
  position: fixed;
  inset: 0;
  z-index: 320;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(42, 29, 57, 0.6);
  backdrop-filter: blur(4px);
}
.t-proof[hidden] { display: none; }
.t-proof__panel {
  position: relative;
  width: min(460px, 100%);
  padding: 1rem;
  background: #efeae2;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  animation: calc-pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.t-proof__panel img { width: 100%; max-height: 75vh; object-fit: contain; border-radius: var(--radius); }
.t-proof__panel p { margin-top: 0.6rem; text-align: center; font-size: 0.82rem; color: var(--muted); }
.t-proof__close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 38px;
  height: 38px;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--white);
  background: var(--purple-700);
  border-radius: 50%;
  box-shadow: var(--shadow);
}
@keyframes calc-pop { from { opacity: 0; transform: translateY(24px) scale(0.96); } }
/* With only a couple of reviews, centre them instead of leaving gaps */
@media (min-width: 1025px) {
  .t-slider__track:has(> .t-card:nth-child(2):last-child) { grid-auto-columns: calc((100% - 1.5rem) / 2); max-width: 980px; margin-inline: auto; }
}
