/* HF Builder – front-end styles */

/* ---------- header / footer wrappers ---------- */
.hfb-header, .hfb-footer { width: 100%; box-sizing: border-box; }
.hfb-header { position: relative; z-index: 9999; }
.hfb-placeholder { height: 0; margin: 0; padding: 0; pointer-events: none; }

.hfb-header.hfb-stuck {
	position: fixed; top: 0; left: 0; right: 0; width: 100%;
	transition: transform .3s ease, box-shadow .3s ease;
}
.hfb-header.hfb-stuck.hfb-shadow { box-shadow: 0 4px 18px rgba(0, 0, 0, .18); }
.hfb-header.hfb-stuck.hfb-hidden { transform: translateY(-100%); box-shadow: none; }

body.admin-bar .hfb-header.hfb-stuck { top: 32px; }
@media (max-width: 782px) { body.admin-bar .hfb-header.hfb-stuck { top: 46px; } }
@media (max-width: 600px) { body.admin-bar .hfb-header.hfb-stuck { top: 0; } }

/* helper classes (add in Elementor → Advanced → CSS Classes) */
.hfb-header.hfb-stuck .hfb-hide-on-stick { display: none !important; }
.hfb-header:not(.hfb-stuck) .hfb-show-on-stick { display: none !important; }

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

/* ---------- logo ---------- */
.hfb-logo { display: inline-block; line-height: 0; text-decoration: none; }
.hfb-logo img { display: block; max-width: 100%; height: auto; }
.hfb-logo .hfb-logo-text { display: inline-block; line-height: 1.2; font-size: 26px; font-weight: 700; color: inherit; }

/* ---------- navigation (desktop) ---------- */
.hfb-nav { position: relative; display: flex; align-items: center; width: 100%; }
.hfb-nav .hfb-nav-list,
.hfb-nav .hfb-nav-list ul { list-style: none; margin: 0; padding: 0; }
.hfb-nav .hfb-nav-list { display: flex; flex-wrap: wrap; align-items: center; }
.hfb-nav .hfb-nav-list li { position: relative; float: none; margin: 0; padding: 0; border: 0; list-style: none; }
.hfb-nav .hfb-nav-list a {
	display: block; float: none; padding: 12px 16px; border: 0; background: none; line-height: 1.4; text-decoration: none;
	color: var(--hfb-link, #333); transition: color .2s ease, background-color .2s ease;
}
.hfb-nav .hfb-nav-list a:hover,
.hfb-nav .hfb-nav-list a:focus-visible,
.hfb-nav .hfb-nav-list li:hover > a { color: var(--hfb-hover, #0b8ed0); }
.hfb-nav .hfb-nav-list .current-menu-item > a,
.hfb-nav .hfb-nav-list .current-menu-ancestor > a,
.hfb-nav .hfb-nav-list .current_page_item > a { color: var(--hfb-active, var(--hfb-hover, #0b8ed0)); }

.hfb-nav .hfb-nav-list > li.menu-item-has-children > a::after {
	content: ""; display: inline-block; margin-left: 8px; padding: 2.5px;
	border: solid currentColor; border-width: 0 1.5px 1.5px 0;
	transform: rotate(45deg) translateY(-2px);
}

.hfb-nav .hfb-nav-list .sub-menu {
	display: block; position: absolute; left: 0; top: 100%; min-width: 220px; z-index: 20; margin: 0; padding: 0;
	background: var(--hfb-dd-bg, #fff); box-shadow: 0 10px 28px rgba(0, 0, 0, .14);
	opacity: 0; visibility: hidden; transform: translateY(8px);
	transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.hfb-nav .hfb-nav-list li:hover > .sub-menu,
.hfb-nav .hfb-nav-list li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.hfb-nav .hfb-nav-list .sub-menu a { color: var(--hfb-dd-link, #333); padding: 10px 18px; }
.hfb-nav .hfb-nav-list .sub-menu a:hover { background: var(--hfb-dd-hover-bg, #f2f5f7); color: var(--hfb-dd-link, #333); }
.hfb-nav .hfb-nav-list .sub-menu .sub-menu { left: 100%; top: 0; }

/* hamburger + sub-menu toggles (hidden on desktop) */
.hfb-nav .hfb-nav-toggle {
	display: none !important; padding: 10px; margin: 0; border: 0; border-radius: 0; background: none; box-shadow: none; cursor: pointer; line-height: 0;
}
.hfb-nav .hfb-burger { display: flex; flex-direction: column; gap: 6px; width: 26px; }
.hfb-nav .hfb-burger i { display: block; height: 2px; background: var(--hfb-burger, #222); transition: transform .25s ease, opacity .2s ease; }
.hfb-nav.is-open .hfb-burger i:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hfb-nav.is-open .hfb-burger i:nth-child(2) { opacity: 0; }
.hfb-nav.is-open .hfb-burger i:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.hfb-nav .hfb-sub-toggle {
	display: none !important; position: absolute; right: 8px; top: 4px; width: 42px; height: 42px;
	margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; cursor: pointer;
	color: var(--hfb-mlink, var(--hfb-link, #222));
}
.hfb-nav .hfb-sub-toggle::before {
	content: ""; display: block; width: 8px; height: 8px; margin: 0 auto;
	border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .2s ease;
}
.hfb-nav .hfb-nav-list li.hfb-sub-open > .hfb-sub-toggle::before { transform: rotate(-135deg); }

.hfb-nav .hfb-nav-toggle:focus-visible,
.hfb-nav .hfb-sub-toggle:focus-visible,
.hfb-nav .hfb-nav-list a:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
	.hfb-header.hfb-stuck, .hfb-nav *, .hfb-nav *::before { transition: none !important; }
}

/* ---------- page title banner ---------- */
.hfb-titlebar {
	width: 100%; box-sizing: border-box; padding: var(--hfb-tb-pad, 48px) 20px;
	background: var(--hfb-tb-bg, var(--e-global-color-primary, #45b3e5));
	color: var(--hfb-tb-color, #fff); text-align: var(--hfb-tb-align, left);
}
.hfb-titlebar .hfb-titlebar-inner { max-width: var(--hfb-tb-max, 1200px); margin: 0 auto; }
.hfb-titlebar .hfb-title {
	margin: 0; padding: 0; color: inherit; font-size: min(var(--hfb-tb-size, 40px), 8vw);
	line-height: 1.2; font-weight: 700; text-transform: none; letter-spacing: normal;
}
.hfb-titlebar .hfb-breadcrumb { margin: 12px 0 0; font-size: 15px; line-height: 1.5; color: inherit; }
.hfb-titlebar .hfb-breadcrumb p { margin: 0; }
.hfb-titlebar .hfb-breadcrumb ol {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: var(--hfb-tb-jc, flex-start);
	gap: 0 10px; margin: 0; padding: 0; list-style: none;
}
.hfb-titlebar .hfb-breadcrumb li { display: inline-flex; align-items: center; margin: 0; padding: 0; list-style: none; }
.hfb-titlebar .hfb-breadcrumb li + li::before { content: "\203A"; margin-right: 10px; opacity: .75; }
.hfb-titlebar .hfb-breadcrumb a { color: inherit; text-decoration: none; }
.hfb-titlebar .hfb-breadcrumb a:hover { text-decoration: underline; }
.hfb-titlebar .hfb-breadcrumb [aria-current="page"] { opacity: .9; }
@media (max-width: 767px) { .hfb-titlebar { padding-top: calc(var(--hfb-tb-pad, 48px) * .6); padding-bottom: calc(var(--hfb-tb-pad, 48px) * .6); } }

/* ---------- collapsed (hamburger) layout, generated per breakpoint ---------- */
@media (max-width: 1024px) {
	.hfb-nav.hfb-bp-tablet .hfb-nav-toggle { display: inline-flex !important; align-items: center; }
	.hfb-nav.hfb-bp-tablet .hfb-nav-list {
		display: none; position: fixed; left: 0; right: 0; top: var(--hfb-top, 70px); z-index: 99998;
		flex-direction: column; align-items: stretch; flex-wrap: nowrap; padding: 6px 0;
		max-height: calc(100vh - var(--hfb-top, 70px)); overflow-y: auto;
		background: var(--hfb-mbg, #fff); box-shadow: 0 14px 24px rgba(0, 0, 0, .18);
	}
	.hfb-nav.hfb-bp-tablet.is-open .hfb-nav-list { display: flex; }
	.hfb-nav.hfb-bp-tablet .hfb-nav-list li { width: 100%; }
	.hfb-nav.hfb-bp-tablet .hfb-nav-list a { padding: 14px 56px 14px 24px; color: var(--hfb-mlink, var(--hfb-link, #222)); }
	.hfb-nav.hfb-bp-tablet .hfb-nav-list > li.menu-item-has-children > a::after { display: none; }
	.hfb-nav.hfb-bp-tablet .hfb-nav-list .sub-menu {
		position: static; display: none; min-width: 0; padding: 0 0 0 16px;
		opacity: 1; visibility: visible; transform: none; box-shadow: none; background: transparent;
	}
	.hfb-nav.hfb-bp-tablet .hfb-nav-list li.hfb-sub-open > .sub-menu { display: block; }
	.hfb-nav.hfb-bp-tablet .hfb-nav-list .sub-menu a { color: var(--hfb-mlink, var(--hfb-link, #222)); }
	.hfb-nav.hfb-bp-tablet .hfb-nav-list .sub-menu a:hover { background: transparent; }
	.hfb-nav.hfb-bp-tablet .hfb-sub-toggle { display: block !important; }
}

@media (max-width: 767px) {
	.hfb-nav.hfb-bp-mobile .hfb-nav-toggle { display: inline-flex !important; align-items: center; }
	.hfb-nav.hfb-bp-mobile .hfb-nav-list {
		display: none; position: fixed; left: 0; right: 0; top: var(--hfb-top, 70px); z-index: 99998;
		flex-direction: column; align-items: stretch; flex-wrap: nowrap; padding: 6px 0;
		max-height: calc(100vh - var(--hfb-top, 70px)); overflow-y: auto;
		background: var(--hfb-mbg, #fff); box-shadow: 0 14px 24px rgba(0, 0, 0, .18);
	}
	.hfb-nav.hfb-bp-mobile.is-open .hfb-nav-list { display: flex; }
	.hfb-nav.hfb-bp-mobile .hfb-nav-list li { width: 100%; }
	.hfb-nav.hfb-bp-mobile .hfb-nav-list a { padding: 14px 56px 14px 24px; color: var(--hfb-mlink, var(--hfb-link, #222)); }
	.hfb-nav.hfb-bp-mobile .hfb-nav-list > li.menu-item-has-children > a::after { display: none; }
	.hfb-nav.hfb-bp-mobile .hfb-nav-list .sub-menu {
		position: static; display: none; min-width: 0; padding: 0 0 0 16px;
		opacity: 1; visibility: visible; transform: none; box-shadow: none; background: transparent;
	}
	.hfb-nav.hfb-bp-mobile .hfb-nav-list li.hfb-sub-open > .sub-menu { display: block; }
	.hfb-nav.hfb-bp-mobile .hfb-nav-list .sub-menu a { color: var(--hfb-mlink, var(--hfb-link, #222)); }
	.hfb-nav.hfb-bp-mobile .hfb-nav-list .sub-menu a:hover { background: transparent; }
	.hfb-nav.hfb-bp-mobile .hfb-sub-toggle { display: block !important; }
}

