/*
	Theme Name: All Pro HVAC Child
	Template: hello-elementor
	Description: Child theme for the All Pro HVAC local build. Layout lives in Elementor; this file holds brand tokens, the hero, and small components Elementor's UI can't express.
	Version: 1.0.0
*/

:root {
	--apro-primary: #0A1A2B;
	--apro-secondary: #2E4D6B;
	--apro-accent2: #2E4D6B;
	--apro-gold: #DCA24A;
	--apro-gold-dk: #C78830;
	--apro-ink: #2A2724;
	--apro-muted: #6B6460;
	--apro-tint: #ECE5DE;
	--apro-tint-soft: #F6F1EC;
	--apro-hairline: #E4DBD1;
	--apro-white: #FFFFFF;
}

body.apro-site,
body.apro-site p,
body.apro-site li,
body.apro-site a,
body.apro-site span,
body.apro-site div {
	font-family: 'Figtree', sans-serif;
}

body.apro-site h1,
body.apro-site h2,
body.apro-site h3,
body.apro-site .elementor-heading-title {
	font-family: 'Fraunces', serif;
	letter-spacing: -0.01em;
}

/* Elementor's blanket `img{height:auto}` (specificity 0,1,1) beats a single
   class, so sized images need the parent-scoped selector. */
.apro-brand__img,
.apro-footer-logo__img {
	height: auto;
}

/* So an in-page anchor link (nav dropdown -> #heating etc.) doesn't land
   underneath the sticky header. */
[id] {
	scroll-margin-top: 110px;
}

.apro-skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 10000;
	background: var(--apro-primary);
	color: #fff;
	padding: 12px 20px;
	border-radius: 0 0 8px 0;
}
.apro-skip-link:focus {
	left: 0;
}

/* ------------------------------------------------------------------ Nav */
/* Header Footer Elementor puts ehf-header on <body>, not on the header
   element itself, so a sticky rule must target the body class. */
body.ehf-header header#masthead.apro-nav {
	position: sticky;
	top: 0;
	z-index: 999;
	box-shadow: 0 2px 16px rgba(17, 19, 24, 0.06);
}

.apro-brand {
	display: inline-flex;
	align-items: center;
	background: #fff;
	border-radius: 6px;
	padding: 8px 20px;
	transform: skewX(-12deg);
}
.apro-brand__img {
	max-width: 200px;
	width: 100%;
	transform: skewX(12deg);
}

/* Active/current nav item: white text with a gold underline, not gold text. */
.apro-nav .elementor-nav-menu .elementor-item.elementor-item-active,
.apro-nav .elementor-nav-menu .elementor-item.current-menu-item,
.apro-nav .elementor-nav-menu .elementor-item.current-menu-ancestor {
	color: #fff !important;
	box-shadow: inset 0 -2px 0 0 var(--apro-gold) !important;
}

@media (max-width: 1024px) {
	.apro-brand__img {
		max-width: 150px;
	}
}

.apro-hide-mobile {
	display: inline;
}
@media (max-width: 767px) {
	.apro-hide-mobile {
		display: none !important;
	}
	.apro-nav-row {
		flex-direction: row !important;
		flex-wrap: nowrap !important;
		justify-content: space-between !important;
	}
	.apro-nav-phone-col {
		display: none !important;
	}
	.apro-brand__img {
		max-width: 120px;
	}
	.apro-brand {
		padding: 6px 10px;
	}
}

/* ---------------------------------------------------------- Trust strip */
.apro-trust-row {
	display: flex;
	flex-wrap: wrap;
	width: 100%;
	justify-content: space-between;
}
.apro-trust-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 4px 24px;
	flex: 1 1 0;
	border-left: 1px solid rgba(255,255,255,0.12);
}
.apro-trust-item:first-child {
	border-left: none;
	padding-left: 0;
}
.apro-trust-item i {
	font-size: 22px;
	color: var(--apro-gold);
	flex: none;
}
.apro-trust-item span {
	font-family: 'Figtree', sans-serif;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--apro-white);
}
@media (max-width: 767px) {
	.apro-trust-row {
		justify-content: center;
	}
	.apro-trust-item {
		flex: 1 1 45%;
		border-left: none !important;
		padding: 8px 10px;
		justify-content: center;
	}
}

/* ------------------------------------------------------------------ Hero */
.apro-hero {
	position: relative;
	min-height: 460px;
	display: flex;
	align-items: center;
	overflow: hidden;
	background: var(--apro-primary);
}
.apro-hero__media {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: 0;
}
.apro-hero__scrim {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(100deg, rgba(10,26,43,0.9) 0%, rgba(10,26,43,0.75) 42%, rgba(10,26,43,0.3) 62%, rgba(10,26,43,0.05) 78%);
}
/* A clean diagonal panel behind the text, like the mockup's cut line,
   rather than relying on the gradient alone to separate text from photo. */
.apro-hero__diagonal {
	position: absolute;
	inset: 0;
	z-index: 1;
	width: 52%;
	background: var(--apro-primary);
	clip-path: polygon(0 0, 100% 0, 82% 100%, 0% 100%);
}
.apro-hero__diagonal::after {
	content: '';
	position: absolute;
	top: 0;
	right: -2px;
	width: 3px;
	height: 100%;
	background: linear-gradient(180deg, var(--apro-gold), var(--apro-secondary));
	opacity: 0.8;
	transform: skewX(-9deg);
}
.apro-hero__inner {
	position: relative;
	z-index: 2;
	max-width: 1360px;
	margin: 0 auto;
	width: 100%;
	padding: 56px 24px;
}
.apro-hero__eyebrow {
	font-family: 'Figtree', sans-serif;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--apro-gold);
	margin: 0 0 16px;
}
.apro-hero__title {
	font-family: 'Fraunces', serif;
	font-weight: 400;
	font-size: clamp(2.1rem, 3.8vw, 3rem);
	line-height: 1.1;
	color: #fff;
	margin: 0 0 10px;
	max-width: 560px;
}
.apro-hero__title em {
	font-style: italic;
	color: var(--apro-gold);
}
.apro-hero__sub {
	font-family: 'Figtree', sans-serif;
	font-size: 16px;
	font-weight: 500;
	letter-spacing: 0.06em;
	color: #D7E3F7;
	margin: 0 0 8px;
	max-width: 480px;
}
.apro-hero__desc {
	font-family: 'Figtree', sans-serif;
	font-size: 15px;
	color: #C3D2EC;
	max-width: 420px;
	line-height: 1.6;
	margin: 0 0 24px;
}
.apro-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	align-items: center;
}
.apro-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-family: 'Figtree', sans-serif;
	font-weight: 700;
	font-size: 16px;
	text-decoration: none;
	border-radius: 100px;
	padding: 17px 34px;
	transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
	white-space: nowrap;
}
.apro-btn:hover {
	transform: translateY(-1px);
}
.apro-btn--gold {
	background: var(--apro-gold);
	color: var(--apro-primary);
}
.apro-btn--gold:hover {
	background: var(--apro-gold-dk);
}
.apro-btn--outline {
	background: transparent;
	color: #fff;
	border: 2px solid rgba(255,255,255,0.55);
}
.apro-btn--outline:hover {
	border-color: #fff;
	background: rgba(255,255,255,0.08);
}
@media (max-width: 767px) {
	.apro-hero {
		min-height: 520px;
	}
	.apro-hero__inner {
		padding: 44px 20px;
	}
	.apro-hero__title,
	.apro-hero__sub,
	.apro-hero__desc {
		max-width: 100%;
	}
	.apro-hero__media {
		object-position: 70% center;
	}
	.apro-hero__diagonal {
		width: 100%;
		clip-path: none;
		background: rgba(10,26,43,0.55);
	}
	.apro-hero__diagonal::after {
		display: none;
	}
}

/* ------------------------------------------------------------- Services */
/* Card = the el_col container itself (native icon-box widget inside, icon
   left of title+description, per the mockup — not a stacked layout). */
.apro-svc-card {
	position: relative;
	background: var(--apro-tint-soft);
	border: 1px solid var(--apro-hairline);
	border-radius: 14px;
	padding: 20px 44px 20px 20px;
	height: 100%;
	transition: box-shadow .15s ease, transform .15s ease;
}
.apro-svc-card:hover {
	box-shadow: 0 14px 32px rgba(17,19,24,0.08);
	transform: translateY(-2px);
}
.apro-svc-card .elementor-icon-box-wrapper {
	text-align: left;
}
.apro-svc-card .elementor-icon-box-icon {
	margin-right: 14px;
}
.apro-svc-card::after {
	content: '\f061'; /* fa-arrow-right */
	font-family: 'Font Awesome 5 Free';
	font-weight: 900;
	position: absolute;
	right: 14px;
	bottom: 14px;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	border: 1px solid var(--apro-gold);
	color: var(--apro-gold);
	font-size: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Left-bleeding decorative image fading into the section background.
   Elementor's blanket `img{height:auto}` (specificity 0,1,1) beats a
   single class — using `inset:0` instead of explicit width/height sides
   with that fight: for an absolutely positioned box with top+bottom both
   set, `height:auto` is defined to stretch to fill rather than shrink to
   intrinsic size, so both rules agreeing on the keyword "auto" still ends
   up full-bleed. */
.apro-bleed-img {
	position: absolute;
	inset: 0;
	object-fit: cover;
}
/* For an absolutely positioned REPLACED element (img/video) with both
   width and height "auto", the spec uses the intrinsic size even when
   inset:0 is set on all four sides — inset alone does not stretch a
   replaced element the way it does a normal box. Needs explicit
   width/height, which then runs into the usual `img{height:auto}`
   (specificity 0,1,1) gotcha, so this selector matches that specificity
   and wins on source order (child theme loads after the parent). */
.apro-bleed-col > .elementor-widget-html {
	width: 100%;
	height: 100%;
}
img.apro-bleed-img {
	width: 100%;
	height: 100%;
}
.apro-bleed-img--fade-right {
	mask-image: linear-gradient(to right, black 65%, transparent 100%);
	-webkit-mask-image: linear-gradient(to right, black 65%, transparent 100%);
}
.apro-bleed-img--fade-left {
	mask-image: linear-gradient(to left, black 65%, transparent 100%);
	-webkit-mask-image: linear-gradient(to left, black 65%, transparent 100%);
}
.apro-bleed-col {
	position: relative;
	min-height: 420px;
}
@media (max-width: 1024px) {
	.apro-bleed-col {
		min-height: 320px;
	}
	.apro-bleed-img--fade-right,
	.apro-bleed-img--fade-left {
		mask-image: none;
		-webkit-mask-image: none;
	}
}
/* Decorative only — drops on mobile rather than fighting the stacked
   flex layout for a bleed effect no mobile design reference calls for. */
@media (max-width: 767px) {
	.apro-bleed-col {
		display: none;
	}
}

/* Container used inside full-bleed sections so text doesn't stretch edge
   to edge while the decorative image still touches the viewport. */
.apro-content-pad {
	padding: 72px 64px;
}
@media (max-width: 1024px) {
	.apro-content-pad {
		padding: 48px 32px;
	}
}
@media (max-width: 767px) {
	.apro-content-pad {
		padding: 40px 20px;
	}
}

.apro-divider-gold {
	width: 3px;
	border-radius: 2px;
	background: var(--apro-gold);
	align-self: stretch;
}

/* ------------------------------------------------------------- Footer */
.apro-footer-logo {
	display: inline-block;
	background: #fff;
	border-radius: 10px;
	padding: 12px 16px;
	margin-bottom: 4px;
}
.apro-footer-logo__img {
	max-width: 190px;
	width: 100%;
	display: block;
}
.apro-footer-hours {
	width: 100%;
	border-collapse: collapse;
	font-family: 'Figtree', sans-serif;
	font-size: 15px;
	color: var(--apro-white);
	margin-bottom: 18px;
}
.apro-footer-hours td {
	padding: 4px 0;
}
.apro-footer-hours td:first-child {
	color: #AFC6E8;
}
.apro-footer-hours td:last-child {
	text-align: right;
}
.apro-footer-hours {
	margin-bottom: 20px;
}
.apro-footer-areas {
	margin: 0;
}
.apro-footer-rule {
	border: none;
	border-top: 1px solid rgba(255,255,255,0.14);
	margin: 0 0 26px;
}

/* ------------------------------------------------------------- Generic */
.apro-band-dark {
	background: var(--apro-primary);
}
.apro-eyebrow {
	display: flex;
	align-items: center;
	gap: 10px;
	font-family: 'Figtree', sans-serif;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	margin: 0 0 10px;
}
.apro-eyebrow-line {
	display: inline-block;
	width: 44px;
	height: 2px;
	border-radius: 2px;
}

/* ---------------------------------------------------- Mini process steps */
.apro-step {
	display: flex;
	align-items: flex-start;
	gap: 14px;
}
.apro-step__num {
	flex: none;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--apro-gold);
	color: var(--apro-primary);
	font-family: 'Figtree', sans-serif;
	font-weight: 700;
	font-size: 15px;
	display: flex;
	align-items: center;
	justify-content: center;
}
