/*
 * Site Footer — contact card (lead form) over dark footer bar.
 *
 * Design source: Figma file o2Fw8rOZW4xOIEcs13IWzo, Group 23 starting at top:10904.
 * NEW widget — 2026-05-18, not yet in deploy ZIP.
 */

.greengrass-site-footer {
	font-family: 'Polin', sans-serif;
	direction: rtl;
	overflow-x: hidden; /* belt-and-suspenders: any unexpected child overflow is clipped here */
}

/* ── Contact section (cream wash around the gray card) ── */
.greengrass-site-footer__contact {
	padding-block: clamp(48px, 6vw, 96px);
	padding-inline: clamp(16px, 2vw, 48px);
	background: #FFFEF9;
}

.greengrass-site-footer__card {
	max-width: 1673px;
	margin-inline: auto;
	background: #E9E9E9;
	border-radius: 15px;
	padding: clamp(36px, 5vw, 72px) clamp(24px, 4vw, 80px);
	display: flex;
	flex-direction: column;
	gap: clamp(28px, 3vw, 45px);
}

.greengrass-site-footer__card-header {
	display: flex;
	flex-direction: column;
	gap: clamp(16px, 2vw, 30px);
	text-align: center;
}

.greengrass-site-footer__title {
	margin: 0;
	font-family: 'Polin', sans-serif;
	font-size: clamp(26px, 3.5vw, 55px);
	font-weight: 700;
	line-height: 1.05;
	color: #2C3D41;
	text-align: center;
}

.greengrass-site-footer__title .accent {
	color: #00A3E9;
}

.greengrass-site-footer__subtitle {
	margin: 0 auto;
	max-width: 792px;
	font-family: 'Polin', sans-serif;
	font-size: clamp(15px, 1.5vw, 24px);
	font-weight: 400;
	line-height: 1.2;
	color: #2C3D41;
	text-align: center;
}

/* ── Form ───────────────────────────────────────────── */
.greengrass-site-footer__form {
	display: flex;
	flex-direction: column;
	gap: clamp(12px, 1.4vw, 16px);
}

/* All fields + submit on one row (Figma: 5 equal-width pills, 16px gap). */
.greengrass-site-footer__fields {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: clamp(8px, 1vw, 16px);
}

.greengrass-site-footer__field {
	display: flex;
	min-width: 0;
}

.greengrass-site-footer__field > input {
	width: 100%;
	min-width: 0; /* let the input shrink below its default intrinsic size so the
	               * 5-column grid stays inside the card and can't push the page wider */
	height: 70px;
	padding: 0 clamp(16px, 1.6vw, 40px);
	background: #FFFFFF;
	border: 1px solid transparent;
	border-radius: 15px;
	font-family: 'Polin', sans-serif;
	font-size: clamp(16px, 1.5vw, 27px);
	font-weight: 400;
	line-height: 1.2;
	color: #2C3D41;
	letter-spacing: 0.02em;
	text-align: start;
	box-sizing: border-box;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.greengrass-site-footer__field > input:focus-visible {
	outline: none;
	border-color: #00A3E9;
	box-shadow: 0 0 0 3px rgba(0, 163, 233, 0.18);
}

.greengrass-site-footer__field > input::placeholder {
	color: rgba(44, 61, 65, 0.8);
}

.greengrass-site-footer__submit {
	height: 70px;
	padding: 0 clamp(16px, 1.6vw, 40px);
	background-color: #00A3E9;
	color: #F0F0F0;
	font-family: 'Polin', sans-serif;
	font-size: clamp(16px, 1.5vw, 27px);
	font-weight: 400;
	line-height: 1.2;
	letter-spacing: 0.02em;
	border: 0;
	border-radius: 15px;
	cursor: pointer;
	transition: background-color 0.15s ease, transform 0.15s ease, opacity 0.15s ease;
}

.greengrass-site-footer__submit:hover {
	background-color: #008cc7;
	transform: translateY(-1px);
}

.greengrass-site-footer__submit:disabled {
	opacity: 0.6;
	cursor: progress;
}

.greengrass-site-footer__honeypot {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* ── Privacy checkbox row — anchored to the card's logical-start edge
 * (visual-right in RTL) to match the Figma placement. */
.greengrass-site-footer__privacy {
	display: flex;
	justify-content: flex-start;
}

.greengrass-site-footer__privacy-label {
	display: inline-flex;
	align-items: center;
	gap: 11px;
	cursor: pointer;
	user-select: none;
	font-family: 'Polin', sans-serif;
	font-size: clamp(13px, 1.3vw, 18px);
	color: #18182D;
	line-height: 1.2;
}

.greengrass-site-footer__privacy-checkbox {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	accent-color: #18182D;
	cursor: pointer;
}

.greengrass-site-footer__privacy-text .accent {
	color: #00A3E9;
	text-decoration: underline;
}

/* ── Submission status ──────────────────────────────── */
.greengrass-site-footer__status {
	min-height: 1.4em;
	font-size: clamp(14px, 1.3vw, 18px);
	color: #2C3D41;
	text-align: center;
}

.greengrass-site-footer__status.is-success { color: #629C55; }
.greengrass-site-footer__status.is-error   { color: #c0392b; }

/* ── Dark footer bar ────────────────────────────────── */
.greengrass-site-footer__bar {
	background: #2C3D41;
	color: #F8FFFD;
	padding: clamp(36px, 4vw, 74px) clamp(16px, 2vw, 48px);
}

.greengrass-site-footer__bar-top {
	max-width: 1657px;
	margin-inline: auto;
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: flex-start;
	gap: clamp(24px, 4vw, 166px);
	padding-block-end: clamp(28px, 3vw, 56px);
}

.greengrass-site-footer__brand {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: clamp(12px, 1.4vw, 20px);
	flex-shrink: 0;
	text-align: start;
}

.greengrass-site-footer__brand-text {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.greengrass-site-footer__brand-wordmark {
	margin: 0;
	font-family: 'Polin', sans-serif;
	font-size: clamp(22px, 2.4vw, 44px);
	font-weight: 700;
	line-height: 1.2;
	color: inherit;
}

.greengrass-site-footer__brand-tagline {
	margin: 0;
	font-family: 'Polin', sans-serif;
	font-size: clamp(14px, 1.4vw, 24px);
	font-weight: 400;
	line-height: 1.2;
	color: inherit;
}

.greengrass-site-footer__brand-logo {
	flex-shrink: 0;
}

.greengrass-site-footer__brand-logo img {
	display: block;
	height: clamp(48px, 5vw, 80px);
	width: auto;
}

.greengrass-site-footer__nav {
	display: flex;
	flex-direction: row;
	gap: clamp(32px, 4vw, 166px);
}

.greengrass-site-footer__nav-col {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
	text-align: end; /* end in RTL = visual-left */
}

.greengrass-site-footer__nav-col a {
	color: inherit;
	text-decoration: none;
	font-family: 'Polin', sans-serif;
	font-size: clamp(15px, 1.4vw, 24px);
	font-weight: 400;
	line-height: 1.2;
	padding-block: 4px;
	transition: opacity 0.15s ease;
}

.greengrass-site-footer__nav-col a:hover {
	opacity: 0.8;
}

/* ── Bottom row ─────────────────────────────────────── */
.greengrass-site-footer__bar-bottom {
	max-width: 1667px;
	margin-inline: auto;
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
	gap: clamp(16px, 2vw, 49px);
	border-block-start: 1px solid rgba(248, 255, 253, 0.18);
	padding-block-start: clamp(20px, 2vw, 32px);
	font-family: 'Polin', sans-serif;
	font-size: clamp(14px, 1.4vw, 24px);
	font-weight: 400;
	line-height: 1.2;
	flex-wrap: wrap;
}

.greengrass-site-footer__credit,
.greengrass-site-footer__copyright {
	flex: 0 0 auto;
}

.greengrass-site-footer__credit a {
	color: inherit;
	text-decoration: none;
	transition: opacity 0.15s ease;
}

.greengrass-site-footer__credit a:hover {
	opacity: 0.8;
}

.greengrass-site-footer__legal {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: row;
	gap: clamp(12px, 1.4vw, 22px);
	flex: 0 0 auto;
}

.greengrass-site-footer__legal li + li::before {
	content: "|";
	display: inline-block;
	margin-inline-end: clamp(12px, 1.4vw, 22px);
	opacity: 0.6;
}

.greengrass-site-footer__legal a {
	color: inherit;
	text-decoration: none;
	transition: opacity 0.15s ease;
}

.greengrass-site-footer__legal a:hover {
	opacity: 0.8;
}

/* ── Screen reader only text ────────────────────────── */
.greengrass-site-footer .screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 960px) {
	.greengrass-site-footer__fields {
		grid-template-columns: repeat(2, 1fr);
	}
	.greengrass-site-footer__submit {
		grid-column: span 2;
	}
	.greengrass-site-footer__bar-top {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}
	/* Center the brand + nav so they match the centered copyright/legal rows. */
	.greengrass-site-footer__brand {
		justify-content: center;
		text-align: center;
	}
	.greengrass-site-footer__nav {
		justify-content: center;
		align-items: center;
	}
	.greengrass-site-footer__nav-col {
		text-align: center;
	}
	.greengrass-site-footer__bar-bottom {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}
}

@media (max-width: 540px) {
	.greengrass-site-footer__fields {
		grid-template-columns: 1fr;
	}
	.greengrass-site-footer__submit {
		grid-column: span 1;
	}
	.greengrass-site-footer__nav {
		flex-direction: column;
		gap: clamp(20px, 4vw, 32px);
	}
}
