/**
 * Stopka globalna — fala, CTA szałwiowy, ciemna stopka, newsletter.
 */

/* —— Fala ivory → sage —— */
.footer-wave-wrap {
	line-height: 0;
	overflow: hidden;
	background: var(--ms-hero-ivory);
	color: var(--ms-sage);
}

.footer-wave-svg {
	display: block;
	width: 100%;
	height: clamp(40px, 7vw, 56px);
}

/* —— CTA —— */
.footer-cta {
	position: relative;
	background: var(--ms-sage);
	color: var(--ms-white);
	overflow: hidden;
}

.footer-cta__bg {
	position: absolute;
	inset: -20% -10%;
	pointer-events: none;
	opacity: 0.45;
	background:
		radial-gradient(ellipse 50% 40% at 8% 30%, rgba(255, 255, 255, 0.08), transparent 55%),
		radial-gradient(ellipse 45% 45% at 95% 70%, rgba(255, 255, 255, 0.06), transparent 50%);
}

.footer-cta__inner {
	position: relative;
	z-index: 1;
	width: min(1320px, 100% - 2.5rem);
	margin: 0 auto;
	padding: clamp(2rem, 4vw, 3rem) 0 clamp(2.5rem, 5vw, 3.75rem);
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
	gap: clamp(1.5rem, 3vw, 2.5rem);
	align-items: center;
}

.fcta-eyebrow {
	font-family: var(--ms-font-heading);
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: color-mix(in srgb, var(--ms-white) 88%, transparent);
	margin: 0 0 0.85rem;
}

.fcta-title {
	font-family: var(--ms-font-heading);
	font-weight: 900;
	font-size: clamp(1.5rem, 2.8vw, 2.1rem);
	line-height: 1.15;
	letter-spacing: -0.02em;
	margin: 0 0 0.75rem;
	color: var(--ms-white);
}

.fcta-title__accent {
	color: #e19b4c;
	text-shadow: 0 1px 0 color-mix(in srgb, var(--ms-ink) 25%, transparent);
}

.fcta-sub {
	font-family: var(--ms-font-body);
	font-size: 0.92rem;
	line-height: 1.6;
	color: color-mix(in srgb, var(--ms-white) 90%, transparent);
	margin: 0;
	max-width: 32rem;
}

.fcta-btns {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem 0.85rem;
	justify-content: flex-end;
}

.btn-cta-white,
.btn-cta-outline {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.68rem 1.25rem;
	border-radius: var(--ms-radius-pill);
	font-family: var(--ms-font-body);
	font-size: 0.88rem;
	font-weight: 700;
	text-decoration: none;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.btn-cta-white {
	background: var(--ms-white);
	color: var(--ms-ink) !important;
	border: 1px solid transparent;
}

.btn-cta-white:hover {
	background: color-mix(in srgb, var(--ms-white) 94%, var(--ms-ivory));
	transform: translateY(-1px);
}

.btn-cta-outline {
	background: transparent;
	color: var(--ms-white) !important;
	border: 1px solid color-mix(in srgb, var(--ms-white) 65%, transparent);
}

.btn-cta-outline:hover {
	background: color-mix(in srgb, var(--ms-white) 12%, transparent);
	border-color: color-mix(in srgb, var(--ms-white) 88%, transparent);
}

.btn-cta-white:focus-visible,
.btn-cta-outline:focus-visible {
	outline: 2px solid var(--ms-focus);
	outline-offset: 3px;
}

/* —— Mapa między CTA i stopką —— */
.footer-map {
	background: var(--ms-sage);
	padding: 0;
}

.footer-map__inner {
	width: 100%;
	margin: 0;
}

.footer-map__head {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	margin: 0 0 0.55rem;
	padding: 0 clamp(1rem, 2.4vw, 2rem);
	color: color-mix(in srgb, var(--ms-white) 92%, transparent);
}

.footer-map__pin {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	border-radius: 999px;
	background: color-mix(in srgb, var(--ms-white) 16%, transparent);
	color: var(--ms-white);
}

.footer-map__title {
	font-family: var(--ms-font-heading);
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.footer-map__embed {
	position: relative;
	border-top: 1px solid color-mix(in srgb, var(--ms-white) 32%, transparent);
	border-bottom: 1px solid color-mix(in srgb, var(--ms-white) 32%, transparent);
	border-left: 0;
	border-right: 0;
	border-radius: 0;
	overflow: hidden;
	background: color-mix(in srgb, var(--ms-white) 8%, transparent);
	box-shadow: 0 10px 28px rgba(28, 36, 33, 0.22);
}

.footer-map__embed::after {
	content: "";
	position: absolute;
	inset: 0;
	background: color-mix(in srgb, var(--ms-sage) 48%, transparent);
	pointer-events: none;
	transition: opacity 0.2s ease;
}

.footer-map__embed:hover::after {
	opacity: 0;
}

.footer-map__embed iframe {
	display: block;
	width: 100%;
	height: clamp(185px, 24vw, 260px);
	min-height: 0;
	border: 0;
}

.footer-map + .site-footer {
	padding-top: clamp(1rem, 2.1vw, 1.6rem);
}

/* —— Główna stopka (ciemne tło) —— */
.site-footer {
	background: #1c2421;
	color: color-mix(in srgb, var(--ms-white) 78%, transparent);
	padding: clamp(2.5rem, 5vw, 4rem) 0 0;
}

.footer-inner {
	width: min(1320px, 100% - 2.5rem);
	margin: 0 auto;
}

.footer-top {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, 0.75fr)) minmax(0, 1fr);
	gap: clamp(1.5rem, 3vw, 2.75rem);
	padding-bottom: clamp(2rem, 4vw, 2.75rem);
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ft-brand {
	min-width: 0;
}

.ft-logo {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	text-decoration: none;
	color: inherit;
	margin-bottom: 1rem;
}

.ft-logo__img {
	max-height: 44px;
	width: auto;
	filter: brightness(0) invert(1);
	opacity: 0.9;
}

.ft-logo__mark {
	flex-shrink: 0;
}

.ft-logo__texts {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
}

.ft-logo-name {
	font-family: var(--ms-font-heading);
	font-weight: 900;
	font-size: 1.05rem;
	color: var(--ms-white);
	letter-spacing: -0.02em;
}

.ft-logo-sub {
	font-size: 0.78rem;
	color: rgba(255, 255, 255, 0.45);
	line-height: 1.3;
}

.ft-desc {
	font-family: var(--ms-font-body);
	font-size: 0.86rem;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.55);
	margin: 0 0 1.15rem;
	max-width: 22rem;
}

.ft-social {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 1.15rem;
}

.ft-social-btn {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.2);
	display: flex;
	align-items: center;
	justify-content: center;
	color: rgba(255, 255, 255, 0.55);
	transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.ft-social-btn:hover {
	border-color: rgba(255, 255, 255, 0.45);
	color: var(--ms-white);
	background: rgba(255, 255, 255, 0.06);
}

.ft-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.4rem 0.85rem;
	border-radius: var(--ms-radius-pill);
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.12);
	font-size: 0.72rem;
	font-weight: 700;
	color: rgba(255, 255, 255, 0.75);
}

.ft-badge-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--ms-sage);
	flex-shrink: 0;
}

.ft-col-title {
	font-family: var(--ms-font-heading);
	font-weight: 800;
	font-size: 0.78rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ms-white);
	margin: 0 0 1rem;
}

.ft-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
}

.ft-menu a {
	font-family: var(--ms-font-body);
	font-size: 0.88rem;
	color: rgba(255, 255, 255, 0.55);
	text-decoration: none;
	transition: color 0.2s ease;
}

.ft-menu a:hover,
.ft-menu a:focus-visible {
	color: var(--ms-white);
}

.ft-menu .current-menu-item > a,
.ft-menu li.highlight > a {
	color: var(--ms-sage-light);
	font-weight: 600;
}

.ft-menu .sub-menu {
	list-style: none;
	margin: 0.35rem 0 0 0.75rem;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.ft-menu .sub-menu a {
	font-size: 0.82rem;
	opacity: 0.9;
}

.ft-contact-item {
	display: flex;
	gap: 0.65rem;
	margin-bottom: 1rem;
}

.ft-contact-item:last-child {
	margin-bottom: 0;
}

.ft-ci-icon {
	flex-shrink: 0;
	width: 34px;
	height: 34px;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.06);
	display: flex;
	align-items: center;
	justify-content: center;
	color: rgba(255, 255, 255, 0.45);
}

.ft-ci-label {
	font-size: 0.68rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: rgba(255, 255, 255, 0.38);
	margin-bottom: 0.2rem;
}

.ft-ci-value {
	font-size: 0.86rem;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.75);
}

.ft-ci-value a {
	color: var(--ms-white);
	text-decoration: none;
	font-weight: 600;
}

.ft-ci-value a:hover {
	text-decoration: underline;
}

/* —— Dolny pasek —— */
.footer-bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.15rem 0 1.75rem;
	font-size: 0.78rem;
	color: rgba(255, 255, 255, 0.4);
}

.ft-copy {
	color: rgba(255, 255, 255, 0.45);
}

.ft-credits {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 0.75rem;
}

.ft-credits__prefix {
	color: rgba(255, 255, 255, 0.5);
	font-size: 0.78rem;
}

.ft-credits__link {
	display: inline-flex;
	align-items: center;
	line-height: 0;
	text-decoration: none;
	opacity: 0.88;
	transition: opacity 0.2s ease;
}

.ft-credits__link:hover {
	opacity: 1;
}

.ft-credits__link:focus-visible {
	outline: 2px solid var(--ms-focus);
	outline-offset: 3px;
	border-radius: 4px;
}

.ft-credits__logo {
	display: block;
	height: 28px;
	max-height: 32px;
	min-width: 56px;
	width: auto;
	object-fit: contain;
}

.ft-credits__link--logo {
	padding: 0;
	border-radius: 0;
	background: transparent;
}

.ft-credits__link--text {
	font-size: 0.78rem;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.55);
	line-height: 1.4;
}

.ft-credits__link--text:hover {
	color: var(--ms-white);
}

.screen-reader-text {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

/* —— Responsive —— */
@media (max-width: 1100px) {
	.footer-top {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ft-contact {
		grid-column: 1 / -1;
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 1rem 2rem;
	}

	.ft-contact .ft-col-title {
		grid-column: 1 / -1;
	}
}

@media (max-width: 720px) {
	.footer-cta__inner {
		grid-template-columns: 1fr;
		justify-items: center;
		text-align: center;
	}

	.fcta-sub {
		margin-left: auto;
		margin-right: auto;
	}

	.fcta-btns {
		justify-content: center;
	}

	.footer-map__head {
		display: flex;
		justify-content: center;
		width: 100%;
		box-sizing: border-box;
	}

	.footer-top {
		grid-template-columns: 1fr;
		text-align: center;
	}

	.ft-brand {
		display: flex;
		flex-direction: column;
		align-items: center;
	}

	.ft-logo {
		justify-content: center;
		width: 100%;
	}

	.ft-logo__texts {
		align-items: center;
		text-align: center;
	}

	.ft-desc {
		margin-left: auto;
		margin-right: auto;
	}

	.ft-social {
		justify-content: center;
	}

	.ft-badge {
		margin-left: auto;
		margin-right: auto;
	}

	.ft-col {
		display: flex;
		flex-direction: column;
		align-items: center;
	}

	.ft-menu {
		align-items: center;
	}

	.ft-menu .sub-menu {
		margin-left: 0;
		align-items: center;
	}

	.ft-contact .ft-col-title {
		text-align: center;
	}

	.ft-contact {
		grid-template-columns: 1fr;
		justify-items: center;
		text-align: center;
	}

	.ft-contact-item {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}

	.footer-bottom {
		flex-direction: column;
		align-items: center;
		justify-content: center;
		text-align: center;
	}

	.ft-credits {
		justify-content: center;
	}

	.footer-map {
		padding-bottom: 0;
	}
}
