/*
 * srp-srm-feature-pages.css
 *
 * Shared SRP/SRM feature-page styles for pages that use icon heroes, authored
 * video/story heroes, and Behind the Scenes carousel sections. It currently
 * supports:
 * - The-Standard-Response-Protocol-PreK2+.html: SRP icon hero and Behind the Scenes carousel.
 * - SRP-5-Minutes-5-Actions.html: authored video landing hero and Behind the Scenes carousel.
 * - SRM-Grownups-Guide-To-Reunification.html: authored video landing hero and Behind the Scenes carousel.
 */

/* SRP action icon hero used on the Pre-K-2+ detail page. */
.srp-icons {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
	gap: 24px;
	margin-top: 20px;
}

.srp-icon {
	text-align: center;
	flex: 1 1 120px;
	max-width: 160px;
}

.srp-icon img {
	width: 100%;
	max-width: 200px;
	height: auto;
	object-fit: contain;
	transition: transform 0.2s ease;
}

.srp-icon img:hover {
	transform: scale(1.08);
}

.srp-icon h3 {
	color: white;
	margin-top: 8px;
	font-weight: 600;
}

/* Shared full-bleed Behind the Scenes story carousel. */
.details-purpose-section {
	padding-top: 40px;
	padding-bottom: 48px;
	overflow: hidden;
}

.details-purpose-intro {
	padding-bottom: 24px;
}

.purpose-banner {
	position: relative;
	width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	overflow: hidden;
	border-radius: 0;
	background: #111;
	box-shadow: none;
}

.purpose-track {
	position: relative;
	height: clamp(540px, 72vh, 780px);
}

.purpose-slide {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: flex-end;
	background-image: linear-gradient(90deg, rgba(0,0,0,.74) 0%, rgba(0,0,0,.48) 42%, rgba(0,0,0,.10) 100%), var(--purpose-image);
	background-size: cover;
	background-position: center;
	opacity: 0;
	transform: scale(1.015);
	transition: opacity .45s ease, transform .7s ease;
	pointer-events: none;
}

.purpose-slide.is-active {
	opacity: 1;
	transform: scale(1);
	pointer-events: auto;
}

.purpose-copy {
	width: min(620px, 92%);
	padding: 56px;
	color: #fff;
	text-shadow: 0 2px 18px rgba(0,0,0,.55);
}

.purpose-eyebrow {
	margin: 0;
	font-size: 18px;
	line-height: 1.2;
	font-weight: 700;
	color: rgba(255,255,255,.82);
}

.purpose-copy h2,
.purpose-copy h3,
.purpose-copy p {
	color: #fff;
}

.purpose-kicker {
	margin-bottom: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .08em;
	color: rgba(255,255,255,.78);
}

.purpose-controls {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 22px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 18px;
	z-index: 3;
	pointer-events: none;
}

.purpose-arrow,
.purpose-dots button {
	pointer-events: auto;
}

.purpose-arrow {
	width: 44px;
	height: 44px;
	border: 1px solid rgba(255,255,255,.55);
	border-radius: 50%;
	background: rgba(0,0,0,.45);
	color: #fff;
	font-size: 30px;
	line-height: 1;
	cursor: pointer;
}

.purpose-dots {
	display: flex;
	gap: 10px;
	padding: 12px 14px;
	border-radius: 999px;
	background: rgba(0,0,0,.35);
}

.purpose-dots button {
	width: 12px;
	height: 12px;
	border: 0;
	border-radius: 50%;
	background: rgba(255,255,255,.45);
	cursor: pointer;
}

.purpose-dots button.is-active {
	background: #fff;
}

/* Mobile: stack parallax heroes and compress icon/carousel spacing. */
@media (max-width: 768px) {
	.parallax {
		height: auto !important;
		min-height: 0 !important;
		overflow: hidden;
	}

	.parallax .banner {
		position: relative !important;
		top: auto !important;
		left: auto !important;
		right: auto !important;
		bottom: auto !important;
		transform: none !important;
		height: auto !important;
		min-height: 0 !important;
		margin: 0;
		padding: 88px 0 34px;
	}

	.parallax .banner .container {
		height: auto !important;
		max-width: 100%;
	}

	.parallax h1 p {
		margin-bottom: 20px;
	}

	.srp-icons {
		gap: 16px 12px;
		max-width: 390px;
		margin: 14px auto 0;
	}

	.srp-icon {
		flex: 0 1 calc((100% - 24px) / 3);
		max-width: 112px;
	}

	.srp-icon img {
		width: 100%;
		max-width: 104px;
	}

	.srp-icon h3 {
		margin-top: 6px;
		margin-bottom: 0;
		font-size: 18px;
		line-height: 1.15;
	}

	.purpose-track {
		min-height: 640px;
	}

	.purpose-slide {
		align-items: flex-end;
		background-image: linear-gradient(0deg, rgba(0,0,0,.82) 0%, rgba(0,0,0,.48) 52%, rgba(0,0,0,.08) 100%), var(--purpose-image);
	}

	.purpose-copy {
		padding: 34px 26px 86px;
	}
}

@media (max-width: 380px) {
	.parallax .banner {
		padding-top: 78px;
	}

	.srp-icons {
		max-width: 342px;
		gap: 14px 10px;
	}

	.srp-icon {
		max-width: 104px;
	}

	.srp-icon img {
		max-width: 96px;
	}
}

/*
 * Authored banner-art preservation for SRP/SRM video/story landing pages.
 * These rules prevent the hero and carousel background images from being
 * over-cropped on tablet and mobile screens.
 */
.art-preserve-hero-img {
	display: none;
}

@media (max-width: 991.98px) {
	.art-preserve-page .art-preserve-hero {
		position: relative !important;
		height: auto !important;
		min-height: 0 !important;
		background-image: none !important;
		background-color: #111;
		background-attachment: scroll !important;
		background-position: center top !important;
		background-repeat: no-repeat !important;
		background-size: contain !important;
	}

	.art-preserve-page .art-preserve-hero-img {
		display: block;
		position: relative;
		z-index: 1;
		width: 100%;
		height: auto;
	}

	.art-preserve-page .art-preserve-hero .gradient-6 {
		display: none;
	}

	.art-preserve-page .art-preserve-hero .banner {
		position: absolute !important;
		top: 0 !important;
		right: 0 !important;
		bottom: 0 !important;
		left: 0 !important;
		height: auto !important;
		z-index: 2;
		display: flex;
		align-items: flex-end;
		justify-content: center;
		margin: 0;
		padding: 0 0 clamp(22px, 5vw, 48px);
		background: linear-gradient(0deg, rgba(0,0,0,.76) 0%, rgba(0,0,0,.48) 34%, rgba(0,0,0,.12) 68%, rgba(0,0,0,0) 100%);
	}

	.art-preserve-page .art-preserve-hero .banner .container {
		width: min(100%, 760px);
		padding-left: 18px;
		padding-right: 18px;
	}

	.art-preserve-page .art-preserve-hero h1 p {
		margin-bottom: clamp(12px, 2.4vw, 20px);
		font-size: clamp(30px, 6vw, 48px);
		line-height: 1.05;
	}

	.art-preserve-page .art-preserve-hero .text-center {
		padding: 0 !important;
	}

	.art-preserve-page .purpose-track {
		height: clamp(680px, calc(56.25vw + 360px), 860px);
		min-height: 0;
	}

	.art-preserve-page .purpose-slide {
		background-size: 100% 100%, contain;
		background-position: center, center top;
		background-repeat: no-repeat;
	}

	.art-preserve-page .purpose-copy {
		width: 100%;
		max-width: none;
		padding: 28px 26px 88px;
		background: linear-gradient(0deg, rgba(0,0,0,.90) 0%, rgba(0,0,0,.78) 74%, rgba(0,0,0,0) 100%);
	}
}

@media (max-width: 575.98px) {
	.art-preserve-page .art-preserve-hero h1 p {
		font-size: clamp(28px, 8vw, 36px);
	}

	.art-preserve-page .art-preserve-hero .btn {
		width: 148px !important;
	}

	.art-preserve-page .purpose-track {
		height: clamp(700px, calc(56.25vw + 470px), 820px);
	}
}
