/* Site-wide footer. Everything is scoped under .wpm-footer; tokens match the landing pages. */

/* html:root outranks flatsome.css's `.absolute-footer, html` rule, which loads after this file. */
html:root {
	background-color: #F5F3F0; /* overscroll matches the footer instead of Flatsome's grey */
}

.wpm-footer {
	--wpm-surface: #FFFFFF;
	--wpm-surface-alt: #F5F3F0;
	--wpm-border: #E8E5E1;
	--wpm-text: #1A1918;
	--wpm-text-secondary: #6B6560;
	--wpm-primary: #2D7A4F;
	--wpm-primary-dark: #1E5A38;
	--wpm-primary-light: #E8F5EE;
	--wpm-accent-light: #FFF6EC;
	--wpm-accent-text: #8A4A0F;
	--wpm-radius-md: 10px;
	--wpm-focus: 0 0 0 3px rgba(45, 122, 79, .35);

	background: var(--wpm-surface-alt);
	border-top: 1px solid var(--wpm-border);
	color: var(--wpm-text-secondary);
	font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	font-size: 15px;
	font-weight: 400; /* Flatsome's typography sets body to 300 */
	line-height: 1.55;
	text-align: left;
}

.wpm-footer *,
.wpm-footer *::before,
.wpm-footer *::after {
	box-sizing: border-box;
}

.wpm-footer__inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 64px 24px 0;
}

.wpm-footer__top {
	display: flex;
	flex-wrap: wrap;
	gap: 48px;
	padding-bottom: 56px;
}

/* Brand column */
.wpm-footer__brand {
	flex: 1.5 1 320px;
	min-width: 0;
	max-width: 440px;
}

.wpm-footer .wpm-footer__logo-link {
	display: inline-block;
	border-radius: 6px;
}

.wpm-footer__logo {
	display: block;
	width: 150px;
	height: auto;
	max-width: 100%;
}

.wpm-footer p {
	margin: 0;
	padding: 0;
}

.wpm-footer .wpm-footer__tagline {
	margin-top: 16px;
	font-size: 15px;
	color: var(--wpm-text-secondary);
}

.wpm-footer .wpm-footer__trust {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 12px;
	font-size: 13.5px;
	font-weight: 500;
	color: var(--wpm-primary-dark);
}

.wpm-footer__trust svg {
	flex: none;
}

/* The site has `body.single-post p, body.single-post li { font-size: 18px !important }`, which would
   enlarge the footer on posts; these pin the footer's own sizes. */
.wpm-footer li { font-size: 15px !important; }
.wpm-footer .wpm-footer__tagline { font-size: 15px !important; }
.wpm-footer .wpm-footer__trust,
.wpm-footer .wpm-footer__copy { font-size: 13.5px !important; }
.wpm-footer .wpm-footer__nl-note { font-size: 13px !important; }

/* Link columns */
.wpm-footer__col {
	flex: 1 1 170px;
	min-width: 0;
}

.wpm-footer__col--plugins {
	flex: 1.2 1 240px;
}

.wpm-footer .wpm-footer__heading {
	margin: 0 0 18px;
	padding: 0;
	font-family: inherit;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: .07em;
	text-transform: uppercase;
	color: var(--wpm-text);
}

.wpm-footer ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.wpm-footer li {
	margin: 0;
	padding: 0;
	list-style: none;
}

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

.wpm-footer a {
	color: var(--wpm-text-secondary);
	text-decoration: none;
	transition: color .15s ease;
}

.wpm-footer a:hover {
	color: var(--wpm-primary-dark);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.wpm-footer a:focus-visible {
	outline: 2px solid var(--wpm-primary);
	outline-offset: 3px;
	border-radius: 4px;
	color: var(--wpm-primary-dark);
}

.wpm-footer .wpm-footer__list a {
	display: inline-block;
	font-size: 15px;
	line-height: 1.4;
}

.wpm-footer .wpm-nowrap {
	white-space: nowrap;
}

.wpm-footer .wpm-ext-icon {
	display: inline-block;
	margin-left: 3px;
	vertical-align: -1px;
}

/* Pills (menu item classes wpm-pill-freepro / wpm-pill-new) */
.wpm-footer .wpm-pill {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 999px;
	font-size: 11.5px;
	font-weight: 600;
	line-height: 1.5;
	letter-spacing: .01em;
	white-space: nowrap;
	margin-left: 8px;
	vertical-align: 1px;
}

.wpm-footer .wpm-pill--freepro {
	background: var(--wpm-primary-light);
	color: var(--wpm-primary-dark);
}

.wpm-footer .wpm-pill--new {
	background: var(--wpm-accent-light);
	color: var(--wpm-accent-text);
}

.wpm-footer a:hover .wpm-pill {
	text-decoration: none;
}

/* Bottom bar */
.wpm-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 12px 24px;
	padding: 22px 0 30px;
	border-top: 1px solid var(--wpm-border);
	font-size: 13.5px;
	color: var(--wpm-text-secondary);
}

.wpm-footer .wpm-footer__copy {
	font-size: 13.5px;
}

.wpm-footer .wpm-footer__legal-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
}

.wpm-footer .wpm-footer__legal-list a {
	font-size: 13.5px;
}

/* Tablet: the four columns need ~1092px, so the brand block takes its own row */
@media (min-width: 600px) and (max-width: 1099px) {
	.wpm-footer__top {
		gap: 48px 32px;
	}

	.wpm-footer__brand {
		flex: 1 1 100%;
		max-width: none;
	}

	.wpm-footer__brand > * {
		max-width: 480px;
	}

	.wpm-footer__col,
	.wpm-footer__col--plugins {
		flex: 1 1 0;
	}

	.wpm-footer__col--plugins {
		flex-grow: 1.3;
	}
}

/* Phone */
@media (max-width: 599px) {
	.wpm-footer__inner {
		padding: 48px 20px 0;
	}

	.wpm-footer__top {
		gap: 40px 24px;
		padding-bottom: 40px;
	}

	.wpm-footer__brand,
	.wpm-footer__col--plugins {
		flex: 1 1 100%;
		max-width: none;
	}

	.wpm-footer__col--resources,
	.wpm-footer__col--support {
		flex: 1 1 calc(50% - 12px);
	}

	.wpm-footer .wpm-footer__heading {
		margin-bottom: 4px;
	}

	.wpm-footer .wpm-footer__list {
		gap: 0;
	}

	/* 44px tap targets: 15px x 1.4 line + 2 x 12px padding */
	.wpm-footer .wpm-footer__list a {
		display: block;
		min-height: 44px;
		padding: 12px 0;
	}

	.wpm-footer .wpm-footer__legal-list a {
		display: inline-block;
		min-height: 44px;
		padding: 13px 0;
	}

	.wpm-footer__bottom {
		flex-direction: column-reverse;
		align-items: flex-start;
		gap: 4px;
		padding-top: 12px;
	}
}

/* Newsletter (Fluent Form 4), restyled inside the footer only */
.wpm-footer__newsletter {
	margin-top: 28px;
}

.wpm-footer .wpm-footer__nl-label {
	display: block;
	margin: 0 0 10px;
	font-size: 14px;
	font-weight: 600;
	color: var(--wpm-text);
}

.wpm-footer .fluentform,
.wpm-footer .fluentform form,
.wpm-footer #fluentform_4 {
	margin: 0 !important;
	padding: 0;
	font-family: inherit;
}

.wpm-footer .fluentform fieldset {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 0;
	padding: 0;
	border: 0;
	min-width: 0;
}

.wpm-footer .fluentform .ff-el-group {
	flex: 1 1 auto;
	min-width: 0;
	margin: 0;
}

.wpm-footer .fluentform .ff-el-input--label {
	display: none;
}

.wpm-footer .fluentform input.ff-el-form-control[type="email"] {
	width: 100%;
	height: 44px;
	margin: 0;
	padding: 0 14px;
	background: var(--wpm-surface);
	border: 1px solid var(--wpm-border);
	border-radius: var(--wpm-radius-md);
	box-shadow: none;
	color: var(--wpm-text);
	font-family: inherit;
	font-size: 15px;
	line-height: 1.4;
}

.wpm-footer .fluentform input.ff-el-form-control[type="email"]::placeholder {
	color: var(--wpm-text-secondary);
	opacity: 1;
}

.wpm-footer .fluentform input.ff-el-form-control[type="email"]:focus {
	border-color: var(--wpm-primary);
	box-shadow: var(--wpm-focus);
	outline: none;
}

.wpm-footer .fluentform .ff_submit_btn_wrapper {
	flex: none;
	margin: 0;
	padding: 0;
	text-align: left;
}

.wpm-footer form.fluent_form_4 .ff-btn-submit,
.wpm-footer form.fluent_form_4 .ff-btn-submit:not(.ff_btn_no_style) {
	height: 44px;
	margin: 0;
	padding: 0 20px;
	background-color: var(--wpm-primary);
	border: 0;
	border-radius: var(--wpm-radius-md);
	box-shadow: none;
	color: #FFFFFF;
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 44px;
	letter-spacing: 0;
	text-transform: none;
	opacity: 1;
	cursor: pointer;
}

.wpm-footer form.fluent_form_4 .ff-btn-submit:hover,
.wpm-footer form.fluent_form_4 .ff-btn-submit:not(.ff_btn_no_style):hover {
	background-color: var(--wpm-primary-dark);
	opacity: 1;
}

.wpm-footer form.fluent_form_4 .ff-btn-submit:focus-visible {
	outline: 2px solid var(--wpm-primary-dark);
	outline-offset: 2px;
}

.wpm-footer .fluentform .error,
.wpm-footer .fluentform .text-danger {
	margin-top: 6px;
	color: #B42318;
	font-size: 13px;
}

.wpm-footer .ff-message-success {
	margin: 0;
	padding: 12px 14px;
	background: var(--wpm-primary-light);
	border: 1px solid var(--wpm-border);
	border-radius: var(--wpm-radius-md);
	box-shadow: none;
	color: var(--wpm-primary-dark);
	font-size: 14px;
}

.wpm-footer .wpm-footer__nl-note {
	margin-top: 10px;
	font-size: 13px;
	color: var(--wpm-text-secondary);
}

@media (max-width: 599px) {
	.wpm-footer .fluentform fieldset {
		flex-direction: column;
		align-items: stretch;
	}

	.wpm-footer .fluentform input.ff-el-form-control[type="email"],
	.wpm-footer form.fluent_form_4 .ff-btn-submit,
	.wpm-footer form.fluent_form_4 .ff-btn-submit:not(.ff_btn_no_style) {
		width: 100%;
		height: 48px;
		font-size: 16px;
		line-height: 48px;
	}

	.wpm-footer .fluentform input.ff-el-form-control[type="email"] {
		line-height: 1.4;
	}
}
