/*
 * Sitewide accessibility fixes (GreenLight 173, GL-173-9817). Enqueued by includes/a11y.php.
 * Hand-written: lives in assets/, never in dist/ (webpack cleans dist/).
 */

/*
 * Skip link (GL-173-9695): hidden until it receives keyboard focus. The Elementor header is a
 * fixed section at z-index 9999999, so the focused link is fixed too and stacks above it.
 */
.cw-skip-link {
	position: absolute;
	top: 0;
	left: -10000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
	z-index: 2147483647;
}

.cw-skip-link:focus,
.cw-skip-link:focus-visible {
	position: fixed;
	left: 16px;
	top: 16px;
	width: auto;
	height: auto;
	overflow: visible;
	padding: 12px 20px;
	background: #071025;
	color: #fff;
	font-family: "Gilroy", Arial, sans-serif;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	border-radius: 4px;
	outline: 3px solid #dcb458;
	outline-offset: 2px;
}

/* The landmark itself only receives focus from the skip link; no outline around the page. */
#main-content:focus {
	outline: none;
}

/*
 * Clixsy Reviews floating badge (GL-173-9757): the plugin prints 'on' and the review age in
 * #9ca3af on white (2.5:1). #4b5563 gives 7.6:1. Remove once the plugin ships the same fix.
 */
.crl-floating-badge .crl-floating-badge__stars-row-on,
.crl-floating-badge .crl-floating-badge__time {
	color: #4b5563;
}

/*
 * Names, roles and result amounts that were h3/h4 and are now paragraphs (GL-173-9755,
 * one-time tool a11y-markup-fixes). These reproduce the theme's generic h3 (content.css) and
 * h4 (vendors.css) rules at the same specificity (:where() keeps it at one element), so the
 * class rules in Elementor's CSS still win exactly as they did over the headings.
 */
:where(.team-wrap, .sidebar-testi-wrap, .testimonial-wrap, .results-wrap) p:where(.title, .sidebar-testi-name, .testimonial-name, .results-title) {
	margin-top: 0;
	margin-bottom: 23px;
	padding-top: 10px;
	font-family: var(--main-font), sans-serif;
	font-style: normal;
	font-weight: 400;
	font-size: 36px;
	line-height: 44px;
	color: #020624;
	text-align: left;
}

@media (max-width: 991px) {
	:where(.team-wrap, .sidebar-testi-wrap, .testimonial-wrap, .results-wrap) p:where(.title, .sidebar-testi-name, .testimonial-name, .results-title) {
		font-size: 26px;
		line-height: 36px;
	}
}

:where(.team-wrap, .results-wrap) p:where(.position, .results-subtitle) {
	margin-top: 0;
	margin-bottom: 0.5rem;
	font-family: inherit;
	font-style: normal;
	font-weight: 500;
	font-size: calc(1.275rem + 0.3vw);
	line-height: 1.2;
	color: inherit;
}

@media (min-width: 1200px) {
	:where(.team-wrap, .results-wrap) p:where(.position, .results-subtitle) {
		font-size: 1.5rem;
	}
}

/*
 * Elementor Heading widgets switched from h2/h4 to p (the 916-764-3059 line in the footers,
 * 'ON THIS PAGE'): the gold text gradient was attached to the heading tags.
 */
.gold-grad p.elementor-heading-title,
.gold-txt p.elementor-heading-title,
.yellow-gradient p.elementor-heading-title {
	background: linear-gradient(270deg, #88541b -46.55%, #dcb458 2.16%, #f3dd9f 50.86%, #dcb458 99.56%, #88541b 148.26%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

/*
 * 'Get Your Free consultation' (dd30570) and 'Contact Us Now For A Free Case Evaluation!'
 * (0365dbc) in the Practice Area template 165050 move from h4 to h3, so the heading order no
 * longer skips a level (h2 would add them to the 'On this page' list, which reads h2). The
 * theme's generic h3 rule would left-align them; keep the widget's own alignment.
 */
.elementor-element-dd30570 h3.elementor-heading-title,
.elementor-element-0365dbc h3.elementor-heading-title {
	text-align: inherit;
}
