/*--------------------------------------------------------------
# Seats members booked
# The window seats with a job: oval airplane windows, each holding a
# real member booking, whose shades lift on scroll. Concept 02 of
# ref-doc/homepage-window-seats-concepts.html (30 Nov 2026).
--------------------------------------------------------------*/

/* Between the service cards and the "As seen on" strip. The grid keeps 70px
   of bottom padding with this section after it (services-grid.css) and the
   strip drops its top margin after it (social-proof.css), so the gaps above
   the heading and below the fine print come out at about 120px and 100px
   (the strip's logos sit 18-32px inside it). */
.seats {
	padding: 50px 0 70px;
}

.seats__container {
	width: 100%;
	max-width: var(--tpp-container-max);
	margin: 0 auto;
	padding: 0 var(--tpp-container-padding);
}


/* ── Heading: two balanced lines, the second in grey ── */
.seats__title {
	margin: 0;
	text-align: center;
	font-family: var(--tpp-font-heading);
	font-size: clamp(2rem, 4vw + 0.5rem, 3.25rem);
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: -0.03em;
	color: var(--tpp-black);
}

/* Blocks, not a <br />: Chrome won't balance text after a forced break */
.seats__title-line {
	display: block;
	text-wrap: balance;
}

.seats__title-line + .seats__title-line {
	color: var(--tpp-text-light);
}


/* ── The row ── */
.seats__row {
	display: flex;
	justify-content: center;
	gap: 28px;
	margin-top: 60px;
	padding: 12px 4px 24px;
}

.seats__item {
	flex: 0 1 236px;
	margin: 0;
	text-align: center;
}


/* ── The window: the same object as the old window-seats section ── */
.seats__frame {
	position: relative;
	aspect-ratio: 3 / 4.2;
	padding: 6%;
	border-radius: 9999px;
	background: linear-gradient(160deg, #F4F2EE, #DCD8D0);
	box-shadow:
		inset 0 2px 6px rgba(255, 255, 255, 0.9),
		inset 0 -6px 14px rgba(0, 0, 0, 0.12),
		0 20px 40px -24px rgba(0, 0, 0, 0.35);
}

.seats__glass {
	position: relative;
	height: 100%;
	border-radius: 9999px;
	overflow: hidden;
	isolation: isolate;
	background: #A8CDEF;
}

/* The bezel and inner shadow, painted over the view */
.seats__glass::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 3;
	border-radius: inherit;
	box-shadow:
		inset 0 0 0 4px #CFCAC0,
		inset 0 10px 22px rgba(0, 0, 0, 0.26);
	pointer-events: none;
}

.seats__view {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transform: scale(1.12);
	transition: transform 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}

/* The pull-down shade, with a handle at its bottom edge */
.seats__shade {
	position: absolute;
	inset: 0;
	z-index: 2;
	background: repeating-linear-gradient(180deg, #ECE9E3 0 10px, #E2DED6 10px 11px);
	border-bottom: 6px solid #CFCAC0;
	transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
	transition-delay: calc(var(--seat-index, 0) * 0.15s);
}

.seats__shade::after {
	content: '';
	position: absolute;
	bottom: 8px;
	left: 50%;
	width: 34px;
	height: 6px;
	margin-left: -17px;
	border-radius: 3px;
	background: #BDB7AB;
}

.seats__row.is-visible .seats__shade {
	transform: translateY(-88%);
}

.seats__row.is-visible .seats__view {
	transform: scale(1);
}

.seats__item:hover .seats__shade {
	transform: translateY(-100%);
	transition-delay: 0s;
}


/* ── The sticker on the glass: what the seat cost ──
   13% up from the bottom and at most 76% wide, so its corners stay inside
   the window's curve. */
.seats__tag {
	position: absolute;
	z-index: 4;
	left: 50%;
	bottom: 13%;
	width: max-content;
	max-width: 76%;
	padding: 8px 12px 9px;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.88);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	box-shadow: 0 10px 22px -12px rgba(0, 0, 0, 0.45);
	text-align: center;
	opacity: 0;
	transform: translate(-50%, 8px);
	transition:
		opacity 0.5s ease,
		transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
	transition-delay: calc(var(--seat-index, 0) * 0.15s + 0.8s);
}

.seats__row.is-visible .seats__tag {
	opacity: 1;
	transform: translate(-50%, 0);
}

.seats__tag b {
	display: block;
	font-family: var(--tpp-font-heading);
	font-size: 1.0625rem;
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -0.02em;
	color: var(--tpp-black);
	white-space: nowrap;
}

.seats__tag small {
	display: block;
	margin-top: 2px;
	font-family: var(--tpp-font-body);
	font-size: 0.6875rem;
	line-height: 1.3;
	color: var(--tpp-text-light);
}


/* ── Caption ── */
.seats__caption {
	margin-top: 18px;
}

.seats__place {
	display: block;
	font-family: var(--tpp-font-heading);
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.3;
	color: var(--tpp-black);
	text-wrap: balance;
}

.seats__who {
	display: block;
	margin-top: 3px;
	font-family: var(--tpp-font-body);
	font-size: 0.8125rem;
	color: var(--tpp-text-light);
	text-wrap: balance;
}


/* ── Buttons and fine print ── */
.seats__foot {
	display: grid;
	justify-items: center;
	gap: 16px;
	margin-top: 36px;
}

.seats__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 14px;
}

.seats__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: var(--tpp-radius-pill);
	font-family: var(--tpp-font-body);
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
	transition: background 0.25s ease, border-color 0.25s ease;
}

/* The key action: orange, black text, with the arrow chip */
.seats__cta--key {
	gap: 12px;
	padding: 8px 8px 8px 22px;
	background: var(--tpp-accent);
}

/* Restated for every link state: style.css sets them to color: inherit,
   which outranks one class */
.seats__cta--key,
.seats__cta--key:visited,
.seats__cta--key:hover,
.seats__cta--key:focus,
.seats__cta--key:active {
	color: var(--tpp-black);
}

.seats__cta--key:hover {
	background: var(--tpp-accent-dark);
}

.seats__cta-icon {
	display: grid;
	place-items: center;
	flex: none;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--tpp-black);
	color: var(--tpp-accent);
	transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.seats__cta-icon svg {
	width: 15px;
	height: 15px;
}

.seats__cta--key:hover .seats__cta-icon {
	transform: translateX(3px);
}

/* The second button: black with white text (outlined until 30 Nov 2026,
   made black at Anish's request) */
.seats__cta--dark {
	padding: 14px 24px;
	border: 1.5px solid var(--tpp-black);
	background: var(--tpp-black);
}

.seats__cta--dark,
.seats__cta--dark:visited,
.seats__cta--dark:hover,
.seats__cta--dark:focus,
.seats__cta--dark:active {
	color: var(--tpp-white);
}

.seats__cta--dark:hover {
	background: var(--tpp-dark);
	border-color: var(--tpp-dark);
}

.seats__cta:focus-visible {
	outline: 2px solid var(--tpp-black);
	outline-offset: 3px;
}

.seats__fine {
	margin: 0;
	text-align: center;
	font-family: var(--tpp-font-body);
	font-size: 0.8125rem;
	color: var(--tpp-text-light);
	text-wrap: balance;
}


/* ── Below 1100px: a swipe row, like the old section ──
   The row reaches the screen edges and snaps back to the content edge. */
@media screen and (max-width: 1099px) {
	.seats__row {
		justify-content: flex-start;
		margin: 44px calc(-1 * var(--tpp-container-padding)) 0;
		padding: 12px var(--tpp-container-padding) 24px;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scroll-padding: 0 var(--tpp-container-padding);
		scrollbar-width: none;
	}

	.seats__row::-webkit-scrollbar {
		display: none;
	}

	.seats__item {
		flex: 0 0 216px;
		scroll-snap-align: start;
	}
}

@media screen and (max-width: 991px) {
	.seats {
		padding: 30px 0 60px;
	}
}

@media screen and (max-width: 767px) {
	.seats {
		padding: 10px 0 56px;
	}

	.seats__row {
		margin-top: 32px;
		gap: 20px;
	}

	.seats__item {
		flex-basis: 200px;
	}

	.seats__foot {
		margin-top: 28px;
	}

	.seats__actions {
		flex-direction: column;
		align-items: stretch;
		width: 100%;
		max-width: 340px;
	}

	.seats__cta--key {
		justify-content: space-between;
	}
}


/* ── Reduced motion: shades start lifted, nothing slides ── */
@media (prefers-reduced-motion: reduce) {
	.seats__view,
	.seats__shade,
	.seats__tag,
	.seats__cta-icon {
		transition: none;
	}

	.seats__view {
		transform: none;
	}

	.seats__shade {
		transform: translateY(-88%);
	}

	.seats__tag {
		opacity: 1;
		transform: translate(-50%, 0);
	}
}
