/* ==========================================================================
   Hero widget — ported from pestcontrolgroupusa_core_old
   (layout.css .hero*, components.css .hero__*, responsive.css hero rules).
   Classes are namespaced pcgu-hero(__*) to avoid collisions with other
   plugins/themes; rendered output otherwise matches the original exactly.
   Colors/fonts/radii come from the design-system tokens the paired theme
   registers globally (--primary, --font-display, --radius, etc.) — see
   Global_Design_Tokens_Trait for the PHP-side equivalent used by controls.
   ========================================================================== */

.pcgu-hero {
	isolation: isolate;
	overflow: hidden;
	padding-top: 132px;
	padding-bottom: 4rem;
	background-image:
		radial-gradient(1200px 600px at 8% -10%, color-mix(in oklab, var(--secondary) 22%, transparent), transparent 60%),
		radial-gradient(900px 500px at 92% 10%, color-mix(in oklab, var(--accent) 25%, transparent), transparent 60%),
		linear-gradient(180deg, oklch(0.995 0.003 95), oklch(0.96 0.012 250));
}

.pcgu-hero__bg {
	position: absolute;
	inset: 0;
	z-index: -10;
	overflow: hidden;
	pointer-events: none;
}

.pcgu-hero__grid-pattern {
	position: absolute;
	inset: 0;
	opacity: 0.05;
	background-image:
		linear-gradient(to right, oklch(0.24 0.07 258) 1px, transparent 1px),
		linear-gradient(to bottom, oklch(0.24 0.07 258) 1px, transparent 1px);
	background-size: 42px 42px;
	mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

/* Empty/transparent by default — becomes visible only when the Style tab's
   "Background Overlay" control is used (Group_Control_Background, no
   default, see Hero_Widget::register_style_controls()). Sits above the
   gradient/blobs/grid-pattern (all part of .pcgu-hero__bg) and below the
   content container, matching the layering of Elementor's own Section
   widget "Background Overlay" feature. */
.pcgu-hero__overlay {
	position: absolute;
	inset: 0;
	z-index: -5;
	pointer-events: none;
}

/* .pcgu-hero__container's gap/max-width are intentionally NOT hardcoded
   here (same reasoning as the Section > Padding control below): both map
   1:1 onto Elementor's own tablet(<=1024)/desktop(>1024) breakpoints, so
   the Style tab's "Container Width" / "Content Gap" controls are the sole,
   authoritative source — see Hero_Widget::register_style_controls(). Their
   defaults reproduce the original 80rem / 3rem->4rem-at-1024px values
   exactly, so leaving this widget's Style tab untouched looks identical to
   the reference. */
.pcgu-hero__container {
	display: grid;
	grid-template-columns: 1fr;
	align-items: center;
	margin-inline: auto;
	padding-inline: 1rem;
}

.pcgu-hero__blob {
	position: absolute;
	border-radius: 9999px;
	filter: blur(64px);
}
.pcgu-hero__blob--1 { left: -6rem; top: 6rem; height: 420px; width: 420px; background-color: color-mix(in oklab, var(--secondary) 25%, transparent); }
.pcgu-hero__blob--2 { right: -120px; top: 2rem; height: 520px; width: 520px; background-color: color-mix(in oklab, var(--accent) 25%, transparent); }
.pcgu-hero__blob--3 { left: 33.333%; bottom: -140px; height: 360px; width: 360px; background-color: color-mix(in oklab, var(--primary) 15%, transparent); }

.pcgu-hero__badge {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	border-radius: 9999px;
	border: 1px solid var(--border);
	background-color: color-mix(in oklab, var(--card) 70%, transparent);
	backdrop-filter: blur(8px);
	padding: 0.375rem 0.875rem;
	font-size: 0.75rem;
	font-weight: 600;
	line-height: normal;
	color: var(--foreground);
	box-shadow: var(--shadow-lift);
}
.pcgu-hero__badge-dot-wrap {
	position: relative;
	display: flex;
	height: 0.5rem;
	width: 0.5rem;
}
.pcgu-hero__badge-dot-ping {
	position: absolute;
	display: inline-flex;
	height: 100%;
	width: 100%;
	border-radius: 9999px;
	background-color: var(--secondary);
	opacity: 0.7;
}
.pcgu-hero__badge-dot {
	position: relative;
	display: inline-flex;
	height: 0.5rem;
	width: 0.5rem;
	border-radius: 9999px;
	background-color: var(--secondary);
}

.pcgu-hero__title {
	margin-top: 1.25rem;
	font-size: 2.6rem;
	line-height: 1.02;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: var(--foreground);
	font-family: var(--font-display);
}
.pcgu-hero__title-line {
	display: block;
	margin-top: 0.25rem;
}
.pcgu-hero__title-highlight-wrap {
	position: relative;
	display: inline-block;
}
.pcgu-hero__title-highlight {
	position: relative;
	z-index: 10;
	background-image: linear-gradient(to right, var(--secondary), var(--primary-glow));
	background-clip: text;
	-webkit-background-clip: text;
	color: transparent;
}
.pcgu-hero__title-highlight-glow {
	position: absolute;
	inset-inline: 0;
	bottom: 0.25rem;
	z-index: 0;
	height: 0.75rem;
	background-color: color-mix(in oklab, var(--accent) 40%, transparent);
	filter: blur(2px);
}

.pcgu-hero__subhead {
	margin-top: 1.25rem;
	max-width: 36rem;
	font-size: 1rem;
	line-height: 1.7;
	color: var(--muted-foreground);
}

.pcgu-hero__actions {
	margin-top: 2rem;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0.75rem;
}

/* .pcgu-hero prefix (not just .pcgu-hero__cta-call alone) is required on
   every rule here that sets box-shadow: Elementor's own frontend.min.css
   ships ".elementor a { box-shadow: none; }" at specificity (0,1,1), which
   silently beats a single class selector (0,1,0) and was killing this
   button's signature shadow. Prefixing with the wrapper class raises us to
   (0,2,0), which reliably wins regardless of stylesheet load order. */
.pcgu-hero .pcgu-hero__cta-call {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	border-radius: var(--radius-2xl);
	background-image: var(--gradient-call);
	padding: 1rem 1.5rem;
	color: var(--primary-foreground);
	box-shadow: var(--shadow-call);
	transition: transform 300ms, box-shadow 300ms, filter 300ms;
}
.pcgu-hero .pcgu-hero__cta-call:hover {
	transform: scale(1.02);
	filter: brightness(1.1);
	box-shadow: 0 28px 60px -18px color-mix(in oklab, var(--secondary) 70%, transparent);
}
.pcgu-hero .pcgu-hero__cta-call:focus-visible {
	outline: none;
	box-shadow: 0 0 0 4px color-mix(in oklab, var(--secondary) 30%, transparent);
}
.pcgu-hero__cta-call .icon-circle svg,
.pcgu-hero__cta-call .icon-circle i {
	height: 1.25rem;
	width: 1.25rem;
	font-size: 1.25rem;
	color: #fff;
}
.pcgu-hero__cta-call-text {
	display: flex;
	flex-direction: column;
	text-align: left;
	line-height: 1.2;
}
.pcgu-hero__cta-call-label {
	font-size: 0.6875rem;
	text-transform: uppercase;
	letter-spacing: 0.2em;
	color: rgba(255, 255, 255, 0.8);
}
.pcgu-hero__cta-call-number {
	font-size: 1.125rem;
	font-weight: 800;
	letter-spacing: 0.01em;
}

/* .pcgu-hero prefix required — see .pcgu-hero__cta-call comment above for
   why (Elementor's ".elementor a { box-shadow: none; }" specificity). */
.pcgu-hero .pcgu-hero__cta-secondary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	border-radius: var(--radius-2xl);
	border: 1px solid var(--border);
	background-color: var(--card);
	padding: 1rem 1.25rem;
	font-size: 0.875rem;
	font-weight: 600;
	line-height: normal;
	color: var(--foreground);
	box-shadow: var(--shadow-lift);
	transition: transform 300ms, background-color 300ms;
}
.pcgu-hero .pcgu-hero__cta-secondary:hover {
	transform: scale(1.02);
	background-color: var(--muted);
}

.pcgu-hero__social-proof {
	margin-top: 2rem;
	display: flex;
	align-items: center;
	gap: 1rem;
}
.pcgu-hero__avatars {
	display: flex;
}
.pcgu-hero__avatars > * + * {
	margin-left: -0.625rem;
}
.pcgu-hero__avatar {
	display: grid;
	place-items: center;
	height: 2.25rem;
	width: 2.25rem;
	border-radius: 9999px;
	box-shadow: 0 0 0 2px var(--background);
	font-size: 0.6875rem;
	font-weight: 700;
	line-height: normal;
	color: #fff;
}
.pcgu-hero__avatar--count {
	background-color: var(--primary);
	font-size: 0.625rem;
	color: var(--primary-foreground);
}
.pcgu-hero__rating {
	display: flex;
	flex-direction: column;
}
.pcgu-hero__rating-stars {
	display: flex;
	align-items: center;
	gap: 0.25rem;
	color: var(--accent);
}
.pcgu-hero__rating-stars svg {
	height: 1rem;
	width: 1rem;
	fill: currentColor;
}
.pcgu-hero__rating-score {
	margin-left: 0.25rem;
	font-size: 0.75rem;
	font-weight: 600;
	line-height: normal;
	color: var(--foreground);
}
.pcgu-hero__rating-caption {
	font-size: 0.75rem;
	line-height: normal;
	color: var(--muted-foreground);
}

.pcgu-hero__media-inner {
	position: relative;
	margin-inline: auto;
	max-width: 540px;
}

.pcgu-hero__media-shape {
	position: absolute;
	inset: -1.5rem;
	z-index: -10;
	border-radius: 38% 62% 58% 42% / 48% 38% 62% 52%;
	background-image: var(--gradient-primary);
	opacity: 0.9;
	filter: blur(2px);
}
.pcgu-hero__media-blob {
	position: absolute;
	z-index: -10;
	border-radius: 9999px;
	filter: blur(40px);
}
.pcgu-hero__media-blob--a {
	right: -1.5rem;
	top: -1.5rem;
	height: 10rem;
	width: 10rem;
	background-color: color-mix(in oklab, var(--accent) 60%, transparent);
}
.pcgu-hero__media-blob--b {
	left: -2rem;
	bottom: 1.5rem;
	height: 9rem;
	width: 9rem;
	background-color: color-mix(in oklab, var(--secondary) 50%, transparent);
}
.pcgu-hero__media-dots {
	position: absolute;
	bottom: -1.5rem;
	right: -1.5rem;
	z-index: -10;
	height: 6rem;
	width: 6rem;
	color: color-mix(in oklab, var(--primary) 25%, transparent);
}

.pcgu-hero__image-card {
	position: relative;
	overflow: hidden;
	border-radius: 36% 64% 60% 40% / 40% 44% 56% 60%;
	box-shadow: var(--shadow-elegant), 0 0 0 1px rgba(255, 255, 255, 0.4);
}
/* .pcgu-hero prefix required: Elementor's frontend.min.css ships
   ".elementor img { height: auto; max-width: 100% }" at specificity
   (0,1,1), which beat a bare ".pcgu-hero__image" (0,1,0) and silently
   replaced the fixed height with the image's intrinsic aspect ratio
   (found via live testing — the hero photo was rendering ~634px tall
   instead of 520px on tablet/desktop). (0,2,0) reliably wins instead. */
.pcgu-hero .pcgu-hero__image {
	height: 420px;
	width: 100%;
	object-fit: cover;
}
.pcgu-hero__image-overlay {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background-image: linear-gradient(to top right, color-mix(in oklab, var(--primary) 25%, transparent), transparent 60%, transparent);
}

.pcgu-hero__stat-card {
	position: absolute;
	border-radius: var(--radius-2xl);
	border: 1px solid var(--border);
	background-color: color-mix(in oklab, var(--card) 95%, transparent);
	backdrop-filter: blur(8px);
	padding: 0.75rem 1rem;
	box-shadow: var(--shadow-elegant);
}
.pcgu-hero__stat-card--a { left: -0.75rem; top: 2rem; }
.pcgu-hero__stat-card--b { right: -0.75rem; bottom: 2.5rem; }
.pcgu-hero__stat-card-row {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}
.pcgu-hero__stat-icon {
	display: grid;
	place-items: center;
	height: 2.25rem;
	width: 2.25rem;
	border-radius: var(--radius-xl);
}
.pcgu-hero__stat-icon svg,
.pcgu-hero__stat-icon i {
	height: 1.25rem;
	width: 1.25rem;
	font-size: 1.25rem;
}
.pcgu-hero__stat-icon--secondary {
	background-color: color-mix(in oklab, var(--secondary) 15%, transparent);
	color: var(--secondary);
}
.pcgu-hero__stat-icon--accent {
	background-color: color-mix(in oklab, var(--accent) 25%, transparent);
	color: var(--accent-foreground);
}
.pcgu-hero__stat-text {
	line-height: 1.2;
}
.pcgu-hero__stat-label {
	font-size: 0.6875rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--muted-foreground);
}
.pcgu-hero__stat-value {
	font-size: 0.875rem;
	font-weight: 700;
	color: var(--foreground);
}

.pcgu-hero__pill-row {
	position: absolute;
	left: 50%;
	bottom: -1.5rem;
	transform: translateX(-50%);
	display: flex;
	align-items: center;
	gap: 1rem;
	border-radius: 9999px;
	border: 1px solid var(--border);
	background-color: color-mix(in oklab, var(--card) 95%, transparent);
	backdrop-filter: blur(8px);
	padding: 0.5rem 1rem;
	box-shadow: var(--shadow-lift);
}
.pcgu-hero__pill-item {
	display: flex;
	align-items: center;
	gap: 0.375rem;
	font-size: 0.75rem;
	font-weight: 600;
	line-height: normal;
	color: var(--foreground);
	white-space: nowrap;
}
.pcgu-hero__pill-item svg,
.pcgu-hero__pill-item i {
	height: 0.875rem;
	width: 0.875rem;
	font-size: 0.875rem;
	color: var(--secondary);
}
.pcgu-hero__pill-divider {
	width: 1px;
	height: 0.75rem;
	background-color: var(--border);
}

/* ---- Responsive — exact original breakpoints (sm:640 / md:768 / lg:1024),
       kept as real media queries so behavior matches to the pixel; Style-tab
       controls (padding, colors, radii) layer on top without conflicting. ---- */
@media (min-width: 640px) {
	.pcgu-hero__actions { flex-direction: row; align-items: center; }
	.pcgu-hero__title { font-size: 3rem; }
	.pcgu-hero__subhead { font-size: 1.125rem; }
	.pcgu-hero .pcgu-hero__image { height: 520px; }
	.pcgu-hero__stat-card--a { left: -2rem; }
	.pcgu-hero__stat-card--b { right: -1.5rem; }
	.pcgu-hero__container { padding-inline: 1.5rem; }
}

/* Note: .pcgu-hero's padding-top/bottom at md/lg is intentionally NOT
   duplicated here — it's already handled by the "Section > Padding"
   responsive control in Hero_Widget (defaults match this breakpoint set
   exactly), so editing it in one place (the Elementor Style tab) is
   authoritative instead of fighting a hardcoded rule here. */

@media (min-width: 1024px) {
	.pcgu-hero__container {
		grid-template-columns: 1.05fr 1fr;
	}
	.pcgu-hero__title { font-size: 4rem; }
}
