/* ==========================================================================
   Site footer (Salient global section "Footer", shown above #footer-outer)
   Restyled site-wide to the Voter Guide scheme: woven navy, poster type,
   red accents. Content is still edited in Salient > Global Sections.
   ========================================================================== */

.nectar-global-section.before-footer {
	--vgf-navy: oklch(0.2 0.1 263);
	--vgf-navy-lift: oklch(0.3 0.1 258);
	--vgf-red: oklch(0.6 0.21 22);
	--vgf-cream: oklch(0.97 0.015 85);
	--vgf-cream-soft: oklch(0.97 0.015 85 / 0.72);
	--vgf-rule: oklch(0.97 0.015 85 / 0.16);
	position: relative;
	border-top: 6px solid var(--vgf-red);
}

/* Woven navy across the whole section; the rows inside go transparent. */
.nectar-global-section.before-footer {
	background-color: oklch(0.2 0.1 263) !important;
	background-image:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .85 0 0 0 0 .9 0 0 0 0 1 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
		repeating-linear-gradient(0deg, oklch(1 0 0 / 0.02) 0 1px, transparent 1px 3px),
		radial-gradient(70% 60% at 10% 0%, oklch(0.3 0.1 258), transparent 65%) !important;
}

.nectar-global-section.before-footer .row-bg,
.nectar-global-section.before-footer .row-bg-wrap,
.nectar-global-section.before-footer .row-bg-overlay,
.nectar-global-section.before-footer .column-bg-overlay,
.nectar-global-section.before-footer .column-bg-overlay-wrap,
.nectar-global-section.before-footer .wpb_column,
.nectar-global-section.before-footer .vc_column-inner {
	background-color: transparent !important;
	background-image: none !important;
}

#footer-outer {
	background-color: oklch(0.2 0.1 263) !important;
}

/* Column divider and row rules */
.nectar-global-section.before-footer .wpb_column,
.nectar-global-section.before-footer .vc_column_container,
.nectar-global-section.before-footer .column-border-wrap,
.nectar-global-section.before-footer .border-wrap {
	border-color: var(--vgf-rule) !important;
}

.nectar-global-section.before-footer .wpb_row + .wpb_row,
.nectar-global-section.before-footer .vc_row + .vc_row {
	border-top: 1px solid var(--vgf-rule);
}

/* Type */
.nectar-global-section.before-footer h4 {
	font-family: "Anton", "Oswald", Impact, sans-serif !important;
	font-weight: 400 !important;
	font-size: 1.75rem !important;
	line-height: 1.05 !important;
	letter-spacing: 0 !important;
	text-transform: uppercase !important;
	color: var(--vgf-cream) !important;
	margin-bottom: 0.75rem !important;
}

.nectar-global-section.before-footer p {
	font-family: "Public Sans", system-ui, sans-serif !important;
	font-size: 1rem !important;
	line-height: 1.6 !important;
	color: var(--vgf-cream-soft) !important;
	max-width: 34ch;
}

.nectar-global-section.before-footer .wpb_column h2:not(.vgf-skip) {
	font-family: "Anton", "Oswald", Impact, sans-serif !important;
	font-weight: 400 !important;
	letter-spacing: 0 !important;
	text-transform: uppercase !important;
	color: var(--vgf-cream) !important;
}

/* "Important Links" heading */
.nectar-global-section.before-footer .vc_col-sm-6 h2,
.nectar-global-section.before-footer .span_6 h2 {
	font-size: clamp(2rem, 3vw, 2.6rem) !important;
	line-height: 1 !important;
}

/* Link lists (Important Links) */
.nectar-global-section.before-footer h6,
.nectar-global-section.before-footer h6 .text,
.nectar-global-section.before-footer h6 a {
	font-family: "Oswald", "Arial Narrow", sans-serif !important;
	font-weight: 500 !important;
	font-size: 1rem !important;
	letter-spacing: 0.12em !important;
	text-transform: uppercase !important;
	color: var(--vgf-cream) !important;
}

.nectar-global-section.before-footer h6 a:hover,
.nectar-global-section.before-footer h6 a:hover .text {
	color: var(--vgf-red) !important;
}

/* The little leading lines Salient draws before each link */
.nectar-global-section.before-footer h6 .line,
.nectar-global-section.before-footer .nectar-cta .line {
	background-color: var(--vgf-red) !important;
}

/* Social links and credit */
.nectar-global-section.before-footer .nectar-cta,
.nectar-global-section.before-footer .nectar-cta a,
.nectar-global-section.before-footer .nectar-cta .link_wrap,
.nectar-global-section.before-footer .nectar-cta .link_text,
.nectar-global-section.before-footer .nectar-cta .text {
	font-family: "Oswald", "Arial Narrow", sans-serif !important;
	font-weight: 500 !important;
	letter-spacing: 0.1em !important;
	text-transform: uppercase !important;
}

.nectar-global-section.before-footer .nectar-cta a.link_text {
	color: var(--vgf-cream) !important;
	font-size: 0.9rem !important;
}

.nectar-global-section.before-footer .nectar-cta a.link_text:hover {
	color: var(--vgf-red) !important;
}

/* Underlines Salient adds under links */
.nectar-global-section.before-footer .nectar-cta .link_wrap:after,
.nectar-global-section.before-footer .nectar-cta a:after,
.nectar-global-section.before-footer .nectar-cta .link_wrap .line {
	background-color: var(--vgf-red) !important;
	border-color: var(--vgf-red) !important;
}

/* "Built with love by ..." credit stays quiet */
.nectar-global-section.before-footer .nectar-cta[data-color="extra-color-1"] *,
.nectar-global-section.before-footer .nectar-cta .text:not(:empty) {
	color: var(--vgf-cream-soft) !important;
	font-size: 0.8rem !important;
}

/* Scrolling "Vote Saint Joe" banner: outline poster type, red separator */
.nectar-global-section.before-footer .nectar-scrolling-text h2,
.nectar-global-section.before-footer [class*="scrolling-text"] h2 {
	font-family: "Anton", "Oswald", Impact, sans-serif !important;
	font-weight: 400 !important;
	text-transform: uppercase !important;
	letter-spacing: 0.01em !important;
	color: transparent !important;
	-webkit-text-stroke: 1.5px var(--vgf-cream);
}

.nectar-global-section.before-footer [class*="scrolling-text"] h2 .custom,
.nectar-global-section.before-footer [class*="scrolling-text"] .custom {
	color: var(--vgf-red) !important;
	-webkit-text-stroke: 0;
}

/* Social icons ([vg_social]) */
.vgf-social {
	display: flex;
	gap: 0.75rem;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

.vgf-social li {
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

.vgf-social li::before {
	content: none !important;
}

.vgf-social a {
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	color: oklch(0.97 0.015 85) !important;
	border: 2px solid oklch(0.97 0.015 85 / 0.35);
	border-radius: 50%;
	transition: background-color 0.2s, border-color 0.2s, transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.vgf-social a:hover,
.vgf-social a:focus-visible {
	background: oklch(0.6 0.21 22);
	border-color: oklch(0.6 0.21 22);
	transform: translateY(-2px);
}

.vgf-social a:focus-visible {
	outline: 3px solid oklch(0.97 0.015 85);
	outline-offset: 3px;
}

.vgf-social svg {
	display: block;
}
