/* Footer: logo · navigation · social icons · contact and copyright. */
/* The bottom padding leaves room for the floating buttons at the end of the page. */
.pm-footer {
	padding-block: var(--pm-space-6) calc(var(--pm-space-6) + 64px + env(safe-area-inset-bottom));
	border-top: 1px solid var(--pm-border);
}

.pm-footer__inner {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto auto;
	align-items: center;
	gap: var(--pm-space-5) var(--pm-space-6);
}

.pm-logo--footer .pm-logo__img {
	width: clamp(120px, 9.5vw, 138px);
	height: auto;
}

.pm-footer__list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--pm-space-2) clamp(18px, 2.4vw, 36px);
	margin: 0;
	padding: 0;
	list-style: none;
}

.pm-footer__list a {
	color: #cfcfcf;
	font-size: 13.5px;
	text-decoration: none;
	transition: color 0.2s var(--pm-ease);
}

.pm-footer__list a:hover {
	color: var(--pm-accent);
}

.pm-footer__social {
	display: flex;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.pm-footer__social a {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border: 1px solid rgb(255 255 255 / 22%);
	border-radius: 50%;
	color: var(--pm-text);
	transition:
		border-color 0.2s var(--pm-ease),
		color 0.2s var(--pm-ease);
}

.pm-footer__social .pm-icon {
	width: 18px;
	height: 18px;
}

.pm-footer__social a:hover {
	border-color: var(--pm-accent);
	color: var(--pm-accent);
}

.pm-footer__meta {
	display: grid;
	gap: var(--pm-space-1);
	padding-inline-start: var(--pm-space-5);
	border-inline-start: 1px solid rgb(255 255 255 / 14%);
	color: var(--pm-text-muted);
	font-size: 12.5px;
	line-height: 1.5;
}

.pm-footer__email {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--pm-text-2);
	text-decoration: none;
}

.pm-footer__email .pm-icon {
	width: 15px;
	height: 15px;
	color: var(--pm-accent);
}

.pm-footer__email:hover {
	color: var(--pm-accent);
}

.pm-footer__copy {
	max-width: 15em;
}

.pm-footer__credit {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0 var(--pm-space-2);
	color: var(--pm-text-2);
	font-size: 13px;
	white-space: nowrap;
}

.pm-footer__sep {
	color: rgb(255 255 255 / 25%);
}

.pm-footer__credit a {
	color: var(--pm-accent);
	text-decoration: none;
	text-underline-offset: 3px;
}

.pm-footer__credit a:hover {
	text-decoration: underline;
}

@media (max-width: 999.98px) {
	.pm-footer__inner {
		grid-template-columns: minmax(0, 1fr);
		justify-items: center;
		text-align: center;
	}

	.pm-footer__meta {
		justify-items: center;
		padding: 0;
		border: 0;
	}

	.pm-footer__copy {
		max-width: none;
	}

	.pm-footer__credit {
		justify-content: center;
	}
}

/* ---------- Floating buttons: WhatsApp (bottom left), back to top (bottom right) ---------- */
.pm-float {
	position: fixed;
	z-index: 90;
	bottom: calc(var(--pm-space-5) + env(safe-area-inset-bottom));
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border-radius: 50%;
	box-shadow: 0 10px 26px -10px rgb(0 0 0 / 80%);
	cursor: pointer;
	transition:
		background-color 0.25s var(--pm-ease),
		border-color 0.25s var(--pm-ease),
		box-shadow 0.25s var(--pm-ease),
		color 0.25s var(--pm-ease),
		transform 0.25s var(--pm-ease);
}

.pm-float .pm-icon {
	width: 22px;
	height: 22px;
}

.pm-float--whatsapp {
	left: calc(var(--pm-space-5) + env(safe-area-inset-left));
	background: var(--pm-accent);
	color: var(--pm-on-accent);
}

.pm-float--whatsapp .pm-icon {
	width: 26px;
	height: 26px;
}

.pm-float--top {
	right: calc(var(--pm-space-5) + env(safe-area-inset-right));
	border: 1.5px solid var(--pm-accent);
	background: rgb(10 11 9 / 88%);
	color: var(--pm-accent);
	opacity: 0;
	visibility: hidden;
	transform: translateY(12px);
	transition:
		background-color 0.25s var(--pm-ease),
		color 0.25s var(--pm-ease),
		box-shadow 0.25s var(--pm-ease),
		opacity 0.25s var(--pm-ease),
		transform 0.25s var(--pm-ease),
		visibility 0s linear 0.25s;
}

.pm-float--top.is-visible {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition:
		background-color 0.25s var(--pm-ease),
		color 0.25s var(--pm-ease),
		box-shadow 0.25s var(--pm-ease),
		opacity 0.25s var(--pm-ease),
		transform 0.25s var(--pm-ease),
		visibility 0s;
}

@media (hover: hover) {
	.pm-float:hover {
		box-shadow: 0 0 0 4px rgb(239 252 25 / 18%), 0 12px 30px -10px var(--pm-glow);
		transform: translateY(-3px);
	}

	.pm-float--top:hover {
		background: var(--pm-accent);
		color: var(--pm-on-accent);
	}
}

/* Hidden while the full-screen mobile menu is open. */
.pm-menu-open .pm-float {
	visibility: hidden;
}

@media (prefers-reduced-motion: reduce) {
	.pm-float:hover {
		transform: none;
	}
}

@media (max-width: 599.98px) {
	.pm-float {
		bottom: calc(var(--pm-space-4) + env(safe-area-inset-bottom));
		width: 46px;
		height: 46px;
	}

	.pm-float--whatsapp {
		left: calc(var(--pm-space-4) + env(safe-area-inset-left));
	}

	.pm-float--top {
		right: calc(var(--pm-space-4) + env(safe-area-inset-right));
	}
}
