/*
 * Eatwell101 — Footer V2
 * Uses ew101-brand tokens wherever possible.
 */

#ew-footer-v2 {
	--ew-footer-max: 1180px;

	margin: 0;
	padding: 0;
	color: var(--ew-ink, #242521);
	font-family: var(--ew-font-sans, Arial, Helvetica, sans-serif);
}

#ew-footer-v2 *,
#ew-footer-v2 *::before,
#ew-footer-v2 *::after {
	box-sizing: border-box;
}

#ew-footer-v2 .ew-footer__wrap {
	width: min(calc(100% - 48px), var(--ew-footer-max));
	margin: 0 auto;
}

/* ---------------------------------------------------------
   Brand closure
   --------------------------------------------------------- */

#ew-footer-v2 .ew-footer__brand {
	background: var(--ew-green-warm, #263d32);
	color: var(--ew-warm-white, #faf9f6);
}

#ew-footer-v2 .ew-footer__brand-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(340px, .8fr);
	gap: 72px;
	align-items: end;
	padding-top: 64px;
	padding-bottom: 64px;
}

#ew-footer-v2 .ew-footer__logo {
	display: inline-block;
	margin-bottom: 32px;
}

#ew-footer-v2 .ew-footer__logo img {
	display: block;
	width: 250px;
	max-width: 100%;
	height: auto;
	filter: brightness(0) invert(1);
}

#ew-footer-v2 .ew-footer__promise {
	margin: 0;
	max-width: 720px;
	font-family: var(--ew-font-serif, Georgia, "Times New Roman", serif);
	font-size: clamp(42px, 4.5vw, 68px);
	font-weight: 400;
	line-height: .98;
	letter-spacing: -.035em;
	color: var(--ew-warm-white, #faf9f6);
}

#ew-footer-v2 .ew-footer__support {
	margin: 22px 0 0;
	max-width: 560px;
	font-size: 17px;
	line-height: 1.55;
	color: rgba(250,249,246,.72);
}

#ew-footer-v2 .ew-footer__brand-actions {
	padding-bottom: 4px;
}

#ew-footer-v2 .ew-footer__eyebrow {
	margin: 0 0 18px;
	font-size: 12px;
	font-weight: 750;
	line-height: 1.2;
	letter-spacing: .11em;
	text-transform: uppercase;
	color: rgba(250,249,246,.68);
}

#ew-footer-v2 .ew-footer__cta-row {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

#ew-footer-v2 .ew-footer__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 0 18px;
	border: 1px solid transparent;
	border-radius: var(--ew-radius-sm, 4px);
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
	transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}

#ew-footer-v2 .ew-footer__button--light {
	background: var(--ew-warm-white, #faf9f6);
	color: var(--ew-green, #183a2a);
}

#ew-footer-v2 .ew-footer__button--light:hover {
	background: var(--ew-white, #fff);
}

#ew-footer-v2 .ew-footer__button--outline {
	border-color: rgba(255,255,255,.36);
	color: var(--ew-white, #fff);
	background: transparent;
}

#ew-footer-v2 .ew-footer__button--outline:hover {
	border-color: rgba(255,255,255,.72);
	background: rgba(255,255,255,.06);
}

#ew-footer-v2 .ew-footer__socials {
	display: flex;
	gap: 12px;
	margin-top: 24px;
}

#ew-footer-v2 .ew-footer__socials a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border: 1px solid rgba(255,255,255,.22);
	border-radius: 50%;
	color: var(--ew-white, #fff);
	font-size: 15px;
	text-decoration: none;
	transition: background-color .18s ease, border-color .18s ease;
}

#ew-footer-v2 .ew-footer__socials a:hover {
	border-color: rgba(255,255,255,.55);
	background: rgba(255,255,255,.07);
}

/* ---------------------------------------------------------
   Utility / navigation zone
   --------------------------------------------------------- */

#ew-footer-v2 .ew-footer__utility {
	background: var(--ew-warm-white, #faf9f6);
	border-top: 1px solid rgba(255,255,255,.08);
}

#ew-footer-v2 .ew-footer__nav {
	display: grid;
	grid-template-columns: 1.1fr .9fr .9fr 1.1fr;
	gap: 56px;
	padding: 54px 0 48px;
}

#ew-footer-v2 .ew-footer__heading {
	margin: 0 0 18px;
	font-family: var(--ew-font-sans, Arial, Helvetica, sans-serif);
	font-size: 12px;
	font-weight: 800;
	line-height: 1.25;
	letter-spacing: .095em;
	text-transform: uppercase;
	color: var(--ew-ink, #242521);
}

#ew-footer-v2 .ew-footer__column a {
	display: block;
	width: fit-content;
	margin: 0 0 10px;
	color: var(--ew-green, #183a2a);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.35;
	text-decoration: none;
}

#ew-footer-v2 .ew-footer__column a:hover {
	color: var(--ew-green-hover, #214b37);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

#ew-footer-v2 .ew-footer__privacy-button {
	display: inline-flex;
	align-items: center;
	justify-content: flex-start;
	width: auto !important;
	min-height: 0 !important;
	margin: 7px 0 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	color: var(--ew-muted, #6f726c) !important;
	font-family: inherit !important;
	font-size: 12px !important;
	font-weight: 600 !important;
	line-height: 1.35 !important;
	text-decoration: underline !important;
	text-decoration-thickness: 1px !important;
	text-underline-offset: 3px !important;
	cursor: pointer;
}

#ew-footer-v2 .ew-footer__privacy-button:hover {
	color: var(--ew-ink, #242521) !important;
}

#ew-footer-v2 .ew-footer__bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 30px;
	padding: 24px 0 34px;
	border-top: 1px solid var(--ew-border, #deddd8);
}

#ew-footer-v2 .ew-footer__copyright {
	margin: 0;
	max-width: 760px;
	color: var(--ew-muted, #6f726c);
	font-size: 11px;
	font-weight: 600;
	line-height: 1.45;
	letter-spacing: .015em;
	text-transform: none;
}

#ew-footer-v2 .ew-footer__trust {
	flex: 0 0 auto;
	opacity: .72;
}

#ew-footer-v2 .ew-footer__trust img {
	display: block;
	width: 82px;
	max-width: 100%;
	height: auto;
}

/* ---------------------------------------------------------
   Tablet
   --------------------------------------------------------- */

@media (max-width: 980px) {

	#ew-footer-v2 .ew-footer__brand-grid {
		grid-template-columns: 1fr;
		gap: 38px;
		align-items: start;
		padding-top: 52px;
		padding-bottom: 52px;
	}

	#ew-footer-v2 .ew-footer__nav {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 42px 48px;
	}

}

/* ---------------------------------------------------------
   Mobile
   --------------------------------------------------------- */

@media (max-width: 640px) {

	#ew-footer-v2 .ew-footer__wrap {
		width: min(calc(100% - 36px), var(--ew-footer-max));
	}

	#ew-footer-v2 .ew-footer__brand-grid {
		padding-top: 42px;
		padding-bottom: 42px;
		gap: 34px;
	}

	#ew-footer-v2 .ew-footer__logo {
		margin-bottom: 24px;
	}

	#ew-footer-v2 .ew-footer__logo img {
		width: 190px;
	}

	#ew-footer-v2 .ew-footer__promise {
		font-size: clamp(40px, 12vw, 52px);
		line-height: 1;
	}

	#ew-footer-v2 .ew-footer__support {
		margin-top: 16px;
		font-size: 15px;
	}

	#ew-footer-v2 .ew-footer__cta-row {
		display: grid;
		grid-template-columns: 1fr;
	}

	#ew-footer-v2 .ew-footer__button {
		justify-content: flex-start;
		width: 100%;
		min-height: 48px;
		padding: 0 16px;
	}

	#ew-footer-v2 .ew-footer__nav {
		grid-template-columns: 1fr 1fr;
		gap: 34px 22px;
		padding: 40px 0 38px;
	}

	#ew-footer-v2 .ew-footer__heading {
		margin-bottom: 14px;
		font-size: 11px;
	}

	#ew-footer-v2 .ew-footer__column a {
		margin-bottom: 9px;
		font-size: 13px;
	}

	#ew-footer-v2 .ew-footer__bottom {
		flex-direction: column;
		align-items: flex-start;
		gap: 20px;
		padding: 22px 0 30px;
	}

	#ew-footer-v2 .ew-footer__trust img {
		width: 74px;
	}

}

/* Very small screens: avoid cramped two-column navigation. */
@media (max-width: 380px) {
	#ew-footer-v2 .ew-footer__nav {
		grid-template-columns: 1fr;
	}
}
