/**
 * Ache Solar footer – Stitch-style
 * Matches design: logo, 4 columns (brand, Empresa, Recursos, newsletter), bottom bar.
 */

.sm-footer {
	--sm-footer-bg: #fcfbf8;
	--sm-footer-text: #1d190c;
	--sm-footer-muted: #574f3b;
	--sm-footer-border: #eae3cd;
	--sm-footer-btn-bg: #0b1f3a;
	--sm-footer-social-bg: #fec400;
	--sm-footer-primary: #ffc300;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	background: var(--sm-footer-bg);
	color: var(--sm-footer-text);
	padding: 3rem 0 0;
}

.sm-footer__inner {
	max-width: min(1280px, 100% - 2rem);
	margin: 0 auto;
	padding: 0 1rem 2rem;
}
@media (min-width: 640px) { .sm-footer__inner { padding-left: 1.5rem; padding-right: 1.5rem; } }
@media (min-width: 1024px) { .sm-footer__inner { padding-left: 2rem; padding-right: 2rem; } }

.sm-footer__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2.5rem 2rem;
	margin-bottom: 2.5rem;
}
@media (min-width: 640px) {
	.sm-footer__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
	.sm-footer__grid {
		grid-template-columns: 1.2fr 1fr 1fr 1.2fr;
		gap: 3rem 2rem;
		margin-bottom: 3rem;
	}
}

/* Footer brand: logo + tagline aligned with Empresa / Recursos columns */
.sm-footer__brand {
	text-align: left;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}
.sm-footer__logo {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	text-decoration: none;
	color: var(--sm-footer-text);
	font-weight: 700;
	font-size: 1.5rem;
	margin-bottom: 0.5rem;
}
.sm-footer__logo:hover { color: var(--sm-footer-text); opacity: 0.9; }
.sm-footer__logo-icon {
	font-size: 1.75rem;
	line-height: 1;
}
.sm-footer__logo-img {
	display: block;
	height: 160px;
	width: auto;
	max-width: 100%;
	object-fit: contain;
	vertical-align: middle;
}
.sm-footer__tagline {
	font-size: 0.9375rem;
	line-height: 1.5;
	color: var(--sm-footer-muted);
	margin: 0;
	max-width: 20rem;
	text-align: left;
}
.sm-footer__tagline--above-newsletter {
	margin-bottom: 1rem;
	max-width: none;
}

.sm-footer__heading {
	font-size: 1rem;
	font-weight: 700;
	color: var(--sm-footer-text);
	margin: 0 0 1rem;
}

.sm-footer__links {
	list-style: none;
	margin: 0;
	padding: 0;
}
.sm-footer__links li { margin: 0 0 0.5rem; }
.sm-footer__links a {
	color: var(--sm-footer-muted);
	text-decoration: none;
	font-size: 0.9375rem;
	transition: color 0.2s;
}
.sm-footer__links a:hover { color: var(--sm-footer-text); }

.sm-footer__form {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	max-width: 20rem;
}
.sm-footer__input {
	width: 100%;
	padding: 0.75rem 1rem;
	border: 1px solid var(--sm-footer-border);
	border-radius: 0.5rem;
	font-size: 1rem;
	font-family: inherit;
	background: #fff;
	color: var(--sm-footer-text);
}
.sm-footer__input::placeholder { color: var(--sm-footer-muted); }
.sm-footer__input:focus {
	outline: none;
	border-color: var(--sm-footer-primary);
	box-shadow: 0 0 0 2px rgba(255, 195, 0, 0.2);
}
.sm-footer__btn {
	padding: 0.75rem 1.25rem;
	background: var(--sm-footer-btn-bg);
	color: #fff;
	border: none;
	border-radius: 0.5rem;
	font-size: 1rem;
	font-weight: 600;
	font-family: inherit;
	cursor: pointer;
	transition: opacity 0.2s;
}
.sm-footer__btn:hover { opacity: 0.9; }

.sm-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--sm-footer-border);
}
.sm-footer__copyright {
	font-size: 0.875rem;
	color: var(--sm-footer-muted);
	margin: 0;
	order: 1;
	width: 100%;
	text-align: center;
}
@media (min-width: 640px) {
	.sm-footer__copyright { order: 0; width: auto; text-align: left; }
}
.sm-footer__legal {
	display: flex;
	gap: 1.25rem;
	order: 2;
	width: 100%;
	justify-content: center;
}
@media (min-width: 640px) { .sm-footer__legal { order: 0; width: auto; } }
.sm-footer__legal a {
	color: var(--sm-footer-muted);
	text-decoration: none;
	font-size: 0.875rem;
	transition: color 0.2s;
}
.sm-footer__legal a:hover { color: var(--sm-footer-text); }

.sm-footer__social {
	display: flex;
	gap: 0.5rem;
	order: 3;
	width: 100%;
	justify-content: center;
}
@media (min-width: 640px) { .sm-footer__social { order: 0; width: auto; } }
.sm-footer__social-link {
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 50%;
	background: var(--sm-footer-social-bg);
	color: var(--sm-footer-text);
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	transition: opacity 0.2s;
}
.sm-footer__social-link:hover { opacity: 0.9; }
.sm-footer__social-link .mi { font-size: 1.125rem; }
