/**
 * Our Family Story page template.
 *
 * Contents: hero, trust strip, intro, photo band, timeline, values,
 * nursery, pull quote, centres, closing call to action.
 */

.fs h1,
.fs h2,
.fs h3 {
	font-family: var(--pp-font-heading);
	font-weight: 400;
	color: var(--pp-color-heading);
}

.fs p {
	color: var(--pp-color-text);
}

.fs :where(ul, ol) {
	margin-block: 0;
	padding: 0;
	list-style: none;
}

.fs-section {
	padding-block: clamp(4rem, 8vw, 7.5rem);
}

.fs-icon {
	width: 1.375rem;
	height: 1.375rem;
	flex-shrink: 0;
}

.fs-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.fs-header {
	max-width: 44rem;
	margin-bottom: 3.5rem;
}

.fs-header--center {
	margin-inline: auto;
	text-align: center;
}

.fs-header .section-title {
	margin-bottom: 1.25rem;
}

/* Scroll reveal: only hidden once the script has marked the page. */
.js-reveal .fs-reveal {
	opacity: 0;
	transform: translateY(1.5rem);
	transition: opacity 0.7s ease, transform 0.7s ease;
}

.js-reveal .fs-reveal.is-visible {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	.js-reveal .fs-reveal {
		opacity: 1;
		transform: none;
		transition: none;
	}
}

/* Hero */

.fs-hero {
	display: grid;
	background: var(--pp-color-bg);
}

.fs-hero__copy {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 1.5rem var(--pp-gutter) 3.5rem;
}

.fs-breadcrumb {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 3rem;
	font-size: 0.75rem;
	color: var(--pp-color-muted);
}

.fs-breadcrumb a {
	color: inherit;
	text-decoration: none;
}

.fs-breadcrumb a:hover {
	color: var(--pp-color-heading);
}

.fs-hero__title {
	max-width: 14ch;
	margin: 0 0 1.5rem;
	font-size: clamp(2.75rem, 4.5vw + 1rem, 5rem);
	line-height: 1.08;
}

.fs-hero__text {
	max-width: 28rem;
	margin: 0 0 2rem;
	font-size: 1rem;
	line-height: 1.8;
}

.fs-hero__media {
	position: relative;
	min-height: 22rem;
	background: var(--pp-color-bg-green);
	overflow: hidden;
}

.fs-hero__media img,
.fs-feature > img,
.fs-nursery__media img,
.fs-milestone__media img,
.fs-centre__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.fs-hero__media img {
	position: absolute;
	inset: 0;
}

.fs-stamp {
	position: absolute;
	right: 1.5rem;
	bottom: 1.5rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 7.5rem;
	height: 7.5rem;
	text-align: center;
	color: var(--pp-color-heading);
	background: var(--pp-color-cream);
	border-radius: 50%;
	outline: 1px solid var(--pp-color-button);
	outline-offset: -0.5rem;
	transform: rotate(-9deg);
}

.fs-stamp strong {
	font-family: var(--pp-font-heading);
	font-size: 2.25rem;
	font-weight: 500;
	line-height: 1.1;
}

.fs-stamp span {
	max-width: 5rem;
	font-size: 0.5625rem;
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

@media (min-width: 900px) {
	.fs-hero {
		grid-template-columns: 1fr 1fr;
		min-height: 40rem;
	}

	.fs-hero__copy {
		padding: 1.5rem 4rem 4rem max(var(--pp-gutter), calc((100vw - var(--pp-container)) / 2 + var(--pp-gutter)));
	}

	.fs-hero__media {
		min-height: 0;
	}

	.fs-stamp {
		right: auto;
		bottom: 3rem;
		left: 1.75rem;
	}
}

/* Trust strip */

.fs-trust {
	background: var(--pp-color-bg-alt);
	border-block: 1px solid var(--pp-color-border);
}

.fs-trust__list {
	display: grid;
	padding-block: 0.5rem;
}

.fs-trust__list li {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding-block: 0.875rem;
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--pp-color-subheading);
}

.fs-trust__list .fs-icon {
	color: var(--pp-color-button);
}

@media (min-width: 800px) {
	.fs-trust__list {
		grid-template-columns: repeat(3, 1fr);
		padding-block: 0.75rem;
	}

	.fs-trust__list li {
		justify-content: center;
	}

	.fs-trust__list li + li {
		border-left: 1px solid var(--pp-color-border);
	}
}

/* Intro */

.fs-intro {
	background: var(--pp-color-cream);
}

.fs-intro__grid {
	display: grid;
	gap: 2rem;
}

.fs-lead {
	margin: 0 0 1.5rem;
	font-family: var(--pp-font-heading);
	font-size: clamp(1.375rem, 1.2vw + 1rem, 1.875rem);
	line-height: 1.5;
	color: var(--pp-color-heading);
}

.fs-intro__text p {
	line-height: 1.9;
}

.fs-signature {
	margin-top: 1.5rem;
	font-family: var(--pp-font-heading);
	font-size: 1.25rem;
	font-style: italic;
	color: var(--pp-color-subheading);
}

@media (min-width: 900px) {
	.fs-intro__grid {
		grid-template-columns: 0.85fr 1.15fr;
		gap: clamp(3rem, 8vw, 8rem);
	}
}

/* Photo band */

.fs-feature {
	position: relative;
	isolation: isolate;
	display: flex;
	align-items: flex-end;
	min-height: clamp(20rem, 38vw, 30rem);
	background: var(--pp-color-bg-green);
	overflow: hidden;
}

.fs-feature > img {
	position: absolute;
	inset: 0;
	z-index: -2;
}

.fs-feature::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(90deg, rgba(17, 50, 66, 0.75), rgba(17, 50, 66, 0.1) 70%);
}

.fs-feature__inner {
	padding-block: 3rem;
}

.fs-feature__inner > div {
	max-width: 36rem;
}

.fs-feature .section-eyebrow,
.fs-feature .section-title {
	color: var(--pp-color-on-dark);
}

/* Timeline */

.fs-journey {
	background: var(--pp-color-bg);
}

.fs-timeline {
	position: relative;
	max-width: 68rem;
	margin: 0 auto;
	padding-left: 1.75rem;
	border-left: 1px solid var(--pp-color-border);
}

.fs-milestone {
	position: relative;
	display: grid;
	gap: 1.25rem;
	padding-bottom: 3rem;
}

.fs-milestone::before {
	content: "";
	position: absolute;
	top: 0.75rem;
	left: calc(-1.75rem - 0.4375rem);
	width: 0.8125rem;
	height: 0.8125rem;
	background: var(--pp-color-button-hover);
	border: 3px solid var(--pp-color-bg);
	border-radius: 50%;
	box-shadow: 0 0 0 1px var(--pp-color-button);
}

.fs-milestone__date {
	margin: 0 0 0.75rem;
	font-family: var(--pp-font-heading);
	font-size: clamp(2.5rem, 4vw, 4rem);
	line-height: 1;
	color: var(--pp-color-button);
}

.fs-milestone h3 {
	margin: 0 0 0.75rem;
	font-size: 1.625rem;
	line-height: 1.2;
}

.fs-milestone__content p:last-child {
	margin: 0;
	max-width: 28rem;
	line-height: 1.8;
}

.fs-milestone__media {
	height: 14rem;
	background: var(--pp-color-bg-green);
	overflow: hidden;
}

.fs-timeline-end {
	margin: 0;
	padding-top: 2rem;
	text-align: center;
	font-family: var(--pp-font-heading);
	font-size: 1.5rem;
	color: var(--pp-color-heading);
}

@media (min-width: 900px) {
	.fs-timeline {
		padding-left: 0;
		border-left: 0;
	}

	.fs-timeline::before {
		content: "";
		position: absolute;
		top: 0;
		bottom: 0;
		left: 50%;
		width: 1px;
		background: var(--pp-color-border);
	}

	.fs-milestone {
		grid-template-columns: 1fr 1fr;
		align-items: center;
		gap: 5.5rem;
		padding-bottom: 4rem;
	}

	.fs-milestone::before {
		left: 50%;
		top: 50%;
		transform: translate(-50%, -50%);
	}

	.fs-milestone__media {
		height: 15rem;
	}

	.fs-milestone:nth-child(odd) .fs-milestone__content {
		text-align: right;
	}

	.fs-milestone:nth-child(odd) .fs-milestone__content p:last-child {
		margin-left: auto;
	}

	.fs-milestone:nth-child(even) .fs-milestone__content {
		grid-column: 2;
		grid-row: 1;
	}

	.fs-milestone:nth-child(even) .fs-milestone__media {
		grid-column: 1;
		grid-row: 1;
	}

	.fs-timeline-end {
		padding-top: 0;
	}
}

/* Values */

.fs-values {
	background: var(--pp-color-bg-alt);
}

.fs-values__header {
	display: grid;
	gap: 1rem;
	margin-bottom: 2.5rem;
}

.fs-values__header p:last-child {
	max-width: 26rem;
	margin: 0;
}

.fs-values__grid {
	display: grid;
	gap: 1rem;
}

.fs-value {
	padding: 2.25rem 2rem;
	background: var(--pp-color-bg);
	border: 1px solid var(--pp-color-border);
}

.fs-value__icon {
	display: inline-grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	margin-bottom: 1.5rem;
	color: var(--pp-color-button-hover);
	border: 1px solid var(--pp-color-button);
	border-radius: 50%;
}

.fs-value h3 {
	margin: 0 0 0.625rem;
	font-size: 1.5rem;
}

.fs-value p {
	margin: 0;
	line-height: 1.8;
}

@media (min-width: 900px) {
	.fs-values__header {
		grid-template-columns: 1fr auto;
		align-items: end;
		gap: 3rem;
	}

	.fs-values__grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* Nursery */

.fs-nursery {
	display: grid;
	background: var(--pp-color-bg-dark);
}

.fs-nursery__media {
	min-height: 18rem;
	background: var(--pp-color-bg-green);
}

.fs-nursery__content {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	padding: 4rem var(--pp-gutter);
}

.fs-nursery__content .section-eyebrow {
	color: var(--pp-color-button);
}

.fs-nursery__content .section-title {
	margin-bottom: 1.5rem;
	color: var(--pp-color-on-dark);
}

.fs-nursery__content p {
	max-width: 30rem;
	line-height: 1.85;
	color: rgba(255, 255, 249, 0.8);
}

.fs-nursery__content .button {
	margin-top: 1rem;
}

@media (min-width: 900px) {
	.fs-nursery {
		grid-template-columns: 52% 48%;
		min-height: 34rem;
	}

	.fs-nursery__content {
		padding: 4rem max(var(--pp-gutter), calc((100vw - var(--pp-container)) / 2 + var(--pp-gutter))) 4rem 8%;
	}
}

/* Pull quote */

.fs-quote {
	background: var(--pp-color-cream);
	text-align: center;
}

.fs-quote figure {
	margin-block: 0;
}

.fs-quote blockquote {
	margin-block: 0;
}

.fs-quote blockquote {
	max-width: 52rem;
	margin-inline: auto;
	font-family: var(--pp-font-heading);
	font-size: clamp(1.625rem, 2.4vw + 0.75rem, 2.5rem);
	font-style: italic;
	line-height: 1.5;
	color: var(--pp-color-heading);
}

.fs-quote blockquote::before {
	content: "\201C";
	display: block;
	font-size: 4rem;
	line-height: 0.8;
	color: var(--pp-color-button);
}

.fs-quote figcaption {
	margin-top: 1.75rem;
	font-size: 0.6875rem;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--pp-color-muted);
}

/* Centres */

.fs-centres {
	background: var(--pp-color-bg);
}

.fs-centres .fs-header {
	margin-bottom: 3rem;
}

.fs-centres__grid {
	display: grid;
	gap: 1.5rem;
}

.fs-centre {
	display: block;
	text-decoration: none;
	background: var(--pp-color-bg-alt);
}

.fs-centre__media {
	position: relative;
	height: 16rem;
	background: var(--pp-color-bg-green);
	overflow: hidden;
}

.fs-centre__media img {
	transition: transform 0.6s ease;
}

.fs-centre:hover .fs-centre__media img {
	transform: scale(1.035);
}

.fs-centre__tag {
	position: absolute;
	bottom: 1rem;
	left: 1.25rem;
	padding: 0.4375rem 0.75rem;
	font-size: 0.625rem;
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--pp-color-heading);
	background: var(--pp-color-bg);
}

.fs-centre__details {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.25rem;
	padding: 1.75rem;
}

.fs-centre__details h3 {
	margin: 0 0 0.25rem;
	font-size: 1.75rem;
}

.fs-centre__details p {
	margin: 0;
	font-size: 0.8125rem;
}

.fs-centre__details .icon {
	width: 1.25rem;
	height: 1.25rem;
	flex-shrink: 0;
	color: var(--pp-color-heading);
}

@media (min-width: 800px) {
	.fs-centres__grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.fs-centre__media {
		height: 18rem;
	}
}

/* Closing call to action */

.fs-cta {
	padding-block: 4.5rem;
	background: var(--pp-color-bg-alt);
}

.fs-cta__inner {
	display: grid;
	gap: 1.5rem;
	align-items: center;
}

.fs-cta .section-title {
	font-size: clamp(1.875rem, 2.5vw + 1rem, 2.75rem);
}

.fs-cta .button {
	justify-self: start;
}

@media (min-width: 800px) {
	.fs-cta__inner {
		grid-template-columns: 1fr auto;
		gap: 2.5rem;
	}
}
