/**
 * Site footer.
 *
 * Visual reference: https://flanfudge-direct.lovable.app/  (footer scroll).
 * Layout — at >=1024 px the brand block is wider (~1.5fr) and four
 * smaller text columns sit beside it. Background is the light "mist"
 * sage so the footer reads as a soft transition from the cream body
 * rather than a hard dark band (Lovable picks the same approach).
 *
 * @package FlanFudge
 */

.site-footer {
	background: var(--ff-mist);
	color: var(--ff-foreground);
	padding-block: clamp(48px, 6vw, 80px) clamp(24px, 3vw, 36px);
	margin-top: 0;
}

/* ----- top grid ----- */

.ff-footer__top {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--ff-space-10);
	padding-bottom: var(--ff-space-10);
}

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

@media (min-width: 1024px) {
	.ff-footer__top {
		grid-template-columns: 1.5fr 1fr 1.1fr 0.9fr 1fr;
		gap: var(--ff-space-8);
	}
}

/* ----- brand column ----- */

.ff-footer__brand {
	display: flex;
	flex-direction: column;
	gap: var(--ff-space-4);
}

@media (min-width: 720px) and (max-width: 1023.99px) {
	.ff-footer__brand {
		grid-column: 1 / -1;
	}
}

.ff-footer__logo {
	display: inline-block;
	margin-bottom: var(--ff-space-2);
}

.ff-footer__logo img {
	display: block;
	width: 50%;
	height: auto;
	max-width: 100%;
}

body.flanfudge .ff-footer__tagline {
	font-size: clamp(1.5rem, 1.4vw + 1rem, 1.875rem);
	font-weight: var(--ff-weight-medium);
	color: var(--ff-foreground);
	letter-spacing: var(--ff-tracking-tight);
	line-height: 1.2;
	margin: 0;
}

.ff-footer__about {
	color: var(--ff-muted-fg);
	max-width: 38ch;
	margin: 0;
	line-height: var(--ff-leading-relaxed);
	font-size: var(--ff-text-base);
}

.ff-footer__socials {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: var(--ff-space-4);
}

.ff-footer__social {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 18px;
	border: 1px solid var(--ff-border);
	border-radius: var(--ff-radius-pill);
	color: var(--ff-foreground);
	background: var(--ff-cream);
	font-size: var(--ff-text-sm);
	font-weight: var(--ff-weight-semibold);
	text-decoration: none;
	transition: background-color var(--ff-dur-fast) var(--ff-ease),
	            color var(--ff-dur-fast) var(--ff-ease),
	            transform var(--ff-dur-fast) var(--ff-ease);
}

.ff-footer__social:hover,
.ff-footer__social:focus-visible {
	background: var(--ff-foreground);
	color: var(--ff-cream);
	transform: translateY(-1px);
}

/* ----- column heading ----- */

.ff-footer__col {
	display: flex;
	flex-direction: column;
	gap: var(--ff-space-4);
	min-width: 0;
}

body.flanfudge .ff-footer__col h4 {
	font-size: var(--ff-text-sm);
	/* Using 600 for footer column heads — they're tiny uppercase labels
	   and 500 reads too thin at 14px / spaced caps. Kept noticeably
	   different from body weight (400) so the hierarchy stays clear. */
	font-weight: var(--ff-weight-semibold);
	letter-spacing: var(--ff-tracking-widest);
	text-transform: uppercase;
	color: var(--ff-accent);
	margin: 0 0 var(--ff-space-1);
}

/* ----- generic list ----- */

.ff-footer__list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: var(--ff-space-3);
}

.ff-footer__list li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	color: var(--ff-foreground);
	font-size: var(--ff-text-base);
	line-height: 1.5;
}

.ff-footer__list li > span {
	min-width: 0;
}

.ff-footer__list a {
	color: var(--ff-foreground);
	font-weight: var(--ff-weight-semibold);
	text-decoration: none;
	transition: color var(--ff-dur-fast) var(--ff-ease);
}

.ff-footer__list a:hover,
.ff-footer__list a:focus-visible {
	color: var(--ff-accent);
}

/* ----- delivery-areas bullets ----- */

.ff-footer__list--bullets li {
	position: relative;
	padding-inline-start: 16px;
}

.ff-footer__list--bullets li::before {
	content: "";
	position: absolute;
	inset-inline-start: 0;
	top: 0.7em;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--ff-accent);
	flex-shrink: 0;
}

.ff-footer__cta {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin-top: var(--ff-space-2);
	color: var(--ff-accent);
	font-weight: var(--ff-weight-semibold);
	font-size: var(--ff-text-sm);
	text-decoration: none;
	transition: color var(--ff-dur-fast) var(--ff-ease);
}

.ff-footer__cta:hover,
.ff-footer__cta:focus-visible {
	color: var(--ff-foreground);
}

/* ----- numbered order-process steps ----- */

.ff-footer__step {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	color: var(--ff-foreground);
}

.ff-step-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	border: 1.5px solid var(--ff-accent);
	background: var(--ff-cream);
	color: var(--ff-accent);
	font-size: 12px;
	font-weight: var(--ff-weight-bold);
	flex-shrink: 0;
	margin-top: 1px;
	font-feature-settings: "tnum" 1;
}

.ff-footer__step-body {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

body.flanfudge .ff-footer__step strong {
	display: block;
	color: var(--ff-foreground);
	font-weight: var(--ff-weight-bold);
	font-size: var(--ff-text-base);
	line-height: 1.35;
}

.ff-footer__step-desc {
	display: block;
	color: var(--ff-muted-fg);
	font-size: var(--ff-text-sm);
	line-height: 1.45;
}

/* ----- contact ----- */

.ff-footer__contact {
	color: var(--ff-foreground);
	font-weight: var(--ff-weight-bold);
	text-decoration: none;
}

.ff-footer__contact:hover,
.ff-footer__contact:focus-visible {
	color: var(--ff-accent);
}

.ff-footer__hours {
	color: var(--ff-muted-fg);
	font-size: var(--ff-text-sm);
}

/* ----- bottom strip ----- */

.ff-footer__bottom {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	padding-top: var(--ff-space-6);
	margin-top: var(--ff-space-2);
	border-top: 1px solid var(--ff-border);
	text-align: center;
	color: var(--ff-muted-fg);
	font-size: var(--ff-text-sm);
}

.ff-footer__bottom p {
	margin: 0;
}

body.flanfudge .ff-footer__bottom strong {
	color: var(--ff-foreground);
	font-weight: var(--ff-weight-semibold);
}

/* =========================================================================
 * Footer typography lock — every <strong> and <span> in the footer renders
 * at 13px. Headings (h1–h6) are explicitly NOT targeted: column titles, the
 * brand tagline (an <h3>), and any future heading inside the footer keep
 * their component-defined sizes. Selector specificity wins over the local
 * step/desc rules above so this single block is enough.
 * ========================================================================= */
body.flanfudge .site-footer strong,
body.flanfudge .site-footer span {
	font-size: 13px;
}
