/* Didatec — site footer (quote band, brand block, link columns). */

.site-footer {
	background-color: var(--wp--preset--color--black);
	color: var(--wp--preset--color--white);
}

/* Quote band ------------------------------------------------------------- */

.footer-quote {
	max-width: var(--wp--style--global--wide-size);
	margin-inline: auto;
	padding: var(--wp--preset--spacing--70) var(--wp--preset--spacing--70) 0;
}

.footer-quote__card {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--wp--preset--spacing--60);
	padding: var(--wp--preset--spacing--60);
	border-radius: 5px;
	background-color: var(--wp--preset--color--red);
	overflow: hidden;
}

.footer-quote__card::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: url("../images/footer-texture.webp");
	background-position: top left;
	background-size: 410px 410px;
	opacity: 0.2;
	pointer-events: none;
}

.footer-quote__text {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 11px;
	flex: 1 1 min(583px, 100%);
}

.footer-quote__title {
	font-size: var(--wp--preset--font-size--h-2);
	font-weight: 500;
	line-height: 1.1;
	letter-spacing: -0.04em;
	color: var(--wp--preset--color--white);
}

.footer-quote__desc {
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.3;
	letter-spacing: -0.01em;
	color: var(--wp--preset--color--white-80);
}

.footer-quote .btn { position: relative; flex: none; }

/* Main footer ------------------------------------------------------------ */

.footer-main {
	display: flex;
	gap: var(--wp--preset--spacing--70);
	max-width: var(--wp--style--global--wide-size);
	margin-inline: auto;
	padding: var(--wp--preset--spacing--70) var(--wp--preset--spacing--90) var(--wp--preset--spacing--100);
}

.footer-brand {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--wp--preset--spacing--60);
	flex: 0 1 525px;
}

.footer-brand .site-logo img { width: 85px; height: auto; }

.footer-brand__body {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.footer-brand__title {
	font-size: var(--wp--preset--font-size--h-4);
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: -0.03em;
}

.footer-brand__desc {
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.3;
	letter-spacing: -0.01em;
	color: var(--wp--preset--color--white-70);
}

.footer-brand__address,
.footer-brand__phone {
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.3;
	letter-spacing: -0.01em;
}

.footer-brand__phone a { text-decoration-line: underline; text-decoration-color: transparent; }
.footer-brand__phone a:hover { text-decoration-color: currentColor; }

/* Link columns ----------------------------------------------------------- */

.footer-links {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 77px;
	flex: 1 1 auto;
	max-width: 730px;
	min-width: 0;
}

.footer-col__title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-block-end: 24px;
	font-size: 12px;
	font-weight: 500;
	line-height: 1;
	letter-spacing: 0;
	text-transform: uppercase;
	list-style: none;
	cursor: default;
}

.footer-col__title::-webkit-details-marker { display: none; }

.footer-col__chevron { display: none; }

.footer-col__list {
	display: flex;
	flex-direction: column;
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-col__list a {
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.3;
	letter-spacing: -0.01em;
	color: var(--wp--preset--color--white-80);
	text-decoration-line: underline;
	text-decoration-color: transparent;
}

.footer-col__list a:hover,
.footer-col__list a:focus-visible {
	color: var(--wp--preset--color--white);
	text-decoration-color: currentColor;
}

/* The switch itself lives in base.css: only the dark-background tweaks here. */
.footer-lang .lang-switch__toggle {
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--white);
}

.footer-lang .lang-switch__list a { color: var(--wp--preset--color--black); }

/* Desktop: the two link columns sit side by side above the language switch. */
@media (min-width: 1024px) {
	.footer-links {
		display: grid;
		grid-template-columns: repeat(2, minmax(167px, 1fr));
		grid-template-rows: auto auto;
		align-content: start;
		align-items: start;
		justify-items: start;
		column-gap: 24px;
		row-gap: 77px;
	}

	.footer-links > .footer-lang {
		grid-column: 1 / -1;
		justify-self: end;
	}
}

/* Mobile ----------------------------------------------------------------- */

@media (max-width: 1023px) {
	.footer-main {
		flex-direction: column;
		gap: var(--wp--preset--spacing--80);
		padding-inline: var(--wp--preset--spacing--70);
	}

	.footer-brand { flex: 0 0 auto; }

	.footer-links {
		align-items: stretch;
		gap: var(--wp--preset--spacing--40);
		max-width: none;
	}

	.footer-col {
		border-radius: 5px;
		background-color: var(--wp--preset--color--white);
		overflow: hidden;
	}

	.footer-col__title {
		margin-block-end: 0;
		padding: 16px;
		color: var(--wp--preset--color--blue);
		font-weight: 600;
		cursor: pointer;
	}

	.footer-col__chevron {
		display: block;
		transition: transform 0.2s ease;
	}

	.footer-col[open] .footer-col__chevron { transform: rotate(180deg); }

	.footer-col__body { padding: 0 16px 16px; }

	.footer-col__list a { color: var(--wp--preset--color--black); }

	.footer-col__list a:hover,
	.footer-col__list a:focus-visible { color: var(--wp--preset--color--blue); }

	.footer-lang { align-self: center; }

	.footer-quote__card { justify-content: flex-start; }
	.footer-quote__text { flex: 1 1 100%; }
}
