/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════
   Static by default. On the homepage (body.se-has-footer-reveal) it is fixed
   behind the scrolling content and revealed at the end; JS adds .is-revealed
   and pads the content by the footer's height. If JS never runs the footer
   stays static, which is the safe direction to fail in.
   ═══════════════════════════════════════════ */

.site-footer {
	position: relative;
	width: 100%;
	background: var(--se-off-white);
	color: var(--se-black);
	padding: clamp(2.5rem, 1.8rem + 3.5vw, 5.5rem) var(--gutter) clamp(1.25rem, 0.9rem + 1.8vw, 3.125rem);
}

/* Homepage reveal. `visibility` rather than `display` so the height is
   measurable before it is shown. */
/* .se-js is added by consent.js in the head. Without scripting the footer must
   never be hidden — there would be nothing left to un-hide it. */
html.se-js body.se-has-footer-reveal .site-footer {
	position: fixed;
	bottom: 0;
	left: 0;
	z-index: var(--z-footer);
	visibility: hidden;
}

/* Below the reveal breakpoint the footer is always a normal block. */
@media (max-width: 47.9375rem) {
	html.se-js body.se-has-footer-reveal .site-footer {
		position: relative;
		visibility: visible;
	}
}

body.se-has-footer-reveal .site-footer.is-revealed {
	visibility: visible;
}

.hero-scroll-content {
	position: relative;
	z-index: var(--z-content);
	background: var(--se-black);
}

/* ── 5-column grid ───────────────────────── */

.site-footer__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
	margin-bottom: clamp(2rem, 1.4rem + 3vw, 3.75rem);
}

@media (min-width: 36rem) {
	.site-footer__grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem 2rem; }
}

@media (min-width: 64rem) {
	.site-footer__grid {
		grid-template-columns: 1.2fr 0.8fr 1.2fr 1.6fr 0.8fr;
		gap: 30px;
	}
}

.site-footer__col-title {
	font-family: var(--font-heading);
	font-size: 1.5rem;
	color: var(--se-black);
	text-transform: uppercase;
	padding: 10px 10px 10px 0;
}

.site-footer__link,
.site-footer__menu a {
	display: block;
	font-family: var(--font-body);
	font-size: 1.125rem;
	line-height: 1.3;
	color: var(--se-black);
	padding: 10px 10px 10px 0;
	transition: color var(--transition-fast);
}

.site-footer__link:hover,
.site-footer__menu a:hover {
	color: var(--se-muted-on-light);
}

.site-footer__link--bold { font-weight: 700; }
.site-footer__link--underline { text-decoration: underline; text-underline-offset: 0.15em; }

.site-footer__link--with-icon {
	display: flex;
	align-items: center;
	gap: 10px;
}

.site-footer__ssl-icon {
	width: 25px;
	height: 25px;
	flex-shrink: 0;
}

.site-footer__address {
	font-style: normal;
}

.site-footer__address p { margin: 0; }

/* ── Payment marks ───────────────────────── */

.site-footer__payments {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	padding: 10px 10px 10px 0;
}

.site-footer__payments img,
.site-footer__payment-icon {
	height: 20px;
	width: auto;
	max-width: 56px;
	object-fit: contain;
}

/* ── Legal utility links ─────────────────── */

.se-do-not-sell,
.se-cookie-prefs-link {
	display: block;
	padding: 10px 10px 10px 0;
	font-family: var(--font-body);
	font-size: 1.125rem;
	line-height: 1.3;
	color: var(--se-black);
	text-align: start;
	text-decoration: underline;
	text-underline-offset: 0.15em;
	transition: color var(--transition-fast);
}

.se-do-not-sell:hover,
.se-cookie-prefs-link:hover {
	color: var(--se-muted-on-light);
}

.se-do-not-sell[data-se-state="out"] {
	text-decoration: none;
	color: var(--se-muted-on-light);
}

/* ── Newsletter + social ─────────────────── */

.site-footer__mid {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	margin-bottom: clamp(1.5rem, 1.1rem + 2vw, 3.125rem);
}

@media (min-width: 64rem) {
	.site-footer__mid {
		flex-direction: row;
		justify-content: space-between;
		align-items: flex-start;
		gap: 40px;
	}
}

.site-footer__newsletter {
	flex: 1;
	max-width: 600px;
}

.site-footer__newsletter-title {
	font-family: var(--font-heading);
	font-size: 1.5rem;
	text-transform: uppercase;
	padding: 10px 0;
	margin-bottom: 10px;
}

.site-footer__newsletter-desc {
	font-family: var(--font-body);
	font-size: 1.125rem;
	line-height: 1.4;
	padding: 10px 0;
	margin-bottom: 20px;
}

.site-footer__newsletter-form {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	margin-bottom: 12px;
}

@media (min-width: 36rem) {
	.site-footer__newsletter-form {
		flex-direction: row;
		flex-wrap: wrap;
		gap: 0;
		align-items: flex-start;
	}
}

/*
 * The row is the input and the button, nothing else. Without this the consent
 * checkbox and the status message became flex items in the same row and were
 * squeezed into a two-word-wide column beside the button — the sentence someone
 * has to read before agreeing to it, set one word per line.
 */
.site-footer__newsletter-consent,
.site-footer__newsletter-status {
	flex: 1 0 100%;
}

.site-footer__newsletter-consent {
	margin-top: 0.75rem;
}

.site-footer__newsletter-consent-label {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	font-family: var(--font-body);
	font-size: 0.9375rem;
	line-height: 1.45;
	cursor: pointer;
	max-width: 46ch;
}

/* A 20px target is below the 24px minimum for a pointer target (WCAG 2.5.8),
   so the box is padded out to size without changing how it looks. */
.site-footer__newsletter-consent-label input {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	margin: 3px;
	accent-color: var(--se-black);
}

.site-footer__newsletter-input {
	flex: 1 1 auto;
	min-width: 0;
	height: 44px;
	padding: 8px 12px;
	background: #EDEDED;
	border: 1px solid transparent;
	color: var(--se-black);
	font-family: var(--font-body);
	font-size: 1.125rem;
}

/*
 * 346px is the width in the design, but it is a ceiling here, not a basis.
 * With `flex-wrap`, a line is chosen from the flex-basis before any shrinking
 * happens — and 346px of input plus 273px of button is 619px in a 600px
 * column, so a 346px basis put the button on its own line. A small basis lets
 * both sit on one line and the input then grows into whatever is left.
 */
@media (min-width: 64rem) {
	.site-footer__newsletter-input { flex: 1 1 12rem; max-width: 346px; }
}

/* #767676 on #EDEDED is 4.5:1 — the lightest placeholder that still passes. */
.site-footer__newsletter-input::placeholder { color: #767676; }
.site-footer__newsletter-input:focus-visible { border-color: var(--se-black); }

.site-footer__newsletter-btn {
	position: relative;
	height: 44px;
	padding: 5px 20px;
	background: var(--se-black);
	color: var(--se-white);
	font-family: var(--font-body);
	font-size: 1.25rem;
	font-weight: 700;
	white-space: nowrap;
	overflow: visible;
	transition: background var(--transition-fast);
}

.site-footer__newsletter-btn:hover { background: #333; }

/*
 * Same treatment as the four homepage CTAs: the notch sits in the button's own
 * top-right corner and appears on hover. It was previously parked 20px above
 * the button and always visible, which read as a black flag floating over the
 * footer rather than a detail on the control.
 */
.site-footer__newsletter-bite {
	position: absolute;
	top: 0;
	inset-inline-end: 0;
	width: 20px;
	height: 21px;
	color: var(--se-off-white);
	opacity: 0;
	pointer-events: none;
	transition: opacity var(--transition-base);
}

.site-footer__newsletter-btn:hover .site-footer__newsletter-bite,
.site-footer__newsletter-btn:focus-visible .site-footer__newsletter-bite {
	opacity: 1;
}

.site-footer__newsletter-status:empty { display: none; }

.site-footer__newsletter-status {
	flex-basis: 100%;
	padding-top: 0.5rem;
	font-size: 0.9375rem;
	line-height: 1.4;
}

.site-footer__newsletter-legal {
	font-family: var(--font-body);
	font-size: 0.875rem;
	line-height: 1.5;
	max-width: 584px;
	padding: 10px 0;
}

.site-footer__social {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 20px;
	flex-shrink: 0;
}

.site-footer__social-item {
	display: flex;
	align-items: center;
	gap: 10px;
}

.site-footer__social-link {
	display: block;
	border-radius: 50%;
}

.site-footer__social-icon {
	display: block;
	width: 56px;
	height: 56px;
	flex-shrink: 0;
}

.site-footer__social-icon img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.site-footer__social-count {
	font-family: var(--font-heading);
	font-size: 1.5rem;
	text-transform: uppercase;
	white-space: nowrap;
}

/* ── Bottom bar ──────────────────────────── */

.site-footer__bottom {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	padding-top: 20px;
	border-top: 1px solid var(--se-line-on-light);
}

@media (min-width: 64rem) {
	.site-footer__bottom {
		flex-direction: row;
		justify-content: space-between;
		align-items: flex-start;
		gap: 40px;
	}
}

.site-footer__copy {
	font-family: var(--font-body);
	font-size: 0.875rem;
	line-height: 1.4;
	flex-shrink: 0;
}

/* The prototype set this at 11px. 12px is the floor that stays legible at
   arm's length; the text is a legal disclaimer, so it has to be readable. */
.site-footer__disclaimer {
	font-family: var(--font-body);
	font-size: 0.75rem;
	line-height: 1.5;
	max-width: 750px;
}

@media (min-width: 64rem) {
	.site-footer__disclaimer { text-align: end; }
}
