/*
 * MSF editable top bar.
 * Loaded after the main theme stylesheet so it can safely replace the original compact contact bar.
 */

.site-topbar {
	background: var(--msf-navy);
	color: var(--msf-white);
}

.site-topbar__inner {
	display: grid;
	min-height: 44px;
	grid-template-columns: minmax(280px, 1fr) auto auto;
	align-items: center;
	gap: 0.65rem 1rem;
}

.site-topbar__identity {
	display: flex;
	min-width: 0;
	align-items: center;
	gap: 0.42rem;
	font-size: 0.73rem;
	line-height: 1.25;
	white-space: nowrap;
}

.site-topbar__name {
	color: var(--msf-white);
	font-weight: 700;
}

.site-topbar__separator {
	color: rgba(255, 255, 255, 0.42);
}

.site-topbar__tagline {
	color: rgba(255, 255, 255, 0.78);
	font-weight: 500;
}

.site-topbar__socials {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 0.38rem;
	margin-left: auto;
}

.site-topbar__social {
	display: grid;
	width: 26px;
	height: 26px;
	flex: 0 0 auto;
	place-items: center;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 50%;
	color: var(--msf-white);
	text-decoration: none;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
	transition: transform var(--msf-transition), filter var(--msf-transition), box-shadow var(--msf-transition);
}

.site-topbar__social:hover {
	color: var(--msf-white);
	filter: brightness(1.1);
	transform: translateY(-2px);
	box-shadow: 0 7px 16px rgba(0, 0, 0, 0.24);
}

.site-topbar__social .msf-topbar-icon {
	width: 14px;
	height: 14px;
	fill: currentColor;
}

.site-topbar__social--facebook {
	background: #1877f2;
}

.site-topbar__social--instagram {
	background: radial-gradient(circle at 30% 107%, #fdf497 0 5%, #fd5949 40%, #d6249f 62%, #285aeb 90%);
}

.site-topbar__social--x {
	background: #000000;
}

.site-topbar__social--youtube {
	background: #ff0000;
}

.site-topbar__social--linkedin {
	background: #0a66c2;
}

.site-topbar__social--tiktok {
	background: #000000;
	box-shadow: inset 2px 0 0 #25f4ee, inset -2px 0 0 #fe2c55, 0 4px 12px rgba(0, 0, 0, 0.18);
}

.site-topbar__social--whatsapp {
	background: #25d366;
}

.site-topbar__social--email {
	background: #ea4335;
}

.site-topbar__phones {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 0.45rem;
	white-space: nowrap;
}

.site-topbar__phone-icon {
	display: grid;
	width: 22px;
	height: 22px;
	flex: 0 0 auto;
	place-items: center;
	color: var(--msf-green);
}

.site-topbar__phone-icon .msf-icon {
	width: 0.95rem;
	height: 0.95rem;
	color: inherit;
}

.site-topbar__phone-links {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 0.42rem;
}

.site-topbar__phone-links a {
	display: inline-flex;
	align-items: center;
	color: rgba(255, 255, 255, 0.92);
	font-size: 0.73rem;
	font-weight: 600;
	text-decoration: none;
}

.site-topbar__phone-links a:hover {
	color: var(--msf-green);
}

.site-topbar__phone-separator {
	color: rgba(255, 255, 255, 0.32);
}

@media (max-width: 1120px) {
	:root {
		--msf-header-height: 122px;
	}

	.site-topbar__inner {
		gap: 0.55rem 0.7rem;
	}

	.site-topbar__identity,
	.site-topbar__phone-links a {
		font-size: 0.68rem;
	}

	.site-topbar__social {
		width: 24px;
		height: 24px;
	}
}

@media (max-width: 820px) {
	:root {
		--msf-header-height: 150px;
	}

	.site-topbar__inner {
		grid-template-columns: minmax(0, 1fr) auto;
		padding-block: 0.42rem;
	}

	.site-topbar__identity {
		grid-column: 1 / -1;
		flex-wrap: wrap;
		white-space: normal;
	}

	.site-topbar__socials {
		justify-self: end;
		margin-left: 0;
	}

	.site-topbar__phones {
		justify-self: end;
	}
}

@media (max-width: 680px) {
	:root {
		--msf-header-height: 174px;
	}

	.site-topbar__inner {
		min-height: 0;
		grid-template-columns: 1fr;
		gap: 0.45rem;
		padding-block: 0.55rem;
	}

	.site-topbar__identity {
		grid-column: auto;
		justify-self: start;
	}

	.site-topbar__socials {
		width: 100%;
		justify-self: stretch;
		justify-content: flex-end;
	}

	.site-topbar__phones {
		justify-self: end;
		flex-wrap: wrap;
		white-space: normal;
	}

	.site-topbar__phone-links {
		flex-wrap: wrap;
	}
}

@media (max-width: 420px) {
	.site-topbar__identity,
	.site-topbar__phone-links a {
		font-size: 0.67rem;
	}

	.site-topbar__social {
		width: 23px;
		height: 23px;
	}

	.site-topbar__social .msf-topbar-icon {
		width: 12px;
		height: 12px;
	}
}
