/* =========================================================
   2027 B2B Mix — custom header + footer (off-Divi chrome)
   Loaded on the front end via b2b_mix_chrome_assets().
   Pairs with header.php / footer.php and js/header.js.
   Tokens come from style.css; var() fallbacks keep it safe
   if the cascade order ever changes under minification.
   ========================================================= */

:root { --b2b-chrome-build: "2026-11-20-design"; }

/* Skip link (accessibility) — hidden until focused */
.b2b-skip {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 2000;
	background: var(--indigo-900, #1E1B4B);
	color: #fff;
	padding: 10px 16px;
	border-radius: 0 0 8px 0;
	font-family: var(--font-body, "Figtree", system-ui, sans-serif);
}
.b2b-skip:focus { left: 0; }

/* ---------- Header ---------- */
.b2b-header {
	position: sticky;
	top: 0;
	z-index: 900;
	background: var(--white, #fff);
	border-bottom: 1px solid var(--line, #E3EFEC);
}
.b2b-header__inner {
	max-width: var(--container, 1200px);
	margin: 0 auto;
	padding: 0 24px;
	min-height: 74px;
	display: flex;
	align-items: center;
	gap: 24px;
}
.b2b-header__brand { display: flex; align-items: center; margin-right: auto; }
.b2b-logo,
.b2b-header__brand a { display: inline-flex; align-items: center; line-height: 0; }
.b2b-logo img,
.b2b-header__brand img { display: block; height: 38px; width: auto; }
.b2b-logo--text {
	font-family: var(--font-display, "Bricolage Grotesque", sans-serif);
	font-weight: 700;
	font-size: 22px;
	color: var(--indigo-900, #1E1B4B);
	text-decoration: none;
	line-height: 1.1;
}

/* Desktop nav */
.b2b-header__nav .b2b-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	gap: 28px;
}
.b2b-header__nav .b2b-menu a {
	font-family: var(--font-body, "Figtree", system-ui, sans-serif);
	font-weight: 500;
	font-size: 16px;
	color: var(--text-strong, #2B2A3A);
	text-decoration: none;
	transition: color .15s ease;
}
.b2b-header__nav .b2b-menu a:hover,
.b2b-header__nav .b2b-menu .current-menu-item > a {
	color: var(--indigo-700, #2E2A8C);
}

/* Header CTA button (pill) */
.b2b-header__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 11px 22px;
	border-radius: var(--radius-pill, 999px);
	background: var(--indigo-700, #2E2A8C);
	color: #fff;
	font-family: var(--font-body, "Figtree", system-ui, sans-serif);
	font-weight: 600;
	font-size: 15px;
	text-decoration: none;
	white-space: nowrap;
	transition: background .15s ease, transform .15s ease;
}
.b2b-header__cta:hover { background: var(--indigo-900, #1E1B4B); color: #fff; }

/* Hamburger (hidden on desktop) */
.b2b-header__toggle {
	display: none;
	width: 44px;
	height: 44px;
	margin-right: -10px;
	padding: 0;
	background: none;
	border: 0;
	cursor: pointer;
	position: relative;
}
.b2b-header__burger,
.b2b-header__burger::before,
.b2b-header__burger::after {
	content: "";
	position: absolute;
	left: 10px;
	width: 24px;
	height: 2px;
	background: var(--indigo-900, #1E1B4B);
	border-radius: 2px;
	transition: transform .2s ease, opacity .2s ease, top .2s ease;
}
.b2b-header__burger { top: 50%; transform: translateY(-50%); }
.b2b-header__burger::before { top: -7px; }
.b2b-header__burger::after  { top: 7px; }
/* Animate to an X when open (header.js toggles aria-expanded) */
.b2b-header__toggle[aria-expanded="true"] .b2b-header__burger { background: transparent; }
.b2b-header__toggle[aria-expanded="true"] .b2b-header__burger::before { top: 0; transform: rotate(45deg); }
.b2b-header__toggle[aria-expanded="true"] .b2b-header__burger::after  { top: 0; transform: rotate(-45deg); }

/* Content wrapper (full width, so Divi/block sections aren't constrained) */
.b2b-main { display: block; }

/* ---------- Mobile slide-in menu ---------- */
.b2b-mobile {
	position: fixed;
	inset: 0;
	z-index: 1000;
	background: rgba(30, 27, 75, 0.45);
	opacity: 0;
	transition: opacity .3s ease;
}
.b2b-mobile.is-open { opacity: 1; }
.b2b-mobile__panel {
	position: absolute;
	top: 0;
	right: 0;
	height: 100%;
	width: min(86vw, 360px);
	background: var(--white, #fff);
	box-shadow: -10px 0 40px rgba(30, 27, 75, 0.2);
	transform: translateX(100%);
	transition: transform .3s ease;
	padding: 20px 24px 40px;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}
.b2b-mobile.is-open .b2b-mobile__panel { transform: translateX(0); }
.b2b-mobile__close {
	position: absolute;
	top: 12px;
	right: 14px;
	width: 40px;
	height: 40px;
	font-size: 30px;
	line-height: 1;
	background: none;
	border: 0;
	color: var(--indigo-900, #1E1B4B);
	cursor: pointer;
}
.b2b-mobile__nav ul {
	list-style: none;
	margin: 44px 0 0;
	padding: 0;
	display: flex;
	flex-direction: column;
}
.b2b-mobile__nav a {
	display: block;
	padding: 14px 0;
	font-family: var(--font-display, "Bricolage Grotesque", sans-serif);
	font-weight: 600;
	font-size: 20px;
	color: var(--indigo-900, #1E1B4B);
	text-decoration: none;
	border-bottom: 1px solid var(--line, #E3EFEC);
}
.b2b-mobile__nav a:hover { color: var(--indigo-700, #2E2A8C); }
/* Compound selector so it beats `.b2b-mobile__nav a` (the CTA sits inside the
   nav, which was forcing it to a left-aligned, full-bleed block). */
.b2b-mobile__nav a.b2b-mobile__cta {
	display: flex;
	width: 100%;
	box-sizing: border-box;
	align-items: center;
	justify-content: center;
	text-align: center;
	margin-top: 28px;
	padding: 15px 24px;
	border-radius: var(--radius-pill, 999px);
	background: var(--indigo-700, #2E2A8C);
	color: #fff !important;
	font-family: var(--font-body, "Figtree", system-ui, sans-serif);
	font-weight: 600;
	font-size: 17px;
	text-decoration: none;
	border-bottom: 0;
}
.b2b-mobile__nav a.b2b-mobile__cta:hover { background: var(--indigo-900, #1E1B4B); }

body.b2b-menu-open { overflow: hidden; }

/* Breakpoint: swap desktop nav for the hamburger */
@media (max-width: 900px) {
	.b2b-header__nav,
	.b2b-header__cta { display: none; }
	.b2b-header__toggle { display: block; }
	.b2b-header__inner { min-height: 64px; }
	.b2b-logo img,
	.b2b-header__brand img { height: 34px; }
}

/* ---------- Footer ---------- */
.b2b-footer {
	background: var(--indigo-900, #1E1B4B);
	color: var(--lilac-200, #D9D7FF);
}
.b2b-footer__inner {
	max-width: var(--container, 1200px);
	margin: 0 auto;
	padding: 64px 24px 44px;
	display: grid;
	grid-template-columns: 1.6fr 1fr 1fr;
	gap: 48px;
}
.b2b-footer__wordmark {
	display: inline-block;
	font-family: var(--font-display, "Bricolage Grotesque", sans-serif);
	font-weight: 700;
	font-size: 24px;
	color: #fff;
	text-decoration: none;
}
.b2b-footer__logo { display: inline-block; line-height: 0; }
.b2b-footer__logo img { display: block; height: 46px; width: auto; }
.b2b-footer__tagline {
	margin: 18px 0 0;
	max-width: 44ch;
	font-size: 15px;
	line-height: 1.65;
	color: var(--lilac-200, #D9D7FF);
}
.b2b-footer__contact { margin: 18px 0 0; font-size: 15px; }
.b2b-footer__contact a { color: #fff; text-decoration: none; }
.b2b-footer__social {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 22px 0 0;
	padding: 0;
}
.b2b-footer__social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	text-decoration: none;
	transition: background .15s ease, color .15s ease;
}
.b2b-footer__social a:hover { background: var(--teal-500, #2A9D8F); color: #fff; }
.b2b-footer__social .b2b-social-icon { display: block; }
.b2b-footer__heading {
	margin: 0 0 16px;
	font-family: var(--font-body, "Figtree", system-ui, sans-serif);
	font-weight: 700;
	font-size: 13px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #fff;
}
.b2b-footer__col .b2b-footer__list,
.b2b-footer__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 13px;
	font-size: 15px;
}
.b2b-footer__list a { color: var(--lilac-200, #D9D7FF); text-decoration: none; }
.b2b-footer__contact a:hover,
.b2b-footer__list a:hover { color: var(--teal-300, #5FC4B8); }
.b2b-footer__bar { border-top: 1px solid rgba(255, 255, 255, 0.12); }
.b2b-footer__barinner {
	max-width: var(--container, 1200px);
	margin: 0 auto;
	padding: 18px 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}
.b2b-footer__copy {
	margin: 0;
	font-size: 13px;
	color: var(--lilac-200, #D9D7FF);
}
.b2b-footer__cookies {
	background: none;
	border: 0;
	padding: 0;
	font-family: inherit;
	font-size: 13px;
	color: var(--lilac-200, #D9D7FF);
	cursor: pointer;
	text-decoration: underline;
	text-underline-offset: 3px;
}
.b2b-footer__cookies:hover { color: var(--teal-300, #5FC4B8); }

/* ---- Footer newsletter ----
   Rendered as a 4th footer column (see b2b_mix_footer_bar). The form stacks in
   the narrow column: heading, email field, full-width button, consent note.
   The footer grid only gains a fourth column when the newsletter is present. */
.b2b-footer__inner--news { grid-template-columns: 1.4fr 1fr 1fr 1.5fr; }
.b2b-footer__newscol { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.b2b-footer__newstitle {
	margin: 0;
	font-family: var(--font-display, "Bricolage Grotesque", sans-serif);
	font-weight: 700;
	font-size: 18px;
	line-height: 1.25;
	color: #fff;
}
.b2b-footer__newscol .b2b-foot-news { width: 100%; }

/* Dark-footer theming for the inline HubSpot form. In the narrow column it
   stacks naturally (field, button, consent note); the button fills the width. */
.b2b-foot-news .hs-form { gap: 12px; }
.b2b-foot-news .hs-form fieldset { max-width: none !important; }
.b2b-foot-news .hs-form fieldset.form-columns-1 .hs-form-field { width: 100% !important; float: none !important; }
.b2b-foot-news .hs-form-field > label { color: rgba(255, 255, 255, 0.8); font-size: 13px; font-weight: 600; }
.b2b-foot-news .hs-field-desc { color: rgba(255, 255, 255, 0.72); }
.b2b-foot-news input.hs-input {
	background: rgba(255, 255, 255, 0.1) !important;
	border-color: rgba(255, 255, 255, 0.25) !important;
	color: #fff !important;
	min-height: 50px;
}
.b2b-foot-news input.hs-input::placeholder { color: rgba(255, 255, 255, 0.72); }
.b2b-foot-news .hs-input:focus {
	border-color: var(--teal-300, #5FC4B8) !important;
	box-shadow: 0 0 0 3px rgba(95, 196, 184, 0.25) !important;
}
.b2b-foot-news .hs-button,
.b2b-foot-news input[type="submit"].hs-button {
	background: var(--coral-400, #FF8A6B) !important;
	color: var(--indigo-900, #1E1B4B) !important;
	width: 100%;
}
.b2b-foot-news .hs-button:hover,
.b2b-foot-news input[type="submit"].hs-button:hover { filter: brightness(1.05); background: var(--coral-400, #FF8A6B) !important; }
.b2b-foot-news .hs-error-msg,
.b2b-foot-news .hs-error-msgs label,
.b2b-foot-news label.hs-error-msg { color: #FFC2B4 !important; }
.b2b-foot-news .legal-consent-container,
.b2b-foot-news .hs-richtext,
.b2b-foot-news .hs-richtext p { color: rgba(255, 255, 255, 0.75); font-size: 12px; line-height: 1.5; margin: 0; }
.b2b-foot-news .hs-richtext a,
.b2b-foot-news .legal-consent-container a { color: #fff; text-decoration: underline; }
.b2b-foot-news .submitted-message { color: #fff; }

@media (max-width: 1080px) {
	.b2b-footer__inner--news { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 900px) {
	.b2b-footer__inner,
	.b2b-footer__inner--news {
		grid-template-columns: 1fr;
		gap: 36px;
		padding: 48px 24px 36px;
	}
}
