/*--------------------------------------------------------------
# Book Travel — Process
# "What happens after you click" — four steps across, each a
# ghost numeral, a short label, and a four-word description.
--------------------------------------------------------------*/

/* ── Section ── */
.bt-process {
	background: var(--tpp-white);
	/* No top padding — .bt-pricing above already supplies 100px, this
	   page's rhythm. */
	padding: 0 0 100px;
}

/* ── Container ── */
.bt-process__container {
	width: 100%;
	max-width: var(--tpp-container-max);
	margin: 0 auto;
	padding: 0 var(--tpp-container-padding);
}


/* ──────────────────────────────────────────────
   Heading
   ────────────────────────────────────────────── */

.bt-process__heading {
	text-align: center;
	font-family: var(--tpp-font-heading);
	font-size: clamp(2rem, 4.5vw + 0.5rem, 3.5rem);
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: -0.03em;
	color: var(--tpp-black);
	margin: 0 0 56px;
}


/* ──────────────────────────────────────────────
   Steps
   ────────────────────────────────────────────── */

.bt-process__list {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 32px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.bt-process__step {
	position: relative;
	padding-top: 26px;
	border-top: 1px solid var(--tpp-border-light);
}

/* The rule above each step darkens as it arrives, which is the only
   ornament the section gets. */
.bt-process__step::before {
	content: '';
	position: absolute;
	top: -1px;
	left: 0;
	width: 0;
	height: 1px;
	background: var(--tpp-black);
	transition: width 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.bt-process.is-visible .bt-process__step::before {
	width: 34px;
	transition-delay: calc(0.2s + var(--step-index, 0) * 0.1s);
}


/* ── Ghost numeral ── */
.bt-process__number {
	display: block;
	font-family: var(--tpp-font-heading);
	font-size: 2.25rem;
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.02em;
	color: var(--tpp-border);
	margin-bottom: 18px;
}


/* ── Copy ── */
.bt-process__title {
	font-family: var(--tpp-font-heading);
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.35;
	letter-spacing: -0.01em;
	color: var(--tpp-black);
	margin: 0 0 6px;
}

.bt-process__desc {
	font-family: var(--tpp-font-body);
	font-size: 0.9375rem;
	font-weight: 400;
	line-height: 1.6;
	color: var(--tpp-text-light);
	margin: 0;
}


/* ──────────────────────────────────────────────
   Scroll-reveal
   ────────────────────────────────────────────── */

.bt-process__heading {
	opacity: 0;
	transform: translateY(24px);
	transition:
		opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
		transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.bt-process.is-visible .bt-process__heading {
	opacity: 1;
	transform: translateY(0);
}

.bt-process__step {
	opacity: 0;
	transform: translateY(18px);
	transition:
		opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
		transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.bt-process.is-visible .bt-process__step {
	opacity: 1;
	transform: translateY(0);
	transition-delay: calc(0.12s + var(--step-index, 0) * 0.1s);
}


/* ──────────────────────────────────────────────
   Responsive
   ────────────────────────────────────────────── */

/* Tablet (≤991px) — 2 across */
@media screen and (max-width: 991px) {
	/* This page steps 100 / 80 / 72 / 56px. */
	.bt-process {
		padding: 0 0 80px;
	}

	.bt-process__list {
		grid-template-columns: repeat(2, 1fr);
		gap: 28px;
	}
}

/* Mobile (≤767px) */
@media screen and (max-width: 767px) {
	.bt-process {
		padding: 0 0 72px;
	}

	.bt-process__heading {
		font-size: clamp(1.75rem, 7vw, 2.5rem);
		margin-bottom: 36px;
	}

	.bt-process__list {
		gap: 16px;
	}

	/* Cards rather than rule-topped columns. Across a desktop row the top
	   border reads as a shared baseline tying the four steps together; once
	   they stack there are no neighbours for it to align with, so it stops
	   looking like structure and just becomes a line each step runs into.
	   A closed border gives each step its own edge again. */
	.bt-process__step {
		border: 1px solid var(--tpp-border-light);
		border-radius: 16px;
		padding: 34px 20px 26px;
		text-align: center;
	}

	/* The drawn rule moves inside the card and grows from the middle. The
	   translateX(-50%) is relative to the pseudo element's own width, so it
	   stays centred the whole way as the width animates 0 → 34px, rather
	   than unfurling from a fixed left edge. */
	.bt-process__step::before {
		top: 20px;
		left: 50%;
		transform: translateX(-50%);
	}

	.bt-process__number {
		font-size: 1.875rem;
		margin-bottom: 12px;
	}

	.bt-process__desc {
		font-size: 0.875rem;
	}
}

/* Small mobile (≤480px) — still 2 across. The step copy is four words or
   fewer, so half-width cards hold it fine; the side padding is trimmed so
   the text keeps as much of that narrower card as possible. */
@media screen and (max-width: 480px) {
	.bt-process {
		padding: 0 0 56px;
	}

	.bt-process__list {
		gap: 12px;
	}

	.bt-process__step {
		border-radius: 14px;
		padding: 30px 12px 22px;
	}

	.bt-process__step::before {
		top: 18px;
	}
}


/* ──────────────────────────────────────────────
   Reduced motion
   ────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
	.bt-process__heading,
	.bt-process__step,
	.bt-process__step::before {
		transition: none;
	}

	.bt-process.is-visible .bt-process__step,
	.bt-process.is-visible .bt-process__step::before {
		transition-delay: 0s;
	}
}
