/* =============================================================
   Elite Pearl Charter — F1 Yacht Party Abu Dhabi

   The one page carrying Formula 1 red. Every rule is scoped
   under .epc-f1 so the accent cannot leak into the monochrome
   palette the rest of the site uses. The base stays black,
   white and silver; red is used only where the eye should go.
   ============================================================= */

.epc-f1 {
	--f1-red: #e10600;
	--f1-red-dim: rgb(225 6 0 / 55%);
	--f1-red-glow: rgb(225 6 0 / 22%);
}

.epc-f1 .epc-f1__intro {
	max-width: 56rem;
	margin: 0 auto 2.5rem;
	text-align: center;
}

@media (min-width: 768px) {
	.epc-f1 .epc-f1__intro {
		margin-bottom: 3.5rem;
	}
}

.epc-f1 .epc-f1__eyebrow {
	margin: 0 0 0.75rem;
	font-family: var(--epc-font-sans);
	font-size: clamp(0.6875rem, 1.6vw, 0.8125rem);
	font-weight: 700;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--f1-red);
}

.epc-f1 .epc-f1__heading {
	margin: 0;
	font-family: var(--epc-font-serif);
	font-size: clamp(1.625rem, 4.6vw, 2.75rem);
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: 0.01em;
	text-transform: uppercase;
	text-wrap: balance;
}

/* Race-red rule rather than the usual silver gradient. */
.epc-f1 .epc-f1__rule {
	display: block;
	width: 72px;
	height: 2px;
	margin: 1.25rem auto 1.5rem;
	background: linear-gradient(
		to right,
		transparent 0%,
		var(--f1-red) 50%,
		transparent 100%
	);
}

.epc-f1 .epc-f1__text {
	max-width: 62ch;
	margin: 0 auto;
	font-family: var(--epc-font-sans);
	font-size: clamp(0.875rem, 2vw, 1rem);
	line-height: 1.9;
	color: var(--epc-grey);
	text-wrap: pretty;
}

/* The hero eyebrow turns red on this page only. */
.epc-f1 .epc-phero__eyebrow {
	color: var(--f1-red);
	font-weight: 700;
}

/* =============================================================
   Race passes
   ============================================================= */

.epc-f1-fleet,
.epc-f1-passes,
.epc-f1-packages,
.epc-f1-features {
	background: var(--epc-black);
	color: var(--epc-silver);
	border-top: 1px solid var(--epc-line-soft);
}

.epc-f1-fleet__inner,
.epc-f1-passes__inner,
.epc-f1-packages__inner,
.epc-f1-features__inner {
	width: 100%;
	max-width: var(--epc-container);
	margin-inline: auto;
	padding: 4rem var(--epc-gutter);
}

@media (min-width: 768px) {
	.epc-f1-fleet__inner,
	.epc-f1-passes__inner,
	.epc-f1-packages__inner,
	.epc-f1-features__inner {
		padding-block: 5.5rem;
	}
}

@media (min-width: 1200px) {
	.epc-f1-fleet__inner,
	.epc-f1-passes__inner,
	.epc-f1-packages__inner,
	.epc-f1-features__inner {
		padding-block: 7rem;
	}
}

.epc-f1-passes__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 560px) {
	.epc-f1-passes__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.epc-f1-passes__grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 1.5rem;
	}
}

.epc-f1-pass {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 2rem 1.35rem 1.6rem;
	text-align: center;
	background: var(--epc-gradient-surface);
	border: 1px solid rgb(141 143 142 / 32%);
	border-radius: 14px;
	box-shadow: inset 0 1px 0 rgb(255 255 255 / 6%);
	transition: transform 520ms var(--epc-ease-soft),
		border-color 520ms var(--epc-ease-soft),
		box-shadow 520ms var(--epc-ease-soft);
}

.epc-f1-pass:hover {
	transform: translateY(-5px);
	border-color: var(--f1-red-dim);
	box-shadow:
		0 18px 40px rgb(0 0 0 / 50%),
		0 0 0 1px var(--f1-red-glow);
}

/* Tagged passes carry the red edge at rest, so the eye lands there first. */
.epc-f1-pass.is-tagged {
	border-color: var(--f1-red-dim);
}

.epc-f1-pass__tag {
	position: absolute;
	top: -0.7rem;
	left: 50%;
	transform: translateX(-50%);
	padding: 0.3rem 0.75rem;
	font-family: var(--epc-font-sans);
	font-size: 0.625rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	white-space: nowrap;
	color: #fff;
	background: var(--f1-red);
	border-radius: 999px;
}

.epc-f1-pass__name {
	margin: 0 0 0.5rem;
	font-family: var(--epc-font-serif);
	font-size: 1.125rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--epc-white);
}

.epc-f1-pass__desc {
	margin: 0 0 1.25rem;
	font-family: var(--epc-font-sans);
	font-size: 0.8125rem;
	line-height: 1.7;
	color: var(--epc-grey);
	text-wrap: pretty;
}

.epc-f1-pass__price {
	display: flex;
	align-items: baseline;
	justify-content: center;
	gap: 0.4rem;
	margin: 0 0 1.5rem;
	font-family: var(--epc-font-sans);
	font-size: clamp(1.5rem, 4vw, 1.875rem);
	font-weight: 700;
	line-height: 1;
	color: var(--epc-white);
}

.epc-f1-pass__cur {
	font-size: 0.5em;
	font-weight: 600;
	letter-spacing: 0.08em;
	color: var(--f1-red);
}

.epc-f1-pass__btn {
	width: 100%;
	margin-top: auto;
	font-size: 0.6875rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding-block: 0.8rem;
}

/* =============================================================
   Packages
   ============================================================= */

.epc-f1-packages__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 1024px) {
	.epc-f1-packages__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		align-items: start;
	}
}

.epc-f1-pkg {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	padding: 2rem 1.5rem 1.75rem;
	background: var(--epc-ink-950);
	border: 1px solid rgb(141 143 142 / 30%);
	border-radius: 16px;
	transition: transform 520ms var(--epc-ease-soft),
		border-color 520ms var(--epc-ease-soft);
}

.epc-f1-pkg:hover {
	transform: translateY(-5px);
	border-color: var(--f1-red-dim);
}

/* The lead package sits raised and framed in red. */
.epc-f1-pkg.is-featured {
	background: var(--epc-gradient-surface);
	border-color: var(--f1-red-dim);
	box-shadow: 0 18px 44px rgb(0 0 0 / 50%);
}

.epc-f1-pkg__accent {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 3px;
	background: var(--epc-gradient-title);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 620ms var(--epc-ease-soft);
}

.epc-f1-pkg.is-featured .epc-f1-pkg__accent,
.epc-f1-pkg:hover .epc-f1-pkg__accent {
	background: var(--f1-red);
	transform: scaleX(1);
}

.epc-f1-pkg__name {
	margin: 0 0 0.35rem;
	font-family: var(--epc-font-serif);
	font-size: 1.25rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--epc-white);
}

.epc-f1-pkg__sub {
	margin: 0 0 1.4rem;
	font-family: var(--epc-font-sans);
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--f1-red);
}

.epc-f1-pkg__list {
	margin: 0 0 1.75rem;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 0.7rem;
}

.epc-f1-pkg__list li {
	display: flex;
	align-items: flex-start;
	gap: 0.6rem;
	font-family: var(--epc-font-sans);
	font-size: 0.8125rem;
	line-height: 1.65;
	color: var(--epc-nav-idle);
}

.epc-f1-pkg__list i {
	flex-shrink: 0;
	margin-top: 0.25em;
	font-size: 0.6875rem;
	color: var(--f1-red);
}

.epc-f1-pkg__btn {
	width: 100%;
	margin-top: auto;
	font-size: 0.6875rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding-block: 0.8rem;
}

/* =============================================================
   Race weekend features
   ============================================================= */

.epc-f1-features__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 560px) {
	.epc-f1-features__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.epc-f1-features__grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 1.5rem;
	}
}

.epc-f1-feature {
	padding: 2rem 1.35rem 1.75rem;
	text-align: center;
	background: var(--epc-ink-950);
	border: 1px solid var(--epc-line-soft);
	border-radius: 14px;
	transition: transform 520ms var(--epc-ease-soft),
		border-color 520ms var(--epc-ease-soft);
}

.epc-f1-feature:hover {
	transform: translateY(-4px);
	border-color: var(--f1-red-dim);
}

.epc-f1-feature__icon {
	position: relative;
	display: grid;
	place-items: center;
	width: 54px;
	height: 54px;
	margin: 0 auto 1.1rem;
	font-size: 1.25rem;
	color: var(--epc-white);
	background: var(--epc-ink-900);
	border: 1px solid var(--epc-line);
	border-radius: 50%;
	transition: color 520ms var(--epc-ease-soft),
		background-color 520ms var(--epc-ease-soft),
		border-color 520ms var(--epc-ease-soft);
}

.epc-f1-feature:hover .epc-f1-feature__icon {
	color: #fff;
	background: var(--f1-red);
	border-color: transparent;
}

.epc-f1-feature h3 {
	margin: 0 0 0.6rem;
	font-family: var(--epc-font-serif);
	font-size: 1.0625rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--epc-white);
}

.epc-f1-feature p {
	margin: 0;
	font-family: var(--epc-font-sans);
	font-size: 0.8125rem;
	line-height: 1.8;
	color: var(--epc-grey);
	text-wrap: pretty;
}

/* =============================================================
   Race weekend fleet
   ============================================================= */

.epc-f1-fleet__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 560px) {
	.epc-f1-fleet__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.epc-f1-fleet__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 1.75rem;
	}
}

.epc-f1-yacht {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: var(--epc-gradient-surface);
	border: 1px solid rgb(141 143 142 / 32%);
	border-radius: 16px;
	/* Same layer count at rest and on hover, or the shadow hard-swaps. */
	box-shadow:
		inset 0 1px 0 rgb(255 255 255 / 6%),
		0 0 0 0 rgb(0 0 0 / 0%),
		0 0 0 0 rgb(0 0 0 / 0%);
	transition: transform 520ms var(--epc-ease-soft),
		border-color 520ms var(--epc-ease-soft),
		box-shadow 520ms var(--epc-ease-soft);
}

.epc-f1-yacht:hover {
	transform: translateY(-6px);
	border-color: var(--f1-red-dim);
	box-shadow:
		inset 0 1px 0 rgb(255 255 255 / 6%),
		0 20px 44px rgb(0 0 0 / 52%),
		0 0 0 1px var(--f1-red-glow);
}

.epc-f1-yacht__media {
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: var(--epc-ink-900);
}

.epc-f1-yacht__media img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: 100%;
	object-fit: cover;
	transition: transform 700ms var(--epc-ease-soft);
}

.epc-f1-yacht:hover .epc-f1-yacht__media img {
	transform: scale(1.05);
}

/* Berth number: the one detail that only matters inside the circuit. */
.epc-f1-yacht__berth {
	position: absolute;
	top: 0.85rem;
	left: 0.85rem;
	padding: 0.34rem 0.7rem;
	font-family: var(--epc-font-sans);
	font-size: 0.625rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--epc-white);
	background: var(--f1-red);
	border-radius: 999px;
	box-shadow: 0 6px 16px rgb(0 0 0 / 45%);
}

.epc-f1-yacht__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 1rem;
	padding: 1.35rem 1.25rem 1.5rem;
}

.epc-f1-yacht__name {
	margin: 0;
	font-family: var(--epc-font-sans);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.35;
	letter-spacing: 0.01em;
	color: var(--epc-white);
}

.epc-f1-yacht__name a {
	color: inherit;
	text-decoration: none;
	transition: color 320ms var(--epc-ease-soft);
}

/* Stretched link: the whole card is clickable, one stop in the tab order. */
.epc-f1-yacht__name a::after {
	position: absolute;
	inset: 0;
	z-index: 1;
	content: "";
}

.epc-f1-yacht:hover .epc-f1-yacht__name a,
.epc-f1-yacht__name a:focus-visible {
	color: var(--f1-red);
}

.epc-f1-yacht__specs {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1px;
	margin: 0;
	padding: 0;
	list-style: none;
	background: var(--epc-line-soft);
	border: 1px solid var(--epc-line-soft);
	border-radius: 10px;
	overflow: hidden;
}

.epc-f1-yacht__specs li {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	padding: 0.6rem 0.7rem;
	background: rgb(0 0 0 / 45%);
}

.epc-f1-yacht__specs span {
	font-family: var(--epc-font-sans);
	font-size: 0.5625rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--epc-grey);
}

.epc-f1-yacht__specs strong {
	font-family: var(--epc-font-sans);
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--epc-white);
}

.epc-f1-yacht__btn {
	position: relative;
	z-index: 2;
	margin-top: auto;
	align-self: flex-start;
}

/* --- Reduced motion ------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
	.epc-f1-yacht,
	.epc-f1-yacht__media img,
	.epc-f1-pass,
	.epc-f1-pkg,
	.epc-f1-pkg__accent,
	.epc-f1-feature,
	.epc-f1-feature__icon {
		transition-duration: 0.01ms !important;
	}

	.epc-f1-yacht:hover,
	.epc-f1-pass:hover,
	.epc-f1-pkg:hover,
	.epc-f1-feature:hover {
		transform: none;
	}

	.epc-f1-yacht:hover .epc-f1-yacht__media img {
		transform: none;
	}
}

/* =============================================================
   Race countdown
   ============================================================= */

.epc-f1-count {
	background: var(--epc-black);
	border-top: 1px solid var(--epc-line-soft);
}

.epc-f1-count__inner {
	width: 100%;
	max-width: var(--epc-container);
	margin-inline: auto;
	padding: 3rem var(--epc-gutter);
}

@media (min-width: 768px) {
	.epc-f1-count__inner {
		padding-block: 4rem;
	}
}

.epc-f1-count__panel {
	position: relative;
	overflow: hidden;
	padding: 2.25rem 1.5rem 2.5rem;
	text-align: center;
	background: var(--epc-gradient-surface);
	border: 1px solid var(--f1-red-dim);
	border-radius: 18px;
	box-shadow:
		0 14px 40px rgb(0 0 0 / 45%),
		0 0 0 1px var(--f1-red-glow),
		inset 0 1px 0 rgb(255 255 255 / 6%);
}

@media (min-width: 768px) {
	.epc-f1-count__panel {
		padding: 3rem 3rem 3.25rem;
	}
}

/* Racing stripes, drawn rather than imported. */
.epc-f1-count__panel::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: repeating-linear-gradient(
		115deg,
		rgb(225 6 0 / 8%) 0 2px,
		transparent 2px 22px
	);
	pointer-events: none;
}

.epc-f1-count__panel > * {
	position: relative;
	z-index: 1;
}

.epc-f1-count__eyebrow {
	margin: 0 0 0.6rem;
	font-family: var(--epc-font-sans);
	font-size: clamp(0.6875rem, 1.6vw, 0.8125rem);
	font-weight: 700;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: var(--f1-red);
}

.epc-f1-count__heading {
	margin: 0;
	font-family: var(--epc-font-serif);
	font-size: clamp(1.375rem, 4vw, 2.25rem);
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0.01em;
	text-transform: uppercase;
}

.epc-f1-count__date {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	margin: 0.85rem 0 2rem;
	font-family: var(--epc-font-sans);
	font-size: clamp(0.75rem, 1.8vw, 0.875rem);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--epc-nav-idle);
}

.epc-f1-count__date i {
	color: var(--f1-red);
}

/* --- Digits --------------------------------------------------------------- */

.epc-f1-count__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0.6rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 560px) {
	.epc-f1-count__grid {
		gap: 1rem;
		max-width: 40rem;
		margin-inline: auto;
	}
}

.epc-f1-count__unit {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.4rem;
	padding: 1rem 0.5rem 0.85rem;
	background: rgb(0 0 0 / 55%);
	border: 1px solid var(--epc-line);
	border-radius: 12px;
}

@media (min-width: 560px) {
	.epc-f1-count__unit {
		padding: 1.35rem 0.75rem 1.1rem;
	}
}

.epc-f1-count__num {
	font-family: var(--epc-font-serif);
	font-size: clamp(1.75rem, 7vw, 3rem);
	font-weight: 700;
	line-height: 1;
	color: var(--epc-white);
	/* Fixed-width digits, so the seconds do not jiggle the row each tick. */
	font-variant-numeric: tabular-nums;
}

.epc-f1-count__label {
	font-family: var(--epc-font-sans);
	font-size: clamp(0.5625rem, 1.5vw, 0.6875rem);
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--epc-silver);
}

.epc-f1-count__done {
	margin: 0;
	font-family: var(--epc-font-sans);
	font-size: clamp(0.875rem, 2vw, 1rem);
	line-height: 1.7;
	color: var(--epc-white);
}
