/**
 * eup-footer-v2 — Footer 2, light editorial (D-069).
 *
 * Handle:  eup-footer-v2 (inc/enqueue-footer-v2.php), every front-end page while
 *          `eupepsia_footer_v2` is `yes`
 * Markup:  template-parts/footer-v2/footer.php and its parts
 * Design:  round-2 canvas, `Footer-2.dc.html` (1440) and `Footer-phone.dc.html` (390)
 *
 * The footer stays on the page's warm ground and is separated from the mailing band above its
 * columns by a 2 px deep-green rule. Nothing in it goes dark: the one dark band on a page belongs
 * to The Eupepsia Standard. No teal: links are ink, marks and rules deep green, the focus ring a
 * 3 px deep-green outline at 2 px offset.
 *
 * Everything is namespaced under `.eup-ft`. The few rules keyed on `#footer.eup-ft` are there to
 * outrank site-legacy.css (X-169), which styles `.footer-wrapper` (grey background, 40 px top
 * padding, centred text under 992) for the Flatsome footer this replaces.
 *
 * Tokens: the contract names, with fallbacks declared here so the footer renders with the system
 * stylesheet off. Values identical to the contract, so load order cannot change a colour.
 *
 * Phone first: stacked groups under 768, brand row plus three columns from 768, brand column
 * plus three columns from 1024.
 */

:root {
	--eup-ground: #f4f0e6;
	--eup-tint: #ece7db;
	--eup-surface: #ffffff;
	--eup-hairline: #dcd3c0;
	--eup-ink: #17211e;
	--eup-muted: #565f5b;
	--eup-deep: #123f3a;
	--eup-deepest: #0c2b27;
	--eup-font-display: "Newsreader", Georgia, "Times New Roman", serif;
	--eup-font-body: "Poppins", system-ui, sans-serif;
	--eup-wrap: 1400px;
	--eup-radius: 3px;
}

/* -------------------------------------------------------------------------
 * The element
 * ---------------------------------------------------------------------- */

#footer.eup-ft {
	position: relative;
	width: 100%;
	margin: 0;
	padding: 0;
	background: var(--eup-ground);
	color: var(--eup-ink);
	font-family: var(--eup-font-body);
	font-weight: 300;
	text-align: left;
}

.eup-ft *,
.eup-ft *::before,
.eup-ft *::after {
	box-sizing: border-box;
}

.eup-ft ::selection {
	background: var(--eup-deep);
	color: #fff;
}

.eup-ft__wrap {
	width: 100%;
	max-width: var(--eup-wrap);
	margin: 0 auto;
	padding-right: var(--eup-gutter, 20px);
	padding-left: var(--eup-gutter, 20px);
}

/* The 2 px deep-green rule: the one line in the footer that is not a hairline. */
.eup-ft__main {
	border-top: 2px solid var(--eup-deep);
}

/* -------------------------------------------------------------------------
 * Columns — phone: one stack, each group under a hairline
 * ---------------------------------------------------------------------- */

.eup-ft__grid {
	display: flex;
	flex-direction: column;
	gap: 22px;
	padding: 28px 0 8px;
}

.eup-ft__brand,
.eup-ft__brand-text {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 14px;
}

.eup-ft .eup-ft__logo {
	display: block;
	width: auto;
	height: 84px;
	max-width: 100%;
}

.eup-ft .eup-ft__about,
.eup-ft .eup-ft__origin {
	max-width: 34ch;
	margin: 0;
	font-size: 13px;
	line-height: 1.7;
	color: var(--eup-muted);
}


.eup-ft__col {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding-top: 16px;
	border-top: 1px solid var(--eup-hairline);
}

.eup-ft .eup-ft__heading {
	margin: 0;
	padding: 0;
	font-family: var(--eup-font-body);
	font-size: 11px;
	font-weight: 500;
	line-height: 1.4;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--eup-muted);
}

.eup-ft .eup-ft__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.eup-ft .eup-ft__list li {
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Links and the two Complianz buttons share one look. 44 px rows on phone. */
.eup-ft .eup-ft__link {
	display: flex;
	align-items: center;
	min-height: 44px;
	margin: 0;
	padding: 0;
	font-family: var(--eup-font-body);
	font-size: 14px;
	font-weight: 300;
	line-height: 1.4;
	letter-spacing: 0;
	text-align: left;
	text-decoration: none;
	text-transform: none;
	color: var(--eup-ink);
	background: none;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	cursor: pointer;
}

/* Complianz's optout stylesheet hides every `.cmplz-deny`; this one is ours to show. */
.eup-ft .eup-ft__action {
	display: flex;
	width: auto;
	white-space: normal;
}

.eup-ft .eup-ft__link:hover {
	color: var(--eup-deep);
	background: none;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.eup-ft .eup-ft__link:focus-visible,
.eup-ft .eup-ft__social-link:focus-visible,
.eup-ft .eup-signup-cta__link:focus-visible {
	outline: 3px solid var(--eup-deep);
	outline-offset: 2px;
	border-radius: 1px;
}

/* Contact: plain ink text, the phone and the address as links. */
.eup-ft .eup-ft__contact {
	display: flex;
	flex-direction: column;
	margin: 0;
	font-style: normal;
	font-size: 14px;
	line-height: 1.9;
	color: var(--eup-ink);
}

.eup-ft .eup-ft__contact-line {
	display: block;
	padding: 6px 0;
}

/*
 * 2026-09-24 (critique C-026, a taste call recorded in FOOTER-PORT.md). The phone and email are
 * links but were drawn as plain ink text, and hover does not exist on touch, so nothing said they
 * could be tapped (WCAG 1.4.1). A 1px deep-green underline at 3px offset marks them, the same
 * underline the other footer links show on hover. Three classes, so it outranks
 * `.eup-ft .eup-ft__link { text-decoration: none }`.
 */
.eup-ft .eup-ft__contact .eup-ft__link {
	text-decoration: underline;
	text-decoration-color: var(--eup-deep);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.eup-ft .eup-ft__address {
	margin: 6px 0 0;
	font-size: 13px;
	line-height: 1.7;
	color: var(--eup-muted);
}

/* -------------------------------------------------------------------------
 * Placeholders — visibly unfinished, never mistaken for copy
 * ---------------------------------------------------------------------- */

.eup-ft .eup-placeholder {
	display: inline;
	padding: 0 2px;
	font-size: 12px;
	font-weight: 400;
	letter-spacing: 0.04em;
	color: var(--eup-muted);
	background: none;
	border-bottom: 1px dotted currentColor;
}

/* -------------------------------------------------------------------------
 * Social and payment marks
 * ---------------------------------------------------------------------- */

.eup-ft__utility {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
	padding-top: 22px;
	padding-bottom: 22px;
}

.eup-ft .eup-ft__social-list {
	display: flex;
	align-items: center;
	gap: 4px;
	margin: 0 0 0 -12px;
	padding: 0;
	list-style: none;
}

.eup-ft .eup-ft__social-list li {
	margin: 0;
	list-style: none;
}

.eup-ft .eup-ft__social-link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	color: var(--eup-deep);
}

.eup-ft .eup-ft__social-link:hover {
	color: var(--eup-deepest);
}

.eup-ft__payments {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.eup-ft .eup-ft__payment-chip {
	display: inline-flex;
	align-items: center;
	height: 30px;
	padding: 0 12px;
	font-size: 11px;
	letter-spacing: 0.08em;
	border: 1px dashed var(--eup-hairline);
	border-radius: var(--eup-radius);
}

/* The popup opener, printed here only where the band is not (checkout). */
.eup-ft .eup-ft__cta {
	margin: 0;
	padding: 0;
	text-align: left;
}

.eup-ft .eup-ft__cta .eup-signup-cta__link {
	min-height: 44px;
	color: var(--eup-ink);
}

/* -------------------------------------------------------------------------
 * Legal line
 * ---------------------------------------------------------------------- */

.eup-ft__legal {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding-top: 18px;
	padding-bottom: 24px;
	border-top: 1px solid var(--eup-hairline);
}

.eup-ft .eup-ft__copyright,
.eup-ft .eup-ft__terms {
	margin: 0;
	font-size: 12px;
	line-height: 1.6;
	color: var(--eup-muted);
}

/* -------------------------------------------------------------------------
 * Supplement disclaimer strip
 * ---------------------------------------------------------------------- */

.eup-ft__disclaimer {
	padding: 20px var(--eup-gutter, 20px);
	background: var(--eup-tint);
}

.eup-ft .eup-ft__disclaimer-text {
	max-width: 1040px;
	margin: 0 auto;
	font-size: 11px;
	line-height: 1.6;
	color: var(--eup-ink);
}

.eup-ft .eup-ft__disclaimer-text strong {
	font-weight: 500;
}

/* -------------------------------------------------------------------------
 * 768 and up — brand across the top, three columns under it
 * ---------------------------------------------------------------------- */

@media screen and (min-width: 768px) {

	.eup-ft__grid {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 36px 40px;
		padding: 44px 0 8px;
	}

	.eup-ft__brand {
		grid-column: 1 / -1;
		flex-direction: row;
		align-items: center;
		gap: 28px;
	}

	.eup-ft__brand-text {
		gap: 8px;
	}

	.eup-ft__col {
		gap: 14px;
		padding-top: 0;
		border-top: 0;
	}

	.eup-ft .eup-ft__heading {
		padding-bottom: 10px;
		font-size: 12px;
		border-bottom: 1px solid var(--eup-hairline);
	}

	/* Desktop rows: the artboard's 14 px at 1.9, still a 26 px target (WCAG 2.5.8 minimum 24). */
	.eup-ft .eup-ft__link {
		display: inline-flex;
		min-height: 26px;
		line-height: 1.9;
	}

	.eup-ft .eup-ft__contact {
		align-items: flex-start;
	}

	.eup-ft .eup-ft__contact-line {
		padding: 0;
	}

	.eup-ft__utility {
		flex-direction: row;
		flex-wrap: wrap;
		align-items: center;
		justify-content: space-between;
		gap: 16px 40px;
		padding-top: 28px;
		padding-bottom: 28px;
	}

	.eup-ft__legal {
		flex-direction: row;
		flex-wrap: wrap;
		align-items: center;
		justify-content: space-between;
		gap: 6px 40px;
	}

	.eup-ft__disclaimer {
		display: flex;
		align-items: center;
		justify-content: center;
		min-height: 64px;
	}

	.eup-ft .eup-ft__disclaimer-text {
		font-size: 12px;
		text-align: center;
	}
}

/* -------------------------------------------------------------------------
 * 1024 and up — Footer 2 at full width: brand column plus Shop, Help, Contact
 * ---------------------------------------------------------------------- */

@media screen and (min-width: 1024px) {

	.eup-ft__grid {
		grid-template-columns: minmax(200px, 300px) repeat(3, minmax(0, 1fr));
		gap: clamp(32px, 3.9vw, 56px);
		padding-top: 52px;
	}

	.eup-ft__brand {
		grid-column: auto;
		flex-direction: column;
		align-items: flex-start;
		gap: 20px;
	}

	.eup-ft .eup-ft__logo {
		height: 96px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.eup-ft * {
		transition: none !important;
		animation: none !important;
	}
}
