/**
 * SG Footer — Super Guias dark footer.
 * Colours come from CSS variables defined in :root; the plugin overrides them
 * inline from the settings page. Defaults below = Super Guias brand palette
 * (deep forest green #064E35 + warm gold #F2C14E).
 */

:root {
	--sg-footer-bg:      #064E35;
	--sg-footer-bg-2:    #053a28;
	--sg-footer-text:    rgba(255, 255, 255, 0.72);
	--sg-footer-heading: #ffffff;
	--sg-footer-gold:    #F2C14E;
	--sg-footer-border:  rgba(255, 255, 255, 0.10);
	--sg-footer-pad-y:   60px;
}

/* Reset the parent theme's white/mini footer styling. */
footer.footer.sg-footer,
footer.footer.sg-footer.footer-mini,
footer.sg-footer {
	background: var(--sg-footer-bg);
	background: linear-gradient(180deg, var(--sg-footer-bg) 0%, var(--sg-footer-bg-2) 100%);
	border-top: 3px solid var(--sg-footer-gold);
	padding-top: var(--sg-footer-pad-y);
	color: var(--sg-footer-text);
}

.sg-footer .container {
	max-width: 1200px;
	margin: 0 auto;
	padding-left: 15px;
	padding-right: 15px;
}

/* ---- Top: brand + badge ---- */
.sg-footer__top {
	padding-bottom: calc(var(--sg-footer-pad-y) * 0.66);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
}

.sg-footer__brand {
	padding-right: 40px;
	margin-bottom: 30px;
}

/* CADASTUR badge anchored to the right */
.sg-footer__cadastur-col {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	margin-bottom: 30px;
}

.sg-footer__wordmark {
	display: inline-block;
	font-size: 26px;
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.01em;
	color: var(--sg-footer-heading);
	margin-bottom: 14px;
}
.sg-footer__wordmark:hover,
.sg-footer__wordmark:focus {
	color: var(--sg-footer-gold);
}

.sg-footer__tagline {
	font-size: 15px;
	font-weight: 600;
	color: #ffffff;
	margin: 0 0 10px;
}

.sg-footer__mission {
	font-size: 14px;
	line-height: 1.6;
	color: var(--sg-footer-text);
	margin: 0 0 22px;
	max-width: 340px;
}

/* ---- Social icons ---- */
.sg-footer__social {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.sg-footer__social li {
	margin: 0;
}
.sg-footer__social a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.08);
	color: #ffffff;
	transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.sg-footer__social a:hover,
.sg-footer__social a:focus {
	background: var(--sg-footer-gold);
	color: var(--sg-footer-bg);
	transform: translateY(-2px);
}
.sg-footer__social i {
	font-size: 17px;
	line-height: 1;
}

/* ---- CADASTUR trust badge ---- */
.sg-footer__cadastur {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	padding: 12px 18px;
	background: #ffffff;
	border-radius: 10px;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.sg-footer__cadastur:hover,
.sg-footer__cadastur:focus {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
}
.sg-footer__cadastur img {
	display: block;
	width: 190px;
	height: auto;
}
.sg-footer__cadastur-caption {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: #1a3a5c;
	text-align: center;
}

/* ---- Bottom bar ---- */
.sg-footer__bottom {
	border-top: 1px solid var(--sg-footer-border);
	padding: 24px 0 10px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
}
.sg-footer__bottom p {
	font-size: 13px;
	margin: 0;
	color: rgba(255, 255, 255, 0.55);
}
.sg-footer__copyright p {
	text-align: left;
}
.sg-footer__made p {
	text-align: right;
}
.sg-footer__made .sg-footer__heart {
	color: var(--sg-footer-gold);
}

/* ---- Responsive ---- */
@media (max-width: 991px) {
	.sg-footer__brand { padding-right: 0; }
}
@media (max-width: 767px) {
	.sg-footer__top { justify-content: flex-start; }
	.sg-footer__bottom { justify-content: center; }
	.sg-footer__copyright p,
	.sg-footer__made p {
		text-align: center;
	}
	.sg-footer__copyright { margin-bottom: 6px; }
	.sg-footer__social { justify-content: flex-start; }
	.sg-footer__cadastur-col { justify-content: flex-start; }
}
