/* Critical CSS - Safe & Fast */
.ast-above-fold * { visibility: visible !important; }
/* ─── Design Estimation Internal Authority Sculpting Widget Styles ─── */
.de-authority-booster {
  background: #0F1E36 !important; /* Deep Blue Substrate */
  border-left: 5px solid #b43041 !important; /* Aapka Exact Brand Accent Color */
  border-top: 1px solid #DDE3EC !important;
  border-right: 1px solid #DDE3EC !important;
  border-bottom: 1px solid #DDE3EC !important;
  padding: 22px 26px !important;
  margin: 28px 0 !important;
  border-radius: 0 8px 8px 0 !important;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif !important;
  box-shadow: 0 4px 12px rgba(15, 30, 54, 0.05) !important;
  text-align: left !important;
}
.de-booster-container {
  display: flex !important;
  display: -webkit-flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 20px !important;
}
.de-booster-text {
  flex: 1 !important;
}
.de-booster-tag {
  display: inline-block !important;
  font-family: 'Courier New', monospace !important;
  font-size: 11px !important;
  font-weight: bold !important;
  text-transform: uppercase !important;
  color: #b43041 !important;
  background: #FDF2F3 !important;
  padding: 3px 8px !important;
  border-radius: 3px !important;
  margin-bottom: 8px !important;
  letter-spacing: 0.05em !important;
}
.de-booster-text h4 {
  margin: 0 0 6px 0 !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  color: #FFFFFF !important;
  line-height: 1.3 !important;
}
.de-booster-text p {
  margin: 0 !important;
  font-size: 14px !important;
  color: #DDE3EC !important;
  line-height: 1.5 !important;
}
.de-booster-action {
  flex-shrink: 0 !important;
}
.de-booster-btn {
  background: #b43041 !important;
  color: #FFFFFF !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  padding: 12px 20px !important;
  border-radius: 4px !important;
  display: inline-block !important;
  text-transform: uppercase !important;
  letter-spacing: 0.03em !important;
  text-decoration: none !important;
  transition: background 0.2s ease, transform 0.1s ease !important;
  border: 1px solid #b43041 !important;
}
.de-booster-btn:hover {
  background: #962432 !important;
  border-color: #962432 !important;
  transform: translateY(-1px) !important;
}

/* Responsive Mobile Layout Break */
@media (max-width: 600px) {
  .de-booster-container {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 16px !important;
  }
  .de-booster-action {
    width: 100% !important;
  }
  .de-booster-btn {
    display: block !important;
    text-align: center !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}
/* Force all text and icons to be visible instantly */
body, h1, h2, h3, h4, h5, h6, p, span, a, li, i {
    font-display: swap !important;
}

/* Fallback rendering system to stop invisible text flash */
@font-face {
    font-family: 'Karla';
    font-display: swap !important;
}
@font-face {
    font-family: 'Rubik';
    font-display: swap !important;
}
/* Spectra Overlay Click Block Fix */
.uag-element-overlay,
.uagb-container-overlay {
    pointer-events: none !important;
}

/* Ensure Button is Clickable on Desktop */
a.uagb-buttons-repeater,
.wp-block-button__link,
.wp-block-button a {
    pointer-events: auto !important;
    position: relative !important;
    z-index: 9999 !important;
}

/* Articles grid: align Read More buttons to card bottom */
.wp-block-uagb-post-grid.uagb-block-25ccf95f article {
	display: flex !important;
	flex-direction: column;
}
.wp-block-uagb-post-grid.uagb-block-25ccf95f article > .uagb-post__cta {
	margin-top: auto !important;
}


/* Footer email link: match white footer text */
.site-footer a[href^="mailto:"] {
	color: inherit;
	word-break: break-word;
}
.site-footer a[href^="mailto:"]:hover {
	text-decoration: underline;
}


/* Card grids: pin buttons to the bottom of Spectra column cards (site-wide) */
.wp-block-uagb-column.uagb-column__wrap:has(> .wp-block-buttons:last-child, > .wp-block-uagb-buttons:last-child) {
	display: flex;
	flex-direction: column;
}
.wp-block-uagb-column.uagb-column__wrap > .wp-block-buttons:last-child,
.wp-block-uagb-column.uagb-column__wrap > .wp-block-uagb-buttons:last-child {
	margin-top: auto;
}


/* Single post featured image: always fill the content width (matches 1024px images) */
.single-post .post-thumb-img-content img {
	width: 100%;
	height: auto;
	display: block;
}


/* Service Areas menu: All States flyout, multi-column, opens to the right (desktop) */
@media (min-width: 922px) {
	.main-header-menu .sub-menu > .menu-item.de-all-states {
		position: static;
	}
	.main-header-menu .de-all-states > .sub-menu {
		display: block;
		columns: 124px;
		column-gap: 0;
		width: clamp(260px, calc(50vw - 252px), 600px);
		top: 0 !important;
		left: 100% !important;
		right: auto !important;
		padding: 8px 0;
	}
	.main-header-menu .de-all-states > .sub-menu > .menu-item {
		width: auto;
		break-inside: avoid;
	}
	.main-header-menu .de-all-states > .sub-menu .menu-link {
		padding: 7px 10px 7px 14px;
		font-size: 15px;
		line-height: 1.3;
		white-space: nowrap;
	}
}
/* Small laptops: not enough room on the right, so open to the left */
@media (min-width: 922px) and (max-width: 1199px) {
	.main-header-menu .de-all-states > .sub-menu {
		width: 400px;
		left: auto !important;
		right: 100% !important;
	}
}

/* Service Areas menu: All States list on phones/tablets as a compact 2-column grid */
@media (max-width: 921px) {
	.ast-builder-menu-mobile .de-all-states.ast-submenu-expanded > .sub-menu,
	.ast-mobile-popup-drawer .de-all-states.ast-submenu-expanded > .sub-menu {
		display: grid !important;
		grid-template-columns: 1fr 1fr;
	}
	.ast-builder-menu-mobile .de-all-states > .sub-menu .menu-link,
	.ast-mobile-popup-drawer .de-all-states > .sub-menu .menu-link {
		line-height: 1.3 !important;
		padding: 12px 8px 12px 24px !important;
		font-size: 15px;
		min-height: 44px;
		white-space: nowrap;
	}
	.ast-builder-menu-mobile .de-all-states > .sub-menu .menu-link .icon-arrow,
	.ast-mobile-popup-drawer .de-all-states > .sub-menu .menu-link .icon-arrow {
		display: none;
	}
}

/* DE READABILITY: comfortable line length on desktop for answer, FAQ and sources blocks */
body .de-answer{max-width:780px !important;margin-left:auto !important;margin-right:auto !important}
body .de-answer li{font-size:16px}
body .de-faq-block .faq-q,body .de-faq-block .faq-a{max-width:72ch}
body .de-faq-block .faq-a{font-size:16px}
body .de-src-block li{font-size:16px}
body .de-src-block .de-src-meta{font-size:14px;color:#4B5563}

/* All States arrow: keep the > beside the All States item */
@media (min-width: 922px) {
  .main-header-menu .sub-menu > .menu-item.de-all-states > .menu-link { position: relative; }
}

/* de-foot-yellow: footer column titles yellow like banner */
.site-footer .de-foot-title,.site-footer p.widget-title.has-text-color{color:#FFC326!important}

/* de-form-placeholders: quote form 2870 labels shown inside fields */
.srfm-form-container-2870 .srfm-block:not(.srfm-checkbox-block) > .srfm-block-label,.srfm-form-container-2870 .srfm-email-block > .srfm-block-label,.srfm-form-container-2870 .srfm-block:not(.srfm-checkbox-block) .srfm-description,.srfm-form-container-3303 .srfm-block:not(.srfm-checkbox-block) > .srfm-block-label,.srfm-form-container-3303 .srfm-email-block > .srfm-block-label{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;white-space:nowrap!important}
.srfm-form-container-2870 .srfm-input-common::placeholder,.srfm-form-container-3303 .srfm-input-common::placeholder{color:#6b7280!important;opacity:1!important}
/* de-form3303-compact */
.srfm-form-container-3303 .srfm-form{gap:12px!important}.srfm-form-container-3303 .srfm-block:not(.srfm-error) .srfm-error-wrap{display:none!important}.srfm-form-container-3303 .srfm-input-common,.srfm-form-container-3303 .iti__country-container{margin:4px 0 0!important}

/* de-dropdown-v2: modern header dropdowns (desktop) */
.ast-desktop .site-header .main-header-menu .sub-menu{width:272px!important;padding:10px!important;background:#fff!important;border:1px solid rgba(15,30,54,.08)!important;border-top:3px solid #FFC326!important;border-radius:14px!important;box-shadow:0 24px 48px -12px rgba(11,30,54,.28),0 6px 14px rgba(11,30,54,.08)!important;opacity:0;transform:translateY(10px);transition:opacity .22s ease,transform .22s ease,visibility .22s!important}.ast-desktop .site-header .main-header-menu > .menu-item > .sub-menu{margin-top:6px!important}.ast-desktop .site-header .main-header-menu > .menu-item > .sub-menu:before{content:'';position:absolute;top:-9px;left:28px;width:14px;height:14px;background:#fff;border-left:3px solid #FFC326;border-top:3px solid #FFC326;transform:rotate(45deg);border-radius:3px 0 0 0}.ast-desktop .site-header .main-header-menu .menu-item:hover > .sub-menu,.ast-desktop .site-header .main-header-menu .menu-item.focus > .sub-menu,.ast-desktop .site-header .main-header-menu .menu-item:focus-within > .sub-menu{opacity:1;transform:translateY(0)}.ast-desktop .site-header .main-header-menu .sub-menu .sub-menu{top:-13px!important;left:calc(100% + 10px)!important}.ast-desktop .site-header .main-header-menu .sub-menu .menu-item{margin:0!important;border:0!important}.ast-desktop .site-header .main-header-menu .sub-menu .menu-item + .menu-item{margin-top:2px!important}.ast-desktop .site-header .main-header-menu .sub-menu .menu-link{position:relative;display:flex!important;align-items:center;justify-content:space-between;gap:10px;width:100%!important;padding:10px 14px 10px 16px!important;border-radius:9px!important;font-size:14.5px!important;font-weight:600!important;line-height:1.35!important;color:#0F1E36!important;transition:background .18s ease,color .18s ease,padding .18s ease!important}.ast-desktop .site-header .main-header-menu .sub-menu .menu-link:before{content:'';position:absolute;left:6px;top:50%;width:3px;height:0;border-radius:3px;background:#FFC326;transform:translateY(-50%);transition:height .18s ease}.ast-desktop .site-header .main-header-menu .sub-menu .menu-item:hover > .menu-link,.ast-desktop .site-header .main-header-menu .sub-menu .menu-item.focus > .menu-link,.ast-desktop .site-header .main-header-menu .sub-menu .menu-link:focus-visible{background:#FFF6DB!important;color:#0F1E36!important;padding-left:22px!important}.ast-desktop .site-header .main-header-menu .sub-menu .menu-item:hover > .menu-link:before,.ast-desktop .site-header .main-header-menu .sub-menu .menu-item.focus > .menu-link:before{height:60%}.ast-desktop .site-header .main-header-menu .sub-menu .current-menu-item > .menu-link{color:#C8102E!important;background:#FBEFF1!important}.ast-desktop .site-header .main-header-menu .sub-menu .ast-icon.icon-arrow svg,.ast-desktop .site-header .main-header-menu .sub-menu .dropdown-menu-toggle svg{fill:#8A94A6!important;transition:transform .18s ease,fill .18s ease}.ast-desktop .site-header .main-header-menu .sub-menu .menu-item:hover > .menu-link .ast-icon.icon-arrow svg{fill:#0F1E36!important;transform:translateX(3px) rotate(-90deg)}@media (prefers-reduced-motion:reduce){.ast-desktop .site-header .main-header-menu .sub-menu,.ast-desktop .site-header .main-header-menu .sub-menu .menu-link{transition:none!important}}

/* de-allstates-link: All States opens the Service Areas page, no 50-state flyout */
.site-header .menu-item-5309 > .sub-menu,.ast-mobile-header-content .menu-item-5309 > .sub-menu,#ast-mobile-header .menu-item-5309 > .sub-menu{display:none!important}.site-header .menu-item-5309 > .menu-link .dropdown-menu-toggle,.site-header .menu-item-5309 > .menu-link .ast-icon.icon-arrow,.site-header .menu-item-5309 > .ast-menu-toggle,.ast-mobile-header-content .menu-item-5309 > .ast-menu-toggle,#ast-mobile-header .menu-item-5309 > .ast-menu-toggle{display:none!important}

/* de-yellow-buttons: primary CTA buttons in brand yellow */
.ast-header-button-1 .ast-custom-button,.ast-header-button-1 .menu-link .ast-custom-button,#direct-wp-submit-btn,.srfm-form-container .srfm-submit-button,#de-direct-center-btn{background:#FFC326!important;color:#0F1E36!important;border-color:#FFC326!important;font-weight:700!important;transition:background .2s ease,transform .2s ease,box-shadow .2s ease!important}
.ast-header-button-1 .ast-custom-button *,#direct-wp-submit-btn *,.srfm-form-container .srfm-submit-button *,#de-direct-center-btn *{color:#0F1E36!important}
.ast-header-button-1 .ast-custom-button:hover,.ast-header-button-1 a:hover .ast-custom-button,#direct-wp-submit-btn:hover,.srfm-form-container .srfm-submit-button:hover,#de-direct-center-btn:hover{background:#F2B300!important;color:#0F1E36!important;box-shadow:0 8px 18px rgba(255,195,38,.35)!important;transform:translateY(-1px)}
html body .ast-header-button-1[data-section*='section-hb-button-'] .ast-builder-button-wrap .ast-custom-button,html body .ast-header-button-1 .ast-builder-button-wrap .ast-custom-button{background-color:#FFC326!important;background:#FFC326!important;color:#0F1E36!important;border-color:#FFC326!important}html body .ast-header-button-1[data-section*='section-hb-button-'] .ast-builder-button-wrap .ast-custom-button:hover,html body .ast-header-button-1 .ast-builder-button-wrap .ast-custom-button:hover{background:#F2B300!important;color:#0F1E36!important}
#ast-desktop-header .ast-header-button-1.ast-header-button-1.ast-header-button-1 .ast-custom-button.ast-custom-button,#ast-mobile-header .ast-header-button-1.ast-header-button-1.ast-header-button-1 .ast-custom-button.ast-custom-button{background:#FFC326!important;background-color:#FFC326!important;color:#0F1E36!important;border-color:#FFC326!important}#ast-desktop-header .ast-header-button-1.ast-header-button-1.ast-header-button-1 .ast-custom-button.ast-custom-button:hover,#ast-mobile-header .ast-header-button-1.ast-header-button-1.ast-header-button-1 .ast-custom-button.ast-custom-button:hover{background:#F2B300!important;color:#0F1E36!important}

/* de-foot-social-yellow */
footer .footer-social-item svg,footer .footer-social-item .ahfb-svg-iconset svg{fill:#FFC326!important;color:#FFC326!important}
footer .footer-social-item:hover svg{fill:#ffffff!important;color:#ffffff!important}

/* de-fit43 */
.cz-cap .im img[src*="-fit43"]{object-fit:cover!important;object-position:center!important;background:none!important}

/* de-lab-bottom */
.cz-cap .im .lab{top:auto!important;bottom:0!important;right:0!important;left:auto!important;padding:6px 12px!important}
.cz-cap .im:after{background:linear-gradient(0deg,rgba(10,8,2,.35),rgba(10,8,2,0) 30%)!important}

/* de-num-tag */
.cz-cap .im .num{top:auto!important;left:auto!important;bottom:0!important;right:0!important;font-size:14px!important;line-height:1!important;font-weight:700!important;letter-spacing:.08em;padding:7px 12px!important;background:#FFC326!important;color:#0A0802!important;-webkit-text-stroke:0!important;text-shadow:none!important;opacity:1!important;z-index:3}

/* de-nolink */
.cz-cap .de-nolink{cursor:default}
