/**
 * Viora Footer widget.
 *
 * `.viora-site-footer` is the widget; `.viora-footer` is the theme's builder
 * location wrapper around it — naming the widget root `.viora-footer` too
 * would apply every rule here to the wrapper as well, doubling the padding.
 *
 * Brand, two link columns and a sign-up on the 1082 content width, an
 * oversized wordmark bleeding to the edges, then the legal bar.
 */

/*
 * The bottom pad used to be a third of the top: the oversized wordmark bled to
 * the lower edge and needed to sit close to it. With the legal bar as the last
 * element instead, that tightness read as a footer resting on nothing. Both
 * ends now ramp to their cap at the same viewport width, so the ratio holds
 * from mobile through desktop.
 */
.viora-site-footer {
	position: relative;
	padding-block: clamp(3.5rem, 6.94vw, 6.25rem) clamp(2.5rem, 4.86vw, 4.375rem);
	overflow: hidden;
}

.viora-site-footer__inner {
	width: min(1082px, 100% - 2 * var(--viora-layout-container-pad));
	margin-inline: auto;
}

/* The brand column is wider than the rest; the sign-up closes the row. */
.viora-site-footer__inner:first-of-type {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.7fr) minmax(0, 0.7fr) minmax(0, 1.1fr);
	column-gap: clamp(1.5rem, 3.33vw, 3rem);
	row-gap: clamp(2.5rem, 4vw, 3.5rem);
	align-items: start;
}

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

.viora-site-footer__brand {
	min-width: 0;
}

.viora-site-footer__logo {
	display: inline-block;
}

.viora-site-footer__logo img {
	display: block;
	width: 148px;
	height: auto;
}

.viora-site-footer__brand-text {
	display: inline-block;
	color: var(--viora-ink, var(--viora-color-heading));
	font-family: var(--viora-font-display);
	font-size: clamp(1.75rem, 2.5vw, 2.25rem);
	font-weight: 400;
	line-height: 1;
	letter-spacing: -0.04em;
	text-decoration: none;
}

.viora-site-footer__tagline {
	margin: clamp(0.85rem, 1.25vw, 1.125rem) 0 0;
	max-width: 26em;
	color: var(--viora-ink-soft, var(--viora-color-heading-soft));
	font-family: var(--viora-font-ui);
	font-size: 0.9375rem;
	line-height: 1.643;
}

.viora-site-footer__socials {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.25rem;
	margin: clamp(1.25rem, 2vw, 1.75rem) 0 0;
	padding: 0;
	list-style: none;
}

/* -------------------------------------------------- *
 * Columns
 * -------------------------------------------------- */

.viora-site-footer__column,
.viora-site-footer__news {
	min-width: 0;
}

.viora-site-footer__title {
	margin: 0 0 clamp(0.85rem, 1.25vw, 1.125rem);
	color: var(--viora-ink, var(--viora-color-heading));
	font-family: var(--viora-font-ui);
	font-size: 0.75rem;
	font-weight: var(--viora-weight-medium);
	line-height: 1.7;
	letter-spacing: 0.28em;
	text-transform: uppercase;
}

.viora-site-footer__list {
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.viora-site-footer__link {
	color: var(--viora-ink-soft, var(--viora-color-heading-soft));
	font-family: var(--viora-font-ui);
	font-size: 0.9375rem;
	line-height: 1.643;
	text-decoration: none;
	transition: color var(--viora-motion-base) var(--viora-motion-easing);
}

.viora-site-footer__link:hover,
.viora-site-footer__link:focus-visible {
	color: var(--viora-ink, var(--viora-color-heading));
}

/* -------------------------------------------------- *
 * Sign-up
 * -------------------------------------------------- */

.viora-site-footer__form {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-top: clamp(1rem, 1.53vw, 1.375rem);
	border-bottom: 1px solid var(--viora-hairline, rgba(17, 17, 17, 0.14));
	transition: border-color var(--viora-motion-base) var(--viora-motion-easing);
}

.viora-site-footer__form:focus-within {
	border-bottom-color: var(--viora-color-accent);
}

.viora-site-footer__input {
	flex: 1 1 auto;
	min-width: 0;
	padding: 0.65rem 0;
	border: 0;
	background: none;
	color: var(--viora-ink, var(--viora-color-heading));
	font-family: var(--viora-font-ui);
	font-size: 0.9375rem;
	line-height: 1.643;
}

.viora-site-footer__input::placeholder {
	color: var(--viora-ink-soft, var(--viora-color-heading-soft));
	opacity: 0.75;
}

.viora-site-footer__input:focus {
	outline: none;
}

.viora-site-footer__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	padding: 0.4rem 0;
	border: 0;
	background: none;
	color: var(--viora-ink, var(--viora-color-heading));
	cursor: pointer;
	transition: transform var(--viora-motion-slow) var(--viora-motion-easing);
}

.viora-site-footer__submit:hover {
	transform: translateX(0.25rem);
	color: var(--viora-color-accent);
}

.viora-site-footer__submit-svg {
	display: block;
	width: 1.75rem;
	height: 0.875rem;
}

/* -------------------------------------------------- *
 * Wordmark
 * -------------------------------------------------- */

.viora-site-footer__wordmark {
	display: flex;
	justify-content: center;
	margin-top: clamp(2.5rem, 5vw, 4.5rem);
	padding-inline: var(--viora-layout-container-pad);
	color: var(--viora-ink, var(--viora-color-heading));
	font-family: var(--viora-font-display);
	/* Scales with the viewport so the word always spans the full width and is
	   cropped by nothing — no fixed size can do both. */
	font-size: clamp(4rem, 21vw, 20rem);
	font-weight: 400;
	line-height: 0.82;
	letter-spacing: -0.05em;
	white-space: nowrap;
	opacity: 0.1;
	user-select: none;
	text-transform: uppercase;
}

/* -------------------------------------------------- *
 * Legal bar
 * -------------------------------------------------- */

.viora-site-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem 1.5rem;
	margin-top: clamp(2rem, 3.33vw, 3rem);
	padding-top: clamp(1.25rem, 1.94vw, 1.75rem);
	border-top: 1px solid var(--viora-hairline, rgba(17, 17, 17, 0.14));
}

.viora-site-footer__copy {
	margin: 0;
	color: var(--viora-ink-soft, var(--viora-color-heading-soft));
	font-family: var(--viora-font-ui);
	font-size: 0.8125rem;
	line-height: 1.643;
}

.viora-site-footer__legal {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.viora-site-footer__legal .viora-site-footer__link {
	font-size: 0.8125rem;
}

.viora-site-footer__top {
	font-size: 0.6875rem;
}

.viora-site-footer__top-svg {
	display: block;
	width: 1.375rem;
	height: 0.75rem;
	/* Points up, since that is where the link goes. */
	transform: rotate(-90deg);
	transition: transform var(--viora-motion-slow) var(--viora-motion-easing);
}

.viora-site-footer__top:hover .viora-site-footer__top-svg {
	transform: rotate(-90deg) translateX(0.25rem);
}

/* -------------------------------------------------- *
 * Reveal
 * -------------------------------------------------- */

.viora-site-footer.is-animated .viora-site-footer__item {
	opacity: 0;
	transform: translateY(20px);
}

.viora-site-footer.is-animated .viora-site-footer__item.is-in {
	opacity: 1;
	transform: none;
	transition:
		opacity 0.9s var(--viora-motion-easing),
		transform 0.9s var(--viora-motion-easing);
}

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

@media (max-width: 1024px) {
	.viora-site-footer__inner:first-of-type {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.viora-site-footer__brand,
	.viora-site-footer__news {
		grid-column: span 2;
	}
}

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

@media (max-width: 767px) {
	.viora-site-footer__inner:first-of-type {
		grid-template-columns: minmax(0, 1fr);
	}

	.viora-site-footer__brand,
	.viora-site-footer__news {
		grid-column: auto;
	}

	.viora-site-footer__bottom {
		justify-content: flex-start;
	}
}

@media (prefers-reduced-motion: reduce) {
	.viora-site-footer.is-animated .viora-site-footer__item {
		opacity: 1;
		transform: none;
		transition: none;
	}
}
