/**
 * Footer — Pump Homepage (Figma node 252:142)
 */

:root {
	--footer-bg: #231f20;
	--footer-muted: #eeeded;
	--footer-accent: #b5dc7b;
	--footer-bar-bg: #e8e8e8;
	--footer-bar-text: #231f20;
}

.site-footer {
	margin-top: auto;
	width: 100%;
}

.site-footer__panel {
	background-color: var(--footer-bg);
	border-radius: 12px;
	padding: clamp(2.25rem, 5vw, 4.5rem) clamp(1.25rem, 4vw, 2.75rem) clamp(2.25rem, 4vw, 4.2rem);
	color: var(--footer-muted);
}

.site-footer__panel-inner {
	max-width: min(100%, var(--section-inner-max));
	margin-inline: auto;
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: clamp(1.75rem, 4vw, 4rem);
}

.site-footer__brand {
	flex: 1 1 260px;
	min-width: 0;
	max-width: 460px;
}

.site-footer__logo-img {
	width: 100%;
	max-width: 453px;
	height: auto;
	object-fit: contain;
	object-position: left center;
}

.site-footer__tagline {
	margin: 0.65rem 0 0;
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 0.875rem;
	font-weight: 600;
	font-style: italic;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--footer-accent);
	line-height: 1.4;
}

.site-footer__aside {
	flex: 1 1 280px;
	min-width: 0;
	max-width: 560px;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: clamp(1.25rem, 3vw, 2rem);
	margin-inline-start: auto;
}

.site-footer__newsletter {
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 1.2rem;
}

.site-footer__newsletter-title {
	margin: 0;
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 1rem;
	line-height: 1.6;
	font-weight: 400;
	color: var(--footer-muted);
}

.site-footer__admin-hint {
	margin: 0;
	font-size: 0.875rem;
	line-height: 1.5;
	color: var(--footer-muted);
	opacity: 0.85;
}

/* Gravity Forms — newsletter row (inline submit + footer submit; GF 2.6+ Orbital / gravity-theme) */

.site-footer__form .gform_wrapper {
	margin: 0;
	max-width: none;
	width: 100%;
}

/* Tighten GF theme spacing inside the footer panel only */
.site-footer__form .gform_wrapper {
	--gf-form-gap-x: 8px;
	--gf-form-gap-y: 0px;
	--gf-form-footer-margin-y-start: 0px;
	--gf-field-gap-x: 0px;
	--gf-field-gap-y: 0px;
}

.site-footer__form .gform_heading,
.site-footer__form .gform_required_legend,
.site-footer__form .gfield_required {
	display: none !important;
}

.site-footer__form form {
	position: relative;
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: center;
	gap: 8px;
	width: 100%;
	margin: 0;
	padding: 0;
}

.site-footer__form .gform_wrapper.gform_validation_error form {
	flex-wrap: wrap;
	align-items: flex-start;
}

.site-footer__form .gform-body.gform_body,
.site-footer__form .gform_body {
	flex: 1 1 auto;
	min-width: 0;
	margin: 0 !important;
	padding: 0 !important;
}

.site-footer__form .gform_fields {
	display: flex !important;
	flex-flow: row nowrap;
	align-items: center;
	gap: 8px;
	width: 100%;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none;
	grid-template-columns: none !important;
	grid-auto-flow: unset !important;
}

.site-footer__form fieldset.gfield {
	border: 0;
	margin: 0;
	padding: 0;
	min-width: 0;
}

.site-footer__form .gfield {
	margin: 0 !important;
	padding: 0 !important;
	border: 0;
	flex: 0 0 auto;
	min-width: 0;
	width: auto !important;
	max-width: none !important;
	grid-column: auto !important;
}

.site-footer__form .gfield--type-email {
	flex: 1 1 auto;
}

.site-footer__form .gfield--type-submit {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
}

.site-footer__form .gfield--type-hidden {
	display: none !important;
}

/* Hide visible field labels in this compact layout (screen readers keep legend association where applicable) */
.site-footer__form .gfield .gfield_label,
.site-footer__form .gfield legend.gfield_label {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip-path: inset(50%) !important;
	border: 0 !important;
	white-space: nowrap !important;
}

.site-footer__form .gfield_description {
	display: none !important;
}

.site-footer__form .ginput_container {
	margin: 0 !important;
	width: 100%;
}

/*
 * Email/text fields: Gravity Forms Orbital theme sets white bg + gray border on `.large` inputs.
 * Runtime probe showed computed inputBg rgb(255,255,255) vs parentBg transparent — beat GF with wrapper-scoped !important.
 */
.site-footer__form .gform_wrapper input[type="email"],
.site-footer__form .gform_wrapper input[type="text"],
.site-footer__form .gform_wrapper.gravity-theme input[type="email"],
.site-footer__form .gform_wrapper.gravity-theme input[type="text"],
.site-footer__form .gform_wrapper.gform-theme input[type="email"],
.site-footer__form .gform_wrapper.gform-theme input[type="text"],
.site-footer__form .gform_wrapper input.large[type="email"],
.site-footer__form .gform_wrapper input.large[type="text"],
.site-footer__form input[type="email"],
.site-footer__form input[type="text"] {
	display: block;
	width: 100%;
	box-sizing: border-box;
	height: 36px;
	margin: 0 !important;
	padding: 0 21px !important;
	border: 0.5px solid var(--footer-muted) !important;
	border-radius: 12px !important;
	background-color: transparent !important;
	background-image: none !important;
	color: var(--footer-muted) !important;
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
	font-size: 0.875rem !important;
	line-height: 1.6 !important;
	box-shadow: none !important;
}

.site-footer__form .gform_wrapper input[type="email"]::placeholder,
.site-footer__form .gform_wrapper input[type="text"]::placeholder,
.site-footer__form input[type="email"]::placeholder,
.site-footer__form input[type="text"]::placeholder {
	color: #d6d6d6 !important;
	opacity: 1 !important;
}

.site-footer__form .gform_wrapper input[type="email"]:focus,
.site-footer__form .gform_wrapper input[type="text"]:focus,
.site-footer__form input[type="email"]:focus,
.site-footer__form input[type="text"]:focus {
	outline: 2px solid var(--footer-accent);
	outline-offset: 2px;
	background-color: transparent !important;
	color: var(--footer-muted) !important;
}

/* Neutralize WebKit autofill painting a white/yellow slab over the dark panel */
.site-footer__form .gform_wrapper input[type="email"]:-webkit-autofill,
.site-footer__form .gform_wrapper input[type="email"]:-webkit-autofill:hover,
.site-footer__form .gform_wrapper input[type="email"]:-webkit-autofill:focus,
.site-footer__form .gform_wrapper input[type="text"]:-webkit-autofill,
.site-footer__form .gform_wrapper input[type="text"]:-webkit-autofill:hover,
.site-footer__form .gform_wrapper input[type="text"]:-webkit-autofill:focus {
	-webkit-text-fill-color: var(--footer-muted) !important;
	caret-color: var(--footer-muted);
	box-shadow: 0 0 0 1000px var(--footer-bg) inset !important;
	transition: background-color 99999s ease-out 0s;
}

/* Submit control — inline field OR footer (GF switches by form setting) */
.site-footer__form .gfield--type-submit .ginput_container {
	display: inline-flex;
	flex-direction: row;
	align-items: center;
	gap: 14px;
	width: auto;
}

.site-footer__form .gfield--type-submit .ginput_container::after {
	content: "";
	display: block;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background-color: var(--footer-accent);
	flex-shrink: 0;
}

.site-footer__form .gform_footer.gform-footer,
.site-footer__form .gform_footer {
	flex: 0 0 auto;
	margin: 0 !important;
	padding: 0 !important;
	display: inline-flex;
	flex-direction: row;
	align-items: center;
	gap: 14px;
	align-self: center;
	position: relative;
	width: auto;
	justify-content: flex-end;
}

.site-footer__form .gform_footer input.button,
.site-footer__form .gform_footer input[type="submit"],
.site-footer__form .gform_footer .gform_button,
.site-footer__form .gfield--type-submit input.button,
.site-footer__form .gfield--type-submit input[type="submit"],
.site-footer__form .gfield--type-submit .gform_button,
.site-footer__form .gfield--type-submit button[type="submit"] {
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: none !important;
	box-shadow: none !important;
	font-family: "Roboto Condensed", system-ui, sans-serif !important;
	font-weight: 700 !important;
	font-size: 1.5rem !important;
	line-height: 1.4 !important;
	letter-spacing: 0.02em !important;
	text-transform: uppercase !important;
	color: #fff !important;
	cursor: pointer;
	appearance: none;
	border-radius: 0 !important;
	text-decoration: none !important;
	min-height: 0 !important;
	height: auto !important;
}

.site-footer__form .gform_footer input.button:hover,
.site-footer__form .gform_footer input[type="submit"]:hover,
.site-footer__form .gform_footer .gform_button:hover,
.site-footer__form .gfield--type-submit input[type="submit"]:hover,
.site-footer__form .gfield--type-submit .gform_button:hover,
.site-footer__form .gfield--type-submit button[type="submit"]:hover {
	color: var(--footer-accent) !important;
}

/* Accent dot only next to the visible submit (avoid orphan dot when submit is inline) */
.site-footer__form .gform_footer:has(input[type="submit"])::after,
.site-footer__form .gform_footer:has(button[type="submit"])::after {
	content: "";
	display: block;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background-color: var(--footer-accent);
	flex-shrink: 0;
}

/* Orbital default “link” style submit uses an icon + label inside <button> */
.site-footer__form .gfield--type-submit button.gform_button svg,
.site-footer__form .gfield--type-submit button[class*="gform-button"] svg,
.site-footer__form .gform_footer button.gform_button svg,
.site-footer__form .gform_footer button[class*="gform-button"] svg {
	display: none !important;
}

.site-footer__form .gform_ajax_spinner,
.site-footer__form .gform-spinner {
	margin-inline-start: 6px;
}

.site-footer__form .gform_validation_errors,
.site-footer__form .validation_message {
	width: 100%;
	flex-basis: 100%;
}

.site-footer__form .gform_validation_error .validation_error {
	margin-block-end: 0.5rem;
}

.site-footer__social {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 14px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-footer__social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background-color: var(--footer-accent);
	color: var(--footer-bg);
	text-decoration: none;
	transition: transform 0.15s ease, filter 0.15s ease;
}

.site-footer__social-link:hover {
	transform: translateY(-2px);
	filter: brightness(1.05);
}

.site-footer__social-link:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
}

.site-footer__social-icon {
	width: 22px;
	height: 22px;
}

/* Bottom bar */

.site-footer__bar {
	background-color: var(--footer-bar-bg);
	color: var(--footer-bar-text);
	margin-top: 0;
	padding-block: 10px;
	margin-inline: calc(-1 * var(--page-pad-x, 10px));
	padding-inline: var(--page-pad-x, 10px);
}

.site-footer__bar-inner {
	max-width: min(100%, var(--section-inner-max));
	margin-inline: auto;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem 1.5rem;
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 0.875rem;
	line-height: 1.6;
	font-weight: 500;
}

.site-footer__copyright {
	margin: 0;
}

.site-footer__legal {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 0.35rem 0.65rem;
	margin: 0;
}

.site-footer__legal-link {
	color: inherit;
	text-decoration: none;
	white-space: nowrap;
}

.site-footer__legal-link:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.site-footer__legal-sep {
	opacity: 0.65;
	user-select: none;
}

@media (max-width: 782px) {
	.site-footer__aside {
		align-items: stretch;
		margin-inline-start: 0;
	}

	.site-footer__social {
		justify-content: flex-start;
	}

	.site-footer__form form {
		flex-wrap: wrap;
	}

	.site-footer__form .gform_footer {
		align-self: flex-end;
	}

	.site-footer__bar-inner {
		flex-direction: column;
		align-items: flex-start;
	}

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