/* =========================================================
   JUNETEENTH PBC — FOOTER COMPONENT

   Depends on global style.css for:
   - colors, fonts, radii, shadows and transitions
   - .jpbc-site-footer background and base text/link styling
   - global .jpbc-button variants
   - .jpbc-shell content width
   ========================================================= */

/* ---------- Main footer layout ---------- */

.jpbc-footer__main {
	display: grid;
	grid-template-columns: minmax(260px, 1.45fr) repeat(3, minmax(150px, 0.75fr));
	gap: clamp(40px, 5vw, 72px);
	padding-block: 80px 64px;
}

.jpbc-footer__brand {
	max-width: 390px;
}

.jpbc-footer__brand-link {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	color: var(--jpbc-white);
	text-decoration: none;
}

.jpbc-footer__logo {
	flex: 0 0 auto;
	width: 62px;
	height: 62px;
	object-fit: contain;
}

.jpbc-footer__brand-name {
	font-family: var(--jpbc-font-display);
	font-size: 24px;
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.02em;
}

.jpbc-footer__brand-location {
	display: block;
	margin-top: 6px;
	font-size: 10px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	opacity: 0.72;
}

.jpbc-footer__description {
	max-width: 360px;
	margin-top: 24px;
}

/* ---------- Social links ---------- */

.jpbc-footer__socials {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 28px 0 0;
	padding: 0;
	list-style: none;
}

.jpbc-footer__social-link {
	display: grid;
	width: 42px;
	height: 42px;
	place-items: center;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.1);
	text-decoration: none;
	transition:
		color var(--jpbc-transition-fast),
		background-color var(--jpbc-transition-fast),
		border-color var(--jpbc-transition-fast),
		transform var(--jpbc-transition-fast);
}

.jpbc-footer__social-link:hover,
.jpbc-footer__social-link:focus-visible {
	color: var(--jpbc-charcoal);
	border-color: var(--jpbc-lemon);
	background: var(--jpbc-lemon);
	transform: translateY(-3px);
}

.jpbc-footer__social-link svg {
	width: 19px;
	height: 19px;
	fill: currentColor;
}

/* ---------- Footer columns ---------- */

.jpbc-footer__column {
	min-width: 0;
}

.jpbc-footer__heading {
	margin: 0 0 22px;
}

.jpbc-footer__nav,
.jpbc-footer__nav ul,
.jpbc-footer__contact-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.jpbc-footer__nav li,
.jpbc-footer__contact-list li {
	margin: 0;
	padding: 0;
}

.jpbc-footer__nav a {
	position: relative;
	display: inline-flex;
	align-items: center;
	width: fit-content;
	text-decoration: none;
}

.jpbc-footer__nav a::after {
	content: "";
	position: absolute;
	right: 0;
	bottom: -2px;
	left: 0;
	height: 1px;
	background: currentColor;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform var(--jpbc-transition-fast);
}

.jpbc-footer__nav a:hover::after,
.jpbc-footer__nav a:focus-visible::after,
.jpbc-footer__nav .current-menu-item > a::after,
.jpbc-footer__nav .current_page_item > a::after {
	transform: scaleX(1);
}

/* ---------- Contact details ---------- */

.jpbc-footer__contact-item {
	display: grid;
	grid-template-columns: 20px minmax(0, 1fr);
	align-items: start;
	gap: 10px;
}

.jpbc-footer__contact-icon {
	width: 18px;
	height: 18px;
	margin-top: 2px;
	color: var(--jpbc-lemon);
}

.jpbc-footer__contact-icon svg {
	width: 100%;
	height: 100%;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
}

.jpbc-footer__contact-item a {
	text-decoration: none;
	word-break: break-word;
}

/* ---------- Optional footer newsletter ---------- */

.jpbc-footer__newsletter {
	margin-top: 28px;
}

.jpbc-footer__newsletter-label {
	display: block;
	margin-bottom: 10px;
	color: rgba(255, 255, 255, 0.8);
	font-size: 13px;
	font-weight: 500;
}

.jpbc-footer__newsletter-form {
	display: flex;
	max-width: 360px;
}

.jpbc-footer__newsletter-form input[type="email"] {
	flex: 1;
	min-width: 0;
	height: 48px;
	min-height: 48px;
	padding: 12px 14px;
	border-color: rgba(255, 255, 255, 0.18);
	border-radius: var(--jpbc-radius-sm) 0 0 var(--jpbc-radius-sm);
	background: rgba(255, 255, 255, 0.08);
	color: var(--jpbc-white);
}

.jpbc-footer__newsletter-form input[type="email"]::placeholder {
	color: rgba(255, 255, 255, 0.55);
}

.jpbc-footer__newsletter-form input[type="email"]:focus {
	border-color: var(--jpbc-lemon);
	box-shadow: 0 0 0 3px rgba(249, 190, 61, 0.15);
}

.jpbc-footer__newsletter-form button,
.jpbc-footer__newsletter-form input[type="submit"] {
	flex: 0 0 auto;
	height: 48px;
	min-height: 48px;
	padding: 12px 18px;
	border-color: var(--jpbc-pink);
	border-radius: 0 var(--jpbc-radius-sm) var(--jpbc-radius-sm) 0;
	background: var(--jpbc-pink);
}

.jpbc-footer__newsletter-form button:hover,
.jpbc-footer__newsletter-form input[type="submit"]:hover {
	border-color: #d9368d;
	background: #d9368d;
	transform: none;
}

/* ---------- Footer divider and bottom bar ---------- */

.jpbc-footer__divider {
	height: 1px;
	margin: 0;
	border: 0;
	background: rgba(255, 255, 255, 0.12);
}

.jpbc-footer__bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding-block: 24px;
}

.jpbc-footer__legal {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 8px 20px;
}

.jpbc-footer__copyright,
.jpbc-footer__legal a {
	font-size: 12px;
	line-height: 16px;
}

.jpbc-footer__legal a {
	text-decoration: none;
}

/* ---------- Back-to-top control ---------- */

.jpbc-back-to-top {
	position: fixed;
	z-index: 900;
	right: 24px;
	bottom: 24px;
	display: grid;
	visibility: hidden;
	width: 46px;
	height: 46px;
	padding: 0;
	place-items: center;
	border: 1px solid var(--jpbc-pink);
	border-radius: 50%;
	color: var(--jpbc-white);
	background: var(--jpbc-pink);
	box-shadow: var(--jpbc-shadow-soft);
	opacity: 0;
	transform: translateY(12px);
	transition:
		opacity var(--jpbc-transition),
		visibility var(--jpbc-transition),
		transform var(--jpbc-transition),
		background-color var(--jpbc-transition);
}

.jpbc-back-to-top.is-visible {
	visibility: visible;
	opacity: 1;
	transform: translateY(0);
}

.jpbc-back-to-top:hover,
.jpbc-back-to-top:focus-visible {
	border-color: var(--jpbc-lemon);
	color: var(--jpbc-charcoal);
	background: var(--jpbc-lemon);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1024px) {
	.jpbc-footer__main {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 48px;
		padding-block: 72px 56px;
	}

	.jpbc-footer__brand {
		max-width: 440px;
	}
}

@media (max-width: 767px) {
	.jpbc-footer__main {
		grid-template-columns: 1fr;
		gap: 40px;
		padding-block: 64px 48px;
	}

	.jpbc-footer__brand,
	.jpbc-footer__description,
	.jpbc-footer__newsletter-form {
		max-width: none;
	}

	.jpbc-footer__bottom {
		align-items: flex-start;
		flex-direction: column;
		gap: 14px;
	}

	.jpbc-footer__legal {
		justify-content: flex-start;
	}

	.jpbc-back-to-top {
		right: 16px;
		bottom: 16px;
	}
}

@media (max-width: 430px) {
	.jpbc-footer__newsletter-form {
		flex-direction: column;
		gap: 10px;
	}

	.jpbc-footer__newsletter-form input[type="email"],
	.jpbc-footer__newsletter-form button,
	.jpbc-footer__newsletter-form input[type="submit"] {
		width: 100%;
		border-radius: var(--jpbc-radius-sm);
	}
}

/* Imported footer social links need fixed dimensions to stay circular. */
body #colophon [data-id="2eb36d99"] .softlite-dynamic-list {
 display: flex;
 justify-content: flex-start;
 gap: 12px;
}
body #colophon [data-id="2eb36d99"] a.softlite-dynamic-list-item {
 display: flex;
 flex: 0 0 44px;
 align-items: center;
 justify-content: center;
 width: 44px !important;
 height: 44px;
 min-width: 44px;
 padding: 0;
 border-radius: 50%;
}
body #colophon [data-id="2eb36d99"] a svg { width: 20px; height: 20px; }
@media (max-width: 767px) {
 body #colophon [data-id="3b89898f"] .softlite-dynamic-card-box-text-1 {
  font-size: 18px;
  line-height: 1.25;
 }
 body #colophon [data-id="6761f86"] {
  font-size: 16px;
  line-height: 1.6;
 }
}
