/* Shared demo header: sticky white bar, bold brand nav, CTA button. Uses --brand-primary / --brand-secondary. */
#main-header { background: #fff !important; box-shadow: 0 1px 0 rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .07) !important; }
#main-header.et-fixed-header { box-shadow: 0 1px 0 rgba(15, 23, 42, .08), 0 10px 28px rgba(15, 23, 42, .12) !important; }
#et_top_search { display: none; }

/* Wordmark logo (text set inline from the site title in functions.php) */
#logo { display: none !important; }
.logo_container a { display: inline-flex; align-items: center; gap: 10px; vertical-align: middle; text-decoration: none; }
.logo_container a::before { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px;
	background: var(--brand-primary); color: #fff; font-size: 20px; font-weight: 800; line-height: 1;
	box-shadow: inset 0 -3px 0 var(--brand-cta-bg); }
.logo_container a::after { max-width: 230px; color: var(--brand-primary); font-size: 18px; font-weight: 800; line-height: 1.15; letter-spacing: -.01em; white-space: normal; }
@media (min-width: 981px) and (max-width: 1150px) {
	.logo_container a::after { max-width: 135px; font-size: 14px; }
	#top-menu li { padding-right: 18px; }
	#top-menu > li > a { font-size: 14px; }
	#top-menu li.csb-nav-cta > a { padding: 10px 14px !important; }
}
@media (max-width: 480px) {
	.logo_container a::after { max-width: 120px; font-size: 14px; }
	.logo_container a::before { width: 32px; height: 32px; font-size: 17px; }
	/* Text CTAs (e.g. "Free Consultation") shrink so they don't collide with the wordmark */
	#top-menu li.csb-nav-cta > a { font-size: 12.5px !important; padding: 8px 10px !important; }
	.logo_container a::after { max-width: 104px; }
	/* Phone-number CTA becomes an icon-only button (text stays for screen readers) */
	#top-menu li.csb-nav-cta > a[href^="tel:"] { font-size: 0 !important; gap: 0; padding: 10px !important; border-radius: 50%; }
	#top-menu li.csb-nav-cta > a[href^="tel:"]::before { width: 18px; height: 18px; }
}
@media (max-width: 380px) { .logo_container a::after { max-width: 92px; font-size: 13px; } }
@media (max-width: 330px) { .logo_container a::after { display: none; } }

#top-menu li { padding-right: 28px; }
#top-menu > li > a,
#main-header.et-fixed-header #top-menu > li > a { color: var(--brand-primary) !important; opacity: 1 !important; font-size: 15px; font-weight: 700; letter-spacing: .01em;
	text-decoration: underline 2px transparent; text-underline-offset: 8px; transition: color .2s, text-decoration-color .2s; }
#top-menu > li:not(.csb-nav-cta) > a:hover,
#top-menu > li.current-menu-item > a,
#main-header.et-fixed-header #top-menu > li.current-menu-item > a { color: var(--brand-accent) !important; text-decoration-color: var(--brand-accent); }
#top-menu .sub-menu { border-top-color: var(--brand-secondary); }

#top-menu li.csb-nav-cta { padding-right: 0; }
#top-menu li.csb-nav-cta > a,
#main-header.et-fixed-header #top-menu li.csb-nav-cta > a { display: inline-flex; align-items: center; gap: 8px; margin-top: -11px; padding: 11px 20px !important; border-radius: 10px;
	background: var(--brand-cta-bg); color: var(--brand-cta-text) !important; text-decoration: none;
	box-shadow: 0 6px 16px color-mix(in srgb, var(--brand-cta-bg) 35%, transparent); transition: transform .15s, filter .15s; }
#top-menu li.csb-nav-cta > a:hover { transform: translateY(-1px); filter: brightness(.93); }
.csb-nav-cta a[href^="tel:"]::before { content: ""; width: 16px; height: 16px; background: currentColor; flex: none;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 3h4l2 5-2.5 1.5a11 11 0 0 0 6 6L16 13l5 2v4a2 2 0 0 1-2 2A16 16 0 0 1 3 5a2 2 0 0 1 2-2z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 3h4l2 5-2.5 1.5a11 11 0 0 0 6 6L16 13l5 2v4a2 2 0 0 1-2 2A16 16 0 0 1 3 5a2 2 0 0 1 2-2z'/%3E%3C/svg%3E") center / contain no-repeat; }

/* Mobile */
@media (max-width: 980px) {
	#main-header { position: sticky !important; top: 0; z-index: 99999; }
	#page-container { padding-top: 0 !important; }
	/* Keep the CTA visible beside the hamburger; other links live in the dropdown. */
	#main-header .et_menu_container { width: 90%; }
	#et-top-navigation { display: flex !important; flex-wrap: nowrap; align-items: center; gap: 12px; justify-content: flex-end; padding: 16px 0 !important; } /* also sets the bar height (Divi's logo is absolutely positioned) */
	#top-menu-nav, #top-menu { display: block !important; line-height: 1; margin: 0; padding: 0; }
	#top-menu > li:not(.csb-nav-cta) { display: none; }
	#top-menu li.csb-nav-cta { padding: 0 !important; }
	#top-menu li.csb-nav-cta > a { margin: 0; padding: 9px 14px !important; font-size: 14px; white-space: nowrap; }
	#et_mobile_nav_menu { float: none; margin: 0; }
	.mobile_menu_bar { padding-bottom: 0 !important; }
	.mobile_menu_bar:before { color: var(--brand-primary) !important; }
	.et_mobile_menu { border-top: 3px solid var(--brand-secondary) !important; box-shadow: 0 16px 32px rgba(15, 23, 42, .14); padding: 12px 5% 18px; }
	.et_mobile_menu li a { color: var(--brand-primary) !important; font-weight: 700; font-size: 16px; padding: 12px 4%; border-bottom-color: rgba(15, 23, 42, .06); }
	.et_mobile_menu li.current-menu-item > a, .et_mobile_menu li a:hover { color: var(--brand-accent) !important; background: transparent !important; opacity: 1; }
	.et_mobile_menu li.csb-nav-cta { margin-top: 12px; }
	.et_mobile_menu li.csb-nav-cta > a { display: flex; justify-content: center; align-items: center; gap: 8px; border: 0; border-radius: 10px; background: var(--brand-cta-bg) !important; color: var(--brand-cta-text) !important; }
}
