:root {
	--ft-green: #4F6F45;
	--ft-green-dark: #3f5b37;
	--ft-green-soft: #eef3eb;
	--ft-ink: #20251f;
	--ft-muted: #71786f;
	--ft-line: #e4e8e1;
	--ft-surface: #ffffff;
	--ft-soft: #f7f8f6;
	--ft-header-height: 76px;
	--ft-wrap: 1380px;
}

/* GeneratePress remains the parent theme. These selectors are only a final
 * visual guard against native navigation variants added by GP Premium. */
.ft-custom-header-active #site-navigation,
.ft-custom-header-active #mobile-header,
.ft-custom-header-active > #secondary-navigation,
.ft-custom-header-active #ft-header ~ #secondary-navigation {
	display: none !important;
}

.ft-header,
.ft-header *,
.ft-search,
.ft-search * {
	box-sizing: border-box;
}

/* Top bar above the sticky header; it scrolls away with the page. */
.ft-topbar {
	width: 100%;
	padding: 8px 16px;
	background: #6E7D4E;
	color: #fff;
	text-align: center;
}

.ft-topbar__text {
	margin: 0;
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.35;
}

.ft-header {
	position: sticky;
	top: 0;
	z-index: 900;
	width: 100%;
	background: #fff;
	border-bottom: 1px solid var(--ft-line);
	box-shadow: 0 4px 20px rgba(27, 36, 25, .035);
}

.admin-bar .ft-header { top: 32px; }

.ft-header__main,
.ft-header__inner { width: 100%; }

.ft-header__inner {
	width: min(calc(100% - 40px), var(--ft-wrap));
	min-height: var(--ft-header-height);
	margin: 0 auto;
	display: flex;
	align-items: center;
	gap: 22px;
}

.ft-header__brand {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	min-width: 0;
}

.ft-header__brand .custom-logo-link {
	display: flex;
	align-items: center;
	line-height: 0;
}

.ft-header__brand .custom-logo,
.ft-header__brand img {
	display: block;
	width: auto;
	max-width: 195px;
	max-height: 48px;
	height: auto;
}

.ft-header__site-title {
	color: var(--ft-ink);
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.1;
	text-decoration: none;
}

.ft-icon {
	display: block;
	flex: 0 0 auto;
}

.ft-icon-button {
	width: 42px;
	height: 42px;
	padding: 0;
	display: inline-grid;
	place-items: center;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--ft-ink);
	font: inherit;
	cursor: pointer;
}

.ft-icon-button:hover,
.ft-icon-button:focus-visible {
	background: var(--ft-green-soft);
	color: var(--ft-green);
}

.ft-header__burger { display: none; }

/* -------------------------------------------------------------------------
 * Navigation
 * ---------------------------------------------------------------------- */
.ft-nav--desktop {
	flex: 1 1 auto;
	min-width: 0;
	width: 100%;
}

.ft-submenu-toggle { display: none; }
.ft-mobile-nav-shell[hidden] { display: none !important; }
.ft-mobile-nav-shell { display: none; }

.ft-nav__list,
.ft-nav__list ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.ft-nav__list {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: clamp(4px, .8vw, 16px);
}

.ft-nav__list li { position: relative; }

.ft-nav__list > li > a {
	position: relative;
	display: block;
	padding: 11px 2px;
	color: var(--ft-ink);
	font-size: 14.5px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
	transition: color .16s ease;
}

.ft-nav__list > li > a::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 4px;
	width: 0;
	height: 2px;
	border-radius: 999px;
	background: var(--ft-green);
	transform: translateX(-50%);
	transition: width .16s ease;
}

.ft-nav__list > li > a:hover,
.ft-nav__list > li:focus-within > a,
.ft-nav__list > li.current-menu-item > a,
.ft-nav__list > li.current-menu-ancestor > a,
.ft-nav__list > li.current-menu-parent > a {
	color: var(--ft-green-dark);
}

.ft-nav__list > li > a:hover::after,
.ft-nav__list > li:focus-within > a::after,
.ft-nav__list > li.current-menu-item > a::after,
.ft-nav__list > li.current-menu-ancestor > a::after,
.ft-nav__list > li.current-menu-parent > a::after {
	width: 22px;
}

.ft-nav__list .sub-menu {
	position: absolute;
	top: calc(100% + 7px);
	left: -12px;
	z-index: 30;
	min-width: 225px;
	padding: 8px;
	background: #fff;
	border: 1px solid var(--ft-line);
	border-radius: 14px;
	box-shadow: 0 18px 50px rgba(25, 34, 22, .14);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-4px);
	transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}

.ft-nav__list li:hover > .sub-menu,
.ft-nav__list li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.ft-nav__list .sub-menu a {
	display: flex;
	align-items: center;
	min-height: 40px;
	padding: 8px 11px;
	border-radius: 9px;
	color: var(--ft-ink);
	font-size: 14px;
	font-weight: 550;
	line-height: 1.25;
	text-decoration: none;
}

.ft-nav__list .sub-menu a:hover,
.ft-nav__list .sub-menu a:focus-visible {
	background: var(--ft-soft);
	color: var(--ft-green-dark);
}

.ft-nav__list .sub-menu .sub-menu {
	top: -8px;
	left: calc(100% + 8px);
}

/* -------------------------------------------------------------------------
 * Product search trigger -- same pattern as the reference theme.
 * ---------------------------------------------------------------------- */
.ft-header__search-trigger {
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	/* Keep its width: the centered menu has room to give. */
	flex: 0 0 auto;
	width: clamp(190px, 22vw, 290px);
	min-width: 0;
	height: 44px;
	padding: 0 6px 0 16px;
	border: 1px solid var(--ft-line);
	border-radius: 999px;
	background: #fff;
	color: var(--ft-muted);
	font-size: 14px;
	line-height: 1;
	text-decoration: none;
	transition: border-color .16s ease, color .16s ease, box-shadow .16s ease;
}

.ft-header__search-trigger:hover,
.ft-header__search-trigger:focus-visible {
	border-color: var(--ft-green);
	color: var(--ft-green-dark);
	box-shadow: 0 0 0 3px rgba(79, 111, 69, .08);
}

.ft-header__search-label {
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.ft-header__search-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 32px;
	height: 32px;
	border-radius: 999px;
	background: var(--ft-green);
	color: #fff;
}

.ft-header__search-icon .ft-icon {
	width: 17px;
	height: 17px;
}

/* -------------------------------------------------------------------------
 * Phone shortcode button and account link
 * ---------------------------------------------------------------------- */
.ft-header__actions {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	gap: 8px;
}

.ft-header__account {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	height: 44px;
	padding: 0 12px;
	border-radius: 999px;
	color: var(--ft-ink);
	font-size: 14px;
	font-weight: 650;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
	transition: background .16s ease, color .16s ease;
}

.ft-header__account:hover,
.ft-header__account:focus-visible {
	background: var(--ft-green-soft);
	color: var(--ft-green-dark);
}

.ft-header__account .ft-icon {
	width: 21px;
	height: 21px;
}

.ft-header__call {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	min-width: 128px;
	height: 44px;
	padding: 0 17px 0 14px;
	border-radius: 999px;
	background: #4F6F45;
	color: #fff;
	box-shadow: 0 8px 24px rgba(79, 111, 69, .18);
	overflow: hidden;
	transition: background .16s ease, transform .16s ease;
}

.ft-header__call:hover {
	background: var(--ft-green-dark);
	transform: translateY(-1px);
}

.ft-header__call-icon {
	position: relative;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	pointer-events: none;
}

.ft-header__call-icon .ft-icon { width: 19px; height: 19px; }

.ft-header__call-content {
	display: inline-flex;
	align-items: center;
	min-width: 0;
}

.ft-header__call-content a {
	position: static !important;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	color: #fff !important;
	font-size: 14px !important;
	font-weight: 750 !important;
	line-height: 1 !important;
	text-decoration: none !important;
	white-space: nowrap;
}

.ft-header__call-content a::before {
	content: none !important;
	display: none !important;
}

.ft-header__call-content a > svg,
.ft-header__call-content a > i {
	display: none !important;
}

.ft-header__call-content a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.ft-header__call-content a:hover,
.ft-header__call-content a:focus,
.ft-header__call-content a:focus-visible {
	background: transparent !important;
	color: #fff !important;
}

/* -------------------------------------------------------------------------
 * Search overlay
 * ---------------------------------------------------------------------- */
.ft-search[hidden] { display: none !important; }

.ft-search {
	position: fixed;
	inset: 0;
	z-index: 2000;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: 92px 24px 32px;
}

.ft-search__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 19, 14, .45);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
}

.ft-search__dialog {
	position: relative;
	z-index: 1;
	width: min(760px, 100%);
	max-height: min(720px, calc(100vh - 124px));
	display: flex;
	flex-direction: column;
	background: var(--ft-surface);
	border: 1px solid rgba(255, 255, 255, .72);
	border-radius: 22px;
	box-shadow: 0 30px 90px rgba(15, 19, 14, .26);
	overflow: hidden;
}

.ft-search__top {
	min-height: 62px;
	padding: 0 18px 0 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	border-bottom: 1px solid var(--ft-line);
}

.ft-search__title {
	margin: 0;
	color: var(--ft-ink);
	font-size: 18px;
	font-weight: 700;
}

.ft-search__form { padding: 18px 24px 12px; margin: 0; }

.ft-search__field {
	height: 54px;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 0 8px 0 16px;
	border: 1px solid #d9ddd6;
	border-radius: 15px;
	background: #fff;
	transition: box-shadow .18s ease, border-color .18s ease;
}

.ft-search__field:focus-within {
	border-color: var(--ft-green);
	box-shadow: 0 0 0 4px rgba(79, 111, 69, .10);
}

.ft-search__field > .ft-icon { color: var(--ft-muted); }

.ft-search__input {
	min-width: 0;
	flex: 1 1 auto;
	height: 100%;
	padding: 0 !important;
	border: 0 !important;
	outline: 0 !important;
	box-shadow: none !important;
	background: transparent !important;
	color: var(--ft-ink) !important;
	font-size: 16px !important;
}

.ft-search__submit {
	height: 38px;
	padding: 0 17px;
	border: 0;
	border-radius: 10px;
	background: var(--ft-green);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
}

.ft-search__submit:hover,
.ft-search__submit:focus-visible { background: var(--ft-green-dark); }

.ft-search__body {
	overflow-y: auto;
	padding: 8px 24px 26px;
}

.ft-search__section-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.ft-search__scope-bar {
	margin-bottom: 24px;
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.ft-search__section-title {
	margin: 0 0 11px;
	color: var(--ft-muted);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.ft-search__scope-bar .ft-search__section-title { margin: 0; }

.ft-search__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.ft-search__chip {
	min-height: 38px;
	padding: 8px 14px;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	border: 1px solid var(--ft-line);
	border-radius: 999px;
	background: var(--ft-soft);
	color: var(--ft-ink);
	font-size: 14px;
	font-weight: 650;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background .18s ease, border-color .18s ease, color .18s ease;
}

.ft-search__chip:hover,
.ft-search__chip:focus-visible {
	border-color: #c5cec0;
	background: var(--ft-green-soft);
	color: var(--ft-green-dark);
}

.ft-search__scope-buttons {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 8px;
}

.ft-search__chip--scope[aria-pressed="true"] {
	background: var(--ft-green);
	border-color: var(--ft-green);
	color: #fff;
}

.ft-search__chip--scope .ft-icon { width: 17px; height: 17px; }

.ft-search__mode-hint {
	padding: 10px 2px 2px;
	color: var(--ft-muted);
	font-size: 14px;
}

.ft-search__mode-hint[hidden] { display: none !important; }
.ft-search__mode-hint p { margin: 0; }

.ft-search__results[hidden] { display: none !important; }
.ft-search__group + .ft-search__group { margin-top: 22px; }

.ft-search__group-title {
	margin: 0 0 8px;
	color: var(--ft-muted);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.ft-search__options { display: grid; gap: 3px; }

.ft-search__option {
	min-height: 52px;
	padding: 9px 11px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	border-radius: 11px;
	color: var(--ft-ink);
	text-decoration: none;
}

.ft-search__option:hover,
.ft-search__option:focus-visible,
.ft-search__option[aria-selected="true"] {
	background: var(--ft-soft);
	color: var(--ft-ink);
}

.ft-search__option-copy { min-width: 0; display: grid; gap: 3px; }
.ft-search__option-title { font-size: 15px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ft-search__option-meta { color: var(--ft-muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ft-search__option > .ft-icon { width: 18px; height: 18px; color: #92998f; }

.ft-search__empty {
	margin: 0;
	padding: 22px 10px;
	color: var(--ft-muted);
	font-size: 14px;
	text-align: center;
}

.ft-search__result-footer {
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px solid var(--ft-line);
}

.ft-search__all {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	color: var(--ft-green-dark);
	font-size: 14px;
	font-weight: 750;
	text-decoration: none;
}

.ft-search.is-loading .ft-search__listbox { opacity: .45; }
.ft-search__listbox { transition: opacity .15s ease; }

.ft-header a:focus-visible,
.ft-header button:focus-visible,
.ft-mobile-nav a:focus-visible,
.ft-mobile-nav button:focus-visible,
.ft-search a:focus-visible,
.ft-search button:focus-visible,
.ft-search input:focus-visible {
	outline: 2px solid var(--ft-green);
	outline-offset: 2px;
}

body.ft-layer-open { overflow: hidden; }

/* -------------------------------------------------------------------------
 * Laptop
 * ---------------------------------------------------------------------- */
@media (max-width: 1439px) {
	.ft-header__inner { gap: 15px; }
	.ft-nav__list { gap: clamp(2px, .45vw, 9px); }
	.ft-nav__list > li > a { font-size: 14px; }
	.ft-header__search-trigger { width: clamp(160px, 16vw, 225px); padding-left: 13px; }
	.ft-header__call { min-width: 116px; }
}

/* -------------------------------------------------------------------------
 * Mobile/off-canvas navigation
 * ---------------------------------------------------------------------- */
@media (max-width: 1199px) {
	:root { --ft-header-height: 64px; }

	.ft-header__inner {
		width: min(calc(100% - 28px), var(--ft-wrap));
		min-height: var(--ft-header-height);
		gap: 7px;
	}

	.ft-header__burger { display: inline-grid; flex: 0 0 auto; }
	.ft-header__brand { flex: 0 0 auto; margin-right: auto; }
	.ft-header__brand .custom-logo,
	.ft-header__brand img { max-width: 175px; max-height: 42px; }
	.ft-nav--desktop { display: none; }

	.ft-mobile-nav-shell {
		position: fixed;
		inset: 0;
		z-index: 2100;
		display: none;
	}

	.ft-mobile-nav-shell.is-open { display: block; }

	.ft-mobile-nav__backdrop {
		position: absolute;
		inset: 0;
		width: 100%;
		height: 100%;
		padding: 0;
		border: 0;
		background: rgba(15, 19, 14, .46);
		backdrop-filter: blur(2px);
		-webkit-backdrop-filter: blur(2px);
		cursor: default;
	}

	.ft-mobile-nav {
		position: absolute;
		inset: 0 auto 0 0;
		width: min(390px, calc(100% - 42px));
		padding: 14px 14px 28px;
		background: #fff;
		color: var(--ft-ink);
		box-shadow: 20px 0 60px rgba(15, 19, 14, .18);
		overflow-y: auto;
		overscroll-behavior: contain;
		-webkit-overflow-scrolling: touch;
	}

	.admin-bar .ft-mobile-nav { top: 32px; }

	.ft-mobile-nav__head {
		height: 52px;
		padding: 0 2px 8px 12px;
		display: flex;
		align-items: center;
		justify-content: space-between;
		border-bottom: 1px solid var(--ft-line);
	}

	.ft-mobile-nav__title { font-size: 18px; }
	.ft-mobile-nav__list,
	.ft-mobile-nav__list ul {
		list-style: none !important;
		margin: 0 !important;
		padding: 0;
	}

	.ft-mobile-nav__list {
		display: block !important;
		padding-top: 12px;
		visibility: visible !important;
		opacity: 1 !important;
		transform: none !important;
	}

	.ft-mobile-nav__list li {
		position: relative;
		display: block !important;
		visibility: visible !important;
		opacity: 1 !important;
	}

	.ft-mobile-nav__list > li { border-bottom: 1px solid #f0f2ee; }

	.ft-mobile-nav__list > li > a,
	.ft-mobile-nav__list .sub-menu a {
		display: flex !important;
		align-items: center;
		min-height: 48px;
		padding: 14px 44px 14px 12px;
		border-radius: 9px;
		background: transparent !important;
		color: var(--ft-ink) !important;
		font-size: 15px;
		font-weight: 650;
		line-height: 1.25;
		text-decoration: none !important;
		white-space: normal;
		visibility: visible !important;
		opacity: 1 !important;
	}

	.ft-mobile-nav__list a:hover,
	.ft-mobile-nav__list a:focus-visible {
		background: var(--ft-soft) !important;
		color: var(--ft-green-dark) !important;
	}

	.ft-submenu-toggle {
		position: absolute;
		top: 5px;
		right: 4px;
		display: inline-grid;
		place-items: center;
		width: 38px;
		height: 38px;
		padding: 0;
		border: 0;
		border-radius: 9px;
		background: transparent;
		color: var(--ft-muted);
		cursor: pointer;
	}

	.ft-submenu-toggle .ft-icon { width: 17px; height: 17px; transition: transform .16s ease; }
	.ft-mobile-nav__list li.is-submenu-open > .ft-submenu-toggle .ft-icon { transform: rotate(180deg); }

	.ft-mobile-nav__list .sub-menu,
	.ft-mobile-nav__list .sub-menu .sub-menu {
		position: static !important;
		display: none !important;
		min-width: 0 !important;
		margin: 0 0 8px 12px !important;
		padding: 0 0 0 10px !important;
		border: 0 !important;
		border-left: 2px solid var(--ft-line) !important;
		border-radius: 0 !important;
		box-shadow: none !important;
		opacity: 1 !important;
		visibility: visible !important;
		transform: none !important;
		background: transparent !important;
	}

	.ft-mobile-nav__list li.is-submenu-open > .sub-menu { display: block !important; }
	.ft-mobile-nav__list .sub-menu a {
		min-height: 42px;
		padding-top: 10px;
		padding-bottom: 10px;
		color: var(--ft-muted) !important;
		font-size: 14px;
		font-weight: 600;
	}

	.ft-header__search-trigger {
		flex: 0 0 auto;
		justify-content: center;
		width: 42px;
		height: 42px;
		padding: 0;
		border-color: transparent;
		background: transparent;
		box-shadow: none;
	}

	.ft-header__search-label {
		position: absolute;
		width: 1px;
		height: 1px;
		margin: -1px;
		padding: 0;
		overflow: hidden;
		clip-path: inset(50%);
		white-space: nowrap;
	}

	.ft-header__search-icon {
		width: auto;
		height: auto;
		background: transparent;
		color: var(--ft-ink);
	}

	.ft-header__search-trigger:hover .ft-header__search-icon { color: var(--ft-green); }
	.ft-header__search-icon .ft-icon { width: 20px; height: 20px; }

	.ft-header__call { display: none; }

	.ft-header__actions { gap: 2px; }

	/* Icon only; the label stays for screen readers. */
	.ft-header__account {
		justify-content: center;
		width: 42px;
		height: 42px;
		padding: 0;
	}

	.ft-header__account-label {
		position: absolute;
		width: 1px;
		height: 1px;
		margin: -1px;
		padding: 0;
		overflow: hidden;
		clip-path: inset(50%);
		white-space: nowrap;
	}
}

@media (max-width: 700px) {
	.ft-topbar { padding: 7px 12px; }
	.ft-topbar__text { font-size: 13px; }
	.admin-bar .ft-header { top: 46px; }
	.admin-bar .ft-mobile-nav { top: 46px; }
	.ft-header__inner { width: calc(100% - 20px); }
	.ft-header__brand .custom-logo,
	.ft-header__brand img { max-width: 145px; max-height: 38px; }

	.ft-search { padding: 0; }
	.ft-search__dialog { width: 100%; height: 100%; max-height: none; border: 0; border-radius: 0; }
	.ft-search__top { padding-left: 18px; }
	.ft-search__form { padding: 14px 14px 8px; }
	.ft-search__body { padding: 8px 14px 24px; }
	.ft-search__submit { padding: 0 12px; }
}

@media (max-width: 390px) {
	.ft-header__brand .custom-logo,
	.ft-header__brand img { max-width: 118px; }
	.ft-header__inner { gap: 4px; }
	.ft-icon-button,
	.ft-header__search-trigger,
	.ft-header__account { width: 40px; min-width: 40px; height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
	.ft-header *,
	.ft-search * {
		scroll-behavior: auto !important;
		transition-duration: .001ms !important;
		animation-duration: .001ms !important;
	}
}
