/**
 * Hello Elementor Child – single post / property styles.
 * Loaded on single pages only. Colours and fonts inherit from the
 * Elementor Site Settings (global colours / typography) so the FAQ
 * matches the existing design.
 */

/* ==========================================================================
   1. Dynamic FAQ accordion
   Green theme (#3b6d11): headings, icons, borders, hover and open states.
   ========================================================================== */

.hec-faq {
	--hec-faq-green: #3b6d11;
	--hec-faq-green-dark: #27500a;
	--hec-faq-tint: #f4f9ee;
	--hec-faq-line: rgba(59, 109, 17, 0.22);
	--hec-faq-text: var(--e-global-color-text, inherit);
	--hec-faq-heading: var(--hec-faq-green);
	--hec-faq-accent: var(--hec-faq-green);
	--hec-faq-border: var(--hec-faq-line);
	--hec-faq-radius: 10px;
	--hec-faq-pad-x: 18px;
	--hec-faq-pad-y: 14px;
	--hec-faq-icon: 26px;
	--hec-faq-speed: 0.3s;

	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	margin: 40px 0 0;
	clear: both;
	font-family: inherit;
	color: var(--hec-faq-text);
	overflow-wrap: anywhere;
}

.hec-faq *,
.hec-faq *::before,
.hec-faq *::after {
	box-sizing: border-box;
}

.hec-faq .hec-faq__title {
	margin: 0 0 18px;
	padding: 0 0 12px;
	border-bottom: 2px solid var(--hec-faq-green);
	color: var(--hec-faq-heading);
	font-family: var(--e-global-typography-primary-font-family, inherit);
	line-height: 1.3;
}

/* "FAQs" heading written in the post content (above a converted accordion). */
[data-hec-faq-title],
[data-hec-faq-title] .elementor-heading-title {
	color: var(--hec-faq-heading, #3b6d11) !important;
}

.hec-faq__list {
	display: flex;
	flex-direction: column;
	gap: 10px;
	background: transparent;
}

.hec-faq .hec-faq__item {
	overflow: hidden;
	border: 1px solid var(--hec-faq-border);
	border-radius: var(--hec-faq-radius);
	background: #fff;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hec-faq .hec-faq__item:hover,
.hec-faq .hec-faq__item.is-open {
	border-color: var(--hec-faq-green);
}

.hec-faq .hec-faq__item.is-open {
	box-shadow: 0 6px 18px rgba(59, 109, 17, 0.08);
}

/* The heading wrapper is only for document outline – reset any theme heading styles. */
.hec-faq .hec-faq__heading {
	margin: 0;
	padding: 0;
	font-size: inherit;
	font-weight: inherit;
	line-height: inherit;
	letter-spacing: normal;
	text-transform: none;
}

.hec-faq .hec-faq__item .hec-faq__question {
	display: flex;
	align-items: center;           /* keeps the icon vertically centred */
	justify-content: space-between;
	gap: 14px;
	width: 100%;
	min-height: 0;
	margin: 0;
	padding: var(--hec-faq-pad-y) var(--hec-faq-pad-x);
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: var(--hec-faq-heading);
	font-family: var(--e-global-typography-primary-font-family, inherit);
	font-size: 1.0625rem;
	font-weight: 600;
	line-height: 1.45;
	text-align: left;
	text-decoration: none;
	text-transform: none;
	letter-spacing: normal;
	white-space: normal;
	cursor: pointer;
	transition: color 0.2s ease, background-color 0.2s ease;
}

.hec-faq .hec-faq__item .hec-faq__question:hover,
.hec-faq .hec-faq__item .hec-faq__question:focus-visible,
.hec-faq .hec-faq__item.is-open .hec-faq__question {
	background: var(--hec-faq-tint);
	color: var(--hec-faq-green-dark);
}

.hec-faq .hec-faq__item .hec-faq__question:focus {
	outline: none;
}

.hec-faq .hec-faq__item .hec-faq__question:focus-visible {
	outline: 2px solid var(--hec-faq-green);
	outline-offset: -2px;
}

.hec-faq__question-text {
	flex: 1 1 auto;
	min-width: 0;
}

/* Round +/- badge – fixed size, immune to global "svg { width:100% }" rules. */
.hec-faq svg.hec-faq__icon {
	display: block;
	flex: 0 0 var(--hec-faq-icon);
	width: var(--hec-faq-icon) !important;
	height: var(--hec-faq-icon) !important;
	min-width: 0;
	max-width: var(--hec-faq-icon) !important;
	max-height: var(--hec-faq-icon) !important;
	margin: 0;
	padding: 6px;
	overflow: visible;
	border: 1.5px solid var(--hec-faq-green);
	border-radius: 50%;
	background: #fff;
	color: var(--hec-faq-green);
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	transition: background-color 0.2s ease, color 0.2s ease, transform var(--hec-faq-speed) ease;
}

.hec-faq .hec-faq__question:hover svg.hec-faq__icon,
.hec-faq__item.is-open svg.hec-faq__icon {
	background: var(--hec-faq-green);
	color: #fff;
}

.hec-faq__item.is-open svg.hec-faq__icon {
	transform: rotate(180deg);
}

.hec-faq__icon-v {
	transform-origin: 8px 8px;
	transition: transform var(--hec-faq-speed) ease, opacity var(--hec-faq-speed) ease;
}

.hec-faq__item.is-open .hec-faq__icon-v {
	transform: scaleY(0);
	opacity: 0;
}

/* Smooth open/close: animates the row height from 0fr to 1fr. */
.hec-faq__panel {
	display: grid;
	grid-template-rows: 1fr; /* open by default when JavaScript is unavailable */
}

.hec-faq--js .hec-faq__panel {
	grid-template-rows: 0fr;
	visibility: hidden;
	transition: grid-template-rows var(--hec-faq-speed) ease, visibility 0s linear var(--hec-faq-speed);
}

.hec-faq--js .hec-faq__item.is-open .hec-faq__panel {
	grid-template-rows: 1fr;
	visibility: visible;
	transition: grid-template-rows var(--hec-faq-speed) ease, visibility 0s linear 0s;
}

.hec-faq__panel-inner {
	min-height: 0;
	overflow: hidden;
}

.hec-faq .hec-faq__answer {
	padding: 12px var(--hec-faq-pad-x) var(--hec-faq-pad-y);
	border-top: 1px solid var(--hec-faq-line);
	color: var(--hec-faq-text);
	font-family: var(--e-global-typography-text-font-family, inherit);
	line-height: 1.7;
}

.hec-faq__answer > :first-child { margin-top: 0; }
.hec-faq__answer > :last-child  { margin-bottom: 0; }

.hec-faq__answer img,
.hec-faq__answer iframe,
.hec-faq__answer table {
	max-width: 100%;
	height: auto;
}

.hec-faq .hec-faq__answer a {
	color: var(--hec-faq-green);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.hec-faq .hec-faq__answer a:hover,
.hec-faq .hec-faq__answer a:focus {
	color: var(--hec-faq-green-dark);
}

/* Buttons inside answers follow the same green. */
.hec-faq .hec-faq__answer .wp-block-button__link,
.hec-faq .hec-faq__answer .elementor-button,
.hec-faq .hec-faq__answer .button {
	border-color: var(--hec-faq-green);
	background-color: var(--hec-faq-green);
	color: #fff;
	text-decoration: none;
}

.hec-faq .hec-faq__answer .wp-block-button__link:hover,
.hec-faq .hec-faq__answer .elementor-button:hover,
.hec-faq .hec-faq__answer .button:hover {
	border-color: var(--hec-faq-green-dark);
	background-color: var(--hec-faq-green-dark);
	color: #fff;
}

@media (max-width: 767px) {
	.hec-faq {
		--hec-faq-pad-x: 14px;
		--hec-faq-pad-y: 12px;
		--hec-faq-icon: 24px;
		margin-top: 30px;
	}

	.hec-faq .hec-faq__title {
		margin-bottom: 14px;
		padding-bottom: 10px;
	}

	.hec-faq__list {
		gap: 8px;
	}

	.hec-faq .hec-faq__item .hec-faq__question {
		font-size: 1rem;
		gap: 10px;
	}

	.hec-faq svg.hec-faq__icon {
		padding: 5px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hec-faq {
		--hec-faq-speed: 0s;
	}
}

/* --------------------------------------------------------------------------
   1b. FAQs written inside the post content ("FAQs" heading followed by
       question headings + answer paragraphs) – converted to an accordion
       by single.js. Fonts/sizes follow the post content.
   -------------------------------------------------------------------------- */

.hec-faq.hec-faq--content {
	margin: 0 0 1.5em;
	font-family: inherit;
}

.hec-faq--content .hec-faq__item .hec-faq__question {
	font-family: inherit;
	font-size: clamp(1.05rem, 1rem + 0.35vw, 1.25rem);
	line-height: 1.4;
}

.hec-faq.hec-faq--content .hec-faq__answer {
	font-family: inherit;
	font-size: inherit;
	line-height: inherit;
}

@media (max-width: 767px) {
	.hec-faq--content .hec-faq__item .hec-faq__question {
		font-size: 1rem;
	}
}

/* ==========================================================================
   2. Fix oversized icons in any existing FAQ / accordion / toggle widgets
      on single pages (Elementor Accordion, Toggle, nested Accordion and
      custom blocks with "faq" in the class name).
   ========================================================================== */

.single .elementor-accordion .elementor-accordion-icon,
.single .elementor-toggle .elementor-toggle-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	flex-shrink: 0;
}

.single .elementor-accordion .elementor-accordion-icon svg:not(.hec-faq__icon),
.single .elementor-toggle .elementor-toggle-icon svg:not(.hec-faq__icon),
.single .e-n-accordion-item-title-icon svg:not(.hec-faq__icon),
.single [class*="faq"] .elementor-icon svg:not(.hec-faq__icon),
.single [class*="faq"] button svg:not(.hec-faq__icon),
.single [class*="faq"] summary svg:not(.hec-faq__icon),
.single [class*="faq"] [class*="icon"] svg:not(.hec-faq__icon),
.single [class*="faq"] [class*="title"] svg:not(.hec-faq__icon),
.single [class*="faq"] [class*="question"] svg:not(.hec-faq__icon) {
	width: 1em !important;
	height: 1em !important;
	max-width: 20px !important;
	max-height: 20px !important;
	flex: 0 0 auto;
	vertical-align: middle;
}

.single .e-n-accordion-item-title-icon {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
}

.single .elementor-accordion .elementor-tab-title,
.single .e-n-accordion-item-title {
	align-items: center;
}

.single .elementor-accordion,
.single .elementor-toggle,
.single .e-n-accordion,
.single [class*="faq"] {
	max-width: 100%;
	overflow-wrap: anywhere;
}
/* ==========================================================================
   3. Single post CTAs (3 variations, spread between paragraphs of the post)
      Palette and fonts follow the site's existing styles
      (Urbanist headings, green accents #173404 / #3B6D11 / #639922).
   ========================================================================== */

.hec-ctas {
	--hec-cta-dark: #173404;
	--hec-cta-deep: #27500A;
	--hec-cta-main: #3B6D11;
	--hec-cta-mid: #639922;
	--hec-cta-soft: #97C459;
	--hec-cta-line: #c0dd97;
	--hec-cta-tint: #eaf3de;
	--hec-cta-wash: #f6fbf0;
	--hec-cta-head-font: 'Urbanist', var(--e-global-typography-primary-font-family, inherit), sans-serif;

	display: flex;
	flex-direction: column;
	gap: 28px;
	width: 100%;
	max-width: 100%;
	margin: 40px 0;
	clear: both;
	box-sizing: border-box;
}

.hec-ctas *,
.hec-ctas *::before,
.hec-ctas *::after {
	box-sizing: border-box;
}

.hec-ctas .hec-cta {
	position: relative;
	overflow: hidden;
	border-radius: 20px;
	padding: 36px 40px;
	overflow-wrap: anywhere;
}

.hec-ctas .hec-cta__body {
	min-width: 0;
}

/* Title is a styled paragraph so it doesn't change the post's heading
   outline or table of contents. */
.hec-ctas .hec-cta__title {
	margin: 0 0 10px;
	padding: 0;
	font-family: var(--hec-cta-head-font);
	font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem);
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -0.01em;
	color: var(--hec-cta-dark);
}

.hec-ctas .hec-cta__text {
	margin: 0;
	padding: 0;
	font-size: 1rem;
	line-height: 1.65;
	color: var(--hec-cta-main);
}

/* ── Buttons ── */
.hec-ctas .hec-cta__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 48px;
	padding: 13px 26px;
	border: 1.5px solid transparent;
	border-radius: 10px;
	font-family: var(--hec-cta-head-font);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.03em;
	text-align: center;
	text-decoration: none !important;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.hec-ctas .hec-cta__btn:hover {
	transform: translateY(-1px);
	text-decoration: none !important;
}

.hec-ctas .hec-cta__btn:active {
	transform: translateY(0);
}

.hec-ctas .hec-cta__btn:focus-visible {
	outline: 2px solid var(--hec-cta-mid);
	outline-offset: 3px;
}

.hec-ctas svg.hec-cta__btn-icon {
	display: block;
	flex: 0 0 16px;
	width: 16px !important;
	height: 16px !important;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
	transition: transform 0.2s ease;
}

.hec-ctas .hec-cta__btn:hover .hec-cta__btn-icon {
	transform: translateX(3px);
}

.hec-ctas .hec-cta__btn--primary,
.hec-ctas .hec-cta__btn--primary:visited {
	background-color: var(--hec-cta-main);
	color: #fff;
	box-shadow: 0 4px 16px rgba(59, 109, 17, 0.25);
}

.hec-ctas .hec-cta__btn--primary:hover,
.hec-ctas .hec-cta__btn--primary:focus {
	background-color: var(--hec-cta-deep);
	color: #fff;
	box-shadow: 0 8px 24px rgba(59, 109, 17, 0.3);
}

.hec-ctas .hec-cta__btn--light,
.hec-ctas .hec-cta__btn--light:visited {
	background-color: #fff;
	color: var(--hec-cta-dark);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}

.hec-ctas .hec-cta__btn--light:hover,
.hec-ctas .hec-cta__btn--light:focus {
	background-color: var(--hec-cta-tint);
	color: var(--hec-cta-dark);
}

.hec-ctas .hec-cta__btn--outline,
.hec-ctas .hec-cta__btn--outline:visited {
	background-color: transparent;
	border-color: var(--hec-cta-main);
	color: var(--hec-cta-main);
}

.hec-ctas .hec-cta__btn--outline:hover,
.hec-ctas .hec-cta__btn--outline:focus {
	background-color: var(--hec-cta-main);
	border-color: var(--hec-cta-main);
	color: #fff;
}

/* ── CTA 1: Spotlight banner (dark) ── */
.hec-ctas .hec-cta--spotlight {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	background-color: var(--hec-cta-dark);
	background-image:
		radial-gradient(circle at 100% 0%, rgba(151, 196, 89, 0.28) 0, rgba(151, 196, 89, 0) 45%),
		radial-gradient(circle at 0% 100%, rgba(99, 153, 34, 0.25) 0, rgba(99, 153, 34, 0) 40%);
	box-shadow: 0 20px 60px rgba(23, 52, 4, 0.18);
}

.hec-ctas .hec-cta--spotlight .hec-cta__body {
	flex: 1 1 auto;
	max-width: 560px;
}

.hec-ctas .hec-cta--spotlight .hec-cta__title {
	color: #fff;
}

.hec-ctas .hec-cta--spotlight .hec-cta__text {
	color: rgba(255, 255, 255, 0.82);
}

.hec-ctas .hec-cta__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 14px;
	padding: 5px 14px;
	border: 1px solid rgba(192, 221, 151, 0.35);
	border-radius: 999px;
	background: rgba(234, 243, 222, 0.12);
	color: var(--hec-cta-line);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.1em;
	line-height: 1.4;
	text-transform: uppercase;
}

.hec-ctas .hec-cta__dot {
	flex: 0 0 6px;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--hec-cta-soft);
	animation: hecCtaPulse 1.8s ease-in-out infinite;
}

@keyframes hecCtaPulse {
	0%, 100% { opacity: 1; transform: scale(1); }
	50%      { opacity: 0.4; transform: scale(1.5); }
}

.hec-ctas .hec-cta--spotlight .hec-cta__actions {
	display: flex;
	flex: 0 0 auto;
	flex-direction: column;
	align-items: center;
	gap: 10px;
}

.hec-ctas .hec-cta__note {
	color: rgba(255, 255, 255, 0.7);
	font-size: 12.5px;
	line-height: 1.4;
	text-align: center;
}

/* ── CTA 2: Checklist split card (light) ── */
.hec-ctas .hec-cta--split {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
	align-items: center;
	gap: 36px;
	background: var(--hec-cta-wash);
	border: 1px solid var(--hec-cta-line);
}

.hec-ctas .hec-cta--split .hec-cta__text {
	margin-bottom: 22px;
}

.hec-ctas .hec-cta__list {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin: 0;
	padding: 24px;
	list-style: none;
	background: #fff;
	border: 1px solid var(--hec-cta-tint);
	border-radius: 14px;
}

.hec-ctas .hec-cta__list li {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin: 0;
	padding: 0;
	color: var(--hec-cta-dark);
	font-size: 15px;
	font-weight: 500;
	line-height: 1.5;
}

.hec-ctas .hec-cta__list li::before,
.hec-ctas .hec-cta__list li::marker {
	content: none;
}

.hec-ctas svg.hec-cta__check {
	flex: 0 0 18px;
	width: 18px !important;
	height: 18px !important;
	margin-top: 2px;
}

.hec-ctas .hec-cta__check circle {
	fill: var(--hec-cta-tint);
}

.hec-ctas .hec-cta__check path {
	fill: none;
	stroke: var(--hec-cta-main);
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* ── CTA 3: Compact strip ── */
.hec-ctas .hec-cta--strip {
	display: flex;
	align-items: center;
	gap: 20px;
	padding: 24px 28px;
	background: #fff;
	border: 1px solid var(--hec-cta-line);
	border-left: 4px solid var(--hec-cta-mid);
	border-radius: 14px;
}

.hec-ctas .hec-cta--strip .hec-cta__body {
	flex: 1 1 auto;
}

.hec-ctas .hec-cta--strip .hec-cta__title {
	margin-bottom: 4px;
	font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem);
}

.hec-ctas .hec-cta--strip .hec-cta__text {
	font-size: 0.95rem;
}

.hec-ctas .hec-cta__icon {
	display: inline-flex;
	flex: 0 0 48px;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--hec-cta-tint);
	color: var(--hec-cta-main);
}

.hec-ctas svg.hec-cta__chat {
	width: 22px !important;
	height: 22px !important;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
	.hec-ctas .hec-cta {
		padding: 30px 28px;
	}

	.hec-ctas .hec-cta--spotlight {
		flex-direction: column;
		align-items: flex-start;
		gap: 22px;
	}

	.hec-ctas .hec-cta--spotlight .hec-cta__actions {
		align-items: flex-start;
	}

	.hec-ctas .hec-cta--split {
		grid-template-columns: minmax(0, 1fr);
		gap: 24px;
	}
}

@media (max-width: 767px) {
	.hec-ctas {
		gap: 20px;
		margin: 32px 0;
	}

	.hec-ctas .hec-cta {
		padding: 26px 20px;
		border-radius: 16px;
	}

	.hec-ctas .hec-cta__btn {
		width: 100%;
		white-space: normal;
	}

	.hec-ctas .hec-cta--spotlight .hec-cta__actions {
		width: 100%;
		align-items: stretch;
	}

	.hec-ctas .hec-cta__list {
		padding: 18px;
	}

	.hec-ctas .hec-cta--strip {
		flex-direction: column;
		align-items: flex-start;
		gap: 14px;
		padding: 22px 20px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hec-ctas .hec-cta__dot {
		animation: none;
	}

	.hec-ctas .hec-cta__btn,
	.hec-ctas .hec-cta__btn-icon {
		transition: none;
	}
}
