/* =========================================================
   Oravio Footer system
   Compact by default; Standard and Minimal are theme patterns.
   ========================================================= */

.oravio-site-footer {
	margin-top: 0;
	box-sizing: border-box;
	background: var(--oravio-footer-bg);
	color: var(--oravio-footer-text);
}

.oravio-site-footer a {
	color: inherit;
}

.oravio-site-footer :where(.wp-block-site-title, p, nav) {
	margin-top: 0;
	margin-bottom: 0;
}

/* Shared */
.oravio-footer-copyright {
	color: color-mix(in srgb, currentColor 68%, transparent);
	font-size: var(--wp--preset--font-size--xs);
	line-height: 1.45;
	white-space: nowrap;
}

.oravio-footer-legal {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.3rem 1rem;
	color: color-mix(in srgb, currentColor 68%, transparent);
	font-size: var(--wp--preset--font-size--xs);
}

.oravio-footer-legal__item {
	position: relative;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	line-height: 1.45;
	text-decoration: none;
	cursor: pointer;
	transition: color 150ms ease;
}

.oravio-footer-legal__item:hover,
.oravio-footer-legal__item:focus-visible {
	color: var(--oravio-footer-text);
	text-decoration: underline;
	text-underline-offset: 0.18em;
}

.oravio-footer-legal__item + .oravio-footer-legal__item::before {
	content: "·";
	position: absolute;
	right: calc(100% + 0.42rem);
	color: color-mix(in srgb, currentColor 45%, transparent);
	pointer-events: none;
}

.oravio-site-footer .wp-block-site-title {
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.2;
}

.oravio-site-footer .wp-block-site-title a {
	text-decoration: none;
}

/* Compact — default */
.oravio-site-footer--compact {
	padding: 1.1rem clamp(1rem, 3vw, 2rem);
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.oravio-site-footer--compact .oravio-site-footer__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.8rem 1.5rem;
	min-height: 2.8rem;
}

.oravio-site-footer--compact .oravio-site-footer__brand {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	min-width: 0;
}

.oravio-site-footer--compact .oravio-site-footer__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 0.45rem 1rem;
}

/* Standard */
.oravio-site-footer--standard {
	padding: clamp(2.2rem, 5vw, 3.6rem) clamp(1rem, 3vw, 2rem) 1rem;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.oravio-site-footer--standard .oravio-site-footer__top {
	display: grid;
	grid-template-columns: minmax(13rem, 0.85fr) minmax(15rem, 1.15fr);
	gap: clamp(2rem, 6vw, 5rem);
	padding-bottom: clamp(1.8rem, 4vw, 2.7rem);
}

.oravio-site-footer--standard .oravio-site-footer__brand-copy {
	max-width: 30rem;
	color: color-mix(in srgb, currentColor 70%, transparent);
	font-size: var(--wp--preset--font-size--sm);
}

.oravio-site-footer--standard .wp-block-navigation {
	justify-content: flex-end;
}

.oravio-site-footer--standard .wp-block-navigation__container {
	gap: 0.45rem 1.25rem;
}

.oravio-site-footer--standard .wp-block-navigation-item__content {
	color: color-mix(in srgb, currentColor 82%, transparent);
	text-decoration: none;
}

.oravio-site-footer--standard .wp-block-navigation-item__content:hover,
.oravio-site-footer--standard .wp-block-navigation-item__content:focus-visible {
	color: var(--oravio-footer-text);
}

.oravio-site-footer--standard .oravio-site-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.55rem 1.25rem;
	padding-top: 1rem;
	border-top: 1px solid rgba(255, 255, 255, 0.09);
}

/* Minimal */
.oravio-site-footer--minimal {
	padding: 0.85rem clamp(1rem, 3vw, 2rem);
	border-top: 1px solid var(--wp--preset--color--border);
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--text);
}

.oravio-site-footer--minimal .oravio-site-footer__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.45rem 1.2rem;
}

.oravio-site-footer--minimal .oravio-footer-copyright,
.oravio-site-footer--minimal .oravio-footer-legal {
	color: var(--wp--preset--color--muted);
}

.oravio-site-footer--minimal .oravio-footer-legal__item:hover,
.oravio-site-footer--minimal .oravio-footer-legal__item:focus-visible {
	color: var(--wp--preset--color--text);
}

/* Privacy starter */
.oravio-privacy-policy {
	padding-top: clamp(2.5rem, 6vw, 5rem);
	padding-bottom: clamp(3rem, 7vw, 6rem);
}

.oravio-privacy-policy__intro {
	margin-bottom: clamp(2rem, 5vw, 3.5rem);
	padding: clamp(1.1rem, 3vw, 1.6rem);
	background: var(--wp--preset--color--soft);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 1rem;
	color: var(--wp--preset--color--muted);
}

.oravio-privacy-policy h2 {
	margin-top: clamp(2rem, 5vw, 3rem);
	margin-bottom: 0.65rem;
}

.oravio-privacy-policy h2 + p,
.oravio-privacy-policy h2 + ul {
	margin-top: 0;
}

@media (max-width: 760px) {
	.oravio-site-footer--compact .oravio-site-footer__inner,
	.oravio-site-footer--standard .oravio-site-footer__bottom,
	.oravio-site-footer--minimal .oravio-site-footer__inner {
		align-items: flex-start;
		flex-direction: column;
	}

	.oravio-site-footer--compact .oravio-site-footer__meta {
		justify-content: flex-start;
	}

	.oravio-site-footer--standard .oravio-site-footer__top {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}

	.oravio-site-footer--standard .wp-block-navigation {
		justify-content: flex-start;
	}

	.oravio-footer-copyright {
		white-space: normal;
	}
}


/* Managed footer renderer (Appearance -> Oravio Shop). */
.oravio-managed-footer {
	margin-block-start: 0;
}

.oravio-site-footer__brand-title {
	margin: 0;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.2;
}

.oravio-site-footer__brand-title a {
	color: inherit;
	text-decoration: none;
}

.oravio-footer-nav {
	align-self: start;
}

.oravio-footer-nav__list {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 0.55rem 1.35rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.oravio-footer-nav__item {
	margin: 0;
	padding: 0;
	list-style: none;
}

.oravio-footer-nav__item > .oravio-footer-nav__list {
	margin-top: 0.4rem;
	padding-left: 0.8rem;
}

.oravio-footer-nav a {
	color: color-mix(in srgb, currentColor 82%, transparent);
	font-size: var(--wp--preset--font-size--sm);
	text-decoration: none;
}

.oravio-footer-nav a:hover,
.oravio-footer-nav a:focus-visible {
	color: var(--oravio-footer-text);
	text-decoration: underline;
	text-underline-offset: 0.18em;
}

@media (max-width: 760px) {
	.oravio-footer-nav__list {
		justify-content: flex-start;
	}
}
