/*
 * Mobile bottom dock — industrial gold #FCC900
 */

.mobi-bar {
	--mobi-bar-h: 58px;
	--mobi-gold: #fcc900;
	list-style: none;
	margin: 0;
	padding: 0;
	width: 100%;
	display: none;
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 9999;
	align-items: stretch;
	justify-content: space-around;
	background: linear-gradient(180deg, #141414 0%, #0a0a0a 100%);
	border-top: 1px solid rgba(252, 201, 0, 0.22);
	box-shadow:
		0 -8px 32px rgba(0, 0, 0, 0.45),
		inset 0 1px 0 rgba(255, 255, 255, 0.05);
	padding-bottom: env(safe-area-inset-bottom, 0px);
	-webkit-tap-highlight-color: transparent;
}

.mobi-bar::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 2px;
	background: linear-gradient(
		90deg,
		transparent 0%,
		var(--mobi-gold) 22%,
		var(--mobi-gold) 78%,
		transparent 100%
	);
	opacity: 0.75;
	pointer-events: none;
}

.mobi-bar__item {
	flex: 1 1 0;
	min-width: 0;
	position: relative;
}

.mobi-bar__item + .mobi-bar__item::before {
	content: "";
	position: absolute;
	left: 0;
	top: 18%;
	bottom: 18%;
	width: 1px;
	background: linear-gradient(
		180deg,
		transparent,
		rgba(255, 255, 255, 0.08) 50%,
		transparent
	);
}

.mobi-bar__link {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	min-height: var(--mobi-bar-h);
	padding: 8px 4px 6px;
	color: rgba(255, 255, 255, 0.62);
	text-decoration: none;
	transition:
		color 0.25s ease,
		background 0.25s ease;
}

.mobi-bar__link:active {
	background: rgba(252, 201, 0, 0.08);
}

.mobi-bar__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.06);
	transition:
		transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
		border-color 0.25s ease,
		background 0.25s ease,
		box-shadow 0.3s ease;
}

.mobi-bar__icon svg {
	width: 18px;
	height: 18px;
	display: block;
	flex-shrink: 0;
}

.mobi-bar__icon svg path {
	fill: currentColor;
}

.mobi-bar__icon--phone svg {
	width: 20px;
	height: 20px;
	display: block;
	flex-shrink: 0;
}

.mobi-bar__icon--phone path {
	fill: var(--mobi-gold);
}

.mobi-bar__label {
	font-family: "Syne", "Segoe UI", sans-serif;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	line-height: 1.2;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 100%;
}

.mobi-bar__link:active .mobi-bar__icon {
	transform: scale(0.92);
}

/* Item accents */
.mobi-bar__item--phone .mobi-bar__link:active {
	color: var(--mobi-gold);
}

.mobi-bar__item--phone .mobi-bar__link:active .mobi-bar__icon {
	border-color: rgba(252, 201, 0, 0.45);
	background: rgba(252, 201, 0, 0.12);
	color: var(--mobi-gold);
	box-shadow: 0 0 16px rgba(252, 201, 0, 0.2);
}

.mobi-bar__item--email .mobi-bar__link:active {
	color: #7eb8ff;
}

.mobi-bar__item--email .mobi-bar__link:active .mobi-bar__icon {
	border-color: rgba(126, 184, 255, 0.4);
	background: rgba(126, 184, 255, 0.1);
	color: #7eb8ff;
}

.mobi-bar__item--whatsapp .mobi-bar__link:active {
	color: #25d366;
}

.mobi-bar__item--whatsapp .mobi-bar__link:active .mobi-bar__icon {
	border-color: rgba(37, 211, 102, 0.45);
	background: rgba(37, 211, 102, 0.12);
	color: #25d366;
	box-shadow: 0 0 16px rgba(37, 211, 102, 0.18);
}

.mobi-bar__item--inquiry .mobi-bar__link:active {
	color: var(--mobi-gold);
}

.mobi-bar__item--inquiry .mobi-bar__link:active .mobi-bar__icon {
	border-color: rgba(252, 201, 0, 0.45);
	background: rgba(252, 201, 0, 0.12);
	color: var(--mobi-gold);
}

/* Hover — high contrast (mobile dock + desktop with mouse) */
.no-touch .mobi-bar__link:hover {
	color: #111111 !important;
	background: var(--mobi-gold) !important;
}

.no-touch .mobi-bar__link:hover .mobi-bar__icon {
	border-color: #111111 !important;
	background: rgba(17, 17, 17, 0.12) !important;
	color: #111111 !important;
	box-shadow: none;
}

.no-touch .mobi-bar__item--phone .mobi-bar__link:hover .mobi-bar__icon--phone path {
	fill: #111111 !important;
}

.no-touch .mobi-bar__item--phone .mobi-bar__link:hover,
.no-touch .mobi-bar__item--email .mobi-bar__link:hover,
.no-touch .mobi-bar__item--whatsapp .mobi-bar__link:hover,
.no-touch .mobi-bar__item--inquiry .mobi-bar__link:hover {
	color: #111111 !important;
	background: var(--mobi-gold) !important;
}

@media only screen and (max-width: 900px) {
	.mobi-bar {
		display: flex;
	}

	/* Reserve space so content is not hidden under dock */
	body {
		padding-bottom: calc(var(--mobi-bar-h) + env(safe-area-inset-bottom, 0px)) !important;
	}

	/* .online mobile position finalized in sidebar-social.css + return-top.js */
}

@media only screen and (max-width: 480px) {
	.mobi-bar {
		--mobi-bar-h: 54px;
	}

	.mobi-bar__icon {
		width: 30px;
		height: 30px;
		border-radius: 9px;
	}

	.mobi-bar__icon svg {
		width: 16px;
		height: 16px;
	}

	.mobi-bar__icon--phone svg {
		width: 18px;
		height: 18px;
	}

	.mobi-bar__label {
		font-size: 9px;
		letter-spacing: 0.04em;
	}
}

@media (prefers-reduced-motion: reduce) {
	.mobi-bar__link,
	.mobi-bar__icon {
		transition: none;
	}
}
