/* Everest Custom Elements: quote-cta.css (EHF 1.4.0)
   Widget: everest_quote_cta. Restyled on the --ehf-* tokens; buttons are the .ehf-btn family (tokens.css).
   Variants: light (default), dark, dark-photo (full-bleed band, no form). Layouts: stacked (default), split. */

.ehf-qcta {
	box-sizing: border-box;
	position: relative;
	width: 100%;
	padding: var(--ehf-pad-tight, 40px) 20px;
	border-radius: var(--ehf-r-md, 12px);
	background: var(--ehf-c-tint-50, #f4f8fa);
	color: var(--ehf-c-ink, #111827);
	font-family: var(--ehf-ff-body, "Nunito Sans", "Nunito", sans-serif);
}

.ehf-qcta *,
.ehf-qcta *::before,
.ehf-qcta *::after {
	box-sizing: border-box;
}

.ehf-qcta--dark {
	background: var(--ehf-g-dark, linear-gradient(160deg, #0b6993 0%, #084f70 55%, #063a52 100%));
	color: var(--ehf-c-on-dark, #ffffff);
}

/* dark-photo is a full-bleed band (backgrounds bleed, content stays in the 1200 container): square edges */
.ehf-qcta--dark-photo {
	overflow: hidden;
	padding: var(--ehf-pad-section, 80px) var(--ehf-gutter, 24px);
	border-radius: 0;
	background: var(--ehf-c-primary-900, #063a52);
	color: var(--ehf-c-on-dark, #ffffff);
}

.ehf-qcta__bg {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.ehf-qcta__scrim {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: var(--ehf-g-dark-photo, linear-gradient(90deg, rgba(6, 58, 82, 0.94) 0%, rgba(6, 58, 82, 0.84) 45%, rgba(6, 58, 82, 0.6) 100%));
}

.ehf-qcta__inner {
	position: relative;
	z-index: 1;
	max-width: var(--ehf-container, 1200px);
	margin: 0 auto;
}

/* 1.4.1 M1: split band content sits on the shared edge (container - 2 gutters, centred) */
.ehf-qcta--split .ehf-qcta__inner {
	max-width: calc(var(--ehf-container, 1200px) - 2 * var(--ehf-gutter, 24px));
}

/* 1.4.1 M3: a split band is full-bleed at any placement, so it is always square */
.ehf-qcta--split {
	border-radius: 0;
}

.ehf-qcta--center .ehf-qcta__inner {
	text-align: center;
}

.ehf-qcta--left .ehf-qcta__inner {
	text-align: left;
}

.ehf-qcta__heading {
	margin: 0 0 8px;
	font-family: var(--ehf-ff-head, "Nunito", sans-serif);
	font-size: clamp(26px, 4vw, 38px);
	line-height: 1.2;
	font-weight: 800;
	color: inherit;
}

.ehf-qcta__sub {
	margin: 0 0 8px;
	max-width: var(--ehf-prose, 62ch);
	font-size: var(--ehf-fs-body, 17px);
	line-height: 1.55;
	color: var(--ehf-c-body, #5c6570);
}

.ehf-qcta--center .ehf-qcta__sub {
	margin-left: auto;
	margin-right: auto;
}

.ehf-qcta--dark .ehf-qcta__sub,
.ehf-qcta--dark-photo .ehf-qcta__sub {
	color: rgba(255, 255, 255, 0.92);
}

.ehf-qcta__address {
	margin: 12px 0 0;
	font-size: var(--ehf-fs-small, 15px);
	font-style: normal;
	line-height: 1.5;
	color: var(--ehf-c-body, #5c6570);
}

.ehf-qcta--dark .ehf-qcta__address,
.ehf-qcta--dark-photo .ehf-qcta__address {
	color: var(--ehf-c-on-dark-muted, #bfe0ee);
}

.ehf-qcta__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--ehf-gap-inline, 16px);
	margin-top: 24px;
}

.ehf-qcta--center .ehf-qcta__actions {
	justify-content: center;
}

.ehf-qcta--left .ehf-qcta__actions {
	justify-content: flex-start;
}

/* Phone glyph is a filled shape */
.ehf-qcta__btn[data-ehf-cta="call"] svg {
	fill: currentColor;
	stroke: none;
}

/* Split: copy and address left, three stacked actions right */
@media (min-width: 1025px) {
	.ehf-qcta--split .ehf-qcta__inner {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
		column-gap: var(--ehf-s-5, 48px);
		align-items: center;
	}

	.ehf-qcta--split .ehf-qcta__actions {
		flex-direction: column;
		flex-wrap: nowrap;
		align-items: stretch;
		margin-top: 0;
		gap: 12px;
	}
}

@media (max-width: 767px) {
	.ehf-qcta {
		padding: 32px 16px;
	}

	.ehf-qcta--dark-photo {
		padding: var(--ehf-pad-section, 56px) var(--ehf-gutter, 16px);
	}

	.ehf-qcta__actions {
		flex-direction: column;
		gap: 12px;
	}

	.ehf-qcta__btn,
	.ehf-qcta__btn:link,
	.ehf-qcta__btn:visited {
		width: 100%;
		min-height: 56px;
		padding: 12px 20px;
		font-size: 17px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ehf-qcta__btn {
		transition: none;
	}
}

/* 1.4.2: beat Elementor's `.elementor img { height:auto; max-width:100% }` so the photo fills the band. */
.ehf-qcta--dark-photo img.ehf-qcta__bg {
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: center;
}
