/* ==========================================================================
   Footer Newsletter
   ========================================================================== */

.footer-right {
	display: flex;
	flex-direction: column;
	gap: 32px;
	max-width: 400px;
	width: 100%;
}

.footer-newsletter {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.footer-newsletter-subtitle {
	font-size: 13px;
	font-weight: var(--font-weight-regular);
	color: rgba(255, 255, 255, 0.6);
	line-height: var(--line-height-body);
	margin: 0;
}

/* Override Gravity Forms Orbital theme variables for the newsletter form */
.newsletter-form .gform_wrapper.gform-theme,
.newsletter-form [data-form-theme="orbital"] {
	--gf-color-primary: var(--color-primary);
	--gf-color-primary-rgb: 245, 183, 0;
	--gf-color-primary-contrast: var(--color-contrast);
	--gf-color-primary-darker: #e0a600;
	--gf-color-primary-lighter: #ffc933;
	--gf-ctrl-size-md: 42px;
	--gf-ctrl-btn-size-md: 42px;
	--gf-radius: var(--radius-small);
}

.newsletter-form .gform_wrapper {
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.newsletter-form .gform-body,
.newsletter-form .gform_body {
	display: block;
	flex: 1;
}

.newsletter-form .gform_fields {
	display: flex !important;
	flex-wrap: nowrap !important;
	align-items: flex-start;
	gap: 0 !important;
	grid-column-gap: 0 !important;
	grid-row-gap: 0 !important;
	row-gap: 0 !important;
	column-gap: 0 !important;
}

.newsletter-form form {
	display: block;
}

.newsletter-form .gfield {
	margin: 0 !important;
	padding: 0 !important;
	grid-column: auto !important;
}

.newsletter-form .gfield--type-email {
	flex: 1 1 auto;
	min-width: 0;
	position: relative;
}

.newsletter-form .gfield--type-submit {
	flex: 0 0 auto;
	height: 42px;
}

.newsletter-form .gfield--width-half {
	grid-column: auto !important;
	width: auto;
}

.newsletter-form .gfield--type-honeypot {
	position: absolute !important;
	left: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

.newsletter-form .gfield_label,
.newsletter-form .gform-field-label {
	display: none !important;
}

.newsletter-form .ginput_container {
	margin: 0 !important;
	display: flex;
	height: 100%;
}

.newsletter-form .gform_wrapper input[type="email"],
.newsletter-form .gform_wrapper input[type="text"] {
	height: 42px !important;
	padding: 0 14px !important;
	font-size: 14px !important;
	font-family: var(--font-primary) !important;
	border: 1px solid rgba(255, 255, 255, 0.2) !important;
	border-right: none !important;
	border-radius: var(--radius-small) 0 0 var(--radius-small) !important;
	background: rgba(255, 255, 255, 0.1) !important;
	color: var(--color-base) !important;
	min-width: 220px;
	width: 100%;
	outline: none;
	box-shadow: none !important;
	transition: border-color 0.2s ease, background-color 0.2s ease;
}

.newsletter-form .gform_wrapper input[type="email"]::placeholder,
.newsletter-form .gform_wrapper input[type="text"]::placeholder {
	color: rgba(255, 255, 255, 0.5);
}

.newsletter-form .gform_wrapper input[type="email"]:focus,
.newsletter-form .gform_wrapper input[type="text"]:focus {
	border-color: var(--color-primary) !important;
	background: rgba(255, 255, 255, 0.15) !important;
}

.newsletter-form .gfield--type-submit {
	display: flex;
}

.newsletter-form .gform_footer,
.newsletter-form .gform_page_footer {
	margin: 0 !important;
	padding: 0 !important;
	display: none;
}

.newsletter-form .gform_wrapper input[type="submit"],
.newsletter-form .gform_wrapper button[type="submit"],
.newsletter-form .gform-button {
	height: 42px !important;
	min-height: 42px !important;
	padding: 0 20px !important;
	font-size: 14px !important;
	font-weight: var(--font-weight-semi-bold) !important;
	font-family: var(--font-primary) !important;
	background-color: var(--color-primary) !important;
	color: var(--color-contrast) !important;
	border: 1px solid var(--color-primary) !important;
	border-radius: 0 var(--radius-small) var(--radius-small) 0 !important;
	cursor: pointer;
	white-space: nowrap;
	width: auto !important;
	box-shadow: none !important;
	transition: background-color 0.2s ease, border-color 0.2s ease;
}

.newsletter-form .gform_wrapper input[type="submit"]:hover,
.newsletter-form .gform_wrapper button[type="submit"]:hover,
.newsletter-form .gform-button:hover {
	background-color: #e0a600 !important;
	border-color: #e0a600 !important;
}

.newsletter-form .gform_validation_errors {
	order: -1;
	background: rgba(220, 38, 38, 0.1) !important;
	border: 1px solid rgba(220, 38, 38, 0.4) !important;
	border-radius: var(--radius-small) !important;
	padding: 8px 12px !important;
	margin: 0 !important;
	box-shadow: none !important;
}

.newsletter-form .gform_validation_errors .gform_submission_error,
.newsletter-form .gform_submission_error {
	font-size: 12px !important;
	font-weight: var(--font-weight-regular) !important;
	line-height: 1.4 !important;
	color: #ffb3b3 !important;
	margin: 0 !important;
	padding: 0 !important;
	display: flex;
	align-items: center;
	gap: 8px;
}

.newsletter-form .gform_submission_error .gform-icon {
	flex-shrink: 0;
}

.newsletter-form .gfield_validation_message,
.newsletter-form .validation_message {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	font-size: 12px !important;
	color: #ffb3b3 !important;
	background: transparent !important;
	border: none !important;
	padding: 6px 0 0 !important;
	margin: 0 !important;
}

.newsletter-form .gfield_error input[type="email"],
.newsletter-form .gfield_error input[type="text"] {
	border-color: rgba(220, 38, 38, 0.6) !important;
}

.newsletter-form .gform_confirmation_wrapper {
	background: transparent;
	border: none;
	padding: 0;
	margin: 0;
}

.newsletter-form .gform_confirmation_message {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 13px;
	font-family: var(--font-primary);
	line-height: 1.45;
	color: rgba(255, 255, 255, 0.85);
	padding: 10px 14px;
	background: rgba(145, 183, 143, 0.12);
	border: 1px solid rgba(145, 183, 143, 0.35);
	border-radius: var(--radius-small);
	margin: 0;
}

.newsletter-form .gform_confirmation_message::before {
	content: "";
	flex-shrink: 0;
	width: 16px;
	height: 16px;
	background-color: var(--color-secondary);
	-webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'><path d='M13.5 4L6 11.5L2.5 8' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / contain no-repeat;
	mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'><path d='M13.5 4L6 11.5L2.5 8' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / contain no-repeat;
}

.newsletter-form .gform_required_legend {
	display: none !important;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
	background-color: var(--color-contrast);
	padding: 80px 120px 40px 120px;
	font-family: var(--font-primary);
}

.site-footer-inner {
	max-width: var(--wide-width);
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 34px;
}

/* Footer Top Section */
.footer-top {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	width: 100%;
}

/* Brand Column */
.footer-brand {
	display: flex;
	flex-direction: column;
	gap: 20px;
	width: 600px;
}

.footer-logo img {
	height: auto;
	width: 90%;
	filter: brightness(0) invert(1);
}

.footer-tagline {
	font-size: 14px;
	font-weight: var(--font-weight-regular);
	color: rgba(255, 255, 255, 0.7);
	line-height: var(--line-height-body);
	margin: 0;
}

/* Links Row */
.footer-links-row {
	display: flex;
	gap: 80px;
}

/* Footer Column */
.footer-col {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.footer-col-links {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.4em;
}

.footer-col-links li {
	margin: 0;
	padding: 0;
	border: none;
}

.footer-col-links a {
	display: block;
	font-size: 13px;
	font-weight: var(--font-weight-regular);
	color: rgba(255, 255, 255, 0.7);
	text-decoration: underline;
	text-underline-offset: 3px;
	transition: color 0.2s ease;
}

.footer-col-links a:hover {
	color: var(--color-base);
}

/* Footer Divider */
.footer-divider {
	width: 100%;
	height: 1px;
	background-color: #2A2B25;
}

/* Footer Bottom Section */
.footer-bottom {
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100%;
}

.footer-copyright {
	font-size: 13px;
	font-weight: var(--font-weight-regular);
	color: rgba(255, 255, 255, 0.5);
	margin: 0;
}

.footer-bottom-links {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 24px;
}

.footer-bottom-links li {
	margin: 0;
	padding: 0;
	border: none;
}

.footer-bottom-links a {
	font-size: 13px;
	font-weight: var(--font-weight-regular);
	color: rgba(255, 255, 255, 0.5);
	text-decoration: underline;
	text-underline-offset: 3px;
	transition: color 0.2s ease;
}

.footer-bottom-links a:hover {
	color: var(--color-base);
}

/* Footer Responsive */
@media (max-width: 1024px) {
	.site-footer {
		padding: 60px 60px 40px 60px;
	}

	.footer-links-row {
		gap: 48px;
	}

	.footer-brand {
		width: 260px;
	}

}

@media (max-width: 768px) {
	.site-footer {
		padding: var(--spacing-medium) var(--spacing-gap);
	}

	.site-footer-inner {
		gap: 20px;
	}

	.footer-top {
		flex-direction: column;
		gap: 40px;
	}

	.footer-brand {
		width: 100%;
	}

	.footer-logo img {
		height: 44px;
	}

	.footer-links-row {
		flex-wrap: wrap;
		gap: 32px;
	}

	.footer-col {
		min-width: 140px;
	}

	.newsletter-form .gform_wrapper input[type="email"],
	.newsletter-form .gform_wrapper input[type="text"] {
		min-width: 0;
		flex: 1;
	}

	.footer-bottom {
		flex-direction: column;
		gap: 12px;
		text-align: center;
	}
}
