/* ============================================================
   FOOTER — Newsletter bar · Main footer · Bottom bar
   Persol-style: brand col + 3 link cols + social/payment/legal
   ============================================================ */

/* ── Newsletter Bar ── */
.newsletter-bar {
	background: var(--newsletter-bg, #f4f4f4);
	color: var(--newsletter-color, #1a1a1a);
	padding: 56px 0;
}

.newsletter-bar__inner {
	display: grid;
	grid-template-columns: 1fr 1.5fr;
	align-items: center;
	gap: 64px;
}

/* Left: title + subtitle */
.newsletter-bar__content {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.newsletter-bar__title {
	font-family: var(--font-headings);
	font-size: clamp(1.5rem, 2.5vw, 2rem);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.02em;
	margin: 0;
	color: inherit;
}

.newsletter-bar__text {
	margin: 0;
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--newsletter-color, #1a1a1a);
	opacity: 0.45;
	line-height: 1.5;
}

/* Right: form */
.newsletter-bar__form {
	width: 100%;
}

.newsletter-form__group {
	display: flex;
	gap: 0;
}

.newsletter-form__input {
	flex: 1;
	background: #fff;
	border: 1px solid rgba(0,0,0,0.18);
	border-right: none;
	color: var(--newsletter-color, #1a1a1a);
	padding: 14px 18px;
	font-size: var(--typo-input-size, 14px);
	font-family: var(--font-body);
	border-radius: var(--radius-sm) 0 0 var(--radius-sm);
	transition: border-color var(--transition);
}

.newsletter-form__input::placeholder { color: rgba(0,0,0,0.35); }

.newsletter-form__input:focus {
	border-color: rgba(0,0,0,0.5);
	outline: none;
}

.newsletter-form__submit {
	border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
	padding: 14px 22px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	white-space: nowrap;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.04em;
}

.newsletter-form__consent {
	margin: 10px 0 0;
	font-size: 11px;
	color: var(--newsletter-color, #1a1a1a);
	opacity: 0.45;
	line-height: 1.6;
}

.newsletter-form__consent a {
	color: inherit;
	text-decoration: underline;
}

/* ── Footer shell ── */
.site-footer {
	background: var(--footer-bg, #111);
	color: var(--footer-color, #fff);
}

/* ── Footer Main — 4-col grid: brand + 3 link cols ── */
.footer-main {
	padding: 72px 0 64px;
	border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-main__grid {
	display: grid;
	/* brand col is wider (1.6fr), three link cols share the rest equally */
	grid-template-columns: 1.6fr repeat(3, 1fr);
	gap: 48px 40px;
	align-items: start;
}

/* ── Brand Column ── */
.footer-brand {
	display: flex;
	flex-direction: column;
	gap: 16px;
}
.footer-brand__logo {
	display: inline-block;
	text-decoration: none;
	color: inherit;
}
.footer-brand__logo-img {
	display: block;
	height: 28px;
	width: auto;
	/* If logo SVG is dark, invert it on the dark footer bg */
	filter: brightness(0) invert(1);
}
.footer-brand__wordmark {
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--footer-color, #fff);
}
.footer-brand__tagline {
	margin: 0;
	font-size: var(--typo-body_small-size, 13px);
	line-height: 1.6;
	opacity: 0.5;
	max-width: 220px;
}

/* ── Link Columns ── */
.footer-col__title {
	font-size: var(--typo-overline-size, 11px);
	font-weight: var(--typo-overline-weight, 600);
	letter-spacing: var(--typo-overline-ls, 0.1em);
	text-transform: var(--typo-overline-transform, uppercase);
	color: inherit;
	margin: 0 0 20px;
	opacity: 0.45;
}
.footer-col__links {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.footer-col__link {
	font-size: var(--typo-body_small-size, 13px);
	color: inherit;
	text-decoration: none;
	opacity: 0.7;
	transition: opacity var(--transition);
	letter-spacing: 0.01em;
}
/* Prevent browser default :visited/:active colour from overriding
   the inherited white-on-dark colour of the footer. */
.footer-col__link:visited,
.footer-col__link:active  { color: inherit; }
.footer-col__link:hover   { opacity: 1; }

/* WP nav_menu items in footer columns — same look as .footer-col__link */
.footer-col__links .menu-item {
	list-style: none;
}
.footer-col__links .menu-item > a {
	font-size: var(--typo-body_small-size, 13px);
	color: inherit;
	text-decoration: none;
	opacity: 0.7;
	transition: opacity var(--transition);
	letter-spacing: 0.01em;
	display: inline-block;
}
.footer-col__links .menu-item > a:visited,
.footer-col__links .menu-item > a:active { color: inherit; }
.footer-col__links .menu-item > a:hover  { opacity: 1; }

/* ── Footer Bottom ── */
.footer-bottom {
	padding: 28px 0 24px;
}

/* Shared bar styles */
.footer-bottom__bar {
	display: flex;
	align-items: center;
}

/* Row 1: social icons (left) ↔ payment icons (right) */
.footer-bottom__bar--top {
	justify-content: space-between;
	gap: 24px;
	padding-bottom: 20px;
	border-bottom: 1px solid rgba(255,255,255,0.08);
	margin-bottom: 20px;
}

/* Row 2: copyright (left) ↔ legal nav (right) */
.footer-bottom__bar--legal {
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
}

/* Social icons */
.footer-social__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 4px;
	align-items: center;
}
.footer-social__link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: var(--radius-full, 999px);
	color: var(--footer-color, #fff);
	opacity: 0.55;
	transition: opacity var(--transition), background-color var(--transition);
	text-decoration: none;
}
.footer-social__link:hover {
	opacity: 1;
	background: rgba(255,255,255,0.08);
}

/* Payment icons */
.footer-payments {
	display: flex;
	gap: 6px;
	align-items: center;
	flex-wrap: wrap;
}
.footer-payments svg { flex-shrink: 0; }

/* Copyright */
.footer-bottom__copyright {
	margin: 0;
	font-size: var(--typo-caption-size, 12px);
	opacity: 0.4;
	letter-spacing: 0.01em;
}

/* Legal nav */
.footer-bottom__nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 20px;
	flex-wrap: wrap;
}
.footer-bottom__link {
	font-size: var(--typo-caption-size, 12px);
	color: inherit;
	text-decoration: none;
	opacity: 0.4;
	transition: opacity var(--transition);
}
.footer-bottom__link:visited,
.footer-bottom__link:active  { color: inherit; }
.footer-bottom__link:hover   { opacity: 0.85; }

/* Brand logo link */
.footer-brand__logo:visited,
.footer-brand__logo:active { color: inherit; }

/* ── Responsive ── */
@media (max-width: 1199px) {
	.footer-main__grid {
		grid-template-columns: 1.4fr repeat(3, 1fr);
		gap: 40px 28px;
	}
}

@media (max-width: 1023px) {
	.newsletter-bar__inner {
		grid-template-columns: 1fr;
		gap: 32px;
	}
	/* Stack brand on top, then 3 cols below */
	.footer-main__grid {
		grid-template-columns: repeat(3, 1fr);
	}
	.footer-brand {
		grid-column: 1 / -1;
		flex-direction: row;
		align-items: flex-start;
		gap: 24px;
	}
	.footer-brand__tagline { max-width: 300px; }
}

@media (max-width: 767px) {
	.newsletter-bar { padding: 40px 0; }

	.newsletter-form__group {
		flex-direction: column;
	}
	.newsletter-form__input {
		border-right: 1px solid rgba(0,0,0,0.18);
		border-bottom: none;
		border-radius: var(--radius-sm) var(--radius-sm) 0 0;
	}
	.newsletter-form__submit {
		border-radius: 0 0 var(--radius-sm) var(--radius-sm);
		justify-content: center;
	}

	.footer-main { padding: 48px 0 40px; }
	.footer-main__grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 32px 20px;
	}
	.footer-brand {
		flex-direction: column;
		gap: 12px;
	}
	.footer-brand__tagline { max-width: 100%; }

	.footer-bottom__bar--top { flex-direction: column; align-items: flex-start; gap: 16px; }
	.footer-bottom__bar--legal { flex-direction: column; align-items: flex-start; gap: 12px; }
}

@media (max-width: 480px) {
	.footer-main__grid { grid-template-columns: 1fr 1fr; }
}

/* ── Newsletter Modal & Popup ── */

/* Shared badge */
.jpr-nl-badge {
	display: inline-block;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #fff;
	background: #111;
	border-radius: var(--radius-xs, 2px);
	padding: 4px 10px;
	margin-bottom: 14px;
}
.jpr-nl-badge--sm { font-size: 9px; padding: 3px 8px; margin-bottom: 10px; }

/* ── Modal overlay ── */
.jpr-nl-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 99998;
	padding: 20px;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}
.jpr-nl-modal-overlay.is-open {
	opacity: 1;
	visibility: visible;
}

/* ── Modal card ── */
.jpr-nl-modal__card {
	position: relative;
	background: #fff;
	border-radius: var(--radius-lg, 16px);
	padding: 48px 40px 40px;
	max-width: 480px;
	width: 100%;
	box-shadow: 0 24px 64px rgba(0, 0, 0, 0.18);
	transform: translateY(16px);
	transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.jpr-nl-modal-overlay.is-open .jpr-nl-modal__card {
	transform: translateY(0);
}

.jpr-nl-modal__close {
	position: absolute;
	top: 16px;
	right: 16px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 6px;
	color: rgba(0, 0, 0, 0.45);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: color 0.2s, background 0.2s;
}
.jpr-nl-modal__close:hover { color: #111; background: rgba(0, 0, 0, 0.06); }

.jpr-nl-modal__title {
	font-family: var(--font-headings);
	font-size: clamp(1.35rem, 3vw, 1.75rem);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.02em;
	margin: 0 0 10px;
	color: #111;
}
.jpr-nl-modal__subtitle {
	font-size: 14px;
	color: rgba(0, 0, 0, 0.55);
	line-height: 1.6;
	margin: 0 0 24px;
}

/* ── Shared form styles ── */
.jpr-nl-form__row { margin-bottom: 12px; }

.jpr-nl-input {
	width: 100%;
	padding: 13px 16px;
	font-size: 14px;
	font-family: var(--font-body);
	border: 1.5px solid rgba(0, 0, 0, 0.18);
	border-radius: var(--radius-sm, 6px);
	color: #111;
	background: #fff;
	transition: border-color 0.2s;
	box-sizing: border-box;
}
.jpr-nl-input:focus { border-color: #111; outline: none; }
.jpr-nl-input::placeholder { color: rgba(0, 0, 0, 0.35); }
.jpr-nl-input--sm { padding: 11px 14px; font-size: 13px; margin-bottom: 10px; }

/* ── Privacy checkbox ── */
.jpr-nl-form__privacy { margin: 14px 0; }
.jpr-nl-form__privacy--sm { margin: 8px 0; }

.jpr-nl-privacy-label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	cursor: pointer;
}
.jpr-nl-privacy-check {
	flex-shrink: 0;
	margin-top: 2px;
	width: 16px;
	height: 16px;
	accent-color: #111;
	cursor: pointer;
}
.jpr-nl-privacy-text {
	font-size: 12px;
	color: rgba(0, 0, 0, 0.55);
	line-height: 1.5;
}
.jpr-nl-privacy-text a { color: inherit; text-decoration: underline; }
.jpr-nl-privacy-text a:hover { color: #111; }

/* ── Feedback area ── */
.jpr-nl-form__feedback {
	min-height: 0;
	font-size: 13px;
	line-height: 1.4;
	margin-bottom: 4px;
	border-radius: var(--radius-sm, 6px);
	padding: 0;
	transition: all 0.25s;
}
.jpr-nl-form__feedback:not(:empty) { padding: 10px 14px; margin-bottom: 12px; }
.jpr-nl-form__feedback--success { background: #e8f5e9; color: #2e7d32; }
.jpr-nl-form__feedback--error   { background: #fdecea; color: #c62828; }

/* ── Submit button ── */
.btn--full { width: 100%; justify-content: center; }

.jpr-nl-submit {
	position: relative;
	overflow: hidden;
}
.jpr-nl-submit__spinner {
	display: inline-block;
	width: 16px;
	height: 16px;
	border: 2px solid rgba(255,255,255,0.35);
	border-top-color: #fff;
	border-radius: 50%;
	animation: jpr-nl-spin 0.7s linear infinite;
	margin-left: 8px;
	vertical-align: middle;
	display: none;
}
.jpr-nl-submit.is-loading .jpr-nl-submit__spinner { display: inline-block; }
.jpr-nl-submit.is-loading .jpr-nl-submit__label   { opacity: 0.65; }

@keyframes jpr-nl-spin {
	to { transform: rotate(360deg); }
}

.jpr-nl-form__legal {
	margin: 12px 0 0;
	font-size: 11px;
	color: rgba(0,0,0,0.35);
	text-align: center;
}

/* ── Floating popup (bottom-right) ── */
.jpr-nl-popup {
	position: fixed;
	bottom: 24px;
	right: 24px;
	width: 320px;
	background: #fff;
	border-radius: var(--radius-lg, 16px);
	padding: 24px 20px 20px;
	box-shadow: 0 8px 40px rgba(0,0,0,0.16), 0 0 0 1px rgba(0,0,0,0.06);
	z-index: 99997;
	opacity: 0;
	visibility: hidden;
	transform: translateY(16px);
	transition: opacity 0.35s ease, visibility 0.35s ease, transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.jpr-nl-popup.is-open {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.jpr-nl-popup__close {
	position: absolute;
	top: 10px;
	right: 10px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 5px;
	color: rgba(0,0,0,0.4);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: color 0.2s, background 0.2s;
}
.jpr-nl-popup__close:hover { color: #111; background: rgba(0,0,0,0.06); }

.jpr-nl-popup__title {
	font-family: var(--font-headings);
	font-size: 1.1rem;
	font-weight: 700;
	letter-spacing: -0.01em;
	margin: 0 0 6px;
	color: #111;
}
.jpr-nl-popup__text {
	font-size: 13px;
	color: rgba(0,0,0,0.55);
	line-height: 1.5;
	margin: 0 0 16px;
}

/* Responsive */
@media (max-width: 480px) {
	.jpr-nl-popup {
		left: 12px;
		right: 12px;
		bottom: 12px;
		width: auto;
	}
	.jpr-nl-modal__card {
		padding: 36px 24px 28px;
	}
}
