/*!
 * Syster P – footer.css
 * Two-column footer: link columns + legal row (left), trust/newsletter/payments (right).
 */

/* -------------------------------------------------- Pre-footer (reference footer group) */
.prefooter-carousel {
	padding: 55px var(--gutter) 70px;
}

.prefooter-carousel__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 10px 38px;
	font-size: var(--font-size-body);
	letter-spacing: 0.02em;
}

.prefooter-carousel__list a:hover,
.prefooter-carousel__list a:focus-visible {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.prefooter-explore {
	padding-bottom: 120px;
}

.prefooter-explore__heading {
	padding: 40px 0;
	font-family: var(--font-accent);
	font-size: var(--font-size-h2);
	line-height: 1.15;
	letter-spacing: 1px;
	text-transform: uppercase;
	font-weight: 400;
	text-align: center;
	color: var(--color-black);
}

.prefooter-explore__track {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	width: min(1160px, calc(100% - 280px));
	margin-inline: auto;
}

.prefooter-explore__item {
	display: block;
	text-align: center;
}

.prefooter-explore__media {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 5 / 7;
	overflow: hidden;
	background-color: var(--color-offwhite);
}

.prefooter-explore__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.prefooter-explore__label {
	display: block;
	margin-top: 12px;
	font-family: var(--font-accent);
	font-size: var(--font-size-h3);
	line-height: 1.2;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	color: var(--color-black);
}

/* -------------------------------------------------- Footer */
.site-footer {
	border-top: 1px solid var(--color-lightgrey);
	font-size: var(--font-size-body);
	letter-spacing: 0.02em;
	line-height: 1.38;
}

.site-footer__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	align-items: stretch;
}

/* -------------------------------------------------- Left half */
.site-footer__main {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	min-width: 0;
	min-height: 566.63px;
	overflow: hidden;
}

.site-footer__columns {
	display: flex;
	margin: 30px 30px 0;
	gap: 0;
}

.footer-col--brand {
	width: 110px;
	flex: 0 0 110px;
}

.footer-col.footer-col--brand {
	flex: 0 0 110px;
	width: 110px;
}

.footer-col {
	flex: 0 0 185.33px;
	min-width: 0;
}

.footer-brand {
	font-size: var(--font-size-small);
	font-weight: 500;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--color-black);
}

.footer-col__title {
	margin-bottom: 7.6px;
	font-size: var(--font-size-body);
	font-weight: 400;
	letter-spacing: 0.02em;
	line-height: 1.38;
	color: var(--color-grey);
}

.footer-col__links {
	display: grid;
	gap: 0;
}

.footer-col__links li {
	line-height: 1.95;
}

.footer-col__links a {
	display: inline-block;
	font-size: var(--font-size-body);
	letter-spacing: 0.02em;
	color: var(--color-black);
}

.footer-col__links a:hover,
.footer-col__links a:focus-visible {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.site-footer__legal {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	margin: 0 30px 10px;
}

.site-footer__legal-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 24px;
	font-size: var(--font-size-small);
	letter-spacing: 0.02em;
	line-height: 1.3;
}

.site-footer__legal-links a:hover,
.site-footer__legal-links a:focus-visible {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.site-footer__copyright {
	font-size: var(--font-size-small);
	letter-spacing: 0.04em;
	color: var(--color-grey);
	text-align: center;
}

.site-footer__email a:hover {
	text-decoration: underline;
}

/* -------------------------------------------------- Right half */
.site-footer__aside {
	display: flex;
	flex-direction: column;
	padding: 30px;
	border-left: 1px solid var(--color-grey);
}

.site-footer__aside-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 20px;
}

.footer-trust {
	display: grid;
	gap: 3px;
}

.footer-trust__item {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 19px;
	font-size: var(--font-size-small);
	line-height: 1.3;
	letter-spacing: 0.04em;
}

.footer-trust__icon {
	flex: 0 0 16px;
	width: 16px;
	height: auto;
	opacity: 0.7;
}

.site-footer__locale {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: var(--font-size-small);
	line-height: 1.3;
	letter-spacing: normal;
	color: var(--color-black);
	white-space: nowrap;
}

/* -------------------------------------------------- Newsletter */
.footer-newsletter {
	width: 60%;
	margin: 160px auto 0;
}

.footer-newsletter__heading {
	font-size: var(--font-size-body);
	line-height: 1.38;
	letter-spacing: 0.02em;
	text-align: center;
}

.footer-newsletter__form {
	margin-top: 30px;
}

.footer-newsletter__form .field {
	border-bottom-color: var(--color-grey);
}

.footer-newsletter__form .field input {
	padding: 20px 0 10px;
	font-size: var(--font-size-body);
}

.footer-newsletter__message {
	margin-top: 12px;
	font-size: var(--font-size-small);
	letter-spacing: 0.04em;
	color: var(--color-grey);
}

.footer-newsletter__message[hidden] {
	display: none;
}

/* -------------------------------------------------- Payment icons */
.footer-payments {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-top: auto;
}

.footer-carriers {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	height: 14px;
}

.footer-carriers__icon {
	width: auto;
	height: auto;
	max-width: 60px;
	max-height: 14px;
	object-fit: contain;
	opacity: 0.55;
}

.footer-payment {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	height: 24px;
}

.footer-payment__icon {
	width: 34px;
	height: 22px;
	object-fit: contain;
	opacity: 0.7;
}

/* -------------------------------------------------- Responsive */
@media (max-width: 1023px) {
	.prefooter-carousel {
		padding: 30px var(--gutter) 36px;
	}

	.prefooter-carousel__list {
		gap: 10px 22px;
	}

	.prefooter-explore {
		padding-bottom: 60px;
	}

	.prefooter-explore__track {
		display: flex;
		gap: 12px;
		width: auto;
		padding: 0 var(--gutter);
		overflow-x: auto;
		overflow-y: hidden;
		scroll-snap-type: x mandatory;
		scrollbar-width: none;
	}

	.prefooter-explore__track::-webkit-scrollbar {
		display: none;
	}

	.prefooter-explore__item {
		flex: 0 0 80%;
		scroll-snap-align: start;
	}

	.site-footer__grid {
		grid-template-columns: 1fr;
	}

	.site-footer__main {
		min-height: 0;
	}

	.site-footer__aside {
		border-left: 0;
		border-top: 1px solid var(--color-lightgrey);
		padding: 26px var(--gutter) 30px;
	}

	.footer-newsletter {
		width: min(395px, 100%);
		margin: 40px auto;
	}

	.footer-payment {
		justify-content: center;
		flex-wrap: wrap;
	}
}

@media (max-width: 767px) {
	.site-footer__columns {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 30px 20px;
		margin: 26px var(--gutter) 0;
	}

	.footer-col--brand {
		width: auto;
		flex: none;
		grid-column: 1 / -1;
	}

	.footer-col {
		flex: none;
	}

	.site-footer__legal {
		margin: 40px var(--gutter) 30px;
	}

	.site-footer__legal-links {
		gap: 16px;
	}
}
