/* --- Hide WPML default footer switcher (custom switcher in header) --- */
.wpml-ls-statics-footer {
	display: none !important;
}

/* --- Newsletter (above footer wrap) --- */
.hesp-newsletter {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	background:
		radial-gradient(ellipse 70% 120% at 100% 0%, rgba(46, 151, 221, 0.35) 0%, transparent 55%),
		radial-gradient(ellipse 50% 80% at 0% 100%, rgba(15, 85, 143, 0.55) 0%, transparent 50%),
		linear-gradient(135deg, #0a3d66 0%, #0f558f 48%, #1264AA 100%);
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
	padding: 52px 40px;
}

.hesp-newsletter::before {
	content: '';
	position: absolute;
	inset: 0;
	background: var(--hesp-contrast-scrim, rgba(16, 32, 47, 0.45));
	pointer-events: none;
	z-index: 0;
}

.hesp-newsletter__glow {
	position: absolute;
	inset: auto -8% -40% auto;
	width: min(520px, 55vw);
	height: min(520px, 55vw);
	border-radius: 50%;
	background: radial-gradient(circle, rgba(244, 166, 35, 0.18) 0%, transparent 68%);
	pointer-events: none;
	z-index: 0;
}

.hesp-newsletter__inner {
	position: relative;
	z-index: 1;
	max-width: var(--hesp-content-max, 1200px);
	margin: 0 auto;
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(280px, 440px);
	gap: 32px 56px;
	align-items: center;
}

.hesp-newsletter__eyebrow {
	display: inline-block;
	margin: 0 0 12px;
	padding: 0;
	font-family: var(--hesp-font);
	font-size: var(--hesp-text-eyebrow);
	font-weight: var(--hesp-font-semibold);
	letter-spacing: var(--hesp-tracking-eyebrow);
	text-transform: uppercase;
	color: var(--hesp-eyebrow-on-dark, #f0c85a);
}

.hesp-newsletter__title {
	font-family: var(--hesp-font);
	font-weight: var(--hesp-font-bold);
	font-size: var(--hesp-text-h2);
	line-height: var(--hesp-leading-h2);
	color: #ffffff;
	margin: 0 0 12px;
}

.hesp-newsletter__text {
	font-family: var(--hesp-font);
	font-size: var(--hesp-text-body);
	font-weight: var(--hesp-font-regular);
	line-height: var(--hesp-leading-body);
	color: var(--hesp-text-on-dark-muted, rgba(255, 255, 255, 0.92));
	margin: 0;
	max-width: 540px;
}

.hesp-newsletter__form {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 22px 22px 18px;
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.18);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	box-shadow: 0 16px 40px rgba(8, 36, 58, 0.22);
}

.hesp-newsletter__label {
	display: block;
	font-family: var(--hesp-font);
	font-size: 13px;
	font-weight: 700;
	color: #ffffff;
	margin: 0;
}

.hesp-newsletter__fields {
	display: flex;
	gap: 8px;
	align-items: stretch;
	padding: 6px;
	border-radius: 999px;
	background: #ffffff;
	box-shadow: 0 2px 10px rgba(8, 36, 58, 0.12);
	color-scheme: light;
}

.hesp-newsletter__input {
	flex: 1 1 auto;
	min-width: 0;
	height: 46px;
	padding: 0 18px;
	border: 0;
	border-radius: 999px;
	background: #ffffff !important;
	background-color: #ffffff !important;
	color: #10202f !important;
	font-family: var(--hesp-font);
	font-size: 15px;
	-webkit-appearance: none;
	appearance: none;
	-webkit-text-fill-color: #10202f;
	color-scheme: light;
}

.hesp-newsletter__input::placeholder {
	color: #8a94a0;
	-webkit-text-fill-color: #8a94a0;
}

.hesp-newsletter__input:focus {
	outline: none;
	background: #ffffff !important;
	background-color: #ffffff !important;
}

.hesp-newsletter__input:-webkit-autofill,
.hesp-newsletter__input:-webkit-autofill:hover,
.hesp-newsletter__input:-webkit-autofill:focus {
	-webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
	box-shadow: 0 0 0 1000px #ffffff inset !important;
	-webkit-text-fill-color: #10202f !important;
	caret-color: #10202f;
}

.hesp-newsletter__fields:focus-within {
	box-shadow: 0 0 0 3px rgba(244, 166, 35, 0.35), 0 2px 10px rgba(8, 36, 58, 0.12);
}

.hesp-newsletter__submit {
	flex: 0 0 auto;
	height: 46px;
	padding: 0 22px;
	border: 0;
	border-radius: 999px;
	background: linear-gradient(135deg, #e09512 0%, #f4a623 55%, #ffb83a 100%);
	color: #10202f;
	font-family: var(--hesp-font);
	font-size: 14.5px;
	font-weight: 700;
	cursor: pointer;
	white-space: nowrap;
	transition: opacity 0.2s ease, transform 0.15s ease;
}

.hesp-newsletter__submit:hover {
	opacity: 0.92;
	transform: translateY(-1px);
}

.hesp-newsletter__submit:focus-visible {
	outline: 2px solid #ffffff;
	outline-offset: 2px;
}

.hesp-newsletter__submit:disabled {
	opacity: 0.7;
	cursor: wait;
	transform: none;
}

.hesp-newsletter__consent {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 2px 0 0;
	font-family: var(--hesp-font);
	font-size: 12.5px;
	line-height: 1.5;
	color: var(--hesp-text-on-dark-muted, rgba(255, 255, 255, 0.92));
	cursor: pointer;
}

.hesp-newsletter__consent input {
	width: 16px;
	height: 16px;
	margin: 2px 0 0;
	flex-shrink: 0;
	accent-color: #f4a623;
}

.hesp-newsletter__consent a {
	color: #ffffff;
	text-decoration: underline;
	text-underline-offset: 2px;
	transition: opacity 0.2s ease;
}

.hesp-newsletter__consent a:hover {
	opacity: 0.85;
}

.hesp-newsletter__status {
	margin: 0;
	font-family: var(--hesp-font);
	font-size: 14px;
	font-weight: 600;
}

.hesp-newsletter__status.is-success {
	color: #b7f0c8;
}

.hesp-newsletter__status.is-error {
	color: #ffc9c9;
}

.hesp-newsletter__form-wrap .mc4wp-form,
.hesp-newsletter__form-wrap .mailerlite-form,
.hesp-newsletter__form-wrap form {
	margin: 0;
}

#colophon.site-footer.hesp-footer {
	/* Audit 4.17 lp.8 — GRANAT #082E4E */
	background: #082E4E !important;
	background: var(--hesp-surface-navy, #082E4E) !important;
	background-color: #082E4E !important;
	background-color: var(--hesp-surface-navy, #082E4E) !important;
	color: var(--hesp-text-on-dark-muted, rgba(255, 255, 255, 0.92));
}

.hesp-footer__wrap {
	padding: 64px 40px 32px;
}

.hesp-footer__inner {
	max-width: var(--hesp-content-max, 1200px);
	margin: 0 auto;
}

/* --- Grid --- */
.hesp-footer__grid {
	display: grid;
	grid-template-columns: minmax(180px, 0.9fr) 1fr 1.15fr 1.15fr 1.1fr;
	gap: 28px 24px;
	padding-bottom: 40px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.22);
	align-items: start;
}

/* --- Kol. 1: Marka + social --- */
.hesp-footer__col--brand {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	max-width: 260px;
}

.hesp-footer__brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
}

.hesp-footer__logo {
	display: block;
	height: 64px !important;
	max-height: 64px;
	width: auto !important;
	max-width: 320px;
	object-fit: contain;
}

.hesp-footer__desc {
	font-family: var(--hesp-font);
	font-size: 14px;
	line-height: 1.65;
	color: var(--hesp-text-on-dark-muted, rgba(255, 255, 255, 0.92));
	margin: 0;
	max-width: 280px;
}

/* --- Nagłówki kolumn --- */
.hesp-footer__heading {
	font-family: var(--hesp-font);
	font-weight: 700;
	font-size: 13px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #ffffff;
	margin: 0 0 18px;
}

.hesp-footer__heading a {
	color: inherit;
	text-decoration: none;
}

.hesp-footer__heading a:hover {
	color: #ffffff;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* --- Linki --- */
.hesp-footer__links {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.hesp-footer__links a,
.hesp-footer__contact a {
	font-family: var(--hesp-font);
	font-size: 14px;
	font-weight: 400;
	color: var(--hesp-text-on-dark-muted, rgba(255, 255, 255, 0.92));
	text-decoration: none;
	transition: color 0.2s ease;
}

.hesp-footer__links a:hover,
.hesp-footer__contact a:hover {
	color: #ffffff;
}

.hesp-footer__hotline {
	margin-top: 4px;
}

.hesp-footer__hotline-block {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.hesp-footer__hotline-label {
	font-family: var(--hesp-font);
	font-size: 14px;
	font-weight: 400;
	line-height: 1.45;
}

.hesp-footer__hotline-phone {
	font-weight: 600;
}

/* --- Kontakt --- */
.hesp-footer__contact {
	font-style: normal;
}

.hesp-footer__contact p {
	font-family: var(--hesp-font);
	font-size: 14px;
	line-height: 1.65;
	color: var(--hesp-text-on-dark-muted, rgba(255, 255, 255, 0.92));
	margin: 0 0 10px;
}

.hesp-footer__shop-name,
.hesp-footer__contact a.hesp-footer__shop-name,
.hesp-footer__contact a.hesp-footer__shop-name strong {
	font-weight: 700 !important;
	color: #ffffff;
}

.hesp-footer__address {
	display: inline-block;
}

.hesp-footer__shop-phone-block {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.hesp-footer__shop-hours {
	font-family: var(--hesp-font);
	font-size: 14px;
	font-weight: 400;
	line-height: 1.45;
}

.hesp-footer__shop-phone-number {
	font-weight: 600;
}

.hesp-footer__contact p:last-child {
	margin-bottom: 0;
}

.hesp-footer__contact strong {
	color: #ffffff;
	font-weight: 700;
}

.hesp-footer__social {
	margin-top: 48px;
}

.hesp-footer__col--brand .hesp-footer__social-heading {
	max-width: 16.5em;
}

.hesp-footer__social-heading {
	font-family: var(--hesp-font);
	font-size: 14px;
	font-weight: 400;
	line-height: 1.45;
	color: var(--hesp-text-on-dark-muted, rgba(255, 255, 255, 0.92));
	margin: 0 0 14px;
}

.hesp-footer__social-logos {
	display: flex;
	align-items: center;
	gap: 12px;
}

.hesp-footer__social-logo {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.2);
	color: #ffffff;
	text-decoration: none;
	transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.hesp-footer__social-logo:hover {
	background: rgba(255, 255, 255, 0.22);
	border-color: rgba(255, 255, 255, 0.4);
	color: #ffffff;
	transform: translateY(-1px);
}

.hesp-footer__social-logo svg {
	display: block;
}

/* --- Dolny pas --- */
.hesp-footer__bar {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 24px;
	padding-top: 24px;
}

.hesp-footer__bar-start {
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-width: 0;
}

.hesp-footer__copyright,
.hesp-footer__legal {
	font-family: var(--hesp-font);
	font-size: 13px;
	color: var(--hesp-text-on-dark-muted, rgba(255, 255, 255, 0.92));
	margin: 0;
	line-height: 1.5;
}

.hesp-footer__legal {
	text-align: right;
}

/* --- Mobile — audit 15.1 --- */
@media (max-width: 1023px) {
	.hesp-newsletter__inner {
		grid-template-columns: 1fr;
		gap: 28px;
	}

	.hesp-newsletter__form-wrap {
		max-width: 480px;
	}

	.hesp-footer__grid {
		grid-template-columns: 1fr 1fr;
		gap: 32px;
	}

	.hesp-footer__col--brand {
		grid-column: 1 / -1;
		max-width: 280px;
	}
}

@media (max-width: 639px) {
	.hesp-newsletter {
		padding: 40px 20px;
	}

	.hesp-newsletter__form {
		padding: 18px 16px 16px;
		border-radius: 16px;
	}

	.hesp-newsletter__fields {
		flex-direction: column;
		padding: 8px;
		border-radius: 16px;
	}

	.hesp-newsletter__input,
	.hesp-newsletter__submit {
		width: 100%;
		height: 48px;
		border-radius: 12px;
	}

	.hesp-footer__wrap {
		padding: 48px 20px 24px;
	}

	.hesp-footer__grid {
		grid-template-columns: 1fr;
		gap: 28px;
	}

	.hesp-footer__social {
		margin-top: 32px;
	}

	.hesp-footer__bar {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
	}

	.hesp-footer__legal {
		text-align: left;
	}
}
