/* Franja verda: visible sota el navbar transparent, abans de fer scroll */
.hero-topbar {
	position: absolute;
	top: var(--navbar-height);
	left: 0;
	right: 0;
	background-color: var(--color-green-900);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease;
}

body.has-hero .hero-topbar {
	opacity: 1;
	pointer-events: auto;
}

.site-header.is-scrolled .hero-topbar {
	opacity: 0;
	pointer-events: none;
}

/* Franja beix: apareix per sobre del navbar en fer scroll, l'empeny avall */
.navbar-utility {
	max-height: 0;
	overflow: hidden;
	background-color: var(--color-tan-light);
	transition: max-height 0.3s ease;
}

.site-header.is-scrolled .navbar-utility {
	max-height: 38px;
}

.navbar-utility__inner {
	max-width: var(--container-width);
	height: 38px;
	margin: 0 auto;
	padding: 0 var(--gutter);
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.navbar-utility__contacts {
	display: flex;
	align-items: center;
	gap: 28px;
}

.navbar-utility__item {
	display: flex;
	align-items: flex-end;
	gap: 6px;
	color: var(--color-green-950);
	font-family: var(--font-body);
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	white-space: nowrap;
	transition: opacity 0.2s ease;
}

.navbar-utility__item span {
	display: block;
	line-height: 1;
}

.navbar-utility__item svg {
	width: 15px;
	height: 15px;
	flex-shrink: 0;
	color: var(--color-green-800);
}

/* El telèfon no és un enllaç sencer: cada número ho és per separat */
a.navbar-utility__item:hover,
.navbar-utility__item a:hover {
	opacity: 0.7;
}

.navbar-utility__socials {
	display: flex;
	align-items: center;
	gap: 14px;
}

.navbar-utility__socials a {
	color: var(--color-green-950);
	display: flex;
	transition: opacity 0.2s ease;
}

.navbar-utility__socials svg {
	width: 16px;
	height: 16px;
}

.navbar-utility__socials a:hover {
	opacity: 0.7;
}

/* Colors sobre fons verd (hero-topbar) */
.hero-topbar .navbar-utility__item,
.hero-topbar .navbar-utility__socials a {
	color: var(--color-white);
}

.hero-topbar .navbar-utility__item svg {
	color: var(--color-tan-light);
}

/* En mòbil/tauleta el telèfon i el correu passen al menú burger; només queden les xarxes */
@media (max-width: 1080px) {
	.navbar-utility__contacts {
		display: none;
	}

	.navbar-utility__inner {
		justify-content: flex-end;
	}
}
