/* ==========================================================================
   Site footer — replica of washington.org footer
   Brand color sampled from reference: #7D3269
   Reference fonts: Brandon Grotesque (commercial) → Montserrat stand-in,
   Playfair Display for the "Follow Us:" accent.
   ========================================================================== */

.jcu-footer {
	--jcuf-plum: #7D3269;
	--jcuf-dark: #0d0d0d;
	--jcuf-max: 1224px;
	position: relative;
	/* Clearance for the newsletter card that overlaps upward out of the
	   footer, plus breathing room between page content and the footer. */
	margin-top: clamp(6rem, 9vw, 8.5rem);
	font-family: "Google Sans Flex", -apple-system, sans-serif;
}

@media (max-width: 900px) {
	.jcu-footer {
		margin-top: 3.5rem;
	}
}

/* Pages ending in a full-bleed band: footer connects directly,
   the newsletter card overlaps the band instead of a white strip. */
body.jcu-flush-footer .jcu-footer {
	margin-top: 0;
}

body.error404 .jcu-footer {
	margin-top: 0;
}

.jcu-footer a {
	color: #fff;
	text-decoration: none;
}

.jcu-footer a:hover {
	text-decoration: underline;
}

/* --- Overlapping newsletter card ------------------------------------- */

.jcu-footer__newsletter-wrap {
	position: relative;
	z-index: 2;
	height: 0;
	max-width: var(--jcuf-max);
	margin: 0 auto;
	padding: 0 1rem;
}

.jcu-footer__newsletter {
	position: absolute;
	right: 1rem;
	bottom: -95px;
	width: 100%;
	max-width: 560px;
	background: #fff;
	padding: 2.5rem 2.75rem;
	box-shadow: 0 2px 18px rgba(0, 0, 0, 0.08);
}

.jcu-footer__newsletter-label {
	display: block;
	font-size: 0.9rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #1a1a1a;
	margin-bottom: 0.75rem;
}

.jcu-footer__newsletter-row {
	display: flex;
	align-items: stretch;
	gap: 1.5rem;
}

.jcu-footer__newsletter input[type="email"] {
	flex: 1;
	min-width: 0;
	border: 0;
	border-bottom: 1px solid #1a1a1a;
	border-radius: 0;
	background: transparent;
	padding: 0.4rem 0.25rem;
	font-family: "Playfair Display", Georgia, serif;
	font-style: italic;
	font-size: 1.15rem;
	color: #333;
	outline: none;
}

.jcu-footer__newsletter input[type="email"]::placeholder {
	color: #555;
	opacity: 1;
}

.jcu-footer__newsletter input[type="email"]:focus {
	border-bottom-color: var(--jcuf-plum);
}

.jcu-footer__newsletter button {
	border: 1px solid var(--jcuf-plum);
	background: #fff;
	color: var(--jcuf-plum);
	font-family: inherit;
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	padding: 0.9rem 2.4rem;
	cursor: pointer;
	transition: background 0.2s, color 0.2s;
}

.jcu-footer__newsletter button:hover {
	background: var(--jcuf-plum);
	color: #fff;
}

/* --- Dark footer band ------------------------------------------------- */

.jcu-footer__main {
	/* Drop a photo at assets/footer-bg.jpg to get the faded-image look;
	   without it the footer is solid near-black. */
	background:
		linear-gradient(rgba(10, 10, 10, 0.85), rgba(10, 10, 10, 0.92)),
		var(--jcuf-dark) url("footer-bg.jpg") center / cover no-repeat;
	color: #fff;
	padding: 3.5rem 0 0;
}

.jcu-footer__inner {
	max-width: var(--jcuf-max);
	margin: 0 auto;
	padding: 0 1rem;
}

/* --- Follow us row ----------------------------------------------------- */

.jcu-footer__social {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 1rem 1.75rem;
	margin-bottom: 3rem;
}

.jcu-footer__social-title {
	font-family: "Playfair Display", Georgia, serif;
	font-size: 1.75rem;
	font-weight: 400;
	margin-right: 0.75rem;
}

.jcu-footer__social a {
	display: inline-flex;
	line-height: 0;
}

.jcu-footer__social svg {
	width: 22px;
	height: 22px;
}

.jcu-footer__social a:hover {
	opacity: 0.7;
}

/* --- Logo + links + contact ------------------------------------------- */

.jcu-footer__brand-row {
	display: flex;
	align-items: flex-start;
	gap: 4rem;
}

.jcu-footer__logo img {
	max-width: 180px;
	height: auto;
}

.jcu-footer__logo-text {
	font-size: 2.25rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	line-height: 1.05;
}

.jcu-footer__brand-content {
	flex: 1;
	max-width: 680px;
}

.jcu-footer__quicklinks {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 1.5rem;
}

.jcu-footer__quicklinks a {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	font-size: 0.95rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.jcu-footer__quicklinks svg {
	width: 18px;
	height: 18px;
}

.jcu-footer__rule {
	border: 0;
	border-top: 1px solid rgba(255, 255, 255, 0.4);
	margin: 1.4rem 0;
}

.jcu-footer__contact {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 1.5rem;
	font-size: 1rem;
	font-weight: 300;
}

.jcu-footer__divider {
	display: inline-block;
	width: 1px;
	height: 1.1em;
	background: rgba(255, 255, 255, 0.45);
}

/* --- Legal bar --------------------------------------------------------- */

.jcu-footer__legal {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 1.25rem 2rem;
	border-top: 1px solid rgba(255, 255, 255, 0.18);
	margin-top: 3.5rem;
	padding: 1.6rem 1rem;
}

.jcu-footer__legal-links {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 1.25rem;
}

.jcu-footer__legal a,
.jcu-footer__copyright {
	font-size: 0.85rem;
	font-weight: 400;
	color: rgba(255, 255, 255, 0.9);
}

/* --- Responsive -------------------------------------------------------- */

@media (max-width: 900px) {
	.jcu-footer__newsletter-wrap {
		height: auto;
		padding: 0;
	}

	.jcu-footer__newsletter {
		position: static;
		width: auto;
		max-width: none;
		margin: 0 1rem;
		transform: translateY(2.5rem);
	}

	.jcu-footer__main {
		padding-top: 6rem;
	}

	.jcu-footer__brand-row {
		flex-direction: column;
		gap: 2rem;
	}

	.jcu-footer__legal {
		flex-direction: column;
		gap: 1rem;
	}
}

@media (max-width: 540px) {
	.jcu-footer__newsletter {
		padding: 1.75rem 1.5rem;
	}

	.jcu-footer__newsletter-row {
		flex-direction: column;
		gap: 1rem;
	}

	.jcu-footer__newsletter button {
		align-self: flex-start;
	}
}

/* --- Developer credit (Settings → JCU Details, optional) ---------------- */

.jcu-footer__credit,
.jcu-footer__credit a,
.jcu-footer__credit a:visited {
	font-size: 0.78rem;
	font-weight: 400;
	color: rgba(255, 255, 255, 0.55);
}

.jcu-footer__credit a:hover {
	color: rgba(255, 255, 255, 0.85);
	text-decoration: underline;
}
