/* ─── Site Footer ─── */

.op-footer {
	--op-footer-heading: var(--op-color-parchment);
	--op-footer-text: rgba(var(--op-rgb-parchment), 0.72);
	--op-footer-muted: rgba(var(--op-rgb-parchment), 0.72);
	--op-footer-logo: var(--op-color-parchment);
	--op-footer-logo-hover: var(--op-color-faded-gold);
	--op-footer-logo-suffix: rgba(var(--op-rgb-parchment), 0.6);
	--op-footer-divider: rgba(var(--op-rgb-parchment), 0.14);
	--op-footer-focus: var(--op-color-faded-gold);
	--op-footer-icon-color: var(--op-icon-color, var(--op-footer-logo));
	--op-footer-icon-bg: var(--op-icon-bg, rgba(var(--op-rgb-parchment), 0.12));
	--op-footer-icon-hover-color: var(--op-footer-logo-hover);
	--op-footer-icon-hover-bg: color-mix(
		in srgb,
		var(--op-footer-icon-bg) 70%,
		var(--op-footer-icon-hover-color) 30%
	);
	--op-footer-bottom-links-gap: var(--wp--preset--spacing--sm);
	--op-footer-logo-mark-size: 162px;
	background-color: var(--op-color-deep-ink);
	color: var(--op-footer-text);
	position: relative;
}

/* When a non-default style class is present, consume shared variant tokens. */
.op-footer[class*='is-style-'] {
	--op-footer-heading: var(--op-heading-color);
	--op-footer-text: var(--op-text-color);
	--op-footer-muted: color-mix(
		in srgb,
		var(--op-text-color) 72%,
		transparent
	);
	--op-footer-logo: var(--op-heading-color);
	--op-footer-logo-hover: var(--op-highlight-color);
	--op-footer-logo-suffix: var(--op-text-color);
	--op-footer-divider: var(--op-card-border);
	--op-footer-focus: var(--op-highlight-color);
	--op-footer-icon-color: var(--op-icon-color, var(--op-heading-color));
	--op-footer-icon-bg: var(--op-icon-bg, rgba(var(--op-rgb-dusk), 0.14));
	--op-footer-icon-hover-color: var(--op-highlight-color);
	--op-footer-icon-hover-bg: color-mix(
		in srgb,
		var(--op-footer-icon-bg) 70%,
		var(--op-highlight-color) 30%
	);
}

.op-footer__inner {
	max-width: var(--op-container);
	margin: 0 auto;
	padding: 88px var(--op-section-px) 44px;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.op-footer__logo {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	max-width: 100%;
}

.op-footer__logo-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	outline: none;
	border-radius: 20px;
}

.op-footer__logo-link:hover {
	text-decoration: none;
}

.op-footer__logo-link:focus,
.op-footer__logo-link:focus-visible {
	outline: none;
	box-shadow: none;
}

.op-footer__logo-link:focus-visible {
	outline: 2px solid
		color-mix(in srgb, var(--op-footer-focus) 64%, transparent);
	outline-offset: 5px;
}

.op-footer__logo-mark-wrap {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--op-footer-logo-mark-size);
	height: var(--op-footer-logo-mark-size);
	flex: 0 0 var(--op-footer-logo-mark-size);
	border-radius: 20px;
	overflow: hidden;
	margin-bottom: var(--wp--preset--spacing--sm);
}

.op-footer__logo-mark {
	width: 100%;
	height: 100%;
	display: block;
	-o-object-fit: cover;
	   object-fit: cover;
}

.op-footer__logo-name {
	font-family: var(--wp--preset--font-family--logo);
	font-weight: 600;
	font-size: var(--wp--preset--font-size--xl);
	letter-spacing: -0.01em;
	color: var(--op-footer-logo);
	line-height: 1;
	transition:
		color 0.25s ease,
		transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
	display: inline-block;
	transform-origin: center bottom;
}

.op-footer__logo-suffix {
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--base);
	font-weight: 400;
	letter-spacing: 0.03em;
	color: var(--op-footer-logo-suffix);
	line-height: 1.2;
	margin-top: 4px;
}

.op-footer__support-text {
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--md);
	line-height: var(--wp--custom--line-height--relaxed);
	color: var(--op-footer-text);
	max-width: 680px;
	margin-top: var(--wp--preset--spacing--lg);
}

.op-footer__icon-links {
	list-style: none;
	padding: 0;
	margin: var(--wp--preset--spacing--lg) 0 0;
	display: flex;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--sm);
}

.op-footer__icon-item {
	--op-footer-icon-color-item: var(--op-footer-icon-color);
	--op-footer-icon-bg-item: var(--op-footer-icon-bg);
	--op-footer-icon-hover-color-item: var(--op-footer-icon-hover-color);
	--op-footer-icon-hover-bg-item: var(--op-footer-icon-hover-bg);
}

.op-footer__icon-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	text-decoration: none;
	outline: none;
}

.op-footer__icon-link:hover {
	text-decoration: none;
}

.op-footer__icon-link:focus,
.op-footer__icon-link:focus-visible {
	outline: none;
	box-shadow: none;
}

.op-footer__icon-link:focus-visible {
	outline: 2px solid
		color-mix(in srgb, var(--op-footer-focus) 64%, transparent);
	outline-offset: 3px;
	border-radius: 999px;
}

.op-footer__icon {
	--op-icon-size: 20px;
	--op-icon-padding: 10px;
	--op-icon-radius: 999px;
	--op-icon-color: var(--op-footer-icon-color-item);
	--op-icon-bg: var(--op-footer-icon-bg-item);
	transition:
		background-color 0.2s ease,
		color 0.2s ease,
		transform 0.2s ease;
}

.op-footer__icon-link:is(:hover, :focus-visible) .op-footer__icon {
	--op-icon-color: var(--op-footer-icon-hover-color-item);
	--op-icon-bg: var(--op-footer-icon-hover-bg-item);
	transform: translateY(-1px);
}

.op-footer__divider {
	border: none;
	border-top: 1px solid var(--op-footer-divider);
	width: min(240px, 100%);
	margin: var(--wp--preset--spacing--xl) 0 var(--wp--preset--spacing--lg);
}

.op-footer__bottom {
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--wp--preset--spacing--xs);
	text-align: center;
}

.op-footer__bottom-links {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	-moz-column-gap: var(--op-footer-bottom-links-gap);
	     column-gap: var(--op-footer-bottom-links-gap);
	row-gap: var(--wp--preset--spacing--2-xs);
}

.op-footer__bottom-links-item {
	margin: 0;
}

.op-footer__bottom-links--separated {
	-moz-column-gap: 0;
	     column-gap: 0;
}

.op-footer__bottom-links--separated .op-footer__bottom-links-item {
	display: inline-flex;
	align-items: center;
}

.op-footer__bottom-links--separated
	.op-footer__bottom-links-item:not(:last-child)::after {
	content: '\00b7';
	display: inline-block;
	margin-inline: calc(var(--op-footer-bottom-links-gap) / 2);
	color: var(--op-footer-muted);
	line-height: 1;
}

.op-footer__bottom-link,
.op-footer__bottom-link-btn {
	color: var(--op-footer-muted);
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--normal);
	line-height: var(--wp--custom--line-height--normal);
	text-decoration: none;
	transition: color 0.2s ease;
}

.op-footer__bottom-link-btn {
	background: transparent;
	border: 0;
	padding: 0;
	margin: 0;
	cursor: pointer;
	-moz-appearance: none;
	     appearance: none;
	-webkit-appearance: none;
}

/* Keep Moove helper classes from overriding footer button states. */
.op-footer
	.op-footer__bottom-link-btn.change-settings-button.gdpr-settings-btn-style-2,
.op-footer
	.op-footer__bottom-link-btn.change-settings-button.gdpr-settings-btn-style-2:focus {
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	color: var(--op-footer-muted) !important;
	opacity: 1 !important;
	text-decoration: none !important;
}

.op-footer__bottom-link:hover,
.op-footer__bottom-link-btn:hover {
	color: var(--op-footer-logo-hover);
}

.op-footer
	.op-footer__bottom-link-btn.change-settings-button.gdpr-settings-btn-style-2:hover,
.op-footer
	.op-footer__bottom-link-btn.change-settings-button.gdpr-settings-btn-style-2:active {
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	color: var(--op-footer-logo-hover) !important;
	opacity: 1 !important;
	text-decoration: none !important;
}

.op-footer__bottom-link:focus-visible,
.op-footer__bottom-link-btn:focus-visible {
	outline: 2px solid
		color-mix(in srgb, var(--op-footer-focus) 64%, transparent);
	outline-offset: 2px;
	border-radius: 4px;
}

.op-footer
	.op-footer__bottom-link-btn.change-settings-button.gdpr-settings-btn-style-2:focus-visible {
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	color: var(--op-footer-muted) !important;
	opacity: 1 !important;
	text-decoration: none !important;
}

.op-footer__copyright {
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--normal);
	color: var(--op-footer-muted);
	line-height: var(--wp--custom--line-height--normal);
}

@media (max-width: 900px) {
	.op-footer__inner {
		padding: 72px var(--op-section-px) 38px;
	}

	.op-footer__support-text {
		max-width: 560px;
	}
}

@media (max-width: 600px) {
	.op-footer__inner {
		padding: 60px var(--op-section-px) 34px;
	}

	.op-footer__logo-name {
		font-size: var(--wp--preset--font-size--lg);
	}

	.op-footer__logo-suffix {
		font-size: var(--wp--preset--font-size--xs);
	}

	.op-footer__support-text,
	.op-footer__bottom-link,
	.op-footer__bottom-link-btn,
	.op-footer__copyright {
		font-size: var(--wp--preset--font-size--sm);
	}

	.op-footer__icon-links {
		gap: var(--wp--preset--spacing--xs);
	}

	.op-footer__icon {
		--op-icon-size: 18px;
		--op-icon-padding: 9px;
	}

	.op-footer__divider {
		margin: var(--wp--preset--spacing--lg) 0 var(--wp--preset--spacing--md);
	}

	.op-footer__bottom-links--separated
		.op-footer__bottom-links-item:not(:last-child)::after {
		margin-inline: calc(var(--op-footer-bottom-links-gap) / 4);
	}
}

/* Ensure the GSAP pin-spacer keeps full width for alignfull footer. */
.wp-block-template-part > .pin-spacer {
	max-width: none;
}

