/* Footer shell */
.ggn-footer {
	background-color: var(--wp--preset--color--surface);
	border-top: 1px solid var(--wp--preset--color--line);
	margin-top: var(--wp--preset--spacing--section);
}

.ggn-footer .ggn-footer__inner {
	padding-left: var(--wp--preset--spacing--gutter);
	padding-right: var(--wp--preset--spacing--gutter);
}

.ggn-footer .ggn-footer__desktop {
	display: block;
	max-width: none;
	padding-bottom: var(--wp--preset--spacing--card-lg);
	padding-top: var(--wp--preset--spacing--card-lg);
	width: 100%;
}

.ggn-footer .ggn-footer__mobile {
	display: none;
}

/* Desktop content */
.ggn-footer .ggn-footer__desktop-grid {
	align-items: start;
	display: grid;
	gap: var(--wp--preset--spacing--card-lg);
	grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)) minmax(0, 1.25fr);
	max-width: none;
	width: 100%;
}

@media (min-width: 1080px) {
	.ggn-footer .ggn-footer__desktop-grid:not(:has(> .ggn-footer__contact)) {
		grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
	}
}

.ggn-footer .ggn-footer__identity {
	align-items: center;
	gap: var(--wp--preset--spacing--card);
}

.ggn-footer .ggn-footer__site-title {
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--card-title);
	font-weight: 700;
	margin: 0;
}

.ggn-footer .ggn-footer__site-title a {
	color: var(--wp--preset--color--text);
	text-decoration: none;
}

.ggn-footer .ggn-footer__description {
	margin-bottom: 0;
	margin-top: var(--wp--preset--spacing--card);
	white-space: normal;
}

.ggn-footer .ggn-footer__link-group > h2,
.ggn-footer .ggn-footer__contact > h2 {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 700;
	margin-bottom: var(--wp--preset--spacing--card);
	margin-top: 0;
}

.ggn-footer .ggn-footer__link-group p,
.ggn-footer .ggn-footer__contact p {
	font-size: var(--wp--preset--font-size--meta);
	margin-bottom: var(--wp--preset--spacing--card);
	margin-top: 0;
}

.ggn-footer .ggn-footer__link-group a,
.ggn-footer .ggn-footer__contact a {
	color: var(--wp--preset--color--muted);
	text-decoration: none;
}

.ggn-footer .ggn-footer__link-group a:hover,
.ggn-footer .ggn-footer__link-group a:focus-visible,
.ggn-footer .ggn-footer__contact a:hover,
.ggn-footer .ggn-footer__contact a:focus-visible {
	color: var(--wp--preset--color--text);
	text-decoration: underline;
}

.ggn-footer .wp-block-social-links {
	gap: var(--wp--preset--spacing--card);
	margin-bottom: 0;
	margin-top: var(--wp--preset--spacing--card);
}

.ggn-footer .wp-social-link {
	background-color: var(--wp--preset--color--surface-2);
	border-radius: var(--wp--custom--radius--control);
}

.ggn-footer .wp-social-link a {
	align-items: center;
	color: var(--wp--preset--color--text);
	display: flex;
	height: var(--wp--custom--control--size);
	justify-content: center;
	width: var(--wp--custom--control--size);
}

.ggn-footer .wp-social-link svg {
	height: var(--wp--preset--font-size--card-title);
	width: var(--wp--preset--font-size--card-title);
}

/* Footer meta row */
.ggn-footer .ggn-footer__bottom {
	border-top: 1px solid var(--wp--preset--color--line);
	gap: var(--wp--preset--spacing--card);
	padding-bottom: var(--wp--preset--spacing--card-lg);
	padding-top: var(--wp--preset--spacing--card-lg);
}

.ggn-footer .ggn-footer__bottom p {
	margin: 0;
}

/* Compact desktop */
@media (min-width: 782px) and (max-width: 1079px) {
	.ggn-footer .ggn-footer__desktop-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.ggn-footer .ggn-footer__brand,
	.ggn-footer .ggn-footer__contact {
		grid-column: 1 / -1;
	}

	.ggn-footer .ggn-footer__description {
		white-space: normal;
	}
}

/* Mobile footer */
@media (max-width: 781px) {
	.ggn-footer {
		margin-top: calc(var(--wp--preset--spacing--card-lg) + var(--wp--preset--spacing--card));
	}

	.ggn-footer .ggn-footer__desktop {
		display: none;
	}

	.ggn-footer .ggn-footer__mobile {
		display: block;
		padding-bottom: var(--wp--preset--spacing--card-lg);
		padding-top: var(--wp--preset--spacing--card-lg);
	}

	.ggn-footer .ggn-footer__description {
		white-space: normal;
	}

	.ggn-footer .ggn-footer__mobile .ggn-footer__identity .custom-logo-link {
		align-items: center;
		display: inline-flex;
		justify-content: center;
		min-height: var(--wp--custom--control--size);
		min-width: var(--wp--custom--control--size);
	}

	.ggn-footer .ggn-footer__accordion {
		border-bottom: 1px solid var(--wp--preset--color--line);
		margin: 0;
	}

	.ggn-footer .ggn-footer__accordion:first-of-type {
		border-top: 1px solid var(--wp--preset--color--line);
		margin-top: var(--wp--preset--spacing--card-lg);
	}

	.ggn-footer .ggn-footer__accordion summary {
		align-items: center;
		cursor: pointer;
		display: flex;
		font-family: var(--wp--preset--font-family--heading);
		font-size: var(--wp--preset--font-size--meta);
		font-weight: 700;
		justify-content: space-between;
		list-style: none;
		min-height: 52px;
	}

	.ggn-footer .ggn-footer__accordion summary::-webkit-details-marker {
		display: none;
	}

	.ggn-footer .ggn-footer__accordion summary::after {
		color: var(--wp--preset--color--muted);
		content: "+";
		font-family: var(--wp--preset--font-family--heading);
		font-size: var(--wp--preset--font-size--card-title);
		font-weight: 600;
	}

	.ggn-footer .ggn-footer__accordion[open] summary::after {
		content: "−";
	}

	.ggn-footer .ggn-footer__accordion p {
		margin: 0;
	}

	.ggn-footer .ggn-footer__accordion p a {
		align-items: center;
		color: var(--wp--preset--color--muted);
		display: flex;
		font-size: var(--wp--preset--font-size--meta);
		min-height: 52px;
		text-decoration: none;
	}

	.ggn-footer .ggn-footer__mobile .ggn-footer__contact {
		padding-top: var(--wp--preset--spacing--card-lg);
	}

	.ggn-footer .ggn-footer__mobile .ggn-footer__contact p {
		margin-bottom: var(--wp--preset--spacing--card);
		margin-top: 0;
	}

	.ggn-footer .ggn-footer__mobile .ggn-footer__contact a {
		align-items: center;
		display: inline-flex;
		min-height: var(--wp--custom--control--size);
	}

	.ggn-footer .ggn-footer__mobile .ggn-footer__whatsapp-actions {
		display: block;
		margin-top: var(--wp--preset--spacing--card-lg);
	}

	.ggn-footer .ggn-footer__whatsapp,
	.ggn-footer .ggn-footer__whatsapp .wp-block-button__link {
		width: 100%;
	}

	.ggn-footer .ggn-footer__whatsapp .wp-block-button__link {
		align-items: center;
		display: inline-flex;
		gap: var(--wp--preset--spacing--card);
		justify-content: center;
	}

	.ggn-footer .ggn-footer__whatsapp .wp-block-button__link::before {
		background-color: currentcolor;
		content: "";
		display: block;
		height: var(--wp--preset--font-size--card-title);
		mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M20.52 3.48A11.83 11.83 0 0 0 12.08 0C5.54 0 .22 5.32.22 11.86c0 2.09.55 4.13 1.59 5.93L.12 24l6.38-1.67a11.86 11.86 0 0 0 5.57 1.42h.01c6.54 0 11.86-5.32 11.86-11.86 0-3.17-1.23-6.15-3.42-8.41ZM12.08 21.75a9.85 9.85 0 0 1-5.02-1.37l-.36-.21-3.79.99 1.01-3.69-.24-.38a9.84 9.84 0 0 1-1.51-5.23c0-5.43 4.42-9.85 9.86-9.85 2.63 0 5.1 1.02 6.96 2.88a9.78 9.78 0 0 1 2.89 6.97c0 5.43-4.42 9.89-9.8 9.89Zm5.4-7.4c-.3-.15-1.77-.87-2.04-.97-.27-.1-.47-.15-.67.15-.2.3-.77.97-.94 1.17-.17.2-.35.22-.65.07-.3-.15-1.25-.46-2.38-1.48a8.94 8.94 0 0 1-1.65-2.05c-.17-.3-.02-.46.13-.61.13-.13.3-.35.45-.52.15-.17.2-.3.3-.5.1-.2.05-.37-.02-.52-.07-.15-.67-1.62-.92-2.22-.24-.58-.49-.5-.67-.51h-.57c-.2 0-.52.07-.79.37-.27.3-1.04 1.02-1.04 2.49s1.07 2.89 1.22 3.09c.15.2 2.1 3.21 5.08 4.5.71.31 1.27.5 1.7.64.71.23 1.35.2 1.86.12.57-.09 1.77-.72 2.02-1.42.25-.7.25-1.3.17-1.42-.08-.12-.27-.2-.57-.35Z'/%3E%3C/svg%3E") center / contain no-repeat;
		width: var(--wp--preset--font-size--card-title);
	}

	.ggn-footer .ggn-footer__mobile-social {
		margin-top: var(--wp--preset--spacing--card-lg);
	}

	.ggn-footer .ggn-footer__bottom {
		align-items: flex-start;
		flex-direction: column;
		padding-bottom: calc(var(--wp--preset--spacing--card-lg) + var(--wp--custom--control--size));
	}

	.ggn-footer .ggn-footer__payments {
		order: -1;
	}
}

@media (min-width: 782px) {
	.ggn-footer .ggn-footer__inner {
		box-sizing: border-box;
		max-width: var(--wp--style--global--wide-size);
		width: calc(100% - 2 * var(--wp--preset--spacing--gutter));
		padding-left: 0;
		padding-right: 0;
	}
}

/* #149: the brand block's constrained layout centred the identity row on mid widths; keep it on the shared edge. */
@media (min-width: 782px) {
	.ggn-footer .ggn-footer__brand > .ggn-footer__identity {
		margin-left: 0 !important;
		max-width: none;
	}
}
