/* ==========================================================================
   Rodapé: newsletter/atendimento, categorias, institucional, pagamentos, CNPJ.
   ========================================================================== */

.site-footer p,
.site-footer h2 {
	margin: 0;
}

.site-footer ul {
	padding: 0;
	margin: 0;
	list-style: none;
}

/* Newsletter e atendimento ------------------------------------------------ */

.footer-contact {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 0 0 49px;
	background: var(--gv-gray-bar);
}

.footer-newsletter {
	position: relative;
	z-index: 2;
	width: calc(100% - 2 * var(--gv-space-5));
	max-width: 1297px;
	padding: var(--gv-space-6) var(--gv-space-7);
	margin: -52px 0 var(--gv-space-7);
	background: var(--gv-graphite);
	border-radius: var(--gv-radius-lg);
}

.footer-newsletter__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
	gap: var(--gv-space-5) var(--gv-space-7);
	align-items: center;
}

.footer-newsletter__text p {
	margin: 0;
}

.footer-newsletter__title {
	font-family: var(--gv-font-display);
	font-size: 26px;
	font-weight: 700;
	line-height: 1.15;
	color: var(--gv-white);
}

.footer-newsletter__subtitle {
	margin-top: var(--gv-space-2) !important;
	font-family: var(--gv-font-body);
	font-size: 15px;
	line-height: 1.5;
	color: #c9cccd;
}

.newsletter-form__row {
	display: flex;
	gap: var(--gv-space-2);
}

.newsletter-form__trap {
	position: absolute;
	left: -9999px;
}

.newsletter-form__input {
	flex: 1;
	min-width: 0;
	height: 52px;
	padding: 0 var(--gv-space-4);
	font-family: var(--gv-font-body);
	font-size: 15px;
	color: var(--gv-ink);
	background: var(--gv-white);
	border: 2px solid var(--gv-white);
	border-radius: var(--gv-radius);
	transition: border-color 0.2s;
}

.newsletter-form__input::placeholder {
	color: #8a8f93;
}

.newsletter-form__input:focus {
	border-color: var(--gv-brand);
	outline: 0;
}

.newsletter-form__button {
	flex: none;
	height: 52px;
	padding: 0 var(--gv-space-5);
	font-family: var(--gv-font-account);
	font-size: 13px;
	font-weight: 700;
	color: var(--gv-white);
	text-transform: uppercase;
	letter-spacing: 0.8px;
	background: var(--gv-brand);
	border-radius: var(--gv-radius);
	transition: background 0.2s;
}

.newsletter-form__button:hover {
	background: #b3102f;
}

.newsletter-form__button:focus-visible {
	outline: 2px solid var(--gv-white);
	outline-offset: 2px;
}

.newsletter-form__message {
	margin: var(--gv-space-2) 0 0;
	font-size: 14px;
	color: var(--gv-white);
}

.newsletter-form__message--invalid,
.newsletter-form__message--error {
	color: #ffb3c0;
}

.footer-service {
	display: flex;
	align-items: center;
	width: 100%;
	max-width: 1000px;
}

.footer-service__hours {
	display: flex;
	align-items: center;
	width: 50%;
}

.footer-service__image {
	width: 140px;
	margin-right: 34px;
}

.footer-service__title {
	margin-bottom: 14px !important;
	font-family: var(--gv-font-alt);
	font-size: 17.56px;
	font-weight: 700;
	line-height: 1;
	color: var(--gv-white);
}

.footer-service__text {
	font-family: var(--gv-font-alt);
	font-size: 25px;
	line-height: 1.3;
	color: var(--gv-white);
}

.footer-service__channels {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	width: 50%;
}

.footer-service__channel {
	display: flex;
	align-items: center;
}

.footer-service__channel + .footer-service__channel {
	margin-top: 17px;
}

.footer-service__channel img {
	margin-right: 17px;
}

.footer-service__channel a {
	font-family: var(--gv-font-alt);
	font-size: 25px;
	line-height: 1;
	color: var(--gv-white);
	text-decoration: underline;
	transition: opacity 0.3s;
}

.footer-service__channel a:hover {
	opacity: 0.6;
}

/* Categorias -------------------------------------------------------------- */

.footer-menus {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 75px 0;
	background: var(--gv-footer);
}

/* Duas linhas: 4 × 25% e depois 50% / 25% / 25%. */
.footer-menus__grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	row-gap: 83px;
	width: 100%;
	max-width: var(--gv-width-content);
}

.footer-menu,
.footer-menu__inner {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.footer-menu {
	width: 25%;
}

.footer-menu__heading {
	font-size: 17px;
	line-height: 1;
}

.footer-menu__toggle {
	display: block;
	font-family: var(--gv-font-alt);
	font-size: 17px;
	font-weight: 600;
	line-height: 1;
	color: var(--gv-white);
	text-align: left;
	cursor: default;
}

.footer-menu__sign {
	display: none;
}

.footer-menu__divider {
	display: block;
	width: 159px;
	height: 1px;
	margin: 25px 0;
	background: var(--gv-divider);
}

.footer-menu__list a {
	font-size: 12px;
	line-height: 19.2px;
	color: var(--gv-white);
	text-transform: capitalize;
	transition: color 0.3s;
}

.footer-menu__list a:hover {
	color: #bababa;
}

/* Colunas: o layout original tinha um alinhamento diferente em cada uma.
   O bloco (título + linha + lista) é posicionado como unidade na coluna. */

.footer-menu--footer-2,
.footer-menu--footer-3,
.footer-menu--footer-6 {
	align-items: center;
}

.footer-menu--footer-3 .footer-menu__inner,
.footer-menu--footer-6 .footer-menu__inner {
	align-items: center;
}

.footer-menu--footer-3 .footer-menu__heading,
.footer-menu--footer-3 .footer-menu__body,
.footer-menu--footer-6 .footer-menu__heading {
	align-self: flex-start;
}

.footer-menu--footer-4 {
	padding-left: 76px;
}

.footer-menu--footer-5 {
	width: 50%;
}

.footer-menu--footer-5 .footer-menu__inner {
	width: 100%;
}

.footer-menu--footer-5 .footer-menu__divider {
	width: 491px;
	margin-bottom: 15px;
}

.footer-menu--footer-5 .footer-menu__body {
	width: 100%;
}

.footer-menu--footer-5 .footer-menu__list {
	margin: 12px 0;
	column-count: 2;
	column-gap: 100px;
}

.footer-menu--footer-5 .footer-menu__list li {
	break-inside: avoid;
}

.footer-menu--footer-5 .footer-menu__list a {
	display: flex;
	margin-bottom: 10px;
	font-family: var(--gv-font-alt);
}

.footer-menu--footer-6 .footer-menu__inner {
	width: 159px;
}

.footer-menu--footer-6 .footer-menu__body {
	width: 100%;
	font-size: 12px;
	line-height: 19.2px;
}

.footer-menu--footer-7 {
	align-items: flex-end;
}

/* Institucional ----------------------------------------------------------- */

.footer-institutional {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 76px 0 72px;
	background-color: var(--gv-white);
	background-image: var(--gv-rings);
	background-size: cover;
	background-blend-mode: multiply;
}

.footer-institutional__grid {
	display: flex;
	justify-content: space-between;
	width: 100%;
	max-width: var(--gv-width-content);
}

/* Bloco de 159px centralizado na coluna, com o conteúdo alinhado à esquerda. */
.footer-links {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 25%;
}

.footer-links > * {
	width: 159px;
}

.footer-links__title {
	font-family: var(--gv-font-alt);
	font-size: 17px;
	font-weight: 600;
	line-height: 1;
	color: var(--gv-heading-dark);
}

.footer-links__divider {
	display: block;
	width: 159px;
	height: 1px;
	margin: 25px 0;
	background: var(--gv-divider);
}

.footer-links__list li {
	margin-bottom: 13px;
	font-family: var(--gv-font-alt);
	font-size: 12px;
	line-height: 1;
	color: var(--gv-heading-dark);
}

.footer-links__list li > * {
	display: inline-block;
}

.footer-links__list a {
	color: inherit;
	transition: opacity 0.3s;
}

.footer-links__list a:hover {
	opacity: 0.5;
}

.footer-institutional__logo {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 32%;
}

.footer-institutional__logo a {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.footer-institutional__logo img {
	width: 100%;
	margin: -44px 0;
}

/* Pagamentos -------------------------------------------------------------- */

.footer-payments {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 111px;
	background: var(--gv-light);
}

.footer-payments__grid {
	display: flex;
	align-items: center;
	width: 100%;
	max-width: var(--gv-width-content);
}

.footer-payments__title {
	margin-bottom: 15px !important;
	font-family: var(--gv-font-alt);
	font-size: 11.51px;
	font-weight: 500;
	line-height: 1;
	color: #1d1d1d;
}

.footer-payments__cards {
	width: 65%;
}

.footer-payments__logos {
	display: flex;
	justify-content: space-between;
	width: 75%;
}

.footer-payments__extra {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 35%;
}

.footer-payments__shipping,
.footer-payments__certs {
	display: flex;
	flex-direction: column;
	width: 50%;
}

.footer-payments__certs-logos {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
}

/* CNPJ -------------------------------------------------------------------- */

.footer-copyright {
	height: 40px;
	background: var(--gv-legal-bg);
}

.footer-copyright__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 100%;
	max-width: var(--gv-width-legal);
	padding: 0 20px;
	margin: 0 auto;
}

.footer-copyright p {
	font-family: var(--gv-font-legal);
	font-size: 13px;
	line-height: 1.2;
	color: var(--gv-legal-text);
}

/* Responsivo -------------------------------------------------------------- */

@media (max-width: 1120px) {
	.footer-contact {
		padding-inline: 30px;
	}

	.footer-service__text {
		font-size: 22px;
	}

	/* 60% do bloco original (imagem de 140px + margem de 34px); o bloco
	   continua com 174px, então o texto ao lado não se move. */
	.footer-service__image {
		width: 104.4px;
		margin-right: 69.6px;
	}

	.footer-menus,
	.footer-institutional,
	.footer-payments {
		padding-inline: 30px;
	}

	.footer-menu--footer-4 {
		padding-left: 29px;
	}
}

@media (max-width: 991px) {
	.footer-newsletter {
		padding: var(--gv-space-6);
	}

	.footer-newsletter__inner {
		grid-template-columns: minmax(0, 1fr);
		text-align: center;
	}

	.footer-service__hours {
		width: 60%;
	}

	.footer-service__text {
		font-size: 17px;
	}

	.footer-service__channel--whatsapp a {
		font-size: 20px;
	}

	.footer-service__channel--email a {
		font-size: 19px;
	}

	.footer-menu--footer-5 {
		width: 44%;
		margin-right: 23px;
	}

	.footer-menu--footer-5 .footer-menu__divider {
		width: 100%;
	}

	.footer-institutional__logo {
		width: 37%;
	}

	.footer-links--help > * {
		width: 130px;
	}

	.footer-payments__cards {
		width: 62%;
	}

	.footer-payments__shipping {
		width: 44%;
	}

	.footer-payments__certs {
		width: 56%;
	}
}

@media (max-width: 767px) {
	.footer-contact {
		padding-bottom: 67px;
	}

	.footer-service {
		flex-direction: column;
	}

	.footer-service__hours {
		width: 100%;
		margin-bottom: 25px;
	}

	/* A imagem fica centralizada no bloco original de 140px. */
	.footer-service__image {
		margin-right: 51.8px;
		margin-left: 17.8px;
	}

	.footer-service__channels {
		width: 100%;
		padding-left: 14px;
	}

	/* Categorias viram acordeão */
	.footer-menus {
		padding-top: 59px;
	}

	.footer-menus__grid {
		display: flex;
		flex-direction: column;
		row-gap: 0;
	}

	.footer-menu[class],
	.footer-menu[class] .footer-menu__inner {
		align-items: stretch;
		width: 100%;
		padding-left: 0;
		margin-right: 0;
	}

	.footer-menu__inner > * {
		align-self: stretch !important;
	}

	.footer-menu__divider {
		display: none;
	}

	.footer-menu__toggle {
		display: flex;
		align-items: center;
		justify-content: space-between;
		width: 100%;
		padding-bottom: 15px;
		margin-bottom: 25px;
		line-height: 1.2;
		cursor: pointer;
		border-bottom: 1px solid rgb(255 255 255 / 27%);
	}

	.footer-menu__sign {
		position: relative;
		display: block;
		width: 16px;
		height: 16px;
		margin-right: 6.4px;
	}

	.footer-menu__sign::before,
	.footer-menu__sign::after {
		position: absolute;
		top: 7px;
		left: 0;
		width: 16px;
		height: 2px;
		content: "";
		background: var(--gv-white);
		transition: transform 0.2s;
	}

	.footer-menu__sign::after {
		transform: rotate(90deg);
	}

	.footer-menu.is-open .footer-menu__sign::after {
		transform: rotate(0deg);
	}

	.footer-menu__body,
	.footer-menu--footer-5 .footer-menu__body,
	.footer-menu--footer-6 .footer-menu__body {
		display: none;
		width: 100%;
	}

	.footer-menu.is-open .footer-menu__body {
		display: block;
	}

	.footer-menu__list,
	.footer-menu--footer-5 .footer-menu__list {
		margin: 0;
		column-count: 1;
	}

	.footer-menu__list li {
		display: flex;
		flex-direction: column;
	}

	.footer-menu__list a,
	.footer-menu--footer-5 .footer-menu__list a {
		display: flex;
		margin-bottom: 16px;
		font-family: var(--gv-font-alt);
	}

	/* Institucional empilhado */
	.footer-institutional {
		background-repeat: no-repeat;
		background-position: 0 -19px;
	}

	.footer-institutional__grid {
		flex-direction: column;
		align-items: flex-start;
	}

	.footer-links {
		width: 100%;
		text-align: center;
	}

	.footer-links > *:not(.footer-links__divider) {
		width: auto;
	}

	.footer-links--help {
		margin-bottom: 55px;
	}

	.footer-institutional__logo {
		width: 100%;
		margin: 60px 0 49px;
	}

	.footer-institutional__logo img {
		width: 70%;
	}

	/* Pagamentos empilhados */
	.footer-payments {
		height: auto;
		padding-block: 25px;
		text-align: center;
	}

	.footer-payments__grid {
		flex-direction: column;
	}

	.footer-payments__cards {
		display: flex;
		flex-direction: column;
		align-items: center;
		width: 100%;
		margin-bottom: 25px;
	}

	.footer-payments__extra {
		width: 100%;
	}

	.footer-payments__shipping,
	.footer-payments__certs {
		align-items: center;
	}

	.footer-copyright {
		height: 55px;
	}

	.footer-copyright__inner {
		flex-direction: column;
		justify-content: space-around;
		text-align: center;
	}
}

@media (max-width: 479px) {
	.footer-contact {
		padding-inline: 20px;
	}

	.footer-newsletter {
		width: calc(100% - 2 * var(--gv-space-4));
		padding: var(--gv-space-5);
	}

	.footer-newsletter__title {
		font-size: 22px;
	}

	.newsletter-form__row {
		flex-direction: column;
	}

	.footer-service__hours {
		justify-content: center;
	}

	/* Imagem (39%) e texto (100%) dividem a linha encolhendo proporcionalmente. */
	.footer-service__image {
		width: 39%;
		min-width: 0;
		margin: 0 15px 0 0;
	}

	.footer-service__hours > div {
		width: 100%;
	}

	.footer-service__title {
		margin-bottom: 8px !important;
	}

	.footer-service__text {
		font-size: 19px;
	}

	.footer-service__channel--whatsapp a {
		font-size: 22px;
	}

	.footer-service__channel--email a {
		font-size: 17px;
	}

	.footer-menus {
		padding-top: 43px;
	}

	.footer-menus__grid {
		row-gap: 30px;
	}

	.footer-institutional {
		background-position: 0 -28px;
	}

	.footer-links__title {
		font-size: 22px;
	}

	.footer-links__list li {
		font-size: 17px;
	}

	.footer-links--help {
		padding-bottom: 62px;
		margin-bottom: 0;
	}

	.footer-institutional__logo {
		margin: 38px 0 45px;
	}

	.footer-institutional__logo img {
		width: 80%;
		margin: 0;
	}

	.footer-payments {
		padding-block: 24px;
	}

	.footer-payments__cards {
		margin-bottom: 21px;
	}

	.footer-payments__logos {
		width: 100%;
	}

	.footer-payments__cards .footer-payments__title {
		font-size: 13.51px;
	}
}

/* Atendimento pelo WhatsApp (botão flutuante) ------------------------------ */

.wa-chat {
	position: fixed;
	right: 30px;
	bottom: 20px;
	z-index: 999;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 12px;
	font-family: var(--gv-font-body);
}

.wa-chat__toggle {
	display: grid;
	place-items: center;
	width: 50px;
	height: 50px;
	color: var(--gv-white);
	background: #118c7e;
	border-radius: 50%;
	transition: background 0.2s;
}

.wa-chat__toggle:hover {
	background: #0e7468;
}

.wa-chat__toggle .gv-icon {
	width: 26px;
	height: 26px;
}

.wa-chat__toggle .wa-chat__icon-close,
.wa-chat.is-open .wa-chat__icon-open {
	display: none;
}

.wa-chat.is-open .wa-chat__icon-close {
	display: block;
	width: 16px;
	height: 18px;
}

.wa-chat__panel {
	width: min(290px, calc(100vw - 40px));
	overflow: hidden;
	color: #404040;
	background: var(--gv-white);
	border: 1px solid var(--gv-line-strong);
	border-radius: var(--gv-radius-lg);
	transform-origin: bottom right;
	animation: wa-chat-in 0.2s ease-out;
}

.wa-chat__panel[hidden] {
	display: none;
}

@keyframes wa-chat-in {
	from {
		opacity: 0;
		transform: translateY(8px) scale(0.97);
	}
}

.wa-chat__header {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 18px 16px 16px;
	color: var(--gv-white);
	text-align: center;
	background: #118c7e;
}

.wa-chat__avatar {
	position: relative;
	display: grid;
	place-items: center;
	width: 50px;
	height: 50px;
	margin-bottom: 8px;
	background: var(--gv-white);
	border-radius: 50%;
}

.wa-chat__avatar::after {
	position: absolute;
	right: 2px;
	bottom: 2px;
	width: 11px;
	height: 11px;
	content: "";
	background: #4ad504;
	border: 2px solid #118c7e;
	border-radius: 50%;
}

.wa-chat__avatar img {
	width: 40px;
	height: auto;
}

.wa-chat__name {
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
}

.wa-chat__role {
	font-size: 13px;
	opacity: 0.9;
}

.wa-chat__body {
	padding: 16px;
}

.wa-chat__message {
	padding: 12px 14px;
	margin: 0 0 16px;
	font-size: 14px;
	line-height: 1.55;
	background: #f0f0f0;
	border-radius: var(--gv-radius);
}

.wa-chat__send {
	display: flex;
	gap: 8px;
	align-items: center;
	justify-content: center;
	padding: 12px 16px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--gv-white);
	text-align: center;
	background: #118c7e;
	border-radius: var(--gv-radius);
	transition: background 0.2s;
}

.wa-chat__send:hover {
	color: var(--gv-white);
	background: #0e7468;
}

.wa-chat__send .gv-icon {
	flex: none;
	width: 18px;
	height: 18px;
}

@media (max-width: 479px) {
	.wa-chat {
		right: 16px;
		bottom: 16px;
	}
}

@media print {
	.wa-chat {
		display: none;
	}
}

/* Celular: alvos de toque confortáveis e textos legíveis --------------------- */
@media (max-width: 767px) {
	.footer-menu__toggle {
		min-height: 48px;
		padding: var(--gv-space-3) 0;
		margin-bottom: var(--gv-space-3);
	}

	.footer-menu__list a,
	.footer-menu--footer-5 .footer-menu__list a {
		align-items: center;
		min-height: 40px;
		margin-bottom: 0;
	}

	.footer-menu.is-open .footer-menu__body {
		margin-bottom: var(--gv-space-4);
	}

	.footer-service__channel {
		min-width: 0;
	}

	/* O e-mail não tem onde quebrar: em telas de 320px passava da borda. */
	.footer-service__channel a {
		display: inline-flex;
		align-items: center;
		min-width: 0;
		min-height: 44px;
		overflow-wrap: anywhere;
	}

	.footer-payments__title,
	.footer-payments__cards .footer-payments__title {
		font-size: 13px;
	}

	.footer-menu__list a,
	.footer-menu--footer-5 .footer-menu__list a {
		font-size: 14px;
	}

	/* Links institucionais (Políticas, Contato): altura de toque. */
	.footer-links__list a,
	.footer-links__list span {
		display: inline-flex;
		align-items: center;
		min-height: 40px;
	}

	/* Institucional mais compacto (tinha ~150px de respiro a mais). */
	.footer-institutional {
		padding: var(--gv-space-7) 0 var(--gv-space-6);
	}

	.footer-links__divider {
		margin: var(--gv-space-3) auto var(--gv-space-4);
	}

	.footer-links--help {
		padding-bottom: 0;
	}

	.footer-institutional__logo {
		margin: var(--gv-space-6) 0;
	}

	/* Logo do rodapé menor: no celular ele ocupava quase a tela toda. */
	.footer-institutional__logo img {
		width: 160px;
		height: auto;
	}
}

/* Newsletter empilhada: campo e botão na largura toda, altura fixa. */
@media (max-width: 479px) {
	.newsletter-form__input,
	.newsletter-form__button {
		flex: none;
		width: 100%;
	}
}
