/* ==========================================================================
   "Are you pregnant? / Planning a baby?" (includes/home/seven.php). Shared by
   home, /services, blog posts and testimonials, so it lives in its own file.
   Two photo panels side by side, square corners, a 2px seam between them; the
   words sit on a soft white haze over the empty left side of each photo.
   Hover (fine pointers): the photo settles in from a slight zoom; transform
   and opacity only; reduced motion respected. No max-width, gutter padding.
   ========================================================================== */
.dst-cta2 {
	--out: cubic-bezier(.23, 1, .32, 1);
	display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px;
	padding: 0; background: #fff; font-family: var(--dst-font, 'Jost', sans-serif); color: var(--dst-ink, #2a1f27);
}
.dst-cta2 p { margin: 0; }
.dst-cta2 .dst-i { width: 17px; height: 17px; }
.dst-cta2__panel { position: relative; overflow: hidden; min-height: clamp(320px, 30vw, 420px); background: #f8e8ef; isolation: isolate; }
.dst-cta2__img {
	position: absolute; inset: 0; z-index: -2; display: block; width: 100%; height: 100%; object-fit: cover; object-position: 70% 40%;
	transform: scale(1.04); transition: transform 1.1s var(--out);
}
@media (min-width: 900px) { .dst-cta2__panel:nth-child(2) .dst-cta2__img { object-position: 96% 40%; } }   /* keep the couple clear of the words */
/* soft white haze on the words' side */
.dst-cta2__panel::before {
	content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background: linear-gradient(90deg, rgba(255, 250, 252, .94) 0%, rgba(255, 250, 252, .82) 32%, rgba(255, 250, 252, .25) 58%, rgba(255, 250, 252, 0) 72%);
}
.dst-cta2__copy {
	position: relative; display: flex; flex-direction: column; justify-content: center; gap: 10px;
	width: min(100%, 420px); height: 100%; min-height: inherit;
	padding: clamp(28px, 3vw, 48px) 24px clamp(28px, 3vw, 48px) var(--dst-gutter, 28px);
}
.dst-cta2__panel + .dst-cta2__panel .dst-cta2__copy { padding-left: clamp(24px, 3vw, 48px); }
.dst-cta2 .dst-cta2__eyebrow { color: var(--dst-rose-ink, #c63a72); font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.dst-cta2 .dst-cta2__title { margin: 0; font: 500 clamp(28px, 2.6vw, 40px)/1.15 var(--dst-font, 'Jost', sans-serif); letter-spacing: -.01em; color: var(--dst-ink, #2a1f27); }
.dst-cta2 .dst-cta2__text { color: var(--dst-body, #52464e); font-size: 15.5px; line-height: 1.6; }
.dst-cta2__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 10px; }
.dst-cta2 .dst-cta2__btn {
	display: inline-flex; align-items: center; gap: 9px; padding: 12px 20px; border-radius: 0;
	background: var(--dst-rose-ink, #c63a72); color: #fff; font-size: 14.5px; font-weight: 500; text-decoration: none;
	transition: background-color .2s ease, transform .16s var(--out);
}
.dst-cta2__btn:active { transform: scale(.97); }
.dst-cta2 .dst-cta2__link { display: inline-flex; align-items: center; gap: 7px; color: var(--dst-rose-ink, #c63a72); font-size: 14.5px; font-weight: 500; text-decoration: none; }
.dst-cta2__link .dst-i { transition: transform .25s var(--out); }
.dst-cta2 a:focus-visible { outline: 2px solid var(--dst-rose-ink, #c63a72); outline-offset: 3px; }

/* Right before the footer, the panels run on under the footer's curved top (footer.css: wave 48px,
   28px on phones), so the curve lies over the photos instead of leaving a white strip above it.
   The footer comes later in the page, so it paints on top; the words keep clear of the curve. */
.dst-cta2:has(+ .dst-foot) { margin-bottom: -48px; }
.dst-cta2:has(+ .dst-foot) .dst-cta2__panel { min-height: calc(clamp(320px, 30vw, 420px) + 48px); }
.dst-cta2:has(+ .dst-foot) .dst-cta2__copy { padding-bottom: calc(clamp(28px, 3vw, 48px) + 48px); }

@media (hover: hover) and (pointer: fine) {
	.dst-cta2__panel:hover .dst-cta2__img { transform: none; }
	.dst-cta2 .dst-cta2__btn:hover { background: var(--dst-rose-deep, #a92e60); color: #fff; }
	.dst-cta2__link:hover .dst-i { transform: translateX(3px); }
}

/* Tablet and phone: the panels stack; the haze rises from the bottom so the words can sit low. */
@media (max-width: 899.98px) {
	.dst-cta2 { grid-template-columns: minmax(0, 1fr); }
	.dst-cta2__panel { display: flex; flex-direction: column; min-height: 0; }
	.dst-cta2__img { position: relative; inset: auto; z-index: 0; height: auto; aspect-ratio: 16 / 9; object-position: 70% 40%; }
	.dst-cta2__panel::before { display: none; }
	.dst-cta2__copy, .dst-cta2__panel + .dst-cta2__panel .dst-cta2__copy {
		width: 100%; height: auto; min-height: 0; justify-content: flex-start; padding: 20px var(--dst-gutter, 14px) 26px; background: #fff;
	}
	.dst-cta2 .dst-cta2__title { font-size: 26px; }
	/* stacked: the last panel's white words area runs under the footer's curve (48px until 700px) */
	.dst-cta2:has(+ .dst-foot) .dst-cta2__panel { min-height: 0; }
	.dst-cta2:has(+ .dst-foot) .dst-cta2__copy { padding-bottom: 26px; }
	.dst-cta2:has(+ .dst-foot) .dst-cta2__panel:last-child .dst-cta2__copy { padding-bottom: 74px; }
}
/* phones: the footer's curve is 28px (footer.css, max-width 699.98px) */
@media (max-width: 699.98px) {
	.dst-cta2:has(+ .dst-foot) { margin-bottom: -28px; }
	.dst-cta2:has(+ .dst-foot) .dst-cta2__panel:last-child .dst-cta2__copy { padding-bottom: 54px; }
	.dst-cta2 .dst-cta2__text { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
	.dst-cta2__img { transition: none; transform: none; }
}
