/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
	background-color: var(--color-primary);
	color: var(--color-text-light);
	font-size: 1.375rem;
	line-height: 1.25;
}

.site-footer__inner {
	max-width: var(--container-max);
	margin: 0 auto;
	padding: 3.75rem var(--container-padding) 3rem;
}

.site-footer__top {
	display: flex;
	align-items: center;
	gap: 2rem;
	margin-bottom: 3rem;
}

.site-footer__logo img {
	width: 57px;
	height: auto;
}

.site-footer__divider {
	flex: 1;
	border: none;
	border-top: 1px solid var(--color-border);
	margin: 0;
}

.site-footer__content {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr auto;
	gap: 2.5rem;
}

.footer-menu__title {
	font-family: var(--font-primary);
	font-size: 1.375rem;
	font-weight: 700;
	line-height: 1.25;
	color: var(--color-text-light);
	text-transform: uppercase;
	margin: 0 0 1rem;
}

.site-footer__col--nav .footer-menu {
	list-style: none;
	padding: 0;
	margin: 0;

	li {
		margin-bottom: 0.75rem;
	}

	a {
		color: var(--color-text-light);
		text-decoration: none;
		font-size: 1.375rem;
		line-height: 1.75;
	}

	a:hover {
		text-decoration: underline;
	}

	.sub-menu {
		list-style: none;
		padding: 0;
		margin: 0;

		a {
			font-weight: 400;
		}

		a::before {
			content: '\2022';
			margin-right: 0.5rem;
		}
	}
}

.site-footer__col--contact .footer-menu {
	list-style: none;
	padding: 0;
	margin: 0;

	li {
		margin-bottom: 0.5rem;
	}

	a {
		color: var(--color-text-light);
		text-decoration: none;
		font-size: 1.375rem;
		line-height: 1.25;
	}
}

.site-footer__col--social {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	min-width: 12.5rem;
}

.site-footer__social-label {
	font-size: 1.375rem;
	font-weight: 400;
	line-height: 1.25;
	text-align: right;
}

.site-footer__social-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.625rem 1.5rem;
	border: 1px solid var(--color-border);
	border-radius: 1.5rem;
	color: var(--color-text-light);
	text-decoration: none;
	font-family: var(--font-secondary);
	font-weight: 700;
	font-size: 1.25rem;
	line-height: 1.5;
	transition: background-color 0.2s;

	&:hover {
		background-color: rgba(255, 255, 255, 0.1);
	}

	svg {
		flex-shrink: 0;
	}
}

.site-footer__bottom {
	display: flex;
	justify-content: flex-end;
	margin-top: 2.5rem;
}

.site-footer__badges {
	display: flex;
	align-items: center;
	gap: 1.5rem;
}

.site-footer__badges img {
	height: 3.75rem;
	width: auto;
}

.footer-menu__toggle {
	display: none;
	width: 100%;
	align-items: center;
	justify-content: space-between;
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
	color: var(--color-text-light);
}

.footer-menu__toggle .footer-menu__title {
	margin: 0;
}

.footer-menu__arrow {
	transition: transform 0.3s;
}

.footer-menu__toggle[aria-expanded="true"] .footer-menu__arrow {
	transform: rotate(180deg);
}

.footer-menu.is-open {
	padding-top: 0.75rem;
}

/* ==========================================================================
   Footer – Responsive
   ========================================================================== */

@media (max-width: 1024px) {
	.site-footer__content {
		grid-template-columns: 1fr 1fr;
	}

	.footer-menu__toggle {
		display: flex;
	}

	.site-footer__col--nav .footer-menu,
	.site-footer__col--contact .footer-menu {
		display: none;
	}

	.site-footer__col--nav .footer-menu.is-open,
	.site-footer__col--contact .footer-menu.is-open {
		display: block;
	}
}

@media (max-width: 768px) {
	.site-footer__inner {
		padding-block: 2.5rem;
	}

	.site-footer__top {
		gap: 1rem;
		margin-bottom: 2rem;
	}

	.site-footer__content {
		grid-template-columns: 1fr;
		gap: 2rem;
	}

	.site-footer__col--social {
		min-width: 0;
	}

	.site-footer__social-label {
		text-align: left;
		font-size: 1rem;
	}

	.site-footer__social-btn {
		font-size: 1rem;
		padding: 0.5rem 1.25rem;
		gap: 0.5rem;
	}

	.footer-menu__title {
		font-size: 1.125rem;
	}

	.site-footer__content .footer-menu a {
		font-size: 1.125rem;
	}

	.site-footer__bottom {
		justify-content: center;
		margin-top: 2rem;
	}

	.site-footer__badges {
		justify-content: center;
		flex-wrap: wrap;
		gap: 0.75rem;
	}

	.site-footer__badges img {
		height: 2.5rem;
	}
}
