/* =========================================================================
 * Fetch Fancy — Rewards page styles
 * Loads only on pages using the "Fetch Fancy — Rewards" template.
 * ========================================================================= */

.ff[data-ff-page="rewards"] {
	background: var(--ff-cream);
	overflow: hidden; /* parallax safety */
}

/* Grids ------------------------------------------------------------------ */
.ff-grid {
	display: grid;
	gap: clamp(1rem, 2vw, 1.75rem);
}
.ff-grid--4 { grid-template-columns: repeat(4, 1fr); }
.ff-grid--3 { grid-template-columns: repeat(3, 1fr); }

/* Section heads ---------------------------------------------------------- */
.ff-section-head {
	max-width: 720px;
	margin: 0 auto 3rem;
	text-align: center;
}
.ff-section-head h2 {
	font-size: clamp(1.9rem, 3.4vw, 2.8rem);
}
.ff-section-lede {
	color: var(--ff-ink-soft);
	font-size: 1.05rem;
	margin-top: .9rem;
}
.ff-section-lede--light { color: rgba(255,255,255,.78); }

/* ============================================================
 * HERO
 * ============================================================ */
.ff-hero {
	position: relative;
	min-height: 92vh;
	display: flex;
	align-items: center;
	color: #fff;
	/* Top padding clears the theme header (≈100px) + WP admin bar (32px). */
	padding: clamp(9rem, 16vh, 12rem) 0 6rem;
	isolation: isolate;
}

.ff-hero__bg {
	position: absolute; inset: 0;
	z-index: -1;
	overflow: hidden;
}
.ff-hero__photo {
	position: absolute; inset: 0;
	background-size: cover;
	background-position: center;
	transform: scale(1.08);
	will-change: transform;
	transition: transform 1.2s var(--ff-ease-out);
}
.ff-hero__mesh {
	position: absolute; inset: 0;
	background:
		radial-gradient(circle at 12% 18%, rgba(182,228,69,.45) 0%, transparent 45%),
		radial-gradient(circle at 88% 10%, rgba(34,211,238,.40) 0%, transparent 45%),
		radial-gradient(circle at 30% 95%, rgba(251,191,36,.30) 0%, transparent 50%),
		linear-gradient(180deg, rgba(10,25,41,.55) 0%, rgba(10,25,41,.85) 100%);
	z-index: 1;
	animation: ff-mesh-drift 22s ease-in-out infinite alternate;
}
.ff-hero__photo { z-index: 0; }

@keyframes ff-mesh-drift {
	0%   { transform: translate3d(0, 0, 0) scale(1); }
	100% { transform: translate3d(-2%, 1%, 0) scale(1.08); }
}

.ff-hero__inner {
	position: relative;
	z-index: 2;
}

.ff-hero .ff-eyebrow {
	color: var(--ff-lime);
}

.ff-hero__title {
	font-size: clamp(2.6rem, 6.5vw, 5.4rem);
	line-height: 1.0;
	color: #fff;
	margin: 0 0 1.5rem;
	letter-spacing: -0.02em;
}
.ff-word {
	display: inline-block;
}
.ff-word--accent {
	background: linear-gradient(120deg, var(--ff-brand) 0%, var(--ff-lime) 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.ff-word--gold {
	background: linear-gradient(120deg, var(--ff-gold) 0%, var(--ff-coral) 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.ff-hero__lede {
	max-width: 640px;
	font-size: clamp(1.05rem, 1.4vw, 1.2rem);
	color: rgba(255,255,255,.85);
	margin: 0 0 2.2rem;
}

.ff-hero__cta {
	display: flex;
	gap: 1rem;
	flex-wrap: wrap;
	margin-bottom: 3rem;
}

.ff-hero__stats {
	display: grid;
	grid-template-columns: repeat(3, max-content);
	gap: clamp(1.5rem, 4vw, 3rem);
	padding-top: 2rem;
	border-top: 1px solid rgba(255,255,255,.18);
}
.ff-stat__num {
	display: block;
	font-family: var(--ff-font-display);
	font-size: clamp(1.8rem, 3vw, 2.6rem);
	color: var(--ff-lime);
	line-height: 1;
}
.ff-stat__label {
	display: block;
	margin-top: .4rem;
	font-size: .85rem;
	color: rgba(255,255,255,.75);
	max-width: 14ch;
}

.ff-hero__scroll {
	position: absolute;
	bottom: 1.4rem;
	left: 50%;
	transform: translateX(-50%);
	width: 26px;
	height: 42px;
	border: 2px solid rgba(255,255,255,.55);
	border-radius: 14px;
	z-index: 3;
}
.ff-hero__scroll span {
	display: block;
	width: 3px; height: 8px;
	margin: 6px auto 0;
	background: #fff;
	border-radius: 2px;
	animation: ff-scroll-dot 1.8s ease-in-out infinite;
}
@keyframes ff-scroll-dot {
	0%, 100% { transform: translateY(0); opacity: 1; }
	60%      { transform: translateY(14px); opacity: 0; }
	61%      { transform: translateY(0);    opacity: 0; }
}

/* ============================================================
 * WHY (value props)
 * ============================================================ */
.ff-why {
	padding: clamp(4.5rem, 9vw, 7rem) 0;
	background: var(--ff-cream);
	position: relative;
}
.ff-why::before {
	content: "";
	position: absolute; inset: 0 0 auto 0;
	height: 60px;
	background: linear-gradient(to bottom, rgba(10,25,41,.06), transparent);
	pointer-events: none;
}

.ff-card {
	background: #fff;
	border-radius: var(--ff-radius-lg);
	padding: 2rem 1.6rem;
	box-shadow: var(--ff-shadow-sm);
	border: 1px solid var(--ff-line);
	transition: transform .35s var(--ff-ease-out), box-shadow .35s ease;
	position: relative;
	overflow: hidden;
}
.ff-card::after {
	content: "";
	position: absolute; left: 0; right: 0; bottom: 0;
	height: 3px;
	background: linear-gradient(90deg, var(--ff-lime), var(--ff-brand));
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform .5s var(--ff-ease-out);
}
.ff-card:hover {
	transform: translateY(-6px);
	box-shadow: var(--ff-shadow-md);
}
.ff-card:hover::after { transform: scaleX(1); }
.ff-card__icon {
	width: 56px; height: 56px;
	border-radius: 14px;
	background: linear-gradient(135deg, var(--ff-lime) 0%, var(--ff-brand) 100%);
	color: var(--ff-ink);
	display: grid; place-items: center;
	margin-bottom: 1.2rem;
}
.ff-card h3 {
	font-size: 1.2rem;
	margin-bottom: .5rem;
}
.ff-card p {
	color: var(--ff-ink-soft);
	font-size: .95rem;
}

/* ============================================================
 * SAVINGS (deals)
 * ============================================================ */
.ff-savings {
	padding: clamp(4.5rem, 9vw, 7rem) 0;
	background:
		radial-gradient(circle at 80% 10%, rgba(34,211,238,.18) 0%, transparent 50%),
		radial-gradient(circle at 10% 90%, rgba(182,228,69,.15) 0%, transparent 50%),
		var(--ff-ink);
	color: #fff;
	position: relative;
}
.ff-savings h2, .ff-savings h3 { color: #fff; }

.ff-deal {
	background: #fff;
	color: var(--ff-ink);
	border-radius: var(--ff-radius-lg);
	overflow: hidden;
	box-shadow: var(--ff-shadow-xl);
	transition: transform .4s var(--ff-ease-out);
}
.ff-deal:hover { transform: translateY(-6px) scale(1.01); }

.ff-deal__media {
	position: relative;
	aspect-ratio: 16/10;
	background-size: cover;
	background-position: center;
}
.ff-deal__badge {
	position: absolute;
	top: 1rem; left: 1rem;
	background: var(--ff-gold);
	color: var(--ff-ink);
	font-family: var(--ff-font-display);
	font-size: .8rem;
	letter-spacing: .08em;
	padding: .35rem .75rem;
	border-radius: 999px;
	box-shadow: var(--ff-shadow-sm);
}

.ff-deal__body { padding: 1.4rem 1.4rem 1.6rem; }

.ff-deal__loc {
	color: var(--ff-brand-deep);
	font-weight: 700;
	font-size: .8rem;
	letter-spacing: .12em;
	text-transform: uppercase;
	margin: 0 0 .25rem;
}
.ff-deal h3 {
	font-size: 1.15rem;
	margin-bottom: 1rem;
	color: var(--ff-ink);
}
.ff-deal__price {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: .5rem;
	padding: 1rem;
	background: var(--ff-cream-deep);
	border-radius: 12px;
}
.ff-deal__price > svg { color: var(--ff-brand-deep); }
.ff-deal__label {
	display: block;
	font-size: .7rem;
	color: var(--ff-ink-soft);
	text-transform: uppercase;
	letter-spacing: .1em;
}
.ff-deal__strike {
	display: block;
	font-family: var(--ff-font-display);
	font-size: 1.4rem;
	color: var(--ff-ink-soft);
	text-decoration: line-through;
	text-decoration-thickness: 2px;
}
.ff-deal__now {
	display: block;
	font-family: var(--ff-font-display);
	font-size: 1.6rem;
	color: var(--ff-brand-deep);
}
.ff-deal__savings {
	margin-top: .9rem;
	font-size: .92rem;
	color: var(--ff-ink-soft);
}
.ff-deal__savings strong { color: var(--ff-rose); font-family: var(--ff-font-display); font-weight: 400; }

.ff-savings__note {
	margin-top: 2rem;
	text-align: center;
	color: rgba(255,255,255,.55);
	font-size: .85rem;
	font-style: italic;
}

/* ============================================================
 * HOW IT WORKS — Steps
 * ============================================================ */
.ff-how {
	padding: clamp(4.5rem, 9vw, 7rem) 0;
	background: var(--ff-paper);
}

.ff-steps {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: clamp(1rem, 2vw, 1.5rem);
	counter-reset: step;
	position: relative;
}
.ff-steps::before {
	content: "";
	position: absolute;
	top: 36px;
	left: 9%;
	right: 9%;
	height: 2px;
	background: repeating-linear-gradient(90deg, var(--ff-line) 0 6px, transparent 6px 12px);
	z-index: 0;
}
.ff-step {
	position: relative;
	z-index: 1;
	background: var(--ff-cream);
	border-radius: var(--ff-radius-lg);
	padding: 2rem 1.4rem 1.6rem;
	border: 1px solid var(--ff-line);
	text-align: left;
}
.ff-step__num {
	position: absolute;
	top: -22px;
	left: 1.4rem;
	width: 56px; height: 56px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--ff-ink), var(--ff-ink-2));
	color: #fff;
	font-family: var(--ff-font-display);
	font-size: 1rem;
	letter-spacing: .04em;
	display: grid; place-items: center;
	box-shadow: var(--ff-shadow-md);
}
.ff-step h3 {
	margin-top: 1.5rem;
	font-size: 1.15rem;
	margin-bottom: .35rem;
}
.ff-step p {
	font-size: .92rem;
	color: var(--ff-ink-soft);
}

/* ============================================================
 * CATEGORIES
 * ============================================================ */
.ff-cats {
	padding: clamp(4.5rem, 9vw, 7rem) 0;
	background: linear-gradient(180deg, var(--ff-cream) 0%, var(--ff-cream-deep) 100%);
}
.ff-cats__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1rem;
}
.ff-cat {
	display: flex;
	flex-direction: column;
	gap: .35rem;
	padding: 1.6rem 1.2rem;
	background: #fff;
	border-radius: var(--ff-radius);
	border: 1px solid var(--ff-line);
	text-decoration: none;
	color: var(--ff-ink);
	transition: transform .3s var(--ff-ease-out), box-shadow .3s ease, border-color .3s ease;
	position: relative;
	overflow: hidden;
}
.ff-cat:hover {
	transform: translateY(-4px);
	box-shadow: var(--ff-shadow-md);
	border-color: var(--ff-brand);
}
.ff-cat__icon {
	width: 44px; height: 44px;
	border-radius: 12px;
	background: linear-gradient(135deg, var(--ff-lime) 0%, var(--ff-brand) 100%);
	color: var(--ff-ink);
	display: grid; place-items: center;
	margin-bottom: .65rem;
}
.ff-cat__title {
	font-family: var(--ff-font-display);
	font-size: 1.1rem;
}
.ff-cat__desc {
	color: var(--ff-ink-soft);
	font-size: .85rem;
}

/* ============================================================
 * CLOSING CTA
 * ============================================================ */
.ff-cta {
	padding: clamp(4.5rem, 9vw, 7rem) 0;
	background:
		radial-gradient(circle at 0% 50%, rgba(182,228,69,.18) 0%, transparent 45%),
		radial-gradient(circle at 100% 80%, rgba(34,211,238,.18) 0%, transparent 50%),
		linear-gradient(135deg, var(--ff-ink) 0%, var(--ff-ink-2) 100%);
	color: #fff;
}
.ff-cta__inner {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 2rem 4rem;
	align-items: center;
}
.ff-cta h2 {
	color: #fff;
	font-size: clamp(1.8rem, 3.4vw, 2.8rem);
	line-height: 1.08;
}
.ff-cta__accent {
	background: linear-gradient(120deg, var(--ff-lime), var(--ff-gold));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.ff-cta p {
	color: rgba(255,255,255,.8);
	max-width: 56ch;
}
.ff-cta__actions {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: .9rem;
}
.ff-cta__finepr {
	font-size: .78rem;
	color: rgba(255,255,255,.55);
	margin-top: .3rem;
}

/* =========================================================================
 * RESPONSIVE
 * ========================================================================= */
@media (max-width: 1024px) {
	.ff-grid--4    { grid-template-columns: repeat(2, 1fr); }
	.ff-cats__grid { grid-template-columns: repeat(3, 1fr); }
	.ff-steps      { grid-template-columns: repeat(2, 1fr); }
	.ff-steps::before { display: none; }
}

@media (max-width: 768px) {
	.ff-hero { min-height: 84vh; padding: 6rem 0 4rem; text-align: left; }
	.ff-hero__stats { grid-template-columns: 1fr 1fr; row-gap: 1.2rem; }
	.ff-grid--3    { grid-template-columns: 1fr; }
	.ff-grid--4    { grid-template-columns: 1fr; }
	.ff-cats__grid { grid-template-columns: repeat(2, 1fr); }
	.ff-steps      { grid-template-columns: 1fr; }

	.ff-cta__inner { grid-template-columns: 1fr; }
	.ff-cta__actions { align-items: stretch; }
	.ff-cta__actions .ff-btn { justify-content: center; }
}

@media (max-width: 480px) {
	.ff-hero__title { font-size: clamp(2.2rem, 10vw, 3rem); }
	.ff-cats__grid  { grid-template-columns: 1fr; }
	.ff-deal__price { grid-template-columns: 1fr; gap: .8rem; }
	.ff-deal__price > svg { transform: rotate(90deg); justify-self: center; }
}
