/**
 * Footer styles
 * NBS Theme
 */

/* Neutralizacja domyślnego paddingu WordPress na bloku shortcode */
.site-footer-new .wp-block-shortcode {
	padding: 0;
	margin: 0;
	box-sizing: border-box;
	width: 100%;
}

.site-footer-new {
	display: flex;
	flex-direction: column;
	width: 100%;
	box-sizing: border-box;
}

/* Górny pasek – neutral-background */
.footer-funding-bar-new {
	width: 100%;
	background-color: var(--wp--preset--color--neutral-background);
	display: flex;
	justify-content: center;
}

.footer-funding-bar__inner-new {
	width: 100%;
	max-width: var(--wp--custom--section-width, 1140px);
	padding-top: 24px;
	padding-bottom: 24px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 24px;
}

.footer-funding-bar__text-new {
	color: var(--wp--preset--color--text-primary);
	font-family: var(--wp--preset--font-family--montserrat);
	font-size: 16px;
	font-weight: 400;
	line-height: 150%;
	flex: 1;
	max-width: 620px;
}

.footer-funding-bar__logo-new {
	display: flex;
	align-items: center;
	flex-shrink: 0;
}

.footer-funding-bar__logo-new img {
	display: block;
	height: auto;
	max-height: 48px;
	width: auto;
}

/* Dolna sekcja – int-dark, pełna szerokość */
.footer-main-new {
	width: 100%;
	background-color: var(--wp--preset--color--int-dark);
	display: flex;
	justify-content: center;
}

/* Wewnętrzny kontener – sectionWidth, wyśrodkowany */
.footer-main__inner-new {
	width: 100%;
	max-width: var(--wp--custom--section-width, 1140px);
	margin-top: 64px;
	margin-bottom: 64px;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 1.5%;
}

.footer-col-new {
	width: 32%;
	flex: 0 0 364px;
	padding: 24px;
	border-radius: 8px;
	background: rgba(247, 248, 250, 0.10);
	box-sizing: border-box;
}

.footer-col--left-new {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	/* gap: 16px; */
}

.footer-col__logo-new {
	padding: 0;
	width: 100%;
}
.footer-col__desc-new {
	padding: 0;
	width: 100%;
	color: var(--wp--preset--color--neutral-background);
}

.footer-col__logo-new img {
	display: block;
	width: 100%;
	height: auto;
	margin-bottom: 16px;
}

.footer-col__desc-new + p,
.footer-social__icons-new + p {
	display: none;
}


.footer-col--center-new { }
.footer-col--right-new  {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.footer-col--right-new + p {
	display: none;
}

/* Menu – kontener 2 */
.footer-menu__title-new {
	color: var(--wp--preset--color--neutral-background);
	font-family: var(--wp--preset--font-family--montserrat);
	font-size: 20px;
	font-weight: 700;
	line-height: 150%;
	margin: 0 0 16px;
}

.footer-menu__group-new {
	color: var(--wp--preset--color--neutral-background);
	font-family: var(--wp--preset--font-family--montserrat);
	font-size: 14px;
	font-weight: 700;
	line-height: 150%;
	margin: 16px 0 4px;
}

.footer-menu__group-new:first-of-type {
	margin-top: 0;
}

.footer-menu__list-new {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.footer-menu__list-new li a {
	color: var(--wp--preset--color--neutral-background);
	font-family: var(--wp--preset--font-family--montserrat);
	font-size: 14px;
	font-weight: 400;
	line-height: 150%;
	text-decoration: none;
}

.footer-menu__list-new li a:hover,
.footer-menu__list-new li a:focus-visible {
	text-decoration: underline;
	outline-offset: 2px;
}

/* Kontener 3 – kontakt, social, newsletter */
.footer-contact__section-new {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.footer-contact__label-new {
	color: var(--wp--preset--color--neutral-background);
	font-family: var(--wp--preset--font-family--montserrat);
	font-size: 14px;
	font-weight: 700;
	/* line-height: 150%; */
	margin: 0;
}

.footer-contact__email-new {
	color: var(--wp--preset--color--neutral-background);
	font-family: var(--wp--preset--font-family--montserrat);
	font-size: 14px;
	font-weight: 400;
	line-height: 150%;
	text-decoration: none;
	margin-top: 16px;
}

.footer-contact__email-new:hover,
.footer-contact__email-new:focus-visible {
	text-decoration: underline;
	outline-offset: 2px;
}

.footer-contact__email-new + p {
	display: none;
}

/* Ikony social media */
.footer-social__icons-new {
	display: flex;
	flex-direction: row;
	gap: 8px;
	margin-top: 16px;
}

.footer-social__link-new {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: rgba(247, 248, 250, 0.20);
	flex-shrink: 0;
	transition: background 0.2s ease;
}

.footer-social__link-new:hover,
.footer-social__link-new:focus-visible {
	background: rgba(247, 248, 250, 0.40);
	outline-offset: 2px;
}

.footer-social__link-new img {
	width: 16px;
	height: 16px;
	filter: brightness(0) invert(1);
}

/* Newsletter */
.footer-newsletter__input-new {
	height: 36px;
	align-self: stretch;
	width: 100%;
	box-sizing: border-box;
	padding: 0 12px;
	margin-top: 16px;
	border: 1px solid var(--wp--preset--color--neutral-background);
	border-radius: 6px;
	background: var(--wp--preset--color--neutral-background);
	color: var(--wp--preset--color--text-primary);
	font-family: var(--wp--preset--font-family--montserrat);
	font-size: 14px;
	font-weight: 400;
	/* line-height: 150%; */
}

.footer-newsletter__input-new::placeholder {
	color: rgba(247, 248, 250, 0.50);
}

.footer-newsletter__input-new:focus {
	outline: 2px solid var(--wp--preset--color--neutral-background);
	outline-offset: 2px;
}

.footer-newsletter__btn-wrap-new {
	display: flex;
	justify-content: flex-start;
	margin-top: 12px;
}

.footer-newsletter__form-new {
	display: flex;
	flex-direction: column;
}

.footer-newsletter__consent-new {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin-top: 12px;
	color: var(--wp--preset--color--neutral-background);
	font-family: var(--wp--preset--font-family--montserrat);
	font-size: 12px;
	font-weight: 400;
	line-height: 150%;
	opacity: 1;
	visibility: visible;
	max-height: 120px;
	overflow: hidden;
	transition: opacity 0.25s ease, max-height 0.25s ease, margin-top 0.25s ease, visibility 0.25s ease;
}

.footer-newsletter__consent-new.is-hidden {
	opacity: 0;
	visibility: hidden;
	max-height: 0;
	margin-top: 0;
	pointer-events: none;
}

.footer-newsletter__consent-new input[type="checkbox"] {
	width: 16px;
	height: 16px;
	margin-top: 2px;
	flex: 0 0 16px;
	accent-color: var(--wp--preset--color--int-green);
}

.footer-newsletter-modal {
	position: fixed;
	left: 50%;
	bottom: 24px;
	transform: translateX(-50%);
	z-index: 9999;
	max-width: min(92vw, 560px);
	padding: 12px 16px;
	border-radius: 8px;
	background: var(--wp--preset--color--neutral-background);
	color: var(--wp--preset--color--text-primary);
	font-family: var(--wp--preset--font-family--montserrat);
	font-size: 14px;
	font-weight: 500;
	line-height: 150%;
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.35s ease, visibility 0.35s ease;
}

.footer-newsletter-modal.is-visible {
	opacity: 1;
	visibility: visible;
}

.footer-newsletter-modal--success {
	border-left: 4px solid var(--wp--preset--color--int-green);
}

.footer-newsletter-modal--error {
	border-left: 4px solid #c62828;
}

.footer-newsletter__btn-wrap-new + p,
.footer-contact__section-new + p {
	display: none;
}


/* Bottom bar – copyright i linki prawne */
.footer-bottom-bar-new {
	width: 100%;
	background-color: var(--wp--preset--color--int-dark);
	display: flex;
	justify-content: center;
}

.footer-bottom-bar__inner-new {
	width: 100%;
	max-width: var(--wp--custom--section-width, 1140px);
	margin-top: 24px;
	margin-bottom: 24px;
	padding-top: 24px;
	padding-bottom: 24px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.footer-bottom-bar__copyright-new {
	color: var(--wp--preset--color--neutral-background);
	font-family: var(--wp--preset--font-family--montserrat);
	font-size: 14px;
	font-weight: 400;
	line-height: 150%;
}

.footer-bottom-bar__links-new {
	display: flex;
	gap: 32px;
	margin-left: auto;
}

.footer-bottom-bar__links-new a {
	color: var(--wp--preset--color--neutral-background);
	font-family: var(--wp--preset--font-family--montserrat);
	font-size: 14px;
	font-weight: 400;
	line-height: 150%;
	text-decoration: none;
}

.footer-bottom-bar__links-new a:hover,
.footer-bottom-bar__links-new a:focus-visible {
	text-decoration: underline;
	outline-offset: 2px;
}

@media (max-width: 1140px) {
	.footer-funding-bar__inner-new {
		padding-left: 24px;
		padding-right: 24px;
	}

	.footer-main__inner-new {
		/* flex-direction: column;
		align-items: center; */
		justify-content: center;
	}

	.footer-col-new {
		width: 100%;
		max-width: 364px;
		flex: 0 0 auto;
	}

	.footer-bottom-bar__inner-new {
		padding-left: 24px;
		padding-right: 24px;
	}
}

/* Tablet only: trzy kolumny w jednym rzędzie po 31% szerokości */
@media (min-width: 601px) and (max-width: 1140px) {
	.footer-main__inner-new {
		padding-left: 24px;
		padding-right: 24px;
	}

	.footer-col-new {
		width: 31%;
		max-width: none;
		flex: 0 0 31%;
	}
}

@media (max-width: 768px) {
	.footer-funding-bar__inner-new {
		flex-wrap: wrap;
		gap: 16px;
	}

	.footer-funding-bar__text-new {
		flex-basis: 100%;
		max-width: 100%;
	}

	.footer-funding-bar__logo-new img {
		max-height: 40px;
	}
}

@media (max-width: 600px) {
	.footer-bottom-bar__inner-new {
		flex-direction: column;
		gap: 16px;
		text-align: center;
	}

	.footer-bottom-bar__links-new {
		gap: 16px;
		flex-wrap: wrap;
		/* override base: margin-left:auto; otherwise links may stay aligned right */
		margin-left: 0;
		width: 100%;
		justify-content: center;
	}
}
