/* LOBF 2026 header (theme 1.0.0). Matches the Divi-era header from plugin 1.0.6 / 1.0.14: blue top bar, white bar,
   badge logo that hangs below the bar on desktop and shrinks on scroll, "Main 2026" menu with dropdowns, Book now. */

header.wp-block-template-part { position: sticky; top: calc(var(--wp-admin--admin-bar--height, 0px) - 34px); z-index: 9990; }
.lh { font-family: "Source Sans 3", Arial, sans-serif; }
.lh-w { max-width: 1400px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; }
.lh-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Top bar */
.lh-top { background: #0C71C3; color: #fff; height: 34px; font-size: 13px; }
.lh-top .lh-w { height: 34px; gap: 18px; }
.lh-top-phone { color: #fff !important; font-weight: 700; text-decoration: none !important; letter-spacing: .02em; }
.lh-social { display: flex; gap: 12px; margin: 0; padding: 0; list-style: none; }
.lh-social a { color: #fff; display: flex; opacity: .92; }
.lh-social a:hover { opacity: 1; }

/* Main bar */
.lh-bar { background: #fff; box-shadow: 0 1px 0 rgba(0,0,0,.1); }
.lh-bar .lh-w { min-height: 70px; gap: 24px; }
.lh-logo { flex: none; display: block; align-self: flex-start; position: relative; z-index: 2; line-height: 0; }
.lh-logo img { height: 128px; width: auto; margin-top: 6px; filter: drop-shadow(0 3px 6px rgba(5,48,107,.28)); transition: height .25s ease, margin .25s ease; }
.lh-scrolled .lh-logo img { height: 52px; margin-top: 9px; }
.lh-nav { margin-left: auto; }

.lh-menu { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.lh-menu > li { position: relative; padding: 0; }
.lh-menu > li > a { display: flex; align-items: center; gap: 6px; min-height: 70px; padding: 0 10px; font-size: 15px; font-weight: 700; color: #05306B; text-decoration: none !important; letter-spacing: .01em; white-space: nowrap; }
.lh-menu > li > a:hover, .lh-menu > li.current-menu-item > a, .lh-menu > li.current-menu-ancestor > a, .lh-menu > li.current-page-ancestor > a { color: #0647A8; }
.lh-menu > li.menu-item-has-children > a::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); opacity: .7; }
.lh-menu li.lobf-m-book > a { min-height: 0; margin-left: 8px; padding: 11px 20px; border-radius: 8px; background: #FA7F28; color: #222 !important; }
.lh-menu li.lobf-m-book > a:hover { background: #FF9447; }
.lh-menu .sub-menu { position: absolute; top: 100%; left: 0; width: 270px; margin: 0; padding: 10px 0; list-style: none; background: #fff; border-top: 3px solid #7CDA24; border-radius: 0 0 10px 10px; box-shadow: 0 16px 30px rgba(5,48,107,.18); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s; z-index: 5; }
.lh-menu li:hover > .sub-menu, .lh-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.lh-menu .sub-menu li { padding: 0 10px; }
.lh-menu .sub-menu a { display: block; padding: 9px 12px; border-radius: 6px; font-size: 15px; font-weight: 600; color: #14202C; text-decoration: none !important; }
.lh-menu .sub-menu a:hover, .lh-menu .sub-menu .current-menu-item > a { background: #EEF4FA; color: #0647A8; }

.lh-burger { display: none; margin-left: auto; width: 48px; height: 48px; border: 0; border-radius: 8px; background: transparent; color: #05306B; cursor: pointer; align-items: center; justify-content: center; }
.lh-burger-box, .lh-burger-box span, .lh-burger-box::before, .lh-burger-box::after { display: block; width: 26px; height: 3px; border-radius: 2px; background: currentColor; transition: transform .2s, opacity .2s; }
.lh-burger-box { position: relative; background: transparent; }
.lh-burger-box::before, .lh-burger-box::after { content: ""; position: absolute; left: 0; }
.lh-burger-box::before { top: -8px; }
.lh-burger-box::after { top: 8px; }
.lh-burger-box span { position: absolute; top: 0; left: 0; }
.lh-open .lh-burger-box span { opacity: 0; }
.lh-open .lh-burger-box::before { transform: translateY(8px) rotate(45deg); }
.lh-open .lh-burger-box::after { transform: translateY(-8px) rotate(-45deg); }

.lh-panel { display: none; }

@media (min-width: 981px) and (max-width: 1199px) {
	.lh-menu li.lobf-m-call { display: none; }
	.lh-menu > li > a { padding: 0 7px; font-size: 14px; }
	.lh-logo img { height: 104px; }
}

/* Phones and tablets */
@media (max-width: 980px) {
	header.wp-block-template-part { top: calc(var(--wp-admin--admin-bar--height, 0px) - 34px); }
	.lh-nav { display: none; }
	.lh-burger { display: inline-flex; }
	.lh-bar .lh-w { min-height: 74px; padding: 0 16px; }
	.lh-logo { align-self: center; }
	.lh-logo img, .lh-scrolled .lh-logo img { height: 66px; margin: 0; }
	.lh-top .lh-w { justify-content: space-between; padding: 0 16px; }
	.lh-panel:not([hidden]) { display: block; position: fixed; left: 0; right: 0; top: var(--lh-panel-top, 108px); bottom: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; background: #fff; border-top: 3px solid #7CDA24; padding-bottom: 24px; z-index: 9991; }
	.lh-cta { position: sticky; top: 0; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px 5%; background: #05306B; }
	.lh-cta a { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 54px; padding: 6px; border-radius: 8px; font-size: 16px; font-weight: 700; line-height: 1.15; text-align: center; text-decoration: none !important; }
	.lh-cta a.b { background: #FA7F28; color: #222 !important; }
	.lh-cta a.c { background: #fff; color: #05306B !important; }
	.lh-cta a.c small { font-size: 13px; font-weight: 600; }
	.lh-mmenu { margin: 0; padding: 0; list-style: none; }
	.lh-mmenu li.lobf-m-book, .lh-mmenu li.lobf-m-call { display: none; }
	.lh-mmenu > li > a { display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 12px 5%; border-bottom: 1px solid #E9EDF1; font-family: "Barlow Condensed", Arial, sans-serif; font-size: 21px; font-weight: 700; text-transform: uppercase; color: #05306B !important; text-decoration: none !important; }
	.lh-mmenu > li.menu-item-has-children > a::after { content: "+"; font-family: Arial, sans-serif; font-size: 26px; font-weight: 400; color: #3FAE2A; }
	.lh-mmenu > li.lh-sub-open > a::after { content: "\2212"; }
	.lh-mmenu .sub-menu { display: none; margin: 0; padding: 0; list-style: none; }
	.lh-mmenu > li.lh-sub-open > .sub-menu { display: block; padding: 4px 0 10px; }
	.lh-mmenu .sub-menu a { display: flex; align-items: center; min-height: 44px; padding: 8px 5% 8px 9%; border-bottom: 1px dashed #EDF0F3; font-size: 16px; font-weight: 600; color: #14202C !important; text-decoration: none !important; }
	body.lh-menu-open { overflow: hidden; }
	body.lh-menu-open .lobf-cbar { visibility: hidden; }
}
@media (max-width: 600px) {
	.lh-social { gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
	.lh-logo img, .lh-menu .sub-menu, .lh-burger-box::before, .lh-burger-box::after { transition: none; }
}

/* 1.0.3 (Nov 20, 2026): steady header logo.
   Before: the badge sat in the page flow, so shrinking it changed the header height by ~40px, which moved the page,
   which flipped the shrink back (about 40 times a second around 40px of scroll = the wobble).
   Now the white bar is always 70px and the badge floats on top of it, sitting across the blue contact bar and the
   white bar. It shrinks with a transform only, so nothing on the page moves. Undo: delete this block. */
@media (min-width: 981px) {
	.lh-bar .lh-w { height: 70px; min-height: 70px; }
	.lh-logo { align-self: stretch; width: 102px; height: 70px; }
	.lh-logo img, .lh-scrolled .lh-logo img { position: absolute; left: 0; top: -31px; height: 98px; width: auto; margin: 0; transform-origin: 0 0; transition: transform .25s ease; will-change: transform; }
	.lh-scrolled .lh-logo img { transform: translateY(36px) scale(.6); }
	.lh-top .lh-w { padding-left: 150px; }
}
