/* =========================================================
   BALANCE FIT BOARD — GLOBAL V2.3
   ========================================================= */

:root {
	--bfb-cream: #DDD7C9;
	--bfb-taupe: #C6B8A8;
	--bfb-gray: #8A867F;
	--bfb-dark: #2C2C2C;
	--bfb-green: #6F7865;
	--bfb-brown: #B79E7D;
	--bfb-paper: #F4F1EA;

	--bfb-dark-86: rgba(44,44,44,.86);
	--bfb-dark-68: rgba(44,44,44,.68);
	--bfb-dark-16: rgba(44,44,44,.16);
	--bfb-paper-92: rgba(244,241,234,.92);

	--bfb-display: "Poppins", Arial, sans-serif;
	--bfb-body: "Manrope", Arial, sans-serif;

	--bfb-max: 1380px;
	--bfb-copy: 760px;
	--bfb-gutter: clamp(20px, 4.2vw, 64px);
	--bfb-section: clamp(86px, 9vw, 150px);

	--bfb-radius: 30px;
	--bfb-pill: 999px;
	--bfb-ease: cubic-bezier(.22,.61,.36,1);
	--bfb-shadow: 0 30px 80px rgba(44,44,44,.12);
}

html {
	scroll-behavior: smooth;
}

body.bfb-site {
	margin: 0;
	background: var(--bfb-paper);
	color: var(--bfb-dark);
	font-family: var(--bfb-body);
	font-size: 16px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

.bfb-site *,
.bfb-site *::before,
.bfb-site *::after {
	box-sizing: border-box;
}

.bfb-site img {
	display: block;
	max-width: 100%;
	height: auto;
}

.bfb-site a {
	text-underline-offset: 3px;
}

.bfb-shell,
.bfb-v2-shell {
	width: min(calc(100% - (var(--bfb-gutter) * 2)), var(--bfb-max));
	margin-inline: auto;
}

.bfb-content-shell {
	width: min(calc(100% - (var(--bfb-gutter) * 2)), 920px);
	margin-inline: auto;
}

.bfb-main {
	width: 100%;
	min-height: 60vh;
	overflow: clip;
}

.bfb-sr-only {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

.bfb-skip-link {
	position: fixed;
	z-index: 99999;
	top: 14px;
	left: 14px;
	padding: 12px 16px;
	border-radius: 8px;
	background: var(--bfb-dark);
	color: var(--bfb-paper) !important;
	font-weight: 700;
	text-decoration: none;
	transform: translateY(-160%);
	transition: transform .2s ease;
}

.bfb-skip-link:focus {
	transform: translateY(0);
}

/* ---------------------------------------------------------
   TYPOGRAPHY / SHARED COMPONENTS
   --------------------------------------------------------- */

.bfb-kicker,
.bfb-v2-kicker {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 20px;
	color: var(--bfb-green);
	font-family: var(--bfb-body);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
}

.bfb-kicker::before,
.bfb-v2-kicker::before {
	content: "";
	width: 28px;
	height: 1px;
	background: currentColor;
}

.bfb-v2-title {
	margin: 0;
	font-family: var(--bfb-display);
	font-size: clamp(40px, 5vw, 78px);
	font-weight: 600;
	line-height: .98;
	letter-spacing: -.05em;
}

.bfb-v2-title--sm {
	font-size: clamp(34px, 4vw, 58px);
}

.bfb-v2-lead {
	max-width: 700px;
	margin: 24px 0 0;
	color: var(--bfb-dark-68);
	font-size: clamp(16px, 1.2vw, 19px);
	line-height: 1.72;
}

.bfb-v2-copy {
	max-width: var(--bfb-copy);
	color: var(--bfb-dark-68);
	font-size: 16px;
	line-height: 1.78;
}

.bfb-actions,
.bfb-v2-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 30px;
}

.bfb-btn,
.bfb-v2-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 50px;
	padding: 0 24px;
	border: 1px solid transparent;
	border-radius: var(--bfb-pill);
	background: var(--bfb-dark);
	color: var(--bfb-paper) !important;
	font-family: var(--bfb-body);
	font-size: 13px;
	font-weight: 700;
	text-decoration: none !important;
	transition: transform .3s var(--bfb-ease), background-color .3s var(--bfb-ease), color .3s var(--bfb-ease), border-color .3s var(--bfb-ease);
}

.bfb-btn:hover,
.bfb-v2-btn:hover {
	transform: translateY(-2px);
	background: var(--bfb-green);
}

.bfb-btn--green,
.bfb-v2-btn--green {
	background: var(--bfb-green);
}

.bfb-btn--ghost,
.bfb-v2-btn--ghost {
	border-color: currentColor;
	background: transparent;
	color: var(--bfb-dark) !important;
}

.bfb-v2-btn--light {
	background: var(--bfb-paper);
	color: var(--bfb-dark) !important;
}

.bfb-v2-btn--outline-light {
	border-color: rgba(244,241,234,.7);
	background: transparent;
	color: var(--bfb-paper) !important;
}

.bfb-v2-link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: inherit !important;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none !important;
}

.bfb-v2-link::after {
	content: "→";
	transition: transform .25s var(--bfb-ease);
}

.bfb-v2-link:hover::after {
	transform: translateX(5px);
}

[data-bfb-reveal] {
	opacity: 0;
	transform: translateY(26px);
	transition: opacity .8s var(--bfb-ease), transform .8s var(--bfb-ease);
}

[data-bfb-reveal].is-visible {
	opacity: 1;
	transform: translateY(0);
}

/* ---------------------------------------------------------
   GLOBAL HEADER
   --------------------------------------------------------- */

.bfb-site-header {
	position: sticky;
	z-index: 1000;
	top: 0;
	width: 100%;
	background: rgba(244,241,234,.96);
	border-bottom: 1px solid transparent;
	backdrop-filter: blur(16px);
	transition: background-color .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.home .bfb-site-header {
	position: absolute;
	background: transparent;
	backdrop-filter: none;
}

.bfb-site-header.is-scrolled {
	position: sticky;
	background: rgba(244,241,234,.96);
	border-color: rgba(44,44,44,.10);
	box-shadow: 0 8px 30px rgba(44,44,44,.06);
	backdrop-filter: blur(16px);
}

.bfb-topline {
	height: 28px;
	display: flex;
	align-items: center;
	background: var(--bfb-green);
	color: var(--bfb-paper);
}

.bfb-topline p {
	margin: 0;
	text-align: center;
	font-size: 9px;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
}

.bfb-header-main {
	position: relative;
}

.bfb-header-grid {
	min-height: 78px;
	display: grid;
	grid-template-columns: 210px 1fr auto;
	align-items: center;
	gap: 30px;
}

.bfb-brand {
	display: inline-flex;
	align-items: center;
	width: max-content;
}

.bfb-brand-fallback {
	display: inline-flex;
	align-items: center;
	color: var(--bfb-dark) !important;
	text-decoration: none !important;
}

.bfb-brand .custom-logo-link {
	display: inline-flex;
}

.bfb-brand .custom-logo {
	width: auto;
	max-width: 190px;
	max-height: 58px;
	object-fit: contain;
}

.bfb-brand-text {
	display: inline-flex;
	flex-direction: column;
}

.bfb-brand-text strong {
	font-family: var(--bfb-display);
	font-size: 29px;
	font-weight: 600;
	line-height: .85;
	letter-spacing: -.05em;
}

.bfb-brand-text small {
	margin-top: 4px;
	font-size: 8px;
	font-weight: 800;
	letter-spacing: .12em;
	text-align: right;
}

.bfb-primary-nav {
	display: flex;
	justify-content: center;
}

.bfb-nav-list,
.bfb-primary-nav ul {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: clamp(14px,1.7vw,26px);
	margin: 0;
	padding: 0;
	list-style: none;
}

.bfb-nav-list a,
.bfb-primary-nav a {
	color: var(--bfb-dark) !important;
	font-size: 11px;
	font-weight: 700;
	text-decoration: none !important;
	white-space: nowrap;
}

.bfb-primary-nav .current-menu-item > a,
.bfb-primary-nav .current_page_item > a {
	text-decoration: underline !important;
	text-decoration-thickness: 1px !important;
	text-underline-offset: 6px;
}

.bfb-header-actions {
	display: flex;
	align-items: center;
	gap: 10px;
}

.bfb-header-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 20px;
	border-radius: var(--bfb-pill);
	background: var(--bfb-green);
	color: var(--bfb-paper) !important;
	font-size: 11px;
	font-weight: 700;
	text-decoration: none !important;
}

.bfb-menu-toggle {
	display: none;
	width: 44px;
	height: 44px;
	border: 1px solid var(--bfb-dark-16);
	border-radius: 50%;
	background: rgba(244,241,234,.8);
	color: var(--bfb-dark);
	cursor: pointer;
}

.bfb-menu-icon,
.bfb-menu-icon::before,
.bfb-menu-icon::after {
	display: block;
	width: 18px;
	height: 1.5px;
	margin: auto;
	background: currentColor;
	content: "";
}

.bfb-menu-icon {
	position: relative;
}

.bfb-menu-icon::before {
	position: absolute;
	top: -6px;
	left: 0;
}

.bfb-menu-icon::after {
	position: absolute;
	top: 6px;
	left: 0;
}

.bfb-mobile-menu {
	position: absolute;
	top: 100%;
	left: 0;
	width: 100%;
	padding: 18px 0 28px;
	background: rgba(244,241,234,.98);
	border-top: 1px solid var(--bfb-dark-16);
	box-shadow: var(--bfb-shadow);
}

.bfb-mobile-menu[hidden] {
	display: none !important;
}

.bfb-mobile-nav-list,
.bfb-mobile-menu .bfb-nav-list {
	display: grid;
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.bfb-mobile-nav-list a,
.bfb-mobile-menu .bfb-nav-list a {
	display: block;
	padding: 13px 0;
	border-bottom: 1px solid var(--bfb-dark-16);
	color: var(--bfb-dark) !important;
	font-weight: 700;
	text-decoration: none !important;
}

.bfb-mobile-cta {
	margin-top: 18px;
}

/* ---------------------------------------------------------
   GLOBAL FOOTER
   --------------------------------------------------------- */

.bfb-site-footer {
	padding: 78px 0 28px;
	background: var(--bfb-dark);
	color: var(--bfb-paper);
}

.bfb-footer-grid {
	display: grid;
	grid-template-columns: 1.35fr repeat(4, .8fr);
	gap: clamp(28px,4vw,58px);
}

.bfb-footer-brand {
	max-width: 320px;
}

.bfb-footer-logo {
	margin: 0 0 18px;
	font-family: var(--bfb-display);
	font-size: 34px;
	font-weight: 600;
	letter-spacing: -.05em;
}

.bfb-footer-brand p {
	margin: 0 0 20px;
	color: rgba(244,241,234,.66);
	font-size: 12px;
	line-height: 1.7;
}

.bfb-footer-main-link {
	color: var(--bfb-paper) !important;
	font-size: 12px;
	font-weight: 700;
	text-decoration: none !important;
}

.bfb-footer-column h2 {
	margin: 0 0 18px;
	font-family: var(--bfb-display);
	font-size: 14px;
	font-weight: 600;
}

.bfb-footer-column a {
	display: block;
	margin: 9px 0;
	color: rgba(244,241,234,.72) !important;
	font-size: 11px;
	text-decoration: none !important;
}

.bfb-footer-column a:hover {
	color: var(--bfb-paper) !important;
}

.bfb-footer-bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	margin-top: 56px;
	padding-top: 24px;
	border-top: 1px solid rgba(244,241,234,.14);
	color: rgba(244,241,234,.48);
	font-size: 10px;
}

.bfb-footer-bottom p {
	margin: 0;
}

.bfb-footer-bottom nav {
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
}

.bfb-footer-bottom a {
	color: inherit !important;
	text-decoration: none !important;
}

/* ---------------------------------------------------------
   STANDARD PAGES / BLOG
   --------------------------------------------------------- */

.bfb-content-page,
.bfb-article,
.bfb-listing,
.bfb-error-404 {
	padding-block: clamp(90px,10vw,150px);
}

.bfb-page-header h1,
.bfb-article-header h1,
.bfb-listing-header h1,
.bfb-error-404 h1 {
	margin: 0;
	font-family: var(--bfb-display);
	font-size: clamp(42px,6vw,76px);
	font-weight: 600;
	line-height: .98;
	letter-spacing: -.05em;
}

.bfb-entry-content {
	margin-top: 48px;
	font-size: 17px;
	line-height: 1.85;
}

.bfb-entry-content h2,
.bfb-entry-content h3 {
	margin-top: 2em;
	font-family: var(--bfb-display);
	line-height: 1.15;
}

.bfb-entry-content img {
	border-radius: 18px;
}

.bfb-article-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 24px;
	color: var(--bfb-dark-68);
	font-size: 12px;
}

.bfb-article-hero {
	margin: 54px 0 0;
}

.bfb-article-hero img {
	width: 100%;
	border-radius: 28px;
}

.bfb-post-grid {
	display: grid;
	grid-template-columns: repeat(3,1fr);
	gap: 26px;
	margin-top: 48px;
}

.bfb-post-card {
	overflow: hidden;
	border-radius: 22px;
	background: #fff;
}

.bfb-post-card-link {
	display: block;
	height: 100%;
	color: var(--bfb-dark) !important;
	text-decoration: none !important;
}

.bfb-post-card-media {
	aspect-ratio: 4/3;
	overflow: hidden;
}

.bfb-post-card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.bfb-post-card-body {
	padding: 24px;
}

.bfb-post-card-body time {
	color: var(--bfb-gray);
	font-size: 10px;
	font-weight: 700;
}

.bfb-post-card-body h2 {
	margin: 10px 0;
	font-family: var(--bfb-display);
	font-size: 22px;
	line-height: 1.16;
}

.bfb-post-card-body p {
	color: var(--bfb-dark-68);
	font-size: 13px;
}

.bfb-post-card-body span {
	font-size: 12px;
	font-weight: 700;
}

.bfb-error-404 {
	min-height: 65vh;
	display: flex;
	align-items: center;
	background: var(--bfb-cream);
}

.bfb-error-404 p:not(.bfb-kicker) {
	max-width: 620px;
	color: var(--bfb-dark-68);
	font-size: 18px;
}

/* Elementor */
.elementor-widget-html {
	margin: 0 !important;
}

.elementor-page .bfb-main > .elementor,
.elementor-page .bfb-main > .elementor > .elementor-element {
	width: 100%;
}

/* Responsive */
@media (max-width: 1120px) {
	.bfb-header-grid {
		grid-template-columns: 180px 1fr auto;
	}

	.bfb-primary-nav {
		display: none;
	}

	.bfb-menu-toggle {
		display: grid;
		place-items: center;
	}

	.bfb-footer-grid {
		grid-template-columns: 1.2fr repeat(2,1fr);
	}

	.bfb-footer-brand {
		grid-column: 1 / -1;
		max-width: 560px;
	}

	.bfb-post-grid {
		grid-template-columns: repeat(2,1fr);
	}
}

@media (max-width: 720px) {
	:root {
		--bfb-gutter: 18px;
	}

	.bfb-header-grid {
		grid-template-columns: 1fr auto;
		min-height: 68px;
	}

	.bfb-header-cta {
		display: none;
	}

	.bfb-brand .custom-logo {
		max-width: 155px;
		max-height: 46px;
	}

	.bfb-footer-grid {
		grid-template-columns: 1fr 1fr;
	}

	.bfb-footer-brand {
		grid-column: 1 / -1;
	}

	.bfb-footer-bottom {
		flex-direction: column;
		align-items: flex-start;
	}

	.bfb-post-grid {
		grid-template-columns: 1fr;
	}

	.bfb-btn,
	.bfb-v2-btn {
		width: 100%;
	}
}

@media (max-width: 480px) {
	.bfb-footer-grid {
		grid-template-columns: 1fr;
	}

	.bfb-footer-brand {
		grid-column: auto;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	[data-bfb-reveal] {
		opacity: 1 !important;
		transform: none !important;
		transition: none !important;
	}
}
