/* ==========================================================================
   Footer — teal bg, stage photo + info bar
   Mobile-first. BEM. Токени з global.css.
   ========================================================================== */

.site-footer {
	background-color: var(--color-teal);
}

/* --------------------------------------------------------------------------
   Stage — велике фото зверху
   -------------------------------------------------------------------------- */

.footer__stage {
	padding: 8px 0 0;
}

.footer__stage-img {
	display: block;
	width: 100%;
	height: 272px;
	object-fit: cover;
	border-radius: 4px;
}

/* --------------------------------------------------------------------------
   Bar — інфо-рядок на тілі фону
   -------------------------------------------------------------------------- */

.footer__bar {
	padding: 32px 0 24px;
}

.footer__bar-inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 28px;
	text-align: center;
}

/* Brand: logo + copyright */

.footer__brand {
	display: flex;
	flex-direction: column;
	gap: 16px;
	align-items: center;
}

.footer__logo img {
	display: block;
	height: 86px;
	width: auto;
}

/* Legal */

.footer__legal {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.footer__legal p {
	margin: 0;
}

/* Contact */

.footer__contact {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.footer__contact-title {
	margin: 0 0 4px;
	font-family: var(--font-sans);
	font-weight: var(--fw-bold);
	font-size: 20px;
	line-height: 1.6;
	color: var(--color-text);
}

.footer__contact p {
	margin: 0;
}

.footer__instagram-link {
	color: inherit;
}


/* Shared text style for legal + contact */

.footer__legal p,
.footer__contact p {
	font-family: var(--font-sans);
	font-weight: var(--fw-medium);
	font-size: 12px;
	line-height: 1.7;
	color: var(--color-text);
}

/* Contact group: contact + nav stacked */

.footer__contact-group {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

/* Nav menu */

.footer__menu {
	display: flex;
	gap: 32px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.footer__menu a {
	font-family: var(--font-sans);
	font-weight: var(--fw-medium);
	font-size: 12px;
	color: var(--color-text);
	text-decoration: none;
}

.footer__menu a:hover {
	text-decoration: underline;
}

/* Prestige logo */

.footer__prestige img {
	display: block;
	width: 112px;
	height: auto;
}

/* Copyright */

.footer__copy {
	margin: 0;
	font-family: var(--font-sans);
	font-weight: var(--fw-medium);
	font-size: 12px;
	line-height: 1.6;
	color: var(--color-text);
}

/* ==========================================================================
   Mobile — menu centred
   ========================================================================== */

@media (max-width: 767px) {

	.footer__menu {
		justify-content: center;
	}
}

/* ==========================================================================
   Tablet (768px – 1023px) — 2-column grid
   ========================================================================== */

@media (min-width: 768px) and (max-width: 1023px) {

	.footer__stage {
		padding: 12px 0 0;
	}

	.footer__stage-img {
		height: auto;
		aspect-ratio: 1481 / 858;
		border-radius: 8px;
	}

	.footer__bar {
		padding: 24px 0 20px;
	}

	.footer__bar-inner {
		display: flex;
		flex-direction: row;
		flex-wrap: wrap;
		gap: 24px 32px;
		text-align: left;
		align-items: flex-start;
	}

	.footer__brand {
		flex: 0 0 auto;
		width: calc(50% - 17px);
		order: 1;
		align-items: flex-start;
	}

	.footer__contact-group {
		flex: 0 0 auto;
		width: calc(50% - 17px);
		order: 2;
		flex-direction: column;
		gap: 16px;
	}

	.footer__legal {
		flex: 0 0 auto;
		width: calc(50% - 17px);
		order: 3;
		text-align: left;
		align-self: auto;
	}

	.footer__prestige {
		flex: 0 0 auto;
		width: calc(50% - 17px);
		order: 4;
		display: flex;
		justify-content: flex-end;
		align-items: flex-end;
	}
}

/* ==========================================================================
   Desktop (≥ 1024px)
   ========================================================================== */

.footer__stage {
	padding: 16px 0 0;
}

.footer__stage-img {
	height: auto;
	aspect-ratio: 1481 / 858;
	border-radius: 16px;
}

.footer__bar {
	padding: 0;
}

/* Flex row, all columns bottom-aligned */
.footer__bar-inner {
	display: flex;
	flex-direction: row;
	align-items: flex-end;
	gap: 32px;
	text-align: left;
	padding: 28px 0 20px;
}

/* Brand: logo at top, copy at bottom */
.footer__brand {
	flex: 0 0 232px;
	align-self: stretch;
	align-items: flex-start;
	justify-content: space-between;
}

/* Legal: text at bottom-right */
.footer__legal {
	flex: 1;
	align-self: flex-end;
	text-align: right;
}

/* Contact group: contact + nav side by side */
.footer__contact-group {
	flex: 1;
	flex-direction: row;
	align-items: flex-end;
	gap: 32px;
}

/* Prestige: bottom-aligned */
.footer__prestige {
	flex: 0 0 auto;
	align-self: flex-end;
}

.footer__prestige img {
	width: auto;
	height: 116px;
}

/* Copyright: single line on desktop */
.footer__copy {
	white-space: nowrap;
}

/* ==========================================================================
   Mobile + Tablet (≤ 1024px) — reset desktop overrides
   ========================================================================== */

@media (max-width: 1024px) {

	.footer__stage {
		padding: 8px 0 0;
	}

	.footer__stage-img {
		height: 272px;
		aspect-ratio: unset;
		border-radius: 4px;
	}

	.footer__bar {
		padding: 32px 0 24px;
	}

	.footer__bar-inner {
		flex-direction: column;
		align-items: center;
		gap: 28px;
		text-align: center;
		padding: 0;
	}

	.footer__brand {
		flex: unset;
		align-self: auto;
		align-items: center;
		justify-content: flex-start;
	}

	.footer__legal {
		flex: unset;
		align-self: auto;
		text-align: center;
	}

	.footer__contact-group {
		flex: unset;
		flex-direction: column;
		align-items: center;
		gap: 20px;
	}

	.footer__prestige {
		align-self: auto;
	}

	.footer__prestige img {
		width: 112px;
		height: auto;
	}

	.footer__copy {
		white-space: normal;
	}

	.footer__menu {
		justify-content: center;
	}

}

/* ==========================================================================
   Tablet only (768px – 1024px)
   ========================================================================== */

@media (min-width: 768px) and (max-width: 1024px) {

	.footer__stage {
		padding: 12px 0 0;
	}

	.footer__stage-img {
		height: auto;
		aspect-ratio: 1481 / 858;
		border-radius: 8px;
	}

	.footer__bar {
		padding: 24px 0 20px;
	}

	.footer__bar-inner {
		flex-direction: row;
		flex-wrap: wrap;
		gap: 24px 32px;
		text-align: left;
		align-items: flex-start;
	}

	.footer__brand {
		flex: 0 0 auto;
		width: calc(50% - 17px);
		align-items: flex-start;
	}

	.footer__contact-group {
		flex: 0 0 auto;
		width: calc(50% - 17px);
		flex-direction: column;
		align-items: flex-start;
		gap: 16px;
	}

	.footer__legal {
		flex: 0 0 auto;
		width: calc(50% - 17px);
		text-align: left;
	}

	.footer__prestige {
		flex: 0 0 auto;
		width: calc(50% - 17px);
		display: flex;
		justify-content: flex-start;
		align-items: flex-end;
	}

	.footer__menu {
		justify-content: flex-start;
	}

}
