/*
 * 20-footer.css - footer (zona header-footer).
 * Desktop: valorile calculate pe live (layout Divi 2041): 446px la 1920 (346 + bara de 100px).
 * Mobil (< 981px): o coloana, centrata.
 */

/* ---------- Partea gri (Divi: et_pb_section_0_tb_footer) ---------- */
.er-ftr-main {
	padding: 54px 0 4px;
	background-color: var(--er-gray-bg);
}
.er-ftr-row {
	display: flex;
	align-items: flex-start;
	padding: 27px 0;
}
/* Coloane 1/4 Divi cu spatiu "2": 22.75% + 3% */
.er-ftr-col {
	width: 22.75%;
	margin-right: 3%;
	flex: none;
}
.er-ftr-col:last-child { margin-right: 0; }

.er-ftr-logo { width: 50%; margin-bottom: 6.593%; }
.er-ftr-logo a, .er-ftr-logo img { display: block; }
.er-ftr-logo img { width: 100%; height: auto; }
.er-ftr-text p {
	padding-bottom: 0;
	font-size: 14px;
	font-weight: 300;
	line-height: 23.8px;
	color: #000;
}

.er-ftr-title {
	margin-bottom: 6.593%;
	padding-bottom: 0;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2em;
	color: #000;
}
.er-ftr-title--dark { color: #222; }

/* Blurb-uri Divi: icoana 18px #555 intr-o celula de 32px, titlul 14px/14px #000 */
.er-ftr-blurb {
	display: flex;
	align-items: center;
	margin-bottom: 10px;
}
.er-ftr-blurb__icon {
	display: block;
	width: 32px;
	height: 18px;
	flex: none;
	font-size: 18px;
	line-height: 18px;
	color: #555;
}
.er-ftr-blurb__icon .er-icon { display: block; vertical-align: top; }
.er-ftr-blurb__text {
	display: block;
	font-size: 14px;
	font-weight: 500;
	line-height: 14px;
	color: #000;
}
.er-ftr-blurb__text a { color: #000; transition: color .4s, letter-spacing .4s; }
.er-ftr-blurb--hover .er-ftr-blurb__text a:hover { color: #000; letter-spacing: 1.1px; text-decoration: underline; } /* inainte auriu */
.er-ftr-blurb:not(.er-ftr-blurb--hover) .er-ftr-blurb__text a:hover { color: #000; text-decoration: underline; }
/* Pe categoriile de produse, live-ul are 15px in stanga textelor din blurb-uri (CSS-ul body-ului Divi). */
.er-footer--cat .er-ftr-blurb__text { padding-left: 15px; }

.er-ftr-social { justify-content: flex-start; margin-bottom: 6.593%; }
.er-ftr-pay img { display: block; width: 178px; max-width: 100%; height: auto; }

/* ---------- Bara albastra (Divi: et_pb_section_1_tb_footer) ---------- */
.er-ftr-bottom { background-color: var(--er-blue); }
.er-ftr-bottom__row {
	display: flex;
	padding: 27px 0;
	font-size: 14px;
	line-height: 23.8px;
	color: #fff;
}
.er-ftr-bottom__col { width: 47.25%; flex: none; }
.er-ftr-bottom__col--copy { margin-right: 5.5%; }
.er-ftr-bottom__col--copy .copyright-text {
	margin-top: 10px;
	font-family: var(--er-font-pop);
	font-weight: 500;
	text-align: left;
	color: #fff;
}
.er-ftr-bottom__col--credit { text-align: right; }
.er-ftr-bottom__col--credit a { color: #fff; }
.er-ftr-bottom__col--credit img { width: 40px; height: auto; vertical-align: baseline; }

/* ---------- Inapoi sus (Divi "Back To Top Button") ---------- */
.er-to-top {
	position: fixed;
	right: 0;
	bottom: 125px;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 5px;
	border-radius: 5px 0 0 5px;
	background: rgba(0, 0, 0, .4);
	color: #fff;
	font-size: 30px;
	opacity: 0;
	visibility: hidden;
	transform: translateX(100%);
	transition: opacity .4s, transform .4s, visibility .4s;
}
.er-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }

/* ---------- Mobil (< 981px) ---------- */
@media (max-width: 980px) {
	.er-ftr-main { padding: 36px 0 8px; }
	.er-ftr-row {
		flex-direction: column;
		align-items: center;
		gap: 32px;
		padding: 0 0 24px;
		text-align: center;
	}
	.er-ftr-col { width: 100%; max-width: 420px; margin-right: 0; }
	.er-ftr-logo { width: 150px; margin: 0 auto 14px; }
	.er-ftr-text p { font-size: 15px; line-height: 1.6; }
	.er-ftr-title { margin-bottom: 14px; font-size: 17px; }
	.er-ftr-blurb { justify-content: center; align-items: stretch; margin-bottom: 0; }
	/* tinte de atingere de cel putin 44px inaltime (icoana si textul unui rand duc la acelasi link) */
	.er-ftr-blurb__icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; min-height: 44px; margin-right: -8px; }
	.er-ftr-blurb__text { padding-left: 0 !important; font-size: 15px; line-height: 1.3; }
	.er-ftr-blurb__text a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; }
	.er-ftr-social { justify-content: center; margin-bottom: 18px; }
	.er-ftr-pay img { margin: 0 auto; }
	.er-ftr-bottom__row {
		flex-direction: column;
		align-items: center;
		gap: 6px;
		padding: 18px 0;
		text-align: center;
	}
	.er-ftr-bottom__col { width: auto; margin-right: 0 !important; }
	.er-ftr-bottom__col--copy .copyright-text { margin-top: 0; text-align: center; font-size: 13px; }
	.er-ftr-bottom__col--credit { text-align: center; }
	.er-ftr-bottom__col--credit a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 8px; }
	.er-to-top { bottom: 90px; }
}
