/* Blue Mar Wellness 2026 — Solutions page (2026.08.20 comp). */

/* ------------------------------------------------------------------- hero */

.sol-hero {
	position: relative;
	/* No overflow:hidden — the intro photo may overhang the hero's bottom
	   edge on ultra-wide screens, like the products intro photo (the hero
	   bg stays clipped by its own .hero-parallax__clip wrapper). */
	background-color: var(--bmw-teal-deep);
	/* Shorter bottom padding pulls the hero's bottom edge up under the intro
	   photo so a bigger slice (~30%) hangs into the beige band below —
	   .sol-band's grown top padding absorbs the difference. */
	padding: min(10.42vw, 200px) 0 min(7.55vw, 145px);
	color: var(--bmw-white);
}
.sol-hero__bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
}
/* hero photo asset is pre-tinted teal (extracted from the comp PDF) */
.sol-hero .wrap { position: relative; z-index: 1; }
.sol-hero__title {
	margin: 0 0 min(8.85vw, 170px);
	font-family: var(--font-serif);
	font-weight: var(--font-serif-weight);
	line-height: 1;
	text-align: center;
}
.sol-hero__lead {
	display: block;
	font-size: clamp(36px, 2.92vw, 56px);
	color: var(--bmw-ltblue);
	margin: 0 min(18.02vw, 346px) -5px 0;
}
.sol-hero__main {
	display: block;
	font-size: clamp(56px, 5vw, 96px);
	color: var(--bmw-white);
	margin-left: min(2.6vw, 50px);
}
.sol-intro__copy { max-width: 505px; }
.sol-intro__title {
	font-family: var(--font-serif-it);
	font-style: italic;
	font-weight: var(--font-serif-weight);
	color: var(--bmw-ltblue);
	font-size: 32px;
	line-height: 1.15;
	max-width: 505px;
	margin-bottom: 22px;
}
.sol-intro__copy p { max-width: 360px; margin: 0 0 30px; font-size: 18px; line-height: 1.15; }
.sol-intro__rule {
	display: block;
	width: 200px;
	border-top: 1px solid var(--bmw-white);
}
.has-scroll-animations .sol-intro__rule {
	transform: scaleX(0.06);
	transform-origin: left center;
	will-change: transform;
}
.has-scroll-animations .sol-intro__rule.is-in-view {
	animation: bmw-rule-reveal-from-left var(--reveal-duration) var(--motion-easing) forwards;
}
.sol-intro__media {
	position: absolute;
	z-index: 1;
	top: min(22.9vw, 440px);
	/* anchor to the .wrap content column's right edge (505px intro-copy width + gap),
	   not raw viewport vw — vw-only positioning drifts away from the wrap's own
	   max-width:1180px centering once the viewport exceeds ~1920px (zoomed out),
	   sliding the photo over the intro copy instead of scaling alongside it.
	   The 570px floor keeps the photo right of the copy in the 900–1150px
	   band, where the wrap-based calc() slides left over the intro title. */
	left: max(calc((100% - var(--content)) / 2 + var(--gutter) + 545px), 570px);
	right: 0;
	/* Same height as .products-intro__media: 23.44vw tracks the viewport
	   (450px at 1920), capped at 520px past ~2200px wide. */
	height: min(23.44vw, 520px);
	margin: 0;
	border-radius: var(--radius) 0 0 var(--radius);
	overflow: hidden;
	/* Scroll-linked upward drift, same mechanism as the services/products
	   hero photos (main.js drives the custom property). */
	--services-media-shift: 0px;
	transform: translate3d(0, var(--services-media-shift), 0);
	will-change: transform;
}
.sol-intro__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* -------------------------------------------------------------- beige band */

.sol-band {
	background: linear-gradient(180deg, rgba(193, 182, 167, 0.5) 0%, rgba(193, 182, 167, 0.2) 100%);
	/* Top padding carries the space the hero gave up (see .sol-hero), keeping
	   the first row clear of the intro photo's overhang. */
	padding: min(7.92vw, 152px) 0 min(3.13vw, 60px);
}
@media (min-width: 1921px) {
	/* The intro photo keeps growing to 520px tall past 1920 while the hero
	   height stays put — a touch more hero depth keeps the overhang share
	   (~30% of the photo) consistent with 1920, and the band clears the
	   first row under it (mirrors .products-list on ultra-wide screens). */
	.sol-hero { padding-bottom: 190px; }
	.sol-band { padding-top: 175px; }
}

/* ----------------------------------------------------------- solution rows */

.sol-row { padding-top: min(3.13vw, 60px); scroll-margin-top: 32px; }
.sol-row:first-child { padding-top: 0; }
.sol-row__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 57px;
	align-items: start;
}
.sol-row--flip .sol-row__media { order: 2; }
.sol-row--flip .sol-row__copy { order: 1; }
.sol-row--flip .sol-row__title { border-bottom: 0; padding-bottom: 0; }
.sol-row--flip .sol-row__title::after {
	content: "";
	display: block;
	width: min(330px, 100%);
	margin-top: 14px;
	border-top: 1px solid var(--bmw-white);
}

.sol-row__title {
	font-family: var(--font-serif-it);
	font-style: italic;
	font-weight: var(--font-serif-weight);
	color: var(--bmw-teal);
	font-size: 27px;
	line-height: 1.2;
	margin-bottom: 22px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--bmw-white);
}
.sol-row__copy { max-width: 520px; }
/* copy widths tuned to the comp's wrap points (the audit's 450px estimate
   overshoots with live Geomanist metrics and misses several comp line breaks) */
.sol-row__copy p,
.sol-row__copy ul { line-height: 1.3; }
.sol-row__copy p { max-width: 406px; margin: 0 0 11px; font-size: 16px; }
.sol-row--flip .sol-row__copy p { max-width: 430px; }
.sol-row__copy ul {
	max-width: 410px;
	margin: 0;
	padding-left: 22px;
	font-size: 16px;
}
.sol-row__copy li { margin-bottom: 11px; }

/* teal placeholder / photo card with carousel dots */
.sol-card {
	position: relative;
	background: var(--bmw-teal);
	border-radius: var(--radius);
	aspect-ratio: 522 / 400;
	height: auto;
	overflow: hidden;
}
.sol-card--photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.sol-card__dots {
	display: none;
	position: absolute;
	left: 50%;
	bottom: 14px;
	transform: translateX(-50%);
	gap: 10px;
}
.sol-card__dots i {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	border: 1px solid var(--bmw-white);
	background: transparent;
}
.sol-card__dots i.is-active { background: var(--bmw-white); }

/* ---------------------------------------------------------------- closing */

.sol-closing { padding-top: 45px; padding-bottom: 0; }
.sol-closing__card {
	display: flex;
	align-items: center;
	gap: clamp(36px, 3.96vw, 76px);
	max-width: 705px;
	margin: 0 auto;
	background: var(--bmw-white);
	border-radius: var(--radius);
	padding: 22px clamp(32px, 2.92vw, 56px) 22px clamp(44px, 4.79vw, 92px);
}
.sol-closing__ul { flex: 0 0 auto; width: 120px; height: auto; }
.sol-closing__copy p {
	max-width: 320px; /* comp wrap points (audit's 345px estimate overshoots with live Geomanist metrics) */
	margin: 0 0 12px;
	font-size: 14px;
	line-height: 1.5;
}
.sol-closing__copy p:last-child { margin-bottom: 0; }

/* contact heading lead is teal on this page's comp */
.contact__lead { color: var(--bmw-teal); }

/* ------------------------------------------------------------ responsive */

@media (max-width: 900px) {
	/* position:relative (not static) keeps this a positioned box so it paints
	   above .sol-hero__bg (position:absolute) instead of being buried under it —
	   z-index:auto positioned siblings always paint above in-flow static content,
	   regardless of DOM order, so plain position:static here hid the photo entirely.
	   Height is capped (not aspect-ratio-driven off full mobile width) so the photo
	   doesn't balloon the hero past ~100vh as width climbs toward the 768/900 range. */
	/* Left gutter only, bleeding off the right viewport edge with left-corner
	   radius — same treatment as the products intro image on mobile. */
	.sol-intro__media { position: relative; z-index: 1; top: auto; left: auto; right: auto; height: clamp(220px, 34vw, 320px); margin: 32px 0 0 var(--gutter); border-radius: var(--radius) 0 0 var(--radius); }
	.sol-hero { padding: 130px 0 70px; }
	/* was a flat 120px — proportional (clamp) so "Our" doesn't get shoved hard
	   left / look off-center at 360–430px phone widths, while still landing
	   near the original 120px by the 900px edge of this breakpoint */
	.sol-hero__lead { font-size: 40px; margin-right: clamp(40px, 13vw, 120px); }
	.sol-hero__main { font-size: 64px; }
	.sol-hero__title { margin-bottom: 70px; }
	.sol-band { padding: 60px 0; }
	.sol-row__grid { grid-template-columns: 1fr; gap: 34px; }
	/* grid items default to min-width:auto, so their min-content contribution
	   (which factors in any descendant's aspect-ratio + definite-size sizing)
	   can force the 1fr track wider than the viewport; min-width:0 lets the
	   track shrink to the actually available width instead. */
	.sol-row__media,
	.sol-row__copy { min-width: 0; }
	.sol-row { padding-top: 70px; }
	.sol-row--flip .sol-row__media { order: 0; }
	.sol-row--flip .sol-row__copy { order: 1; }
	.sol-intro__copy p,
	.sol-intro__title,
	.sol-row__copy,
	.sol-row__copy p,
	.sol-row__copy ul,
	.sol-closing__copy p { max-width: none; }
	/* width-driven, not height-driven: let the card fill the column and derive
	   its height from the inherited aspect-ratio (522/400) instead of pinning
	   height:300px, which — combined with aspect-ratio — was inflating the
	   card's intrinsic width to ~391.5px and blowing out the grid track
	   (this was the cause of the ~27px horizontal overflow on phones). */
	.sol-card { height: auto; min-width: 0; }
	.sol-closing { padding-top: 80px; }
	.sol-closing__card {
		/* section has no .wrap ancestor, so give the card its own gutters on
		   mobile; calc() keeps margin:0 auto's centering behavior (desktop's
		   max-width:705px rule is untouched outside this query) */
		max-width: calc(100% - 2 * var(--gutter));
		flex-direction: column;
		gap: 30px;
		padding: 40px;
		text-align: center;
	}
	.sol-closing__copy p { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
	.sol-intro__rule { animation: none; transform: none; }
}
