/* Global light footer — DSDT brand, dark logo on light surface */

.jbs-site-footer {
	--jbs-footer-bg: var(--jbs-surface-alt, #f7f9fa);
	--jbs-footer-bar: #eef1f3;
	padding: 0;
	background: var(--jbs-footer-bg);
	color: var(--jbs-text);
	border-top: 1px solid var(--jbs-border);
	font-size: 0.95rem;
	position: relative;
	overflow: hidden;
}

/* Soft topographic-style wash (light, non-competing). */
.jbs-site-footer::before,
.jbs-site-footer::after {
	content: "";
	position: absolute;
	width: min(42vw, 420px);
	height: min(42vw, 420px);
	border-radius: 50%;
	border: 1px solid color-mix(in srgb, var(--jbs-border) 70%, transparent);
	pointer-events: none;
	z-index: 0;
}

.jbs-site-footer::before {
	left: -12%;
	top: 8%;
	box-shadow:
		0 0 0 28px color-mix(in srgb, var(--jbs-border) 25%, transparent),
		0 0 0 56px color-mix(in srgb, var(--jbs-border) 12%, transparent);
}

.jbs-site-footer::after {
	right: -14%;
	bottom: 18%;
	box-shadow:
		0 0 0 24px color-mix(in srgb, var(--jbs-border) 22%, transparent),
		0 0 0 48px color-mix(in srgb, var(--jbs-border) 10%, transparent);
}

.jbs-site-footer > .jbs-container,
.jbs-site-footer__bar {
	position: relative;
	z-index: 1;
}

.jbs-site-footer > .jbs-container {
	padding-block: clamp(2.75rem, 5vw, 4rem);
}

.jbs-site-footer a {
	color: var(--jbs-text);
	text-decoration: none;
}

.jbs-site-footer a:hover,
.jbs-site-footer a:focus-visible {
	color: var(--jbs-accent);
	outline: none;
}

.jbs-site-footer__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) repeat(2, minmax(0, 0.85fr)) minmax(0, 1.15fr);
	gap: clamp(1.75rem, 3vw, 2.75rem);
	align-items: start;
}

.jbs-site-footer__logo-link {
	display: inline-flex;
	align-items: center;
	margin-bottom: var(--jbs-space-4);
}

.jbs-site-footer__logo {
	display: block;
	height: 36px;
	width: auto;
	max-width: 160px;
	object-fit: contain;
}

.jbs-site-footer__logo-text {
	font-weight: var(--jbs-font-weight-bold);
	font-size: 1.05rem;
	letter-spacing: -0.02em;
	color: var(--jbs-text);
}

.jbs-site-footer__about {
	margin: 0 0 var(--jbs-space-3);
	color: var(--jbs-muted);
	line-height: 1.65;
	max-width: 28rem;
}

.jbs-site-footer__slogan {
	margin: 0 0 var(--jbs-space-5);
	font-weight: var(--jbs-font-weight-bold);
	font-size: 0.8rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--jbs-accent);
}

.jbs-site-footer__contact {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.55rem;
}

.jbs-site-footer__contact li {
	display: grid;
	grid-template-columns: 3.25rem minmax(0, 1fr);
	gap: 0.35rem 0.65rem;
	align-items: start;
	line-height: 1.45;
}

.jbs-site-footer__contact-label {
	font-weight: 600;
	color: var(--jbs-text);
}

.jbs-site-footer__contact-value {
	color: var(--jbs-muted);
}

.jbs-site-footer__heading {
	margin: 0 0 var(--jbs-space-4);
	font-size: 1.05rem;
	font-weight: var(--jbs-font-weight-bold);
	color: var(--jbs-text);
	letter-spacing: -0.01em;
}

.jbs-site-footer__menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.7rem;
}

.jbs-site-footer__menu a {
	font-size: 0.95rem;
	color: var(--jbs-muted);
}

.jbs-site-footer__menu a:hover,
.jbs-site-footer__menu a:focus-visible {
	color: var(--jbs-accent);
}

.jbs-site-footer__newsletter-lead {
	margin: 0 0 var(--jbs-space-4);
	color: var(--jbs-muted);
	line-height: 1.55;
}

.jbs-site-footer__newsletter {
	display: flex;
	align-items: stretch;
	width: 100%;
	max-width: 22rem;
	border: 1px solid var(--jbs-border);
	background: var(--jbs-surface);
}

.jbs-site-footer__newsletter input[type="email"] {
	flex: 1;
	min-width: 0;
	border: 0;
	outline: none;
	background: transparent;
	padding: 0.8rem 0.95rem;
	font: inherit;
	font-size: 0.925rem;
	color: var(--jbs-text);
}

.jbs-site-footer__newsletter input::placeholder {
	color: var(--jbs-muted);
}

.jbs-site-footer__subscribe {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	border: 0;
	padding: 0 1.1rem;
	background: var(--jbs-accent);
	color: var(--dsdt-white);
	font: inherit;
	font-size: 0.9rem;
	font-weight: var(--jbs-font-weight-bold);
	cursor: pointer;
	white-space: nowrap;
}

.jbs-site-footer__subscribe:hover,
.jbs-site-footer__subscribe:focus-visible {
	background: var(--jbs-accent-hover);
	outline: none;
}

.jbs-site-footer__subscribe:disabled {
	opacity: 0.7;
	cursor: wait;
}

/* Newsletter result dialog */
body.jbs-footer-newsletter-open {
	overflow: hidden;
}

.jbs-footer-newsletter-dialog {
	position: fixed;
	inset: 0;
	z-index: 100050;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.25rem;
	visibility: visible;
	pointer-events: auto;
}

.jbs-footer-newsletter-dialog[hidden] {
	display: none !important;
	visibility: hidden;
	pointer-events: none;
}

.jbs-footer-newsletter-dialog__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 13, 32, 0.45);
	opacity: 0;
	transition: opacity 0.2s ease;
}

.jbs-footer-newsletter-dialog.is-open .jbs-footer-newsletter-dialog__backdrop {
	opacity: 1;
}

.jbs-footer-newsletter-dialog__panel {
	position: relative;
	z-index: 1;
	width: min(22rem, 100%);
	padding: 1.75rem 1.5rem 1.4rem;
	background: var(--jbs-surface, #fff);
	border: 1px solid var(--jbs-border);
	box-shadow: 0 18px 48px rgba(0, 13, 32, 0.18);
	text-align: center;
	transform: translateY(10px) scale(0.97);
	opacity: 0;
	transition:
		transform 0.22s cubic-bezier(0.32, 0.72, 0, 1),
		opacity 0.2s ease;
}

.jbs-footer-newsletter-dialog.is-open .jbs-footer-newsletter-dialog__panel {
	transform: translateY(0) scale(1);
	opacity: 1;
}

.jbs-footer-newsletter-dialog__close {
	position: absolute;
	top: 0.45rem;
	right: 0.45rem;
	width: 2rem;
	height: 2rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 0;
	background: transparent;
	color: var(--jbs-muted);
	font-size: 1.35rem;
	line-height: 1;
	cursor: pointer;
}

.jbs-footer-newsletter-dialog__close:hover,
.jbs-footer-newsletter-dialog__close:focus-visible {
	color: var(--jbs-text);
	outline: none;
}

.jbs-footer-newsletter-dialog__icon {
	width: 2.75rem;
	height: 2.75rem;
	margin: 0 auto 0.9rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	font-size: 1.2rem;
	font-weight: 700;
	line-height: 1;
}

.jbs-footer-newsletter-dialog.is-success .jbs-footer-newsletter-dialog__icon {
	background: color-mix(in srgb, var(--jbs-accent, #0072ff) 14%, #fff);
	color: var(--jbs-accent, #0072ff);
}

.jbs-footer-newsletter-dialog.is-error .jbs-footer-newsletter-dialog__icon {
	background: color-mix(in srgb, var(--jbs-danger, #c0392b) 14%, #fff);
	color: var(--jbs-danger, #c0392b);
}

.jbs-footer-newsletter-dialog__title {
	margin: 0 0 0.45rem;
	font-size: 1.15rem;
	font-weight: var(--jbs-font-weight-bold, 700);
	color: var(--jbs-text);
	letter-spacing: -0.01em;
}

.jbs-footer-newsletter-dialog__body {
	margin: 0 0 1.15rem;
	color: var(--jbs-muted);
	line-height: 1.5;
	font-size: 0.95rem;
}

.jbs-footer-newsletter-dialog__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 7.5rem;
	border: 0;
	padding: 0.7rem 1.15rem;
	background: var(--jbs-accent);
	color: var(--dsdt-white, #fff);
	font: inherit;
	font-size: 0.9rem;
	font-weight: var(--jbs-font-weight-bold, 700);
	cursor: pointer;
}

.jbs-footer-newsletter-dialog__btn:hover,
.jbs-footer-newsletter-dialog__btn:focus-visible {
	background: var(--jbs-accent-hover, #005ccc);
	outline: none;
}

@media (prefers-reduced-motion: reduce) {
	.jbs-footer-newsletter-dialog__backdrop,
	.jbs-footer-newsletter-dialog__panel {
		transition: none;
	}
}

.jbs-site-footer__social {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem;
	list-style: none;
	margin: var(--jbs-space-5) 0 0;
	padding: 0;
}

.jbs-site-footer__social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.35rem;
	height: 2.35rem;
	border: 1px solid var(--jbs-border);
	background: var(--jbs-surface);
	color: var(--jbs-accent);
	transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}

.jbs-site-footer__social-link:hover,
.jbs-site-footer__social-link:focus-visible {
	border-color: var(--jbs-accent);
	background: var(--jbs-accent-2);
	color: var(--jbs-accent);
}

.jbs-site-footer__bar {
	background: var(--jbs-footer-bar);
	border-top: 1px solid var(--jbs-border);
}

.jbs-site-footer__bar-inner {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 3.5rem;
	padding-block: 0.85rem;
}

.jbs-site-footer__copy {
	margin: 0;
	text-align: center;
	font-size: 0.875rem;
	color: var(--jbs-muted);
}

@media (max-width: 1100px) {
	.jbs-site-footer__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.jbs-site-footer__brand {
		grid-column: 1 / -1;
	}
}

@media (max-width: 640px) {
	.jbs-site-footer__grid {
		grid-template-columns: 1fr;
	}

	.jbs-site-footer__newsletter {
		max-width: none;
	}

	.jbs-site-footer__copy {
		text-align: center;
	}
}

@media (prefers-reduced-motion: reduce) {
	.jbs-site-footer__social-link,
	.jbs-site-footer__subscribe {
		transition: none;
	}
}
