/**
 * Find Your Fuel page.
 *
 * Loaded only on the page with slug "find-your-fuel". Figma frame
 * "Find-Your-Fuel", 1512 wide. Uses the theme design tokens from main.css.
 *
 * 1. Hero
 * 2. Nutrition hubs (bento)
 * 3. Why these pages exist (features + stats)
 * 4. Call to action
 * 5. Motion (transitions / animations)
 * 6. Responsive
 */

/* -------------------------------------------------------------------------- */
/* 1. Hero                                                                     */
/* -------------------------------------------------------------------------- */

.fhero {
	position: relative;
	display: flex;
	align-items: center;
	min-height: clamp(440px, 44vw, 670px);
	padding-block: clamp(56px, 6.6vw, 100px);
	background: var(--c-ink);
	color: var(--c-white);
	isolation: isolate;
}

.fhero__media {
	position: absolute;
	inset: 0;
	z-index: -1;
}

.fhero__media img,
.fhero__media video {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.fhero__media::after {
	content: "";
	position: absolute;
	inset: 0;
	/* Darker at the left, where the copy sits, fading right over the food. */
	background: linear-gradient(90deg, rgb(15 12 20 / 92%) 0%, rgb(15 12 20 / 70%) 42%, rgb(15 12 20 / 20%) 100%);
}

.fhero__inner {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: clamp(14px, 1.6vw, 22px);
	max-width: 720px;
}

.fhero__eyebrow {
	margin: 0;
	font-size: clamp(14px, 1.06vw, 16px);
	font-weight: var(--fw-semibold);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--c-lilac);
}

.fhero__title {
	margin: 0;
	font-size: clamp(38px, 4.76vw, 72px);
	font-weight: var(--fw-bold);
	line-height: 1.02;
	letter-spacing: -0.02em;
	text-transform: uppercase;
	text-wrap: balance;
}

.fhero__subtitle {
	max-width: 620px;
	margin: 0;
	font-size: clamp(16px, 1.19vw, 18px);
	font-weight: var(--fw-medium);
	line-height: 1.6;
}

.fhero__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: clamp(6px, 1vw, 12px) 0 0;
	padding: 0;
	list-style: none;
}

.fchip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 7px 14px;
	border: 1px solid rgb(255 255 255 / 22%);
	border-radius: var(--radius-pill);
	background: rgb(255 255 255 / 6%);
	font-size: 12px;
	font-weight: var(--fw-medium);
	white-space: nowrap;
	backdrop-filter: blur(4px);
}

.fchip::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--c-purple-light);
}

/* -------------------------------------------------------------------------- */
/* 2. Nutrition hubs                                                           */
/* -------------------------------------------------------------------------- */

.fhubs {
	padding-block: clamp(40px, 4.6vw, 70px);
	background: var(--c-ink);
}

/*
 * Six-column bento: the first two hubs span three each (a 2-up feature row),
 * the last three span two each (a 3-up row). Collapses gracefully below.
 */
.fhubs__grid {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: clamp(16px, 1.6vw, 24px);
	margin: 0;
	padding: 0;
	list-style: none;
}

.fhub {
	position: relative;
	overflow: hidden;
	border-radius: 16px;
	isolation: isolate;
}

.fhub--feature {
	grid-column: span 3;
	aspect-ratio: 686 / 500;
}

.fhub--compact {
	grid-column: span 2;
	aspect-ratio: 455 / 370;
}

.fhub__link {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: clamp(20px, 1.9vw, 28px);
	color: var(--c-white);
	text-decoration: none;
}

.fhub__media {
	position: absolute;
	inset: 0;
	z-index: -2;
}

.fhub__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 700ms var(--ease);
}

/* Legibility scrim behind the copy. */
.fhub__link::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(0deg, rgb(10 8 14 / 92%) 0%, rgb(10 8 14 / 45%) 45%, rgb(10 8 14 / 8%) 100%);
	transition: background 400ms var(--ease);
}

.fhub__top {
	position: absolute;
	inset: clamp(16px, 1.6vw, 24px) clamp(16px, 1.6vw, 24px) auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	pointer-events: none;
}

.fhub__badge {
	padding: 5px 12px;
	border-radius: var(--radius-pill);
	background: var(--c-charcoal);
	font-size: 12px;
	font-weight: var(--fw-semibold);
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.fhub__volume {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-left: auto;
	padding: 5px 12px;
	border-radius: var(--radius-pill);
	background: var(--c-purple);
	font-size: 12px;
	font-weight: var(--fw-semibold);
	white-space: nowrap;
}

.fhub__volume-icon {
	width: 14px;
	height: 14px;
}

.fhub__body {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.fhub__title {
	margin: 0;
	font-size: clamp(28px, 3.17vw, 48px);
	font-weight: var(--fw-bold);
	line-height: 1;
	letter-spacing: -0.01em;
	text-transform: uppercase;
}

.fhub__desc {
	max-width: 46ch;
	margin: 0;
	font-size: clamp(14px, 1.06vw, 16px);
	font-weight: var(--fw-medium);
	line-height: 1.5;
	color: rgb(255 255 255 / 88%);
}

.fhub__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ftag {
	padding: 4px 10px;
	border: 1px solid rgb(255 255 255 / 25%);
	border-radius: 6px;
	background: rgb(255 255 255 / 6%);
	font-size: 12px;
	font-weight: var(--fw-medium);
}

.fhub__btn {
	display: inline-flex;
	align-self: flex-start;
	align-items: center;
	gap: 8px;
	margin-top: 4px;
	padding: 10px 18px;
	border-radius: var(--radius-pill);
	background: var(--c-purple);
	font-size: clamp(14px, 1.06vw, 16px);
	font-weight: var(--fw-semibold);
	transition: background-color var(--duration) var(--ease);
}

.fhub__btn-icon {
	width: 18px;
	height: 18px;
	transition: transform var(--duration) var(--ease);
}

/* -------------------------------------------------------------------------- */
/* 3. Why these pages exist                                                    */
/* -------------------------------------------------------------------------- */

.fwhy {
	padding-block: clamp(56px, 6.35vw, 96px);
	background: var(--c-white);
}

.fwhy__grid {
	display: grid;
	grid-template-columns: minmax(0, 658fr) minmax(0, 658fr);
	gap: clamp(40px, 4.2vw, 64px);
	align-items: start;
}

.fwhy__eyebrow {
	margin: 0 0 16px;
	color: var(--c-purple);
	font-size: 16px;
	font-weight: var(--fw-semibold);
}

.fwhy__title {
	margin: 0 0 20px;
	color: var(--c-charcoal);
	font-size: clamp(30px, 3.17vw, 48px);
	font-weight: var(--fw-bold);
	line-height: 1.08;
	letter-spacing: -0.01em;
	text-transform: uppercase;
}

.fwhy__title-accent {
	display: block;
	color: var(--c-purple);
}

.fwhy__text {
	margin: 0 0 clamp(28px, 3vw, 44px);
	color: var(--c-grey);
	font-size: clamp(16px, 1.19vw, 18px);
	font-weight: var(--fw-medium);
	line-height: 1.6;
}

.fwhy__features {
	display: flex;
	flex-direction: column;
	gap: clamp(16px, 1.6vw, 24px);
	margin: 0;
	padding: 0;
	list-style: none;
}

.ffeature {
	display: flex;
	gap: 24px;
	align-items: flex-start;
}

.ffeature__icon {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	border-radius: 14px;
	background: var(--c-purple);
}

.ffeature__icon img {
	width: 30px;
	height: 30px;
	object-fit: contain;
}

.ffeature__title {
	margin: 0 0 6px;
	color: var(--c-purple);
	font-size: 16px;
	font-weight: var(--fw-semibold);
}

.ffeature__desc {
	margin: 0;
	color: var(--c-grey);
	font-size: 14px;
	font-weight: var(--fw-medium);
	line-height: 1.55;
}

.fwhy__stats {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: clamp(16px, 1.6vw, 24px);
	margin: 0;
	padding: 0;
	list-style: none;
}

.fstat {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: clamp(20px, 1.9vw, 28px);
	border-radius: 14px;
	background: var(--c-off-white);
	transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.fstat:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 30px rgb(102 75 186 / 12%);
}

.fstat__value {
	margin: 0;
	color: var(--c-purple);
	font-size: clamp(34px, 3.17vw, 48px);
	font-weight: var(--fw-bold);
	line-height: 1;
}

.fstat__title {
	margin: 0;
	color: var(--c-purple);
	font-size: clamp(18px, 1.32vw, 20px);
	font-weight: var(--fw-semibold);
}

.fstat__desc {
	margin: 0;
	color: var(--c-charcoal);
	font-size: 14px;
	font-weight: var(--fw-medium);
	line-height: 1.55;
}

/* -------------------------------------------------------------------------- */
/* 4. Call to action                                                           */
/* -------------------------------------------------------------------------- */

.fcta {
	padding-block: clamp(48px, 5.3vw, 80px);
	background: var(--c-purple);
	color: var(--c-white);
}

.fcta__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	text-align: center;
}

.fcta__title {
	margin: 0;
	font-size: clamp(30px, 3.17vw, 48px);
	font-weight: var(--fw-bold);
	line-height: 1.1;
	letter-spacing: -0.01em;
	text-transform: uppercase;
}

.fcta__text {
	max-width: 560px;
	margin: 0;
	font-size: clamp(15px, 1.19vw, 18px);
	font-weight: var(--fw-medium);
	line-height: 1.55;
}

.fcta__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 16px;
	margin-top: 8px;
}

/* Solid white pill with dark text, only used on the purple CTA band. */
.btn--white {
	background: var(--c-white);
	color: var(--c-ink);
}

.btn--white:hover {
	background: var(--c-off-white);
	color: var(--c-ink);
}

/* -------------------------------------------------------------------------- */
/* 5. Motion — transitions / animations                                        */
/* -------------------------------------------------------------------------- */

/* Card lift + image push-in on hover. */
.fhub__link:hover .fhub__media img {
	transform: scale(1.06);
}

.fhub__link:hover::after {
	background: linear-gradient(0deg, rgb(10 8 14 / 94%) 0%, rgb(10 8 14 / 55%) 50%, rgb(102 75 186 / 20%) 100%);
}

.fhub__link:hover .fhub__btn {
	background: var(--c-purple-dark);
}

.fhub__link:hover .fhub__btn-icon {
	transform: translateX(4px);
}

.fchip {
	transition: transform var(--duration) var(--ease), background-color var(--duration) var(--ease);
}

.fchip:hover {
	transform: translateY(-2px);
	background: rgb(255 255 255 / 12%);
}

@media (prefers-reduced-motion: reduce) {
	.fhub__media img,
	.fhub__btn-icon,
	.fstat,
	.fchip {
		transition: none;
	}
}

/* -------------------------------------------------------------------------- */
/* 6. Responsive                                                               */
/* -------------------------------------------------------------------------- */

@media (max-width: 1000px) {
	.fhubs__grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.fhub--feature,
	.fhub--compact {
		grid-column: span 1;
	}

	.fhub--compact:last-child:nth-child(odd) {
		grid-column: span 2;
		aspect-ratio: 910 / 370;
	}

	.fwhy__grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 620px) {
	.fhubs__grid {
		grid-template-columns: 1fr;
	}

	.fhub--feature,
	.fhub--compact,
	.fhub--compact:last-child:nth-child(odd) {
		grid-column: span 1;
		aspect-ratio: 4 / 3;
	}

	.fwhy__stats {
		grid-template-columns: 1fr;
	}

	.ffeature {
		gap: 16px;
	}
}
