/* Avista sidfot (2026-08-19) — se includes/footer/footer.php.
   Ligger i .site-footer som redan är blå (#0475C5, style.css:552).
   Filen laddas BARA när sidfoten är aktiverad, så .site-footer-reglerna
   här påverkar aldrig gamla sidfoten. */

/* Genesis-föräldern ger .site-footer padding 40px 0 och barntemat
   min-height 120px — blev tomt blått ovan/under. Tomma <p> = döda
   footer-credits (B4-fyndet). */
.site-footer {
	padding: 0 !important;
	min-height: 0 !important;
}
.site-footer p:empty {
	display: none;
}

.avista-sidfot {
	width: 100%;
	background-color: #0475C5;
	color: #fff;
	text-align: left;
}
.avista-sidfot__inre {
	max-width: 1160px;
	margin: 0 auto;
	padding: 40px 40px 0 40px;
	box-sizing: border-box;
}
.avista-sidfot a {
	color: #fff;
	text-decoration: none;
}
.avista-sidfot a:hover {
	color: #d6effc;
}

.avista-sidfot__kolumner {
	display: grid;
	/* auto-fit: antalet länkkolumner styrs i admin (lägg till/ta bort) */
	grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
	gap: 48px;
}
.avista-sidfot__kolumn {
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.avista-sidfot__kontakt {
	gap: 14px;
}
.avista-sidfot__rubrik {
	/* !important på margin: temats globala H2-regel har margin-bottom
	   40px !important — utan lås blev gapet under rubrikerna enormt. */
	font-size: 13px !important;
	font-weight: 700;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.65) !important;
	margin: 0 0 4px 0 !important;
	text-align: left !important;
}
.avista-sidfot__lista {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.avista-sidfot__lista li {
	margin: 0;
	padding: 0;
	list-style: none;
}
.avista-sidfot__lista a {
	font-size: 15px;
	line-height: 1.4;
}
/* Fetstil styrs per länk via kryssrutan i admin (klass avista-fet) —
   den gamla automatiska li:last-child-regeln gjorde fel länkar feta. */
.avista-sidfot a.avista-fet {
	font-weight: 700;
}
.avista-sidfot__tel {
	font-size: 21px;
	font-weight: 700;
}
.avista-sidfot__epost {
	font-size: 15px;
	color: rgba(255, 255, 255, 0.92);
}
.avista-sidfot__text {
	font-size: 14px;
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.78);
}
.avista-sidfot__avvikande {
	font-size: 13px;
	line-height: 1.5;
	background-color: rgba(255, 255, 255, 0.14);
	padding: 10px 14px;
	color: #fff;
}
.avista-sidfot__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 46px;
	padding: 0 26px;
	background-color: #fff !important;
	font-size: 15px;
	font-weight: 700;
	margin-top: 6px;
	align-self: flex-start;
}
.avista-sidfot .avista-sidfot__cta,
.avista-sidfot .avista-sidfot__cta:hover {
	color: #0475C5 !important;
}
.avista-sidfot__cta:hover {
	background-color: #e6f3fb !important;
}

.avista-sidfot__rad {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	border-top: 1px solid rgba(255, 255, 255, 0.22);
	margin-top: 48px;
	padding: 28px 0;
	flex-wrap: wrap;
}
.avista-sidfot__ackred {
	display: flex;
	align-items: center;
	gap: 28px;
	flex-wrap: wrap;
}
.avista-sidfot__ackred-logo {
	max-height: 62px;
	width: auto;
	height: auto;
	max-width: 150px;
	object-fit: contain;
}
.avista-sidfot__ackred-text {
	font-size: 13px;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.65);
	max-width: 240px;
}
.avista-sidfot__sociala {
	display: flex;
	gap: 12px;
}
.avista-sidfot__social {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	/* !important: temats kaskad nollade bakgrunden i v1 (ikonerna blev
	   osynliga tills hover) — hårdlås båda tillstånden. */
	background-color: #fff !important;
}
.avista-sidfot__social:hover {
	background-color: rgba(255, 255, 255, 0.8) !important;
}

.avista-sidfot__juridik {
	margin-top: 0;
	padding: 22px 0 26px 0;
}
.avista-sidfot__copyright {
	font-size: 13px;
	color: rgba(255, 255, 255, 0.65);
}
.avista-sidfot__juridik-lankar {
	display: flex;
	gap: 26px;
}
.avista-sidfot__juridik-lankar a {
	font-size: 13px;
	color: rgba(255, 255, 255, 0.78);
	align-self: center;
}
.avista-sidfot__juridik-lankar a:hover {
	text-decoration: underline;
}

@media only screen and (max-width: 767px) {
	.avista-sidfot__inre {
		padding: 40px 24px 0 24px;
	}
	.avista-sidfot__kolumner {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 28px;
	}
	.avista-sidfot__kontakt {
		grid-column: 1 / -1;
	}
	.avista-sidfot__rubrik {
		font-size: 12px;
		letter-spacing: 1.2px;
	}
	.avista-sidfot__cta {
		align-self: stretch;
		height: 48px;
	}
	.avista-sidfot__rad {
		gap: 22px;
	}
	.avista-sidfot__juridik {
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
	}
	.avista-sidfot__juridik-lankar {
		flex-direction: column;
		gap: 10px;
	}
}
