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

.op-footer {
	background-color: var(--op-color-footer);
	color: rgba(var(--op-rgb-parchment), 0.5);
	position: relative;
}

.op-footer__inner {
	max-width: var(--op-container);
	margin: 0 auto;
	padding: 80px var(--op-section-px) 48px;
	position: relative;
	z-index: 1;
}

/* ── Grid ── */

.op-footer__grid {
	display: grid;
	grid-template-columns: 4fr 2fr 2fr 2fr;
	gap: 48px;
}

/* ── Column headings ── */

.op-footer__heading {
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--xs);
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.15em;
	color: rgba(var(--op-rgb-parchment), 0.55);
	margin-bottom: var(--op-text-gap-lg);
}

/* ── Lists ── */

.op-footer__list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.op-footer__list li {
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--normal);
	line-height: var(--wp--custom--line-height--body);
	color: rgba(var(--op-rgb-parchment), 0.55);
}

.op-footer__list a {
	color: rgba(var(--op-rgb-parchment), 0.6);
	text-decoration: none;
	transition: color 0.2s ease;
}

.op-footer__list a:hover {
	color: rgba(var(--op-rgb-parchment), 0.8);
}

/* ── Brand column ── */

.op-footer__logo {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 2px;
	text-decoration: none;
	margin-bottom: var(--op-text-gap-md);
	outline: none;
}

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

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

.op-footer__logo:hover .op-footer__logo-name {
	color: var(--op-color-parchment);
	transform: scale(1.06);
}

.op-footer__logo:active .op-footer__logo-name {
	color: var(--op-color-parchment);
	transform: scale(0.94);
}

.op-footer__logo:focus-visible .op-footer__logo-name {
	color: var(--op-color-parchment);
}

.op-footer__logo-name {
	font-family: var(--wp--preset--font-family--logo);
	font-weight: 600;
	font-size: var(--wp--preset--font-size--lg);
	letter-spacing: -0.01em;
	color: var(--op-color-dusk);
	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: left baseline;
}

.op-footer__logo-suffix {
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--sm);
	font-weight: 500;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: rgba(var(--op-rgb-parchment), 0.5);
	line-height: 1;
}

.op-footer__tagline {
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--normal);
	line-height: var(--wp--custom--line-height--relaxed);
	color: rgba(var(--op-rgb-parchment), 0.55);
	max-width: 320px;
}

/* ── Gist column (bullet list) ── */

.op-footer__col--gist .op-footer__list {
	list-style: disc;
	padding-left: 1.1em;
}

.op-footer__col--gist .op-footer__list li::marker {
	color: var(--op-color-dusk);
}

/* ── Connect links (terra) ── */

.op-footer__col--connect .op-footer__list a {
	color: var(--op-color-dusk);
}

.op-footer__col--connect .op-footer__list a:hover {
	color: var(--op-color-terracotta-light);
}

/* ── Divider ── */

.op-footer__divider {
	border: none;
	border-top: 1px solid rgba(var(--op-rgb-parchment), 0.06);
	margin: 56px 0 32px;
}

/* ── Bottom bar ── */

.op-footer__bottom {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
}

.op-footer__copyright {
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--sm);
	color: rgba(var(--op-rgb-parchment), 0.55);
}

.op-footer__bottom-tagline {
	font-family: var(--wp--preset--font-family--accent);
	font-size: var(--wp--preset--font-size--normal);
	font-style: italic;
	color: rgba(var(--op-rgb-parchment), 0.55);
}

/* ── Responsive ── */

@media (max-width: 900px) {
	.op-footer__grid {
		grid-template-columns: 1fr 1fr;
		gap: var(--wp--preset--spacing--xl);
	}

	.op-footer__col--brand {
		grid-column: 1 / -1;
	}
}

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

	.op-footer__grid {
		grid-template-columns: 1fr;
		gap: 36px;
	}

	.op-footer__col--brand {
		grid-column: auto;
	}

	.op-footer__tagline {
		max-width: none;
	}

	/* Enlarge touch targets on mobile */
	.op-footer__list {
		gap: 0;
	}

	.op-footer__list a {
		display: block;
		padding: 10px 0;
	}

	.op-footer__divider {
		margin: 40px 0 24px;
	}

	.op-footer__bottom {
		flex-direction: column;
		gap: var(--wp--preset--spacing--xs);
	}
}

/* -------------------------------------------------------
   Footer Style Variants
   ------------------------------------------------------- */

/*
  The footer defaults to dark (footer-dark bg, parchment text).
  Light variants flip text colors to dark.
  Ink variant uses the editorial gradient.
*/

/* ---- Ink ---- */

.op-footer.is-style-ink {
	background: linear-gradient(
		168deg,
		var(--op-color-deep-ink) 0%,
		var(--op-color-dusk) 100%
	);
}

/* ---- Parchment / Dawn (light variants) ---- */

.op-footer.is-style-parchment {
	background-color: var(--op-color-parchment);
}

.op-footer.is-style-dawn {
	background: linear-gradient(
		156deg,
		var(--op-color-parchment) 0%,
		var(--op-color-dusty-rose) 100%
	);
}

:is(
	.op-footer.is-style-parchment,
	.op-footer.is-style-dawn,
	.op-footer.is-style-rose,
	.op-footer.is-style-gold,
	.op-footer.is-style-moon,
	.op-footer.is-style-earth
) {
	color: rgba(var(--op-rgb-deep-ink), 0.5);
}

:is(
		.op-footer.is-style-parchment,
		.op-footer.is-style-dawn,
		.op-footer.is-style-rose,
		.op-footer.is-style-gold,
		.op-footer.is-style-moon,
		.op-footer.is-style-earth
	)
	.op-footer__heading {
	color: rgba(var(--op-rgb-deep-ink), 0.55);
}

:is(
		.op-footer.is-style-parchment,
		.op-footer.is-style-dawn,
		.op-footer.is-style-rose,
		.op-footer.is-style-gold,
		.op-footer.is-style-moon,
		.op-footer.is-style-earth
	)
	.op-footer__list
	li {
	color: rgba(var(--op-rgb-deep-ink), 0.55);
}

:is(
		.op-footer.is-style-parchment,
		.op-footer.is-style-dawn,
		.op-footer.is-style-rose,
		.op-footer.is-style-gold,
		.op-footer.is-style-moon,
		.op-footer.is-style-earth
	)
	.op-footer__list
	a {
	color: rgba(var(--op-rgb-deep-ink), 0.6);
}

:is(
		.op-footer.is-style-parchment,
		.op-footer.is-style-dawn,
		.op-footer.is-style-rose,
		.op-footer.is-style-gold,
		.op-footer.is-style-moon,
		.op-footer.is-style-earth
	)
	.op-footer__list
	a:hover {
	color: var(--op-color-deep-ink);
}

:is(
		.op-footer.is-style-parchment,
		.op-footer.is-style-dawn,
		.op-footer.is-style-rose,
		.op-footer.is-style-gold,
		.op-footer.is-style-moon,
		.op-footer.is-style-earth
	)
	.op-footer__logo-name {
	color: var(--op-color-deep-ink);
}

:is(
		.op-footer.is-style-parchment,
		.op-footer.is-style-dawn,
		.op-footer.is-style-rose,
		.op-footer.is-style-gold,
		.op-footer.is-style-moon,
		.op-footer.is-style-earth
	)
	.op-footer__logo:hover
	.op-footer__logo-name {
	color: var(--op-color-dusk);
}

:is(
		.op-footer.is-style-parchment,
		.op-footer.is-style-dawn,
		.op-footer.is-style-rose,
		.op-footer.is-style-gold,
		.op-footer.is-style-moon,
		.op-footer.is-style-earth
	)
	.op-footer__logo-suffix {
	color: rgba(var(--op-rgb-deep-ink), 0.5);
}

:is(
		.op-footer.is-style-parchment,
		.op-footer.is-style-dawn,
		.op-footer.is-style-rose,
		.op-footer.is-style-gold,
		.op-footer.is-style-moon,
		.op-footer.is-style-earth
	)
	.op-footer__tagline {
	color: rgba(var(--op-rgb-deep-ink), 0.55);
}

:is(
		.op-footer.is-style-parchment,
		.op-footer.is-style-dawn,
		.op-footer.is-style-rose,
		.op-footer.is-style-gold,
		.op-footer.is-style-moon,
		.op-footer.is-style-earth
	)
	.op-footer__divider {
	border-top-color: rgba(var(--op-rgb-deep-ink), 0.08);
}

:is(
		.op-footer.is-style-parchment,
		.op-footer.is-style-dawn,
		.op-footer.is-style-rose,
		.op-footer.is-style-gold,
		.op-footer.is-style-moon,
		.op-footer.is-style-earth
	)
	.op-footer__copyright {
	color: rgba(var(--op-rgb-deep-ink), 0.55);
}

:is(
		.op-footer.is-style-parchment,
		.op-footer.is-style-dawn,
		.op-footer.is-style-rose,
		.op-footer.is-style-gold,
		.op-footer.is-style-moon,
		.op-footer.is-style-earth
	)
	.op-footer__bottom-tagline {
	color: rgba(var(--op-rgb-deep-ink), 0.55);
}

:is(
		.op-footer.is-style-parchment,
		.op-footer.is-style-dawn,
		.op-footer.is-style-rose,
		.op-footer.is-style-gold,
		.op-footer.is-style-moon,
		.op-footer.is-style-earth
	)
	.op-footer__col--connect
	.op-footer__list
	a {
	color: var(--op-color-terracotta);
}

:is(
		.op-footer.is-style-parchment,
		.op-footer.is-style-dawn,
		.op-footer.is-style-rose,
		.op-footer.is-style-gold,
		.op-footer.is-style-moon,
		.op-footer.is-style-earth
	)
	.op-footer__col--connect
	.op-footer__list
	a:hover {
	color: var(--op-color-dusk);
}

:is(
		.op-footer.is-style-parchment,
		.op-footer.is-style-dawn,
		.op-footer.is-style-rose,
		.op-footer.is-style-gold,
		.op-footer.is-style-moon,
		.op-footer.is-style-earth
	)
	.op-footer__col--gist
	.op-footer__list
	li::marker {
	color: var(--op-color-terracotta);
}

/* Rose variant footer bg */
.op-footer.is-style-rose {
	background-color: var(--op-color-dusty-rose);
}

/* Gold variant footer bg */
.op-footer.is-style-gold {
	background-color: var(--op-color-faded-gold);
}

/* Moon variant footer bg */
.op-footer.is-style-moon {
	background-color: var(--op-color-moon-glow);
}

/* Earth variant footer bg */
.op-footer.is-style-earth {
	background-color: var(--op-color-sand);
}

/* -------------------------------------------------------
   Silent Footer (scroll-reveal section below footer)
   ------------------------------------------------------- */

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

/* -------------------------------------------------------
   Back-to-top button (fixed, bottom-right)
   ------------------------------------------------------- */

.op-footer__back-to-top {
	position: fixed;
	bottom: 2rem;
	right: 2rem;
	z-index: 900;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 1px solid rgba(var(--op-rgb-parchment), 0.2);
	border-radius: 50%;
	color: rgba(var(--op-rgb-parchment), 0.7);
	background: rgba(0, 0, 0, 0);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	transition:
		background-color 0.2s ease,
		color 0.2s ease,
		border-color 0.2s ease;

	/* Hidden by default — GSAP controls visibility */
	opacity: 0;
	filter: blur(9px);
	transform: translateY(-12px);
	pointer-events: none;
	visibility: hidden;
}

.op-footer__back-to-top.is-visible {
	pointer-events: auto;
	visibility: visible;
}

.op-footer__back-to-top:hover {
	color: var(--op-color-parchment);
	border-color: rgba(var(--op-rgb-parchment), 0.4);
	background: rgba(0, 0, 0, 0.75);
}

.op-footer__back-to-top:focus-visible {
	outline: 2px solid rgba(var(--op-rgb-dusk), 0.5);
	outline-offset: 2px;
}

.op-footer__back-to-top-icon {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
}

@media (max-width: 600px) {
	.op-footer__back-to-top {
		bottom: 1.25rem;
		right: 1.25rem;
		width: 42px;
		height: 42px;
	}
}

