/* ==========================================================================
   Footer — Soluções Moderna
   ========================================================================== */

.sm-site-footer {
	background-color: #05498c;
	color: #ffffff;
}

/* Bloco principal */
.sm-footer {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 40px;
	align-items: start;
	justify-items: start;
	max-width: 1369px;
	margin: 0 auto;
	padding: 60px clamp(16px, 8%, 80px) 40px;
	box-sizing: border-box;
}

.sm-footer__col,
.sm-footer__col--logo,
.sm-footer__col--main,
.sm-footer__col--anos-iniciais,
.sm-footer__col--stack,
.sm-footer__col--contact {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.sm-footer__col--logo {
	align-items: flex-start;
}

.sm-footer__logo-link {
	display: block;
	margin-bottom: 12px;
}

.sm-footer__logo-img {
	display: block;
	max-width: 180px;
	height: auto;
}

.sm-footer__col--main {
	gap: 20px;
}

.sm-footer__col--anos-iniciais {
	gap: 0;
}

.sm-footer__col--stack {
	gap: 20px;
}

.sm-footer__col--contact {
	align-items: flex-end;
	gap: 16px;
}

/* Títulos */
.sm-footer__title {
	margin: 0 0 12px;
	font-family: "Poppins", sans-serif;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	color: rgba(255,255,255,0.7);
	position: relative;
	padding-bottom: 8px;
}

.sm-footer__title::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 24px;
	height: 2px;
	background: var(--footer-title-color, rgba(255,255,255,0.4));
	border-radius: 1px;
}

.sm-footer__col--contact .sm-footer__title {
	font-family: "Poppins", sans-serif;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0.5px;
	color: #fff;
}

/* Listas de links */
.sm-footer__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.sm-footer__link {
	display: block;
	padding: 4px 0;
	font-family: "Inter", sans-serif;
	font-weight: 400;
	font-size: 14px;
	line-height: 1.6;
	color: rgba(255,255,255,0.75);
	text-decoration: none;
	transition: color 0.2s ease, padding-left 0.2s ease;
}

.sm-footer__link:hover {
	color: #fff;
	padding-left: 4px;
}

/* Blog links */
.sm-footer__list--blog .sm-footer__link {
	font-family: "Poppins", sans-serif;
	font-weight: 400;
	font-size: 14px;
	opacity: 1;
}

/* Contato */
.sm-footer__contact {
	display: flex;
	align-items: center;
	gap: 10px;
}

.sm-footer__contact-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	background: rgba(255,255,255,0.12);
	border-radius: 50%;
	color: #fff;
}

.sm-footer__contact-icon svg {
	width: 16px;
	height: 16px;
}

.sm-footer__contact-link {
	font-family: "Poppins", sans-serif;
	font-weight: 500;
	font-size: 16px;
	color: #fff;
	text-decoration: none;
}

/* Redes sociais */
.sm-footer__social {
	display: flex;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sm-footer__social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	color: #fff;
	background: rgba(255,255,255,0.1);
	border-radius: 50%;
	transition: background 0.25s ease, transform 0.25s ease;
}

.sm-footer__social-link:hover {
	background: #fdc500;
	color: #05498C;
	transform: translateY(-2px);
}

.sm-footer__social-link svg {
	width: 18px;
	height: 18px;
}

/* Barra inferior */
.sm-footer-bottom {
	width: 100%;
	max-width: 1369px;
	margin: 0 auto;
	padding: 20px clamp(16px, 8%, 80px) 28px;
	border-top: 1px solid rgba(255,255,255,0.08);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	text-align: center;
	box-sizing: border-box;
}

.sm-footer-bottom__links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sm-footer-bottom__link {
	font-family: "Inter", sans-serif;
	color: rgba(255,255,255,0.55);
	font-size: 13px;
	text-decoration: none;
	transition: color 0.2s ease;
}

.sm-footer-bottom__link:hover {
	color: #fff;
}

.sm-footer-bottom__copyright {
	margin: 0;
	color: rgba(255,255,255,0.45);
	font-family: "Inter", sans-serif;
	font-size: 13px;
}

/* ==========================================================================
   Tablet
   ========================================================================== */
@media (max-width: 1024px) {
	.sm-footer {
		grid-template-columns: repeat(3, 1fr);
		gap: 32px 20px;
		padding: 48px clamp(16px, 8%, 80px) 32px;
	}

	.sm-footer__col--contact {
		align-items: flex-start;
	}
}

/* ==========================================================================
   Mobile
   ========================================================================== */
@media (max-width: 767px) {
	.sm-footer {
		grid-template-columns: 1fr;
		gap: 24px;
		padding: 44px 24px 28px;
		justify-items: start;
	}

	.sm-footer__col--logo {
		grid-column: auto;
		align-items: center !important;
		text-align: center !important;
		margin-bottom: 4px;
		padding-bottom: 20px;
		border-bottom: 1px solid rgba(255,255,255,0.08);
	}

	.sm-footer__col--logo .sm-footer__logo-link {
		margin: 0 auto !important;
		text-align: center !important;
		align-self: center !important;
	}

	.sm-footer__logo-img {
		max-width: 140px;
		margin: 0 auto;
	}

	.sm-footer__col--main,
	.sm-footer__col--anos-iniciais,
	.sm-footer__col--stack,
	.sm-footer__col--contact {
		grid-column: auto;
		min-width: 0;
		max-width: 100%;
	}

	.sm-footer__col--stack {
		display: flex;
		flex-direction: column;
		gap: 16px;
		padding-top: 4px;
	}

	.sm-footer__col--contact {
		align-items: center !important;
		text-align: center !important;
		padding-top: 16px;
		border-top: 1px solid rgba(255,255,255,0.08);
	}
	.sm-footer__col--contact .sm-footer__contact,
	.sm-footer__col--contact .sm-footer__social {
		justify-content: center !important;
	}

	.sm-footer__title {
		font-size: 12px;
	}

	.sm-footer__link {
		font-size: 13px;
		padding: 3px 0;
	}

	.sm-footer-bottom {
		padding: 18px 24px 24px;
		align-items: flex-start;
		text-align: left;
		gap: 8px;
	}

	.sm-footer-bottom__links {
		justify-content: flex-start;
		gap: 4px 14px;
	}
}

@media (max-width: 480px) {
	.sm-footer {
		gap: 20px;
		padding: 36px 20px 24px;
	}

	.sm-footer-bottom {
		padding: 16px 20px 22px;
	}
}

@media (max-width: 767px) {
    .sm-footer__col--logo,
    .sm-footer__col--logo .sm-footer__logo-link,
    .sm-footer__col--logo .sm-footer__logo-img {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        align-self: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
        text-align: center !important;
    }
    .sm-footer__col--contact,
    .sm-footer__col--contact .sm-footer__contact,
    .sm-footer__col--contact .sm-footer__social,
    .sm-footer__col--contact .sm-footer__title {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    .sm-footer__col--contact .sm-footer__social { flex-direction: row !important; }
    .sm-footer__col--contact .sm-footer__contact { flex-direction: row !important; }
}
