/* ==========================================================================
   AAS Quote Section - dark hero banner with background image, breadcrumb,
   icon feature list, two buttons and a white "Get a Free Quote" form card.
   Matches the AAS Group reference design 1:1.

   Reads the same CSS variables the Renovex / Renovex-Child theme defines
   (--e-global-color-accent, --e-global-color-primary, --e-global-typography-*)
   so colors/fonts always stay in sync with the rest of the site.

   All heading styling is bound to CLASSES (.aas-heading / .aas-feature-heading),
   never to the HTML tag, so editors can change H1-H6/div/span freely from
   Elementor without ever breaking the look.
   ========================================================================== */

.aas-quote-section {
	--aas-accent: var(--e-global-color-accent, #FE212A);
	--aas-dark: var(--e-global-color-primary, #0D0D0D);
	--aas-text: var(--e-global-color-text, #666666);
	--aas-white: var(--e-global-color-white, #FFFFFF);
	--aas-light: var(--e-global-color-secondary, #F5F5F5);
	--aas-font-heading: var(--e-global-typography-primary-font-family, "Space Grotesk", sans-serif);
	--aas-font-text: var(--e-global-typography-text-font-family, "DM Sans", sans-serif);
	--aas-overlay: 0.55;

	position: relative;
	font-family: var(--aas-font-text);
	color: var(--aas-white);
	background-color: var(--aas-dark);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	padding: 70px 40px 60px;
	overflow: hidden;
}

/* Note: the dark overlay over the background image is baked directly into
   the "background-image" value itself (gradient + photo, generated in PHP),
   not into a separate element/rule - this guarantees it always shows up,
   even before a stylesheet update/cache-clear has fully propagated. The
   rule below is just a safety net in case the older ".aas-quote-overlay"
   element is still present on a cached page. */
.aas-quote-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.55) 55%, rgba(0,0,0,0.4) 100%);
	pointer-events: none;
	z-index: 0;
}

.aas-quote-section > * {
	position: relative;
	z-index: 1;
}

.aas-quote-section .aas-quote-grid {
	max-width: 1320px;
	width: 100%;
	margin: 0 auto;
	box-sizing: border-box;
}

/* ---- Breadcrumb ----------------------------------------------------------- */
.aas-breadcrumb {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	max-width: 1320px;
	margin: 0 auto 26px;
	font-family: var(--aas-font-text);
	font-size: 14px;
	color: var(--aas-white);
}
.aas-breadcrumb-link {
	color: var(--aas-white);
	text-decoration: none;
	opacity: 0.85;
}
.aas-breadcrumb-link:hover {
	opacity: 1;
	color: var(--aas-accent);
}
.aas-breadcrumb-sep {
	opacity: 0.5;
}
.aas-breadcrumb-current {
	color: var(--aas-accent);
	font-weight: 500;
}

.aas-quote-grid {
	display: grid;
	grid-template-columns: 1.15fr 0.85fr;
	gap: 40px;
	/* Vertically CENTER the left content against the (usually taller) form
	   card, instead of sticking to the top - keeps the whole section looking
	   centered rather than leaving dead space below the content. */
	align-items: center;
}

@media (max-width: 1024px) {
	.aas-quote-grid {
		grid-template-columns: 1fr;
	}
}

/* ---- Badge -------------------------------------------------------------- */
.aas-badge {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 16px;
}
.aas-badge-dash {
	width: 28px;
	height: 3px;
	background: var(--aas-accent);
	display: inline-block;
}
.aas-quote-section .aas-badge-text {
	font-family: var(--aas-font-heading);
	font-weight: 700;
	font-size: 14px;
	letter-spacing: 0.5px;
	color: var(--aas-white) !important;
}

/* ---- Heading (class-based, tag-independent) ------------------------------
   !important here is intentional: this hero sits on a dark photo background,
   so its heading MUST stay white no matter what color the theme/Elementor
   applies to h1-h6 elsewhere on the page (those rules can otherwise win on
   specificity, e.g. ".entry-content h1"). */
.aas-quote-section .aas-heading {
	font-family: var(--aas-font-heading);
	font-weight: 700;
	color: var(--aas-white) !important;
	line-height: 1.12;
	margin: 0 0 18px;
	font-size: clamp(30px, 4.2vw, 52px);
}
.aas-quote-section .aas-form-heading.aas-heading {
	font-size: 22px;
	margin: 0;
	color: var(--aas-white) !important;
}

/* ---- Description ---------------------------------------------------------- */
.aas-quote-section .aas-description,
.aas-quote-section .aas-description p {
	font-family: var(--aas-font-text);
	color: rgba(255,255,255,0.8) !important;
	line-height: 1.6em;
	margin-bottom: 26px;
	max-width: 560px;
}
.aas-description p:last-child { margin-bottom: 0; }

/* ---- Feature / icon list (icon + text, separated by thin dividers) ------- */
.aas-feature-list {
	display: flex;
	flex-wrap: wrap;
	margin-bottom: 32px;
}
.aas-feature-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 0 22px;
	border-right: 1px solid rgba(255,255,255,0.25);
}
.aas-feature-item:first-child {
	padding-left: 0;
}
.aas-feature-item:last-child {
	border-right: none;
}
.aas-icon.aas-feature-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--aas-accent);
	flex-shrink: 0;
}
.aas-icon.aas-feature-icon svg,
.aas-icon.aas-feature-icon i {
	width: 22px;
	height: 22px;
	font-size: 22px;
}
.aas-quote-section .aas-feature-heading {
	font-family: var(--aas-font-heading);
	font-weight: 600;
	font-size: 15px;
	color: var(--aas-white) !important;
	white-space: nowrap;
}

/* ---- Buttons --------------------------------------------------------------
   Button 1 and the form's submit button are built to the EXACT measurements
   of the site's own live "Get In Touch" header button (inspected directly:
   outer padding 5px 5px 5px 20px, border-radius 5px, Space Grotesk 600 18px,
   text color #0D0D0D, a 42x42px dark icon box on the right).

   Every selector below is qualified with ".aas-quote-section" so it always
   wins over any theme/page-builder default button reset - without this, a
   plain ".aas-btn-primary" can lose to a more specific rule elsewhere and
   render as a solid dark bar instead of red+black-box. */
.aas-quote-section .aas-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
}
.aas-quote-section .aas-btn {
	display: inline-flex;
	align-items: center;
	font-family: var(--aas-font-heading);
	font-weight: 600;
	font-size: 18px;
	border-radius: 5px;
	text-decoration: none;
	border: none;
	cursor: pointer;
}

/* Composite primary button: red pill + dark icon box, exactly like the
   site's "Get In Touch" header button. */
.aas-quote-section .aas-btn-primary {
	background-color: var(--aas-accent) !important;
	padding: 5px 5px 5px 20px;
	gap: 14px;
	overflow: hidden;
	transition: background-color 0.3s ease;
	/* Prevents a one-frame flicker on hover/unhover where the composite
	   button's rounded corner and the icon box's own rounded corner
	   momentarily show a sliver of mismatched background. */
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
	will-change: background-color;
}
.aas-quote-section .aas-btn-primary .aas-btn-label {
	color: var(--aas-dark) !important;
	background: transparent !important;
	transition: color 0.3s ease;
}
.aas-quote-section .aas-btn-primary .aas-btn-icon-box {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 4px;
	background-color: var(--aas-dark) !important;
	color: var(--aas-white) !important;
	transition: background-color 0.3s ease, color 0.3s ease;
	flex-shrink: 0;
}
.aas-quote-section .aas-btn-primary:hover {
	background-color: var(--aas-white) !important;
}
.aas-quote-section .aas-btn-icon-box svg,
.aas-quote-section .aas-btn-icon-box i,
.aas-quote-section .aas-btn-icon-box .aas-icon {
	width: 16px;
	height: 16px;
	font-size: 16px;
	color: var(--aas-white) !important;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

/* Full-width variant for the form's "Request a Free Quote" submit button:
   centers the label+icon pair as a group instead of edge-to-edge. */
.aas-quote-section .aas-form-submit {
	width: 100%;
	justify-content: center;
}
.aas-quote-section .aas-form-submit .aas-btn-label {
	flex: 0 0 auto;
}

/* Simple outline secondary button (no icon box), e.g. "Learn More About
   the Service". */
.aas-quote-section .aas-btn-outline {
	background-color: transparent !important;
	color: var(--aas-white) !important;
	border: 1.5px solid rgba(255,255,255,0.7);
	padding: 16px 28px;
}
.aas-quote-section .aas-btn-outline:hover {
	background-color: var(--aas-white) !important;
	color: var(--aas-dark) !important;
	border-color: var(--aas-white);
}

/* ---- Form box (white card, red header, floats over the hero image) ------- */
.aas-quote-right {
	margin-top: 4px;
}
.aas-form-box {
	background: var(--aas-white);
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 20px 50px rgba(0,0,0,0.35);
}
.aas-form-header {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	background: var(--aas-accent);
	padding: 24px 26px;
}
.aas-icon.aas-form-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 8px;
	background: var(--aas-white);
	color: var(--aas-accent);
	flex-shrink: 0;
}
.aas-icon.aas-form-icon svg,
.aas-icon.aas-form-icon i {
	width: 20px;
	height: 20px;
	font-size: 20px;
}
.aas-form-header-text .aas-heading {
	color: var(--aas-white);
}
.aas-form-subtext {
	font-family: var(--aas-font-text);
	color: var(--aas-white);
	opacity: 0.92;
	font-size: 13px;
	line-height: 1.5;
	margin: 6px 0 0;
}
.aas-form-body {
	padding: 24px;
	background: var(--aas-white);
}
.aas-form-placeholder {
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.aas-form-field {
	display: flex;
	align-items: center;
	gap: 10px;
	border: 1px solid #E5E5E5;
	border-radius: 6px;
	padding: 13px 16px;
	color: #9A9A9A;
	font-family: var(--aas-font-text);
	font-size: 14px;
}
.aas-form-field-textarea {
	align-items: flex-start;
	min-height: 70px;
}
.aas-form-field i {
	color: var(--aas-accent);
	width: 16px;
	text-align: center;
}
.aas-quote-section .aas-form-submit {
	margin-top: 6px;
}
.aas-form-note {
	font-size: 12px;
	color: #999;
	font-style: italic;
	margin: 6px 0 0;
}

/* ---- Responsive ------------------------------------------------------------ */
@media (max-width: 782px) {
	.aas-quote-section { padding: 20px 20px 40px; }
	.aas-feature-list { gap: 14px 0; }
	.aas-feature-item { border-right: none; padding: 0 14px 0 0; }
}
