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

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

.about-hero {
	position: relative;
	color: var(--bmw-white);
	padding: clamp(96px, 10.47vw, 201px) 0 71px;
}
.about-hero__bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
}
.about-hero > .wrap { position: relative; z-index: 1; }
.about-hero__title {
	margin: 0 0 clamp(56px, 8.34vw, 160px);
	text-align: center;
	font-family: var(--font-serif);
	font-weight: var(--font-serif-weight);
	font-size: clamp(56px, 4.59vw, 88px);
	line-height: 1;
	color: var(--bmw-white);
}
.about-hero__sub {
	display: block;
	margin-top: 12px;
	font-size: clamp(30px, 2.92vw, 56px);
	color: var(--bmw-ltblue);
}

.about-intro__grid {
	display: grid;
	grid-template-columns: minmax(0, 450px) 1fr;
	gap: clamp(44px, 5.47vw, 105px);
	align-items: start;
}
.about-intro__heading {
	font-family: var(--font-serif-it);
	font-style: italic;
	font-weight: var(--font-serif-weight);
	font-size: 24px;
	line-height: 1.2;
	color: var(--bmw-ltblue);
	margin: 0 0 30px;
}
.about-intro__copy p {
	margin: 0 0 20px;
	max-width: 410px;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.36;
	color: var(--bmw-white);
}
.about-intro__rule {
	border: 0;
	border-top: 2px solid rgba(255, 255, 255, 0.8);
	margin: 18px 0 24px;
	width: 200px;
	margin-left: 0;
}
.has-scroll-animations .about-intro__rule {
	transform: scaleX(0.06);
	transform-origin: left center;
	will-change: transform;
}
.has-scroll-animations .about-intro__rule.is-in-view {
	animation: bmw-rule-reveal-from-left var(--reveal-duration) var(--motion-easing) forwards;
}
.about-intro__logos {
	display: flex;
	align-items: center;
	gap: clamp(40px, 4.8vw, 92px);
}
.about-intro__logo-link { display: flex; }
.about-intro__logo-link:hover { opacity: 1; }
.about-intro__ma { width: 186px; height: auto; }
.about-intro__bmb { width: 135px; height: auto; }
.about-intro__video {
	background: #000;
	border-radius: var(--radius);
	/* Locked to 16:9 so the placeholder photo swaps cleanly for the video. */
	aspect-ratio: 16 / 9;
	height: auto;
	width: 100%;
	display: block;
	object-fit: cover;
}

/* -------------------------------------------------------- why BMW cards */

.about-why {
	position: relative;
	scroll-margin-top: 32px;
	overflow: hidden;
	background: linear-gradient(180deg, rgba(154, 218, 244, 1) 0%, rgba(154, 218, 244, 0.4) 100%);
	padding: clamp(40px, 3.23vw, 62px) 0 clamp(48px, 3.70vw, 71px);
}
.about-why__wm {
	position: absolute;
	left: 50%;
	top: 76px;
	transform: translateX(-50%);
	width: 180px;
	opacity: 0.18;
	pointer-events: none;
}
.about-why__title {
	--why-offset: calc(-1 * clamp(90px, 9.11vw, 175px));
	position: relative;
	text-align: center;
	font-family: var(--font-serif);
	font-weight: var(--font-serif-weight);
	color: var(--bmw-white);
	line-height: 1;
	margin: 0 0 clamp(48px, 3.75vw, 72px);
}
.about-why__lead {
	display: block;
	font-size: clamp(48px, 3.75vw, 72px);
	margin-bottom: 6px;
	/* comp staggers "Why" left of the sub-line's first glyph */
	transform: translateX(var(--why-offset));
}
.about-why__name {
	position: relative;
	display: inline-block;
	font-size: clamp(30px, 2.292vw, 44px);
	color: var(--bmw-teal);
}
.about-why__q {
	position: absolute;
	right: -0.43em;
	top: -0.38em;
	font-size: clamp(90px, 7.97vw, 153px);
	line-height: 1;
	color: var(--bmw-white);
}

@keyframes bmw-why-name-reveal {
	from { opacity: 0; transform: translateY(10px); }
	to { opacity: 1; transform: translateY(0); }
}

@keyframes bmw-why-lead-reveal {
	from { opacity: 0; transform: translate3d(var(--why-offset), 12px, 0); }
	to { opacity: 1; transform: translate3d(var(--why-offset), 0, 0); }
}

@keyframes bmw-why-question-reveal {
	from { opacity: 0; transform: translateY(10px) scale(0.72) rotate(-8deg); }
	to { opacity: 1; transform: translateY(0) scale(1) rotate(0); }
}

.has-scroll-animations .about-why__name,
.has-scroll-animations .about-why__lead,
.has-scroll-animations .about-why__q { opacity: 0; will-change: opacity, transform; }
.has-scroll-animations .about-why__title.is-in-view .about-why__name {
	animation: bmw-why-name-reveal var(--content-reveal-duration) var(--motion-easing) forwards;
}
.has-scroll-animations .about-why__title.is-in-view .about-why__lead {
	animation: bmw-why-lead-reveal var(--content-reveal-duration) 0.12s var(--motion-easing) forwards;
}
.has-scroll-animations .about-why__title.is-in-view .about-why__q {
	animation: bmw-why-question-reveal var(--content-reveal-duration) 0.24s var(--motion-easing) forwards;
}
.about-why__cards {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 38px 32px;
	max-width: 1100px;
	margin: 0 auto;
}
.about-why__card {
	position: relative;
	flex: 0 0 min(345px, calc((100% - 64px) / 3));
	background: var(--bmw-white);
	border-radius: var(--radius);
	padding: 20px 19px 22px;
}
.about-why__card-mark {
	position: absolute;
	top: 22px;
	right: 24px;
	width: 38px;
	height: auto;
}
.about-why__card-title {
	font-family: var(--font-serif-it);
	font-style: italic;
	font-weight: var(--font-serif-weight);
	font-size: 24px;
	color: var(--bmw-teal);
	margin: 0 0 8px;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--bmw-sand);
	max-width: 250px;
}
.about-why__card:nth-child(2) p,
.about-why__card:nth-child(4) p { max-width: 312px; }
.about-why__card p {
	margin: 0;
	max-width: 290px;
	font-size: 18px;
	font-weight: 400;
	line-height: 1.24;
	color: var(--bmw-ink);
}

/* ------------------------------------- one coordinated wellness solution */

.about-solution {
	position: relative;
	scroll-margin-top: 32px;
	background-size: cover;
	background-position: center top;
	color: var(--bmw-white);
	padding: clamp(80px, 6.88vw, 132px) 0 44px;
}
.about-solution__title {
	text-align: center;
	font-family: var(--font-serif);
	font-weight: var(--font-serif-weight);
	font-size: clamp(52px, 3.75vw, 72px);
	line-height: 1;
	color: var(--bmw-white);
	margin: 0 0 26px;
}
.about-solution__lead {
	display: block;
	font-size: clamp(30px, 2.292vw, 44px);
	color: var(--bmw-ltblue);
	margin-bottom: 10px;
}
@keyframes bmw-about-solution-lead-reveal {
	from { opacity: 0; transform: translateY(12px); }
	to { opacity: 1; transform: translateY(0); }
}
.has-scroll-animations .about-solution__lead {
	opacity: 0;
	will-change: opacity, transform;
}
.has-scroll-animations .about-solution__title.is-in-view .about-solution__lead {
	animation: bmw-about-solution-lead-reveal 0.4s var(--motion-easing) forwards;
}
.about-solution__sub {
	text-align: center;
	font-size: 18px;
	font-weight: 400;
	line-height: 1.2;
	max-width: 420px;
	margin: 0 auto 56px;
}
.about-solution__row {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
}
.about-solution__plan {
	margin: 0;
	background: var(--bmw-white);
	height: clamp(240px, 18.55vw, 356px);
	overflow: hidden;
}
.about-solution__plan:first-child {
	border-radius: var(--radius) 0 0 var(--radius);
}
.about-solution__plan:last-child {
	border-radius: 0 var(--radius) var(--radius) 0;
}
.about-solution__plan img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.about-solution__plan:last-child img { object-fit: contain; }

/* Myrtha partnership card */
.about-partner {
	display: grid;
	grid-template-columns: minmax(260px, 445px) 1fr;
	gap: 40px;
	align-items: center;
	background: var(--bmw-teal);
	border-radius: var(--radius);
	margin-top: clamp(48px, 3.70vw, 71px);
	padding: clamp(36px, 3.23vw, 62px) clamp(40px, 4.584vw, 66px);
}
.about-partner__logo { text-align: center; }
.about-partner__logo img { width: min(337px, 100%); height: auto; }
.about-partner__heading {
	font-family: var(--font-serif-it);
	font-style: italic;
	font-weight: var(--font-serif-weight);
	font-size: 24px;
	line-height: 1.2;
	max-width: 445px;
	color: var(--bmw-ltblue);
	margin: 0 0 18px;
}
.about-partner__copy p {
	margin: 0 0 12px;
	max-width: 420px;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.3;
	color: var(--bmw-white);
}
.about-partner__copy p:last-child { margin-bottom: 0; }

/* About page: teal "Let's create" lead over the light band */
.contact__lead { color: var(--bmw-teal); }

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

@media (max-width: 900px) {
	.about-hero { padding-bottom: 32px; background: var(--bmw-teal); }
	/* Comp: on phones the hero drops the photo for the flat brand teal. */
	.about-hero__bg { display: none; }
	.about-hero__title { font-size: 56px; margin-bottom: 26px; }
	.about-hero__sub { font-size: 30px; }
	.about-intro__grid { grid-template-columns: 1fr; gap: 24px; }
	/* Trim the rule's breathing room to match the tighter mobile stack
	   (base rule is 18/24 for desktop; this only applies <=900px). */
	.about-intro__rule { margin: 14px 0 16px; }
	.about-why__title { --why-offset: 0px; }
	.about-why__lead { font-size: 48px; transform: none; }
	.about-why__name { font-size: 30px; }
	.about-why__q { font-size: 90px; }
	.about-why__card { flex: 1 1 260px; }
	.about-why__cards { gap: 24px; }
	.about-solution__title { font-size: 52px; }
	.about-solution__lead { font-size: 30px; }
	.about-solution__row { grid-template-columns: 1fr; gap: 20px; }
	.about-solution__plan,
	.about-solution__plan:first-child,
	.about-solution__plan:last-child { border-radius: var(--radius); }
	.about-partner { grid-template-columns: 1fr; padding: 40px; gap: 30px; }
}

/* Smaller phones: the fixed-width Martin Aquatic + Blue Mar Basins logos
   (186px + 135px) no longer both fit on one line under ~410px of column
   width — scale them down proportionally so they stay side by side. */
@media (max-width: 599px) {
	.about-intro__logos { gap: 5vw; }
	.about-intro__ma { width: clamp(112px, 40vw, 186px); }
	.about-intro__bmb { width: clamp(81px, 29vw, 135px); }
}

@media (prefers-reduced-motion: reduce) {
	.about-intro__rule,
	.about-why__name,
	.about-why__lead,
	.about-why__q,
	.about-solution__lead { animation: none; opacity: 1; transform: none; }
}
