/*
 * Maintenance page (inc/maintenance.php, CU-869fhw9tn): one card in the middle of the screen, with
 * the site's tokens. The same page with Flatsome's "Blank landing page" template at /em-manutencao/.
 */

html:has(.bb-maintenance),
body:has(.bb-maintenance) {
	background: var(--bb-color-bg-page);
}

.bb-maintenance {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: var(--bb-space-lg);
	box-sizing: border-box;
	min-height: 100vh;
	min-height: 100dvh;
	padding: var(--bb-space-xl) var(--bb-space-lg);
	color: var(--bb-color-text-primary);
	font-family: Lato, Arial, sans-serif;
	text-align: center;
}

.bb-maintenance *,
.bb-maintenance *::before,
.bb-maintenance *::after {
	box-sizing: border-box;
}

.bb-maintenance__card {
	width: 100%;
	max-width: 560px;
	padding: 40px 32px 32px;
	border: 1px solid var(--bb-color-border-default);
	border-radius: 16px;
	background: var(--bb-color-bg-canvas);
}

.bb-maintenance__logo {
	display: flex;
	justify-content: center;
	margin: 0 0 28px;
}

.bb-maintenance__logo .logo,
.bb-maintenance__logo a {
	display: block;
	width: 180px;
	margin: 0;
}

.bb-maintenance__logo img {
	display: block;
	width: 180px;
	max-height: none;
	height: auto;
}

/* Flatsome's logo part prints a dark and a light image; the card is white. */
.bb-maintenance__logo .header-logo-dark {
	display: none;
}

.bb-maintenance__badge {
	display: inline-flex;
	align-items: center;
	gap: var(--bb-space-sm);
	margin: 0 0 var(--bb-space-lg);
	padding: 6px 12px;
	border-radius: 999px;
	background: var(--bb-color-bg-support-subtle);
	color: var(--bb-color-text-support);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.4;
}

.bb-maintenance__dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--bb-brand-500);
	animation: bb-maintenance-pulse 1.8s ease-in-out infinite;
}

@keyframes bb-maintenance-pulse {
	50% {
		opacity: 0.35;
	}
}

.bb-maintenance__title {
	margin: 0 0 var(--bb-space-md);
	color: var(--bb-color-text-primary);
	font-size: 30px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0;
	text-transform: none;
}

.bb-maintenance__text {
	margin: 0 auto;
	max-width: 420px;
	color: var(--bb-color-text-secondary);
	font-size: 16px;
	line-height: 1.6;
}

.bb-maintenance__help {
	margin: 32px 0 0;
	padding: var(--bb-space-xl) 0 0;
	border-top: 1px solid var(--bb-color-border-default);
}

.bb-maintenance__heading {
	margin: 0 0 var(--bb-space-xs);
	color: var(--bb-color-text-primary);
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0;
	text-transform: none;
}

.bb-maintenance__hours {
	margin: 0 0 var(--bb-space-lg);
	color: var(--bb-color-text-secondary);
	font-size: 14px;
	line-height: 1.5;
}

.bb-maintenance__contacts,
.bb-maintenance__social {
	margin: 0;
	padding: 0;
	list-style: none;
}

.bb-maintenance__contacts {
	display: grid;
	gap: var(--bb-space-sm);
	text-align: left;
}

.bb-maintenance__contacts li,
.bb-maintenance__social li {
	margin: 0;
}

.bb-maintenance__contacts a {
	display: flex;
	align-items: center;
	gap: var(--bb-space-md);
	min-height: 56px;
	padding: 10px 14px;
	border: 1px solid var(--bb-color-border-default);
	border-radius: 10px;
	color: var(--bb-color-text-primary);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
	text-decoration: none;
	transition: border-color 0.15s, background-color 0.15s;
}

.bb-maintenance__contacts a:hover {
	border-color: var(--bb-color-border-support);
	background: var(--bb-color-bg-support-subtle);
}

.bb-maintenance .bb-maintenance__contacts i {
	display: block;
	flex: none;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--bb-color-bg-support-subtle);
	color: var(--bb-color-icon-support);
	font-size: 16px;
	line-height: 36px;
	text-align: center;
}

/* Flatsome sets line-height 1.2 on i[class^=icon-]: two classes to centre the glyph in the circle. */
.bb-maintenance .bb-maintenance__contacts i::before {
	position: static;
	margin: 0;
}

.bb-maintenance__contacts small {
	display: block;
	color: var(--bb-color-text-secondary);
	font-size: 12px;
	font-weight: 400;
}

.bb-maintenance__social {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--bb-space-sm) var(--bb-space-lg);
	margin: var(--bb-space-xl) 0 0;
}

.bb-maintenance__social a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 44px;
	color: var(--bb-color-text-link);
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
}

.bb-maintenance__social a:hover {
	color: var(--bb-color-action-primary-hover);
	text-decoration: underline;
}

.bb-maintenance a:focus-visible {
	outline: 2px solid var(--bb-color-focus-ring);
	outline-offset: 3px;
}

.bb-maintenance__copy {
	margin: 0;
	color: var(--bb-color-text-secondary);
	font-size: 13px;
}

@media (max-width: 549px) {
	.bb-maintenance__card {
		padding: 28px 20px 20px;
	}

	.bb-maintenance__title {
		font-size: 24px;
	}

	.bb-maintenance__text {
		font-size: 15px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.bb-maintenance__dot {
		animation: none;
	}
}
