/**
 * Footer 2.0 — Fada Madrinha (global).
 */

.fm-footer {
	--fm-footer-wine: #500712;
	--fm-footer-white: #f6f4f1;
	--fm-footer-gold: #ffc95f;
	--fm-footer-muted: rgba(246, 244, 241, 0.68);
	--fm-footer-line: rgba(246, 244, 241, 0.14);

	position: relative;
	overflow: hidden;
	background: var(--fm-footer-wine);
	color: var(--fm-footer-white);
	font-family: Raleway, "Helvetica Neue", Arial, sans-serif;
	margin-top: clamp(2.25rem, 4vw, 3.5rem);
	padding: clamp(2rem, 3.8vw, 3.25rem) clamp(1.25rem, 4vw, 3rem) 0;
}

.fm-footer a {
	color: inherit;
	text-decoration: none;
}

.fm-footer__main {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) repeat(3, minmax(0, 1fr));
	gap: clamp(1.35rem, 2.6vw, 2.15rem) clamp(1.5rem, 3vw, 3rem);
	align-items: start;
	max-width: 1180px;
	margin: 0 auto;
	padding-bottom: clamp(1.5rem, 2.8vw, 2.15rem);
}

.fm-footer__brand {
	position: relative;
	padding-right: 0.5rem;
}

.fm-footer__symbol {
	display: block;
	width: clamp(6.75rem, 10.5vw, 8.75rem);
	height: auto;
	margin: 0 0 0.85rem;
	object-fit: contain;
}

.fm-footer__since {
	margin: 0 0 0.35rem;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--fm-footer-gold);
}

.fm-footer__tagline {
	margin: 0 0 0.8rem;
	max-width: 16rem;
	font-size: 0.98rem;
	line-height: 1.55;
	font-weight: 400;
	color: var(--fm-footer-white);
}

.fm-footer__social {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.fm-footer__social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.35rem;
	height: 2.35rem;
	border: 1px solid rgba(246, 244, 241, 0.28);
	border-radius: 999px;
	color: var(--fm-footer-white);
	transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.fm-footer__social-link:hover,
.fm-footer__social-link:focus-visible {
	border-color: var(--fm-footer-gold);
	color: var(--fm-footer-gold);
	background: rgba(255, 201, 95, 0.08);
	outline: none;
}

.fm-footer__heading {
	margin: 0 0 0.75rem;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--fm-footer-white);
}

.fm-footer__links {
	margin: 0;
	padding: 0;
	list-style: none;
}

.fm-footer__links li + li {
	margin-top: 0.7rem;
}

.fm-footer__links a {
	font-size: 0.95rem;
	line-height: 1.4;
	color: var(--fm-footer-muted);
	transition: color 0.2s ease;
}

.fm-footer__links a:hover,
.fm-footer__links a:focus-visible {
	color: var(--fm-footer-white);
	outline: none;
}

.fm-footer__address,
.fm-footer__hours,
.fm-footer__phone,
.fm-footer__order-text {
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.65;
	color: var(--fm-footer-muted);
}

.fm-footer__hours {
	margin-top: 0.75rem;
}

.fm-footer__phone {
	margin-top: 0.75rem;
}

.fm-footer__phone a {
	color: var(--fm-footer-white);
	transition: color 0.2s ease;
}

.fm-footer__phone a:hover,
.fm-footer__phone a:focus-visible {
	color: var(--fm-footer-gold);
	outline: none;
}

.fm-footer__order-text {
	margin-bottom: 0.85rem;
	max-width: 14rem;
}

.fm-footer__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.55rem;
	min-height: 2.85rem;
	padding: 0.7rem 1.35rem;
	border: 1px solid rgba(246, 244, 241, 0.55);
	background: transparent;
	color: var(--fm-footer-white);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.fm-footer__cta:hover,
.fm-footer__cta:focus-visible {
	background: rgba(246, 244, 241, 0.08);
	border-color: var(--fm-footer-gold);
	color: var(--fm-footer-gold);
	outline: none;
}

.fm-footer__cta-arrow {
	display: inline-block;
	width: 0.55rem;
	height: 0.55rem;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(-45deg);
	translate: 0 -1px;
}

.fm-footer__legal {
	position: relative;
	z-index: 1;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.65rem 1.5rem;
	max-width: 1180px;
	margin: 0 auto;
	padding: 0.7rem 0 0.85rem;
	border-top: 1px solid var(--fm-footer-line);
	font-size: 0.78rem;
	line-height: 1.45;
	color: rgba(246, 244, 241, 0.52);
}

.fm-footer__copy,
.fm-footer__legal-since,
.fm-footer__cnpj {
	margin: 0;
}

.fm-footer__cnpj {
	letter-spacing: 0.02em;
}

/* Tablet — leve compactação; desktop 4 colunas permanece nas regras base */
@media (max-width: 1024px) {
	.fm-footer__main {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 1.75rem 1.75rem;
	}

	.fm-footer__brand {
		grid-column: 1 / -1;
	}

	.fm-footer__symbol {
		width: clamp(6.25rem, 15vw, 7.75rem);
	}
}

/* Mobile — composição compacta; desktop (>1024) intacto */
@media (max-width: 767px) {
	.fm-footer {
		margin-top: clamp(1.75rem, 6vw, 2.5rem);
		padding: 1.75rem 1.25rem 0;
		padding-bottom: env(safe-area-inset-bottom, 0);
		text-align: center;
	}

	.fm-footer__main {
		grid-template-columns: 1fr;
		gap: 1.25rem;
		padding-bottom: 1.25rem;
	}

	.fm-footer__brand {
		grid-column: auto;
		padding-right: 0;
	}

	.fm-footer__symbol {
		width: 5.5rem;
		margin: 0 auto 0.55rem;
	}

	.fm-footer__since {
		margin-bottom: 0.22rem;
	}

	.fm-footer__tagline {
		max-width: 18rem;
		margin: 0 auto 0.55rem;
		line-height: 1.4;
	}

	.fm-footer__social {
		justify-content: center;
		gap: 0.5rem;
	}

	.fm-footer__social-link {
		width: 2.2rem;
		height: 2.2rem;
	}

	.fm-footer__heading {
		margin-bottom: 0.55rem;
	}

	.fm-footer__links {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: 0.85rem;
		row-gap: 0.45rem;
		max-width: 18.5rem;
		margin: 0 auto;
	}

	.fm-footer__links li + li {
		margin-top: 0;
	}

	.fm-footer__links a {
		display: inline-block;
		padding: 0.18rem 0.1rem;
		line-height: 1.35;
	}

	.fm-footer__visit .fm-footer__address {
		line-height: 1.4;
	}

	.fm-footer__hours {
		margin-top: 0.45rem;
		line-height: 1.4;
	}

	.fm-footer__phone {
		margin-top: 0.35rem;
	}

	.fm-footer__order-text {
		max-width: none;
		margin: 0 auto 0.65rem;
		line-height: 1.4;
	}

	.fm-footer__cta {
		width: 100%;
		max-width: 22rem;
		min-height: 2.55rem;
		padding: 0.5rem 1.15rem;
	}

	.fm-footer__legal {
		flex-direction: column;
		justify-content: center;
		gap: 0.15rem;
		padding: 0.65rem 0 calc(0.8rem + env(safe-area-inset-bottom, 0px));
		text-align: center;
	}
}

/* Hide residual Astra footer chrome if any slip through */
body.fm-footer-2 .site-footer,
body.fm-footer-2 .ast-footer-overlay,
body.fm-footer-2 footer#colophon:not(.fm-footer),
body.fm-footer-2 .ast-builder-grid-row-container.ast-builder-grid-row-footer,
body.fm-footer-2 .site-below-footer-wrap,
body.fm-footer-2 .site-primary-footer-wrap,
body.fm-footer-2 .site-above-footer-wrap {
	display: none !important;
}
