/**
 * FARREACH global B2B frontend styles.
 * Shared tokens, overflow protection and the semantic global footer.
 */

body.farreach-child-active {
	--farreach-color-graphite: #111720;
	--farreach-color-black: #05070a;
	--farreach-color-white: #ffffff;
	--farreach-color-silver: #d9dee7;
	--farreach-color-soft-gray: #f4f6f9;
	--farreach-color-muted-red: #a03333;
	--farreach-color-text: #161b23;
	--farreach-color-muted: #667085;
	--farreach-shadow-soft: 0 18px 44px rgba(15, 23, 42, 0.08);
	--farreach-radius-card: 28px;
	--farreach-container: 1180px;

	--fr-graphite: #12161c;
	--fr-black: #07090c;
	--fr-ink: #1c222b;
	--fr-muted: #667085;
	--fr-line: #e5e7eb;
	--fr-soft: #f5f6f8;
	--fr-silver: #c8ced8;
	--fr-red: #9f2d2d;
	--fr-red-dark: #7e2424;
	overflow-x: clip;
}

html:has(body.farreach-child-active) {
	overflow-x: clip;
}

@supports not (overflow: clip) {
	body.farreach-child-active,
	html:has(body.farreach-child-active) {
		overflow-x: hidden;
	}
}

@supports not selector(:has(body)) {
	html {
		overflow-x: hidden;
	}
}

/**
 * Global Astra Header Builder presentation.
 *
 * The DOM, menu assignment, mobile toggle and accessibility behavior remain
 * owned by Astra/WordPress. This layer only establishes one FARREACH visual
 * system for every public template.
 */
body.farreach-child-active {
	--farreach-header-height: 82px;
}

body.farreach-child-active .site-header {
	position: sticky !important;
	top: 0;
	right: auto;
	left: auto;
	z-index: 9999;
	width: 100%;
	margin: 0;
	background: rgba(7, 11, 16, 0.95) !important;
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.07);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	transition: background-color 180ms ease, box-shadow 180ms ease;
}

body.admin-bar.farreach-child-active .site-header {
	top: 32px;
}

body.farreach-child-active.farreach-header-scrolled .site-header {
	background: rgba(5, 8, 12, 0.985) !important;
	box-shadow: 0 14px 36px rgba(0, 0, 0, 0.2), 0 1px 0 rgba(255, 255, 255, 0.08);
}

body.farreach-child-active .site-header {
	border: 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

body.farreach-child-active .site-header .main-header-bar,
body.farreach-child-active .site-header .ast-primary-header-bar,
body.farreach-child-active .site-header .ast-mobile-header-wrap .ast-primary-header-bar {
	border: 0;
	background: transparent !important;
}

body.farreach-child-active .site-header .site-primary-header-wrap.ast-container {
	width: min(1320px, calc(100% - 64px));
	max-width: 1320px;
	min-height: var(--farreach-header-height);
	margin-right: auto;
	margin-left: auto;
	padding-right: 0;
	padding-left: 0;
}

body.farreach-child-active .site-header .ast-builder-grid-row {
	min-height: var(--farreach-header-height);
	column-gap: clamp(22px, 3vw, 48px);
	align-items: center;
}

body.farreach-child-active .site-header .site-header-section {
	min-width: 0;
	align-items: center;
}

body.farreach-child-active .site-header .site-header-primary-section-right {
	gap: clamp(20px, 2.2vw, 34px);
	justify-content: flex-end;
}

body.farreach-child-active .site-header .site-branding,
body.farreach-child-active .site-header .ast-site-identity {
	width: auto;
	min-width: 0;
	margin: 0;
	padding: 0;
}

body.farreach-child-active .site-header .site-logo-img,
body.farreach-child-active .site-header .farreach-header-wordmark {
	display: block;
	line-height: 0;
}

body.farreach-child-active .site-header .farreach-header-wordmark {
	width: 184px;
	max-width: 100%;
	text-decoration: none;
}

body.farreach-child-active .site-header .farreach-header-wordmark img,
body.farreach-child-active .site-header .custom-logo-link img,
body.farreach-child-active .site-header img.custom-logo {
	display: block;
	width: 184px;
	max-width: 100%;
	height: auto;
	max-height: 35px;
	object-fit: contain;
	object-position: left center;
	filter: none;
}

/* Accessible fallback when Astra cannot apply the astra_logo filter. */
body.farreach-child-active .site-header .site-title a {
	display: block;
	width: 184px;
	height: 35px;
	overflow: hidden;
	background: url("../images/logo/farreach-wordmark-white.png") left center / contain no-repeat;
	color: transparent !important;
	font-size: 0 !important;
	line-height: 0;
	text-indent: -9999px;
}

body.farreach-child-active .site-header .main-header-menu,
body.farreach-child-active .site-header .ast-builder-menu-1 .main-header-menu {
	display: flex;
	gap: 2px;
	align-items: center;
	margin: 0;
	padding: 0;
}

body.farreach-child-active .site-header .main-header-menu > .menu-item > .menu-link,
body.farreach-child-active .site-header .ast-builder-menu-1 .menu-item > .menu-link {
	position: relative;
	display: inline-flex;
	height: var(--farreach-header-height);
	align-items: center;
	padding: 0 14px;
	background: transparent !important;
	color: rgba(255, 255, 255, 0.72) !important;
	font-size: 13px;
	font-weight: 650;
	letter-spacing: -0.005em;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
	transition: color 160ms ease;
}

body.farreach-child-active .site-header .main-header-menu > .menu-item > .menu-link:hover,
body.farreach-child-active .site-header .main-header-menu > .menu-item > .menu-link:focus-visible,
body.farreach-child-active .site-header .ast-builder-menu-1 .menu-item > .menu-link:hover,
body.farreach-child-active .site-header .ast-builder-menu-1 .menu-item > .menu-link:focus-visible,
body.farreach-child-active .site-header .current-menu-item > .menu-link,
body.farreach-child-active .site-header .current-menu-ancestor > .menu-link {
	color: #fff !important;
}

body.farreach-child-active .site-header .main-header-menu > .current-menu-item > .menu-link::after,
body.farreach-child-active .site-header .main-header-menu > .current-menu-ancestor > .menu-link::after {
	position: absolute;
	right: 14px;
	bottom: 18px;
	left: 14px;
	height: 2px;
	border-radius: 999px;
	background: #bd4545;
	content: "";
}

body.farreach-child-active .site-header a:focus-visible,
body.farreach-child-active .site-header button:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
}

body.farreach-child-active .site-header .ast-header-button-1,
body.farreach-child-active .site-header .ast-header-button-2 {
	margin: 0;
}

body.farreach-child-active .site-header .ast-header-button-1 .ast-custom-button-link,
body.farreach-child-active .site-header .ast-header-button-2 .ast-custom-button-link {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
}

body.farreach-child-active .site-header .ast-header-button-1 .ast-custom-button,
body.farreach-child-active .site-header .ast-header-button-2 .ast-custom-button {
	display: inline-flex;
	min-height: 44px;
	align-items: center;
	justify-content: center;
	padding: 11px 20px;
	border: 1px solid #a83b3b !important;
	border-radius: 999px;
	background: #a83b3b !important;
	box-shadow: none;
	color: #fff !important;
	font-size: 11px;
	font-weight: 750;
	letter-spacing: 0.055em;
	line-height: 1.2;
	text-transform: uppercase;
	transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

body.farreach-child-active .site-header .ast-header-button-1 .ast-custom-button-link:hover .ast-custom-button,
body.farreach-child-active .site-header .ast-header-button-1 .ast-custom-button-link:focus-visible .ast-custom-button,
body.farreach-child-active .site-header .ast-header-button-2 .ast-custom-button-link:hover .ast-custom-button,
body.farreach-child-active .site-header .ast-header-button-2 .ast-custom-button-link:focus-visible .ast-custom-button {
	border-color: #c75555 !important;
	background: #c04848 !important;
	transform: translateY(-1px);
}

body.farreach-child-active .site-header .ast-button-wrap .menu-toggle {
	display: inline-grid;
	width: 44px;
	height: 44px;
	padding: 0;
	place-items: center;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.04) !important;
	box-shadow: none;
	color: #fff !important;
}

body.farreach-child-active .site-header .ast-button-wrap .menu-toggle .ast-mobile-svg,
body.farreach-child-active .site-header .ast-button-wrap .menu-toggle svg {
	fill: currentColor;
}

body.farreach-child-active .site-header .ast-mobile-header-content,
body.farreach-child-active .ast-mobile-popup-drawer .ast-mobile-popup-inner {
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	background: rgba(7, 11, 16, 0.995) !important;
	color: #fff;
}

body.farreach-child-active .ast-mobile-popup-drawer .ast-mobile-popup-overlay {
	background: rgba(2, 5, 8, 0.58);
}

@media (max-width: 1100px) and (min-width: 922px) {
	body.farreach-child-active .site-header .site-primary-header-wrap.ast-container {
		width: calc(100% - 40px);
	}

	body.farreach-child-active .site-header .main-header-menu > .menu-item > .menu-link,
	body.farreach-child-active .site-header .ast-builder-menu-1 .menu-item > .menu-link {
		padding-right: 10px;
		padding-left: 10px;
		font-size: 12px;
	}

	body.farreach-child-active .site-header .ast-header-button-1 .ast-custom-button,
	body.farreach-child-active .site-header .ast-header-button-2 .ast-custom-button {
		padding-right: 16px;
		padding-left: 16px;
	}
}

@media (max-width: 921px) {
	body.farreach-child-active {
		--farreach-header-height: 72px;
	}

	body.farreach-child-active .site-header .site-primary-header-wrap.ast-container {
		width: calc(100% - 34px);
		min-height: var(--farreach-header-height);
	}

	body.farreach-child-active .site-header .ast-builder-grid-row {
		min-height: var(--farreach-header-height);
	}

	body.farreach-child-active .site-header .farreach-header-wordmark,
	body.farreach-child-active .site-header .site-title a {
		width: 164px;
		height: 32px;
	}

	body.farreach-child-active .site-header .farreach-header-wordmark img,
	body.farreach-child-active .site-header .custom-logo-link img,
	body.farreach-child-active .site-header img.custom-logo {
		width: 164px;
		max-height: 32px;
	}

	body.farreach-child-active .site-header .ast-mobile-header-content {
		max-height: calc(100vh - var(--farreach-header-height));
		overflow-x: hidden;
		overflow-y: auto;
		box-shadow: 0 24px 50px rgba(0, 0, 0, 0.3);
	}

	body.farreach-child-active .site-header .ast-builder-menu-mobile .main-navigation,
	body.farreach-child-active .site-header .ast-builder-menu-mobile .main-header-menu {
		width: 100%;
	}

	body.farreach-child-active .site-header .ast-builder-menu-mobile .main-header-menu {
		display: block;
		padding: 10px 17px 18px;
	}

	body.farreach-child-active .site-header .ast-builder-menu-mobile .main-navigation .menu-item > .menu-link {
		display: flex;
		min-height: 50px;
		align-items: center;
		padding: 0;
		border-bottom: 1px solid rgba(255, 255, 255, 0.08);
		background: transparent !important;
		color: rgba(255, 255, 255, 0.78) !important;
		font-size: 16px;
		font-weight: 650;
	}

	body.farreach-child-active .site-header .ast-builder-menu-mobile .main-navigation .current-menu-item > .menu-link,
	body.farreach-child-active .site-header .ast-builder-menu-mobile .main-navigation .current-menu-ancestor > .menu-link,
	body.farreach-child-active .site-header .ast-builder-menu-mobile .main-navigation .menu-item > .menu-link:hover,
	body.farreach-child-active .site-header .ast-builder-menu-mobile .main-navigation .menu-item > .menu-link:focus-visible {
		color: #fff !important;
	}

	body.farreach-child-active .site-header .ast-mobile-header-content .ast-header-button-1,
	body.farreach-child-active .site-header .ast-mobile-header-content .ast-header-button-2 {
		padding: 10px 17px 22px;
	}

	body.farreach-child-active .site-header .ast-mobile-header-content .ast-custom-button-link,
	body.farreach-child-active .site-header .ast-mobile-header-content .ast-custom-button {
		width: 100%;
	}
}

@media (max-width: 782px) {
	body.admin-bar.farreach-child-active .site-header {
		top: 46px;
	}
}

@media (max-width: 480px) {
	body.farreach-child-active .site-header .farreach-header-wordmark,
	body.farreach-child-active .site-header .site-title a {
		width: 148px;
		height: 29px;
	}

	body.farreach-child-active .site-header .farreach-header-wordmark img,
	body.farreach-child-active .site-header .custom-logo-link img,
	body.farreach-child-active .site-header img.custom-logo {
		width: 148px;
		max-height: 29px;
	}
}

/**
 * The legacy Astra footer widgets contain imported Sierra content and a
 * non-semantic text menu. The child theme now provides one real global footer
 * through Astra's footer hook; the below-footer copyright remains untouched.
 */
body.farreach-child-active .site-primary-footer-wrap {
	display: none !important;
}

body.farreach-child-active .fa-footer-contact-strip,
body.farreach-child-active .fa-footer-contact-strip * {
	box-sizing: border-box;
}

body.farreach-child-active .fa-footer-contact-strip {
	width: 100%;
	padding: clamp(44px, 5vw, 64px) 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.09);
	background: #0a0f15;
	color: #fff;
}

body.farreach-child-active .fa-footer-contact-wrap {
	display: grid;
	width: min(var(--farreach-container, 1180px), calc(100% - 64px));
	margin: 0 auto;
	grid-template-columns: minmax(280px, 1.15fr) minmax(170px, 0.55fr) minmax(270px, 0.8fr);
	gap: clamp(34px, 5vw, 68px);
	align-items: start;
}

body.farreach-child-active .fa-footer-wordmark {
	display: inline-block;
	color: #fff;
	font-size: 18px;
	font-weight: 850;
	letter-spacing: 0.16em;
	line-height: 1;
	text-decoration: none;
}

body.farreach-child-active .fa-footer-brand > p {
	max-width: 430px;
	margin: 18px 0 0;
	color: rgba(255, 255, 255, 0.55);
	font-size: 13px;
	line-height: 1.65;
}

body.farreach-child-active .fa-footer-label {
	margin: 1px 0 16px;
	color: #c67b7b;
	font-size: 9px;
	font-weight: 800;
	letter-spacing: 0.17em;
	text-transform: uppercase;
}

body.farreach-child-active .fa-footer-nav-list {
	display: grid;
	margin: 0;
	padding: 0;
	list-style: none;
	gap: 8px;
}

body.farreach-child-active .fa-footer-nav-list li {
	margin: 0;
	padding: 0;
}

body.farreach-child-active .fa-footer-nav-list a,
body.farreach-child-active .fa-footer-contact-meta a {
	color: rgba(255, 255, 255, 0.76);
	font-size: 12px;
	line-height: 1.45;
	text-decoration: none;
	transition: color 0.18s ease;
}

body.farreach-child-active .fa-footer-nav-list a:hover,
body.farreach-child-active .fa-footer-nav-list a:focus-visible,
body.farreach-child-active .fa-footer-contact-meta a:hover,
body.farreach-child-active .fa-footer-contact-meta a:focus-visible {
	color: #fff;
}

body.farreach-child-active .fa-footer-contact-meta {
	display: grid;
	gap: 7px;
	color: rgba(255, 255, 255, 0.5);
	font-size: 12px;
	line-height: 1.45;
}

body.farreach-child-active .fa-contact-channels-footer {
	display: grid;
	margin-top: 19px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 9px;
}

body.farreach-child-active .fa-contact-channels-footer .fa-contact-channel-card {
	display: grid;
	min-width: 0;
	padding: 7px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.03);
	grid-template-columns: 50px minmax(0, 1fr);
	gap: 9px;
	align-items: center;
}

body.farreach-child-active .fa-contact-channels-footer .fa-contact-channel-qr {
	padding: 3px;
	border-radius: 7px;
	background: #fff;
}

body.farreach-child-active .fa-contact-channels-footer img {
	display: block;
	width: 44px;
	height: 44px;
	object-fit: contain;
}

body.farreach-child-active .fa-contact-channels-footer p {
	margin: 0 0 2px;
	color: #fff;
	font-size: 10px;
	font-weight: 750;
}

body.farreach-child-active .fa-contact-channels-footer span {
	display: none;
}

body.farreach-child-active .fa-footer-contact-strip-contact {
	padding-top: 48px;
	padding-bottom: 48px;
}

@media (max-width: 900px) {
	body.farreach-child-active .fa-footer-contact-wrap {
		grid-template-columns: minmax(260px, 1.2fr) minmax(170px, 0.8fr);
	}

	body.farreach-child-active .fa-footer-direct {
		grid-column: 1 / -1;
	}

	body.farreach-child-active .fa-contact-channels-footer {
		max-width: 360px;
	}
}

@media (max-width: 600px) {
	body.farreach-child-active .fa-footer-contact-wrap {
		width: min(100% - 34px, var(--farreach-container, 1180px));
		grid-template-columns: 1fr;
		gap: 30px;
	}

	body.farreach-child-active .fa-footer-direct {
		grid-column: auto;
	}

	body.farreach-child-active .fa-footer-nav-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px 18px;
	}
}

@media (max-width: 390px) {
	body.farreach-child-active .fa-contact-channels-footer {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	body.farreach-child-active .fa-footer-nav-list a,
	body.farreach-child-active .fa-footer-contact-meta a {
		transition: none;
	}
}
