/* Footer, utilities, and responsive overrides */


.site-footer {
	position: relative;
	padding: 2.8rem 0 2.4rem;
	background:
		linear-gradient(180deg, rgba(7, 9, 12, 0.92), rgba(16, 20, 26, 0.99)),
		repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.015) 0, rgba(255, 255, 255, 0.015) 2px, transparent 2px, transparent 20px);
	border-top: 1px solid rgba(203, 165, 103, 0.18);
}

.return-to-top {
	position: fixed;
	right: clamp(1rem, 2vw, 1.6rem);
	bottom: clamp(1rem, 2vw, 1.6rem);
	z-index: 1040;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 3.4rem;
	height: 3.4rem;
	padding: 0;
	border: 1px solid rgba(203, 165, 103, 0.28);
	border-radius: 999px;
	background:
		linear-gradient(180deg, rgba(21, 27, 35, 0.96), rgba(11, 14, 19, 0.96)),
		radial-gradient(circle at top, rgba(203, 165, 103, 0.12), transparent 40%);
	box-shadow: 0 14px 28px rgba(0, 0, 0, 0.32);
	color: var(--color-gold-soft);
	font-family: var(--font-title);
	font-size: 1.4rem;
	line-height: 1;
	opacity: 0;
	transform: translateY(12px);
	pointer-events: none;
	transition: opacity 0.22s ease, transform 0.22s ease;
}

.return-to-top.is-visible {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}

.return-to-top:hover,
.return-to-top:focus-visible {
	color: #fff7e7;
	box-shadow: 0 18px 36px rgba(0, 0, 0, 0.38);
}

.site-footer::before {
	content: "";
	position: absolute;
	left: 50%;
	top: 0;
	width: min(92vw, 1220px);
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(203, 165, 103, 0.8), transparent);
	transform: translateX(-50%);
}

.footer-copy,
.footer-meta,
.footer-links a,
.footer-socials a {
	color: rgba(240, 229, 207, 0.72);
}

.footer-meta {
	font-size: 0.92rem;
}

.footer-socials {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem 1.5rem;
}

.footer-nav-groups {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
	gap: 1.6rem 2.2rem;
}

.footer-nav-title {
	margin: 0 0 0.85rem;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: rgba(203, 165, 103, 0.9);
}

.footer-links {
	display: grid;
	gap: 0.55rem;
}

.footer-menu {
	padding-left: 0;
	margin-bottom: 0;
}

.footer-menu li {
	list-style: none;
}

.footer-links a:hover,
.footer-links a:focus,
.footer-socials a:hover,
.footer-socials a:focus {
	color: #fff2d0;
}

.footer-socials a {
	position: relative;
	padding-left: 1.1rem;
}

.footer-socials a::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	width: 0.45rem;
	height: 0.45rem;
	border-radius: 999px;
	background: rgba(203, 165, 103, 0.78);
	transform: translateY(-50%);
}

.reveal-on-scroll {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal-on-scroll.is-visible {
	opacity: 1;
	transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

@media (max-width: 991.98px) {
	.fantasy-navbar {
		padding: 0.8rem 0;
	}

	#primaryNavigation {
		margin-top: 1rem;
		padding: 1rem 1.2rem;
		border: 1px solid rgba(203, 165, 103, 0.16);
		border-radius: 20px;
		background: rgba(13, 16, 21, 0.94);
	}

	.site-header-search-mobile {
		display: block;
		margin-bottom: 1rem;
	}

	.header-search-toggle-mobile {
		width: 100%;
		justify-content: center;
	}

	.navbar-nav .nav-item + .nav-item::before {
		display: none;
	}

	.navbar-nav .nav-link {
		padding-left: 0;
		padding-right: 0;
	}

	.navbar-nav .nav-link::after {
		left: 0;
		right: 40%;
	}

	.header-search-toggle {
		padding-left: 0.85rem;
		padding-right: 0.85rem;
	}

	.hero-content {
		margin-top: 2rem;
	}

	.home-intro-visual {
		min-height: auto;
	}

	.home-intro-layout {
		grid-template-columns: 1fr;
		min-height: 38rem;
		padding: 1rem;
	}

	.home-intro-cta {
		width: 100%;
		padding: 1.4rem;
	}

	.home-intro-cta .btn-fantasy {
		width: 100%;
	}

	.home-intro-cta-title {
		font-size: clamp(2rem, 9vw, 2.9rem);
	}

	.resource-card {
		justify-content: center;
		text-align: center;
	}
}

@media (max-width: 767.98px) {
	.brand-tagline {
		display: none;
	}

	.brand-logo-desktop {
		display: none;
	}

	.brand-logo-mobile {
		display: block;
	}

	.site-header-search {
		display: none;
	}

	.header-search-label {
		display: none;
	}

	.header-search-toggle-mobile .header-search-label {
		display: inline;
	}

	body.page .cdg-breadcrumb,
	body.single-post .cdg-breadcrumb {
		display: none;
	}

	.hero-section-inner {
		padding-top: 5rem;
		padding-bottom: 3rem;
	}

	.hero-actions,
	.feature-banner .hero-actions {
		flex-direction: column;
	}

	.cdg-search-form-inner {
		padding: 0.85rem;
	}

	.search-submit {
		width: 100%;
	}

	.btn-fantasy {
		width: 100%;
	}

	.section-title::before,
	.section-title::after {
		display: none;
	}

	.section-frame {
		padding: 1.5rem 1.15rem 1.75rem;
	}

	.section-frame::after {
		left: 1.25rem;
		right: 1.25rem;
	}

	.parchment-card::before {
		inset: 0.5rem;
	}

	.resource-card {
		min-height: auto;
		flex-direction: column;
	}

	.maps-latest-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.map-lightbox-dialog {
		padding: 0.75rem;
	}

	.map-lightbox-footer {
		justify-content: center;
		text-align: center;
	}

	.map-lightbox-footer .btn-fantasy {
		width: 100%;
	}

	.footer-links,
	.footer-socials {
		justify-content: flex-start;
	}

	.footer-nav-groups {
		grid-template-columns: 1fr;
	}
}
