/* ===========================================================================
   Simulator — /flight-simulator-singapore/

   The page has to hold two readers at once: someone booking a one-off flying
   experience, and someone deciding whether the hours are worth paying for. So
   the facts come first as a plain strip, the argument second, the photographs
   third, and the three ways in last — anyone can stop reading at any point and
   still have what they came for.
   =========================================================================== */

/* --- Spec strip ----------------------------------------------------------- */

/* Four facts, no cards. A bordered box around each would make them look like
   products; they are the machine's properties, and a rule between columns says
   that with far less furniture. */
.fts-specs-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--fts-line);
	border-bottom: 1px solid var(--fts-line);
}

.fts-specs-grid li {
	padding: clamp(1.25rem, 2.6vw, 1.9rem) clamp(1rem, 2vw, 1.6rem);
}

.fts-specs-grid li + li { border-left: 1px solid var(--fts-line); }

.fts-specs-grid h2 {
	margin: 0 0 0.45rem;
	font-family: var(--fts-font-cond);
	font-weight: 700;
	font-size: clamp(1.15rem, 2.2vw, 1.4rem);
	line-height: 1.1;
	letter-spacing: 0.005em;
	text-transform: uppercase;
	color: var(--fts-navy);
}

.fts-specs-grid p {
	margin: 0;
	font-size: 0.9rem;
	line-height: 1.55;
	color: var(--fts-slate);
	text-wrap: pretty;
}

/* --- Scenario list -------------------------------------------------------- */

/* Two columns of short phrases, not a tick list: these are not features being
   sold, they are the things an aeroplane will not let you rehearse, and the
   leading rule reads as a checklist rather than a sales sheet. */
.fts-scen {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.55rem 1.5rem;
	margin: 1.4rem 0 0;
	padding: 0;
	list-style: none;
}

.fts-scen li {
	position: relative;
	padding-left: 1.1rem;
	font-size: 0.9rem;
	line-height: 1.5;
	color: var(--fts-navy);
	font-weight: 500;
}

.fts-scen li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.62em;
	width: 0.6rem;
	height: 2px;
	background: var(--fts-blue);
}

/* --- Gallery -------------------------------------------------------------- */

.fts-shots {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(0.6rem, 1.4vw, 0.9rem);
	margin: 0;
	padding: 0;
	list-style: none;
}

.fts-shots__item {
	position: relative;
	border-radius: 0.75rem;
	overflow: hidden;
	background: var(--fts-mist);
	aspect-ratio: 1;
}

/* The cockpit shot earns two columns and two rows: it is the photograph the
   other four are details of. Five equal tiles would say all five matter
   equally, which is a grid deciding the hierarchy instead of the editor. */
.fts-shots__item.is-lead {
	grid-column: span 2;
	grid-row: span 2;
}

.fts-shots__item img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: scale 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.fts-shots__item:hover img { scale: 1.04; }

.fts-shots__cap {
	position: absolute;
	inset: auto 0 0;
	padding: 1.75rem 0.85rem 0.7rem;
	/* A gradient, not a flat bar: the caption has to stay legible over whatever
	   the photograph does at its bottom edge without boxing off the image. */
	background: linear-gradient(to top, rgba(6, 14, 32, 0.88), transparent);
	font-family: var(--fts-font);
	font-weight: 600;
	font-size: 0.78rem;
	letter-spacing: 0.04em;
	color: #fff;
}

.fts-shots__item.is-lead .fts-shots__cap {
	padding: 2.5rem 1.15rem 1rem;
	font-size: 0.92rem;
}

/* --- Three ways in -------------------------------------------------------- */

.fts-routes {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(0.9rem, 2vw, 1.35rem);
	margin: 0;
	padding: 0;
	list-style: none;
}

.fts-route {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding: clamp(1.3rem, 2.6vw, 1.85rem);
	border: 1px solid var(--fts-line);
	border-radius: 0.9rem;
	background: #fff;
	transition: border-color 0.25s ease-out, box-shadow 0.25s ease-out;
}

.fts-route:hover {
	border-color: var(--fts-mist);
	box-shadow: 0 18px 44px -22px rgba(22, 48, 94, 0.45);
}

.fts-route__kick {
	margin: 0 0 0.5rem;
	font-family: var(--fts-font-cond);
	font-weight: 600;
	font-size: 0.78rem;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: var(--fts-blue);
}

.fts-route__h {
	margin: 0 0 0.5rem;
	font-family: var(--fts-font-cond);
	font-weight: 700;
	font-size: clamp(1.45rem, 2.8vw, 1.7rem);
	line-height: 1.05;
	color: var(--fts-navy);
}

.fts-route__desc {
	margin: 0 0 1.1rem;
	font-size: 0.92rem;
	line-height: 1.62;
	color: var(--fts-slate);
	text-wrap: pretty;
}

/* Pushed to the bottom so the price sits on one line across all three cards
   however much copy is above it. */
.fts-route__price {
	margin: auto 0 0.9rem;
	padding-top: 0.9rem;
	width: 100%;
	border-top: 1px solid var(--fts-line);
	font-family: var(--fts-font-cond);
	font-weight: 800;
	font-size: clamp(1.4rem, 2.6vw, 1.65rem);
	line-height: 1.1;
	color: var(--fts-navy);
	font-variant-numeric: tabular-nums;
}

.fts-route__cta {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	padding-block: 0.35rem;
	font-weight: 700;
	font-size: 0.92rem;
	color: var(--fts-navy);
	text-decoration: none;
}

.fts-route__cta .fts-arw { transition: translate 0.22s cubic-bezier(0.22, 1, 0.36, 1); }
.fts-route:hover .fts-arw,
.fts-route__cta:focus-visible .fts-arw { translate: 0.25rem 0; }

/* --- Breakpoints ---------------------------------------------------------- */

@media (max-width: 60rem) {
	.fts-routes { grid-template-columns: 1fr; }
}

/* Two by two until 1200px. Four columns of this copy at 1024 measures 26
   characters a line — the strip only earns four columns once each one can hold
   a readable measure. */
@media (max-width: 74.9375rem) {
	.fts-specs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.fts-specs-grid li + li { border-left: 0; }
	.fts-specs-grid li:nth-child(even) { border-left: 1px solid var(--fts-line); }
	.fts-specs-grid li:nth-child(n + 3) { border-top: 1px solid var(--fts-line); }
}

/* The gallery drops to two columns with the lead still spanning both, which
   keeps 1 + 4 rather than stranding a tile. */
@media (max-width: 48rem) {
	.fts-shots { grid-template-columns: repeat(2, minmax(0, 1fr)); }

	/* Still spans both columns — dropping the span would leave five tiles in two
	   columns and strand one. But it stops being square: full-width and 1:1 makes
	   a 707px-tall photograph at 768, which is most of a tablet screen for one
	   image. */
	.fts-shots__item.is-lead {
		grid-row: span 1;
		aspect-ratio: 16 / 10;
	}
}

@media (max-width: 34rem) {
	.fts-specs-grid { grid-template-columns: 1fr; }
	.fts-specs-grid li:nth-child(even) { border-left: 0; }
	.fts-specs-grid li + li { border-top: 1px solid var(--fts-line); }

	.fts-scen { grid-template-columns: 1fr; }
}
