/* =====================================================================
   LifeCare header polish (Divi default header) — scope: body.lc-hdr
   ===================================================================== */
body.lc-hdr {
	--h-navy: #06131c;
	--h-ink: #1d2b35;
	--h-muted: #51606b;
	--h-green: #8cc63e;
	--h-green-dk: #6fa62a;
	--h-green-ink: #3f6a0e;
	--h-line: #e4eaee;
	--h-tint: #f4f7f9;
}

/* ---------- Top utility bar ---------- */
body.lc-hdr #top-header, body.lc-hdr #page-container #top-header, body.lc-hdr.et_secondary_nav_enabled #page-container #top-header { background: var(--h-tint) !important; background-color: var(--h-tint) !important; border-bottom: 1px solid var(--h-line); }
body.lc-hdr #top-header .container { padding-top: 0 !important; }
body.lc-hdr #top-header #et-info.lc-tb { float: none; display: flex; align-items: center; gap: 0; width: 100%; padding: 0; min-height: 36px; font-family: 'Inter', 'Cabin', Arial, sans-serif; font-size: 13px; line-height: 1.2; }
body.lc-hdr #top-header .lc-tb-item { display: inline-flex; align-items: center; gap: 7px; color: var(--h-ink) !important; font-weight: 500; padding: 9px 0; text-decoration: none; }
body.lc-hdr #top-header .lc-tb-item + .lc-tb-item { margin-left: 16px; padding-left: 16px; border-left: 1px solid #d3dbe1; }
body.lc-hdr #top-header .lc-tb-item svg { width: 14px; height: 14px; color: var(--h-green-ink); flex: none; }
body.lc-hdr #top-header a.lc-tb-phone { font-weight: 700; }
body.lc-hdr #top-header a.lc-tb-phone:hover { color: var(--h-green-ink) !important; }
body.lc-hdr #top-header .lc-tb-cta { margin-left: auto; color: var(--h-green-ink) !important; font-weight: 700; text-decoration: none; padding: 9px 0; }
body.lc-hdr #top-header .lc-tb-cta:hover { text-decoration: underline; text-underline-offset: 3px; }
body.lc-hdr #et-secondary-menu { display: none; }

/* ---------- Main header ---------- */
body.lc-hdr #main-header { background: #fff; box-shadow: none !important; border-bottom: 1px solid var(--h-line); transition: background .3s ease, box-shadow .3s ease, top .3s ease; }
body.lc-hdr #main-header.et-fixed-header { box-shadow: 0 6px 18px rgba(6, 19, 28, .06) !important; }
body.lc-hdr #logo { transition: max-height .3s ease, opacity .2s; }

@media (min-width: 981px) {
	body.lc-hdr #logo { max-height: 70% !important; }
	body.lc-hdr #main-header.et-fixed-header #logo { max-height: 62% !important; }
	body.lc-hdr #et-top-navigation { padding-top: 38px !important; transition: padding .3s ease; }
	body.lc-hdr #et-top-navigation nav > ul > li > a { padding-bottom: 38px !important; transition: padding .3s ease, color .2s; }
	body.lc-hdr #main-header.et-fixed-header #et-top-navigation { padding-top: 24px !important; }
	body.lc-hdr #main-header.et-fixed-header #et-top-navigation nav > ul > li > a { padding-bottom: 24px !important; }

	body.lc-hdr #top-menu > li { padding-right: 22px; }
	body.lc-hdr #top-menu > li:last-child { padding-right: 0; }
	body.lc-hdr #top-menu > li > a { font-family: 'Inter', 'Cabin', Arial, sans-serif; font-size: 15px !important; font-weight: 600; letter-spacing: 0; color: var(--h-ink) !important; opacity: 1 !important; position: relative; }
	body.lc-hdr #top-menu > li > a:before { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--h-green); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
	body.lc-hdr #top-menu > li.menu-item-has-children > a:before { right: 20px; }
	body.lc-hdr #top-menu > li > a:hover,
	body.lc-hdr #top-menu > li.current-menu-item > a,
	body.lc-hdr #top-menu > li.current-menu-ancestor > a { color: var(--h-navy) !important; }
	body.lc-hdr #top-menu > li:hover > a:before,
	body.lc-hdr #top-menu > li.current-menu-item > a:before,
	body.lc-hdr #top-menu > li.current-menu-ancestor > a:before { transform: scaleX(1); }
	body.lc-hdr #top-menu > li.menu-item-has-children > a:after { color: var(--h-muted); font-size: 15px; top: 1px; }

	/* dropdowns */
	body.lc-hdr #top-menu li ul.sub-menu { width: 270px; padding: 10px 0; border-top: 2px solid var(--h-green); border-radius: 0 0 10px 10px; box-shadow: 0 18px 40px rgba(6, 19, 28, .10); background: #fff; }
	body.lc-hdr #top-menu li li { padding: 0; width: 100%; }
	body.lc-hdr #top-menu li li a { width: 100%; box-sizing: border-box; padding: 10px 22px; font-family: 'Inter', 'Cabin', Arial, sans-serif; font-size: 14.5px !important; font-weight: 500; line-height: 1.4; color: var(--h-ink) !important; opacity: 1 !important; transition: background .15s, color .15s, padding .15s; }
	body.lc-hdr #top-menu li li a:hover { background: #f3f8ec; color: var(--h-green-ink) !important; padding-left: 26px; }
	body.lc-hdr #top-menu li li.current-menu-item > a { color: var(--h-green-ink) !important; font-weight: 600; }

	/* appointment CTA (last menu item) */
	body.lc-hdr #top-menu li.lc-menu-cta { padding-left: 4px; }
	body.lc-hdr #main-header #top-menu li.lc-menu-cta > a { display: inline-block; margin-top: -12px; padding: 12px 20px !important; border-radius: 8px; background: var(--h-green); color: var(--h-navy) !important; font-weight: 700; line-height: 1; transition: background .2s, color .2s; }
	body.lc-hdr #main-header #top-menu li.lc-menu-cta > a:before { display: none; }
	body.lc-hdr #main-header #top-menu li.lc-menu-cta > a:hover { background: var(--h-navy); color: #fff !important; }
	body.lc-hdr #top-header .lc-tb-cta { display: none; }
}
/* Header button needs room: show it from 1440px; below that it lives in the utility bar */
@media (min-width: 1440px) and (max-width: 1499px) {
	body.lc-hdr #top-menu > li { padding-right: 18px; }
	body.lc-hdr #top-menu > li > a { font-size: 14.5px !important; }
}
@media (min-width: 981px) and (max-width: 1439px) {
	body.lc-hdr #top-menu li.lc-menu-cta { display: none; }
	body.lc-hdr #top-menu > li:nth-last-child(2) { padding-right: 0; }
	body.lc-hdr #top-header .lc-tb-cta { display: inline-block; }
	body.lc-hdr #top-menu > li { padding-right: 20px; }
	body.lc-hdr #top-menu > li > a { font-size: 14.5px !important; }
}
@media (min-width: 981px) and (max-width: 1279px) {
	body.lc-hdr #top-menu > li { padding-right: 14px; }
	body.lc-hdr #top-menu > li > a { font-size: 13.5px !important; }
	body.lc-hdr #logo { max-height: 60% !important; }
}
/* Small laptops / landscape tablets: use the compact menu button instead of a cramped bar */
@media (min-width: 981px) and (max-width: 1099px) {
	body.lc-hdr #top-menu-nav { display: none !important; }
	body.lc-hdr #et_mobile_nav_menu { display: block !important; float: right; }
	body.lc-hdr #et-top-navigation { padding-top: 28px !important; padding-left: 0 !important; }
	body.lc-hdr #main-header.et-fixed-header #et-top-navigation { padding-top: 18px !important; }
	body.lc-hdr .mobile_menu_bar { display: block; padding-bottom: 28px !important; }
	body.lc-hdr #main-header.et-fixed-header .mobile_menu_bar { padding-bottom: 18px !important; }
	body.lc-hdr .mobile_menu_bar:before { color: var(--h-navy) !important; font-size: 34px; top: 0; }
	body.lc-hdr #main-header .et_mobile_menu { top: 100%; border-top: 2px solid var(--h-green); padding: 6px 0 14px; box-shadow: 0 20px 40px rgba(6, 19, 28, .12); }
	body.lc-hdr #main-header .et_mobile_menu li a { font-family: 'Inter', 'Cabin', Arial, sans-serif; font-size: 16px; font-weight: 600; color: var(--h-ink) !important; padding: 13px 28px; display: block; border-bottom: 1px solid #eef2f5; }
	body.lc-hdr #main-header .et_mobile_menu li li a { font-size: 15px; font-weight: 500; color: var(--h-muted) !important; padding-left: 44px; }
	body.lc-hdr #main-header .et_mobile_menu li.lc-menu-cta { padding: 14px 28px 4px; }
	body.lc-hdr #main-header .et_mobile_menu li.lc-menu-cta a { text-align: center; background: var(--h-green); color: var(--h-navy) !important; border: 0; border-radius: 8px; font-weight: 700; }
}

/* ---------- Mobile header + menu ---------- */
@media (max-width: 980px) {
	body.lc-hdr #main-header .container { min-height: 0; }
	body.lc-hdr #logo { max-height: 70% !important; }
	body.lc-hdr .mobile_menu_bar:before { color: var(--h-navy) !important; font-size: 34px; }
	body.lc-hdr #main-header .et_mobile_menu { border-top: 2px solid var(--h-green); padding: 6px 0 14px; box-shadow: 0 20px 40px rgba(6, 19, 28, .12); max-height: calc(100vh - 140px); overflow-y: auto; }
	body.lc-hdr #main-header .et_mobile_menu li a { font-family: 'Inter', 'Cabin', Arial, sans-serif; font-size: 16px; font-weight: 600; color: var(--h-ink) !important; padding: 13px 22px; min-height: 48px; box-sizing: border-box; display: flex; align-items: center; border-bottom: 1px solid #eef2f5; opacity: 1 !important; }
	body.lc-hdr #main-header .et_mobile_menu li li a { font-size: 15px; font-weight: 500; color: var(--h-muted) !important; padding-left: 38px; min-height: 44px; }
	body.lc-hdr #main-header .et_mobile_menu li ul { padding-left: 0 !important; }
	body.lc-hdr #main-header .et_mobile_menu li a:hover { background: #f3f8ec; }
	body.lc-hdr #main-header .et_mobile_menu li.lc-menu-cta { padding: 14px 22px 4px; }
	body.lc-hdr #main-header .et_mobile_menu li.lc-menu-cta a { justify-content: center; background: var(--h-green); color: var(--h-navy) !important; border: 0; border-radius: 8px; font-weight: 700; }
	body.lc-hdr #main-header .et_mobile_menu li.lc-menu-cta a:hover { background: var(--h-navy); color: #fff !important; }
}
@media (max-width: 767px) {
	body.lc-hdr #top-header .lc-tb-loc, body.lc-hdr #top-header .lc-tb-cta { display: none; }
	body.lc-hdr #top-header #et-info.lc-tb { justify-content: center; font-size: 12.5px; min-height: 32px; }
	body.lc-hdr #top-header .lc-tb-item { padding: 8px 0; }
	body.lc-hdr #top-header .lc-tb-item + .lc-tb-item { margin-left: 12px; padding-left: 12px; }
}
@media (max-width: 359px) {
	body.lc-hdr #top-header .lc-tb-hours { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	body.lc-hdr #main-header, body.lc-hdr #logo, body.lc-hdr #et-top-navigation, body.lc-hdr #top-menu > li > a, body.lc-hdr #top-menu > li > a:before { transition: none !important; }
}
/* top bar on small screens */
@media (max-width: 980px) {
	body.lc-hdr #top-header .container { width: 100% !important; max-width: none !important; padding: 0 16px !important; box-sizing: border-box; }
	body.lc-hdr #top-header .lc-tb-item, body.lc-hdr #top-header .lc-tb-cta { white-space: nowrap; }
}
@media (min-width: 768px) and (max-width: 980px) {
	body.lc-hdr #top-header .lc-tb-loc { display: none; }
}
