/**
 * Pages — About, Reviews, Delivery, FAQ, Contact.
 *
 * One sheet per page-template family is overkill so we share a small
 * vocabulary here:
 *   .ff-page-hero       Eyebrow + title + sub band reused on every page.
 *   .ff-page-pillars    3-column icon-led "About" pillars.
 *   .ff-page-quote      Closing quote band (ends About).
 *   .ff-info-cards      3-column icon-led cards (Delivery).
 *   .ff-howitworks      Centered checklist (Delivery).
 *   .ff-reviews         Quote-card grid.
 *   .ff-faq             Native <details>/<summary> accordion.
 *   .ff-contact         3-card contact channels.
 *   .ff-page-cta        Dual-CTA closing band, reused on About / Reviews
 *                       / Delivery / FAQ.
 *
 * All tokens live in main.css. Every block uses clamp() for fluid
 * typography so we ship a single sheet to all viewports.
 *
 * @package FlanFudge
 */

/* =========================================================================
 * Page hero (shared)
 * ========================================================================= */
.flanfudge-page > .ff-section:first-of-type.ff-page-hero {
	padding-top: clamp(var(--ff-space-12), 6vw, var(--ff-space-20));
	padding-bottom: clamp(var(--ff-space-8), 4vw, var(--ff-space-16));
}

.ff-page-hero {
	background: var(--ff-cream);
}

.ff-page-hero__inner {
	max-width: 780px;
}

.ff-page-hero__eyebrow {
	margin-bottom: var(--ff-space-3);
}

body.flanfudge .ff-page-hero__title {
	font-size: clamp(2.25rem, 3.5vw + 1rem, 3.75rem);
	font-weight: var(--ff-weight-medium);
	letter-spacing: -0.025em;
	line-height: 1.05;
	margin: 0 0 var(--ff-space-5);
	color: var(--ff-foreground);
}

.ff-page-hero__title-em {
	display: block;
	font-style: italic;
	color: var(--ff-sage);
	font-weight: var(--ff-weight-medium);
}

.ff-page-hero__sub,
.ff-page-hero__body p {
	color: var(--ff-muted-fg);
	font-size: clamp(1rem, 0.5vw + 0.95rem, 1.15rem);
	line-height: 1.65;
	max-width: 60ch;
	margin: 0 0 var(--ff-space-4);
}

.ff-page-hero__body p:last-child {
	margin-bottom: 0;
}

/* =========================================================================
 * About — pillars
 * ========================================================================= */
.ff-page-pillars {
	background: var(--ff-cream);
	padding-block: clamp(var(--ff-space-8), 4vw, var(--ff-space-16));
}

.ff-page-pillars__grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: var(--ff-space-6);
	grid-template-columns: 1fr;
}

@media (min-width: 768px) {
	.ff-page-pillars__grid {
		grid-template-columns: repeat(3, 1fr);
		gap: var(--ff-space-8);
	}
}

.ff-page-pillars__item {
	background: var(--ff-card);
	border: 1px solid var(--ff-border);
	border-radius: var(--ff-radius-lg);
	padding: clamp(var(--ff-space-6), 2vw, var(--ff-space-8));
	display: flex;
	flex-direction: column;
	gap: var(--ff-space-3);
	box-shadow: 0 1px 0 rgba(0,0,0,0.02);
}

.ff-page-pillars__icon {
	width: 44px;
	height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: rgb(163 185 122 / 0.18);
	color: var(--ff-sage);
	border-radius: 14px;
}

.ff-page-pillars__icon svg {
	width: 22px; height: 22px;
	stroke: currentColor; fill: none;
	stroke-width: 1.8;
	stroke-linecap: round; stroke-linejoin: round;
}

body.flanfudge .ff-page-pillars__title {
	font-size: var(--ff-text-xl);
	font-weight: var(--ff-weight-semibold);
	color: var(--ff-foreground);
	margin: 0;
}

.ff-page-pillars__desc {
	color: var(--ff-muted-fg);
	margin: 0;
	line-height: 1.6;
}

/* =========================================================================
 * About — closing quote band
 * ========================================================================= */
.ff-page-quote {
	background: var(--ff-cream-soft);
	padding-block: clamp(var(--ff-space-12), 5vw, var(--ff-space-20));
}

.ff-page-quote__inner {
	max-width: 760px;
	margin: 0 auto;
	text-align: center;
}

body.flanfudge .ff-page-quote__title {
	font-size: clamp(1.75rem, 2.5vw + 1rem, 2.75rem);
	font-weight: var(--ff-weight-medium);
	letter-spacing: -0.02em;
	line-height: 1.15;
	margin: 0 0 var(--ff-space-4);
	color: var(--ff-foreground);
}

.ff-page-quote__sub {
	color: var(--ff-muted-fg);
	font-size: var(--ff-text-lg);
	line-height: 1.65;
	margin: 0;
}

/* =========================================================================
 * Reviews — quote grid
 * ========================================================================= */
.ff-reviews {
	padding-block: clamp(var(--ff-space-8), 4vw, var(--ff-space-16));
}

.ff-reviews__grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: var(--ff-space-5);
	grid-template-columns: 1fr;
}

@media (min-width: 720px) {
	.ff-reviews__grid {
		grid-template-columns: repeat(2, 1fr);
		gap: var(--ff-space-6);
	}
}

@media (min-width: 1080px) {
	.ff-reviews__grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

.ff-reviews__card {
	background: var(--ff-card);
	border: 1px solid var(--ff-border);
	border-radius: var(--ff-radius-lg);
	padding: clamp(var(--ff-space-5), 1.5vw, var(--ff-space-8));
	display: flex;
	flex-direction: column;
	gap: var(--ff-space-4);
	transition: transform 200ms ease, box-shadow 200ms ease;
}

.ff-reviews__card:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 28px -18px rgba(20,20,20,0.18);
}

.ff-reviews__stars {
	display: inline-flex;
	gap: 2px;
	color: #e9a33b;
}

.ff-reviews__stars svg {
	width: 16px; height: 16px;
	fill: currentColor;
	stroke: currentColor;
	stroke-width: 1;
	stroke-linejoin: round;
}

.ff-reviews__quote {
	margin: 0;
	border: none;
	padding: 0;
}

body.flanfudge .ff-reviews__quote p {
	font-size: clamp(1.05rem, 0.4vw + 1rem, 1.15rem);
	line-height: 1.55;
	color: var(--ff-foreground);
	font-style: italic;
	margin: 0;
}

.ff-reviews__meta {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin-top: auto;
	padding-top: var(--ff-space-3);
	border-top: 1px dashed var(--ff-border);
}

.ff-reviews__name {
	font-style: normal;
	font-weight: var(--ff-weight-semibold);
	color: var(--ff-foreground);
}

.ff-reviews__product {
	display: inline-flex;
	gap: 4px;
	font-size: var(--ff-text-sm);
	color: var(--ff-muted-fg);
}

.ff-reviews__product-label {
	color: var(--ff-muted-fg);
}

.ff-reviews__product-name {
	color: var(--ff-sage);
	font-weight: var(--ff-weight-semibold);
}

/* =========================================================================
 * Delivery — info cards + how it works
 * ========================================================================= */
.ff-info-cards {
	padding-block: clamp(var(--ff-space-8), 4vw, var(--ff-space-12));
}

.ff-info-cards__grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: var(--ff-space-5);
	grid-template-columns: 1fr;
}

@media (min-width: 768px) {
	.ff-info-cards__grid {
		grid-template-columns: repeat(3, 1fr);
		gap: var(--ff-space-6);
	}
}

.ff-info-cards__card {
	background: var(--ff-card);
	border: 1px solid var(--ff-border);
	border-radius: var(--ff-radius-lg);
	padding: clamp(var(--ff-space-5), 1.5vw, var(--ff-space-8));
	display: flex;
	flex-direction: column;
	gap: var(--ff-space-3);
}

.ff-info-cards__icon {
	width: 44px;
	height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: rgb(163 185 122 / 0.18);
	color: var(--ff-sage);
	border-radius: 14px;
}

.ff-info-cards__icon svg {
	width: 22px; height: 22px;
	stroke: currentColor; fill: none;
	stroke-width: 1.8;
	stroke-linecap: round; stroke-linejoin: round;
}

body.flanfudge .ff-info-cards__title {
	font-size: var(--ff-text-xl);
	font-weight: var(--ff-weight-semibold);
	color: var(--ff-foreground);
	margin: 0;
}

.ff-info-cards__desc {
	color: var(--ff-muted-fg);
	margin: 0;
	line-height: 1.6;
}

.ff-howitworks {
	padding-block: clamp(var(--ff-space-6), 3vw, var(--ff-space-12));
	background: var(--ff-cream-soft);
}

.ff-howitworks__inner {
	max-width: 780px;
	margin: 0 auto;
}

body.flanfudge .ff-howitworks__title {
	font-size: clamp(1.5rem, 1.5vw + 1rem, 2rem);
	font-weight: var(--ff-weight-semibold);
	margin: 0 0 var(--ff-space-5);
	color: var(--ff-foreground);
}

.ff-howitworks__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: var(--ff-space-3);
}

.ff-howitworks__item {
	display: flex;
	gap: var(--ff-space-3);
	align-items: flex-start;
	background: var(--ff-card);
	border: 1px solid var(--ff-border);
	border-radius: var(--ff-radius-md);
	padding: var(--ff-space-3) var(--ff-space-4);
	color: var(--ff-foreground);
	line-height: 1.55;
}

.ff-howitworks__bullet {
	flex-shrink: 0;
	width: 26px; height: 26px;
	display: inline-flex;
	align-items: center; justify-content: center;
	background: var(--ff-sage);
	color: var(--ff-cream);
	border-radius: 999px;
	margin-top: 2px;
}

.ff-howitworks__bullet svg {
	width: 14px; height: 14px;
	stroke: currentColor; fill: none;
	stroke-width: 2.4;
	stroke-linecap: round; stroke-linejoin: round;
}

/* =========================================================================
 * FAQ — accordion (native <details>)
 * ========================================================================= */
.ff-faq {
	padding-block: clamp(var(--ff-space-8), 4vw, var(--ff-space-16));
}

.ff-faq__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: var(--ff-space-3);
	max-width: 820px;
}

.ff-faq__item {
	background: var(--ff-card);
	border: 1px solid var(--ff-border);
	border-radius: var(--ff-radius-md);
	overflow: hidden;
}

.ff-faq__details {
	width: 100%;
}

.ff-faq__summary {
	list-style: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--ff-space-4);
	padding: var(--ff-space-4) var(--ff-space-5);
	font-weight: var(--ff-weight-semibold);
	color: var(--ff-foreground);
	min-height: 56px;
}

.ff-faq__summary::-webkit-details-marker { display: none; }

.ff-faq__summary:focus-visible {
	outline: 2px solid var(--ff-ring);
	outline-offset: -2px;
}

.ff-faq__q {
	font-size: clamp(1rem, 0.3vw + 0.95rem, 1.1rem);
	line-height: 1.4;
}

.ff-faq__icons {
	flex-shrink: 0;
	width: 28px; height: 28px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--ff-sage);
	position: relative;
}

.ff-faq__icons svg {
	width: 18px; height: 18px;
	stroke: currentColor; fill: none;
	stroke-width: 2;
	stroke-linecap: round; stroke-linejoin: round;
}

/* Toggle icons via the [open] attribute, no JS needed. */
.ff-faq__icon {
	position: absolute;
	inset: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: opacity 150ms ease;
}

.ff-faq__icon--minus { opacity: 0; }
.ff-faq__details[open] .ff-faq__icon--plus  { opacity: 0; }
.ff-faq__details[open] .ff-faq__icon--minus { opacity: 1; }

.ff-faq__answer {
	padding: 0 var(--ff-space-5) var(--ff-space-5);
	color: var(--ff-muted-fg);
	line-height: 1.65;
}

.ff-faq__answer p {
	margin: 0;
}

/* =========================================================================
 * Contact — 3 channel cards
 * ========================================================================= */
.ff-contact {
	padding-block: clamp(var(--ff-space-8), 4vw, var(--ff-space-16));
}

.ff-contact__grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: var(--ff-space-5);
	grid-template-columns: 1fr;
}

@media (min-width: 768px) {
	.ff-contact__grid {
		grid-template-columns: repeat(3, 1fr);
		gap: var(--ff-space-6);
	}
}

.ff-contact__card {
	display: flex;
}

.ff-contact__cardlink {
	display: flex;
	flex-direction: column;
	gap: var(--ff-space-3);
	padding: clamp(var(--ff-space-6), 2vw, var(--ff-space-8));
	background: var(--ff-card);
	border: 1px solid var(--ff-border);
	border-radius: var(--ff-radius-lg);
	color: inherit;
	text-decoration: none;
	width: 100%;
	transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.ff-contact__cardlink:hover,
.ff-contact__cardlink:focus-visible {
	transform: translateY(-2px);
	box-shadow: 0 12px 28px -18px rgba(20,20,20,0.18);
	border-color: rgb(163 185 122 / 0.55);
	color: inherit;
}

.ff-contact__icon {
	width: 48px; height: 48px;
	display: inline-flex;
	align-items: center; justify-content: center;
	background: rgb(163 185 122 / 0.18);
	color: var(--ff-sage);
	border-radius: 14px;
}

.ff-contact__icon svg {
	width: 24px; height: 24px;
	stroke: currentColor; fill: none;
	stroke-width: 1.8;
	stroke-linecap: round; stroke-linejoin: round;
}

body.flanfudge .ff-contact__title {
	font-size: var(--ff-text-xl);
	font-weight: var(--ff-weight-semibold);
	color: var(--ff-foreground);
	margin: 0;
}

.ff-contact__desc {
	color: var(--ff-muted-fg);
	margin: 0;
	line-height: 1.6;
}

.ff-contact__value {
	font-weight: var(--ff-weight-semibold);
	color: var(--ff-foreground);
	word-break: break-word;
}

.ff-contact__cta {
	margin-top: auto;
	padding-top: var(--ff-space-2);
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--ff-sage);
	font-weight: var(--ff-weight-semibold);
}

.ff-contact__cta svg {
	width: 16px; height: 16px;
	stroke: currentColor; fill: none;
	stroke-width: 2;
	stroke-linecap: round; stroke-linejoin: round;
	transition: transform 200ms ease;
}

.ff-contact__cardlink:hover .ff-contact__cta svg {
	transform: translateX(3px);
}

/* =========================================================================
 * Reusable closing CTA band
 * ========================================================================= */
.ff-page-cta {
	padding-block: clamp(var(--ff-space-10), 4vw, var(--ff-space-16));
}

.ff-page-cta__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--ff-space-4);
	padding: clamp(var(--ff-space-6), 2.5vw, var(--ff-space-10));
	background: var(--ff-foreground);
	color: var(--ff-cream);
	border-radius: var(--ff-radius-xl);
	justify-content: center;
}

@media (min-width: 768px) {
	.ff-page-cta__inner {
		justify-content: space-between;
	}
}

body.flanfudge .ff-page-cta__primary {
	background: var(--ff-cream);
	color: var(--ff-foreground);
	border-color: var(--ff-cream);
}

body.flanfudge .ff-page-cta__primary:hover,
body.flanfudge .ff-page-cta__primary:focus-visible {
	background: rgb(247 241 225 / 0.88);
	color: var(--ff-foreground);
	border-color: rgb(247 241 225 / 0.88);
}

body.flanfudge .ff-page-cta__secondary {
	background: transparent;
	color: var(--ff-cream);
	border-color: rgb(247 241 225 / 0.45);
}

body.flanfudge .ff-page-cta__secondary:hover,
body.flanfudge .ff-page-cta__secondary:focus-visible {
	background: rgb(247 241 225 / 0.08);
	color: var(--ff-cream);
}

.ff-page-cta__primary svg,
.ff-page-cta__secondary svg {
	width: 18px; height: 18px;
	stroke: currentColor; fill: none;
	stroke-width: 2;
	stroke-linecap: round; stroke-linejoin: round;
}

.ff-page-cta__secondary-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px; height: 18px;
}

.ff-page-cta__secondary-icon svg {
	width: 18px; height: 18px;
	stroke: currentColor; fill: none;
	stroke-width: 2;
	stroke-linecap: round; stroke-linejoin: round;
}

/* =========================================================================
 * Reduced motion preference
 * ========================================================================= */
@media (prefers-reduced-motion: reduce) {
	.ff-reviews__card,
	.ff-contact__cardlink,
	.ff-contact__cta svg {
		transition: none;
	}
	.ff-contact__cardlink:hover,
	.ff-reviews__card:hover {
		transform: none;
	}
}
