/**
 * Product Category Content – frontend styles
 *
 * @package HelloElementorChild
 */

/* ---------- Hero ---------- */
.bab-cat-hero {
	margin: 0 0 2rem;
}

.bab-cat-hero__heading {
	margin: 0 0 1rem;
	font-size: clamp(1.75rem, 2.5vw, 2.5rem);
	line-height: 1.25;
	font-weight: 700;
	color: #1a1a1a;
}

.bab-cat-hero__description {
	font-size: 1rem;
	line-height: 1.7;
	color: #333;
}

.bab-cat-hero__description > *:last-child {
	margin-bottom: 0;
}

/* ---------- SEO content ---------- */
.bab-cat-content {
	margin: 2.5rem 0;
}

.bab-cat-content__inner {
	font-size: 1rem;
	line-height: 1.75;
	color: #333;
}

.bab-cat-content__inner h2,
.bab-cat-content__inner h3 {
	margin: 1.5rem 0 0.75rem;
	color: #1a1a1a;
}

.bab-cat-content__inner a {
	color: #289e19;
}

.bab-cat-content__inner > *:last-child {
	margin-bottom: 0;
}

/* ---------- CTA ---------- */
.bab-cat-cta {
	position: relative;
	margin: 2.5rem 0;
	padding: 2.5rem 1.5rem;
	border-radius: 4px;
	background: #f5f5f5;
	border-top: 3px solid #289e19;
	overflow: hidden;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

.bab-cat-cta--has-bg {
	color: #fff;
	border-top-color: transparent;
}

.bab-cat-cta--has-bg::before {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
	z-index: 0;
}

.bab-cat-cta__inner {
	position: relative;
	z-index: 1;
	max-width: 720px;
	margin: 0 auto;
	text-align: center;
}

.bab-cat-cta__heading {
	margin: 0 0 0.75rem;
	font-size: clamp(1.35rem, 2vw, 1.85rem);
	line-height: 1.3;
	font-weight: 700;
}

.bab-cat-cta--has-bg .bab-cat-cta__heading {
	color: #fff;
}

.bab-cat-cta__description {
	margin: 0 0 1.25rem;
	line-height: 1.65;
}

.bab-cat-cta__description > *:last-child {
	margin-bottom: 0;
}

.bab-cat-cta__actions {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin: 0;
}

.bab-cat-cta__button {
	display: inline-block;
	padding: 0.75rem 1.75rem;
	background: #289e19;
	color: #fff !important;
	text-decoration: none !important;
	font-weight: 600;
	border-radius: 3px;
	border: 2px solid #289e19;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.bab-cat-cta__button:hover,
.bab-cat-cta__button:focus {
	background: #1f7d14;
	border-color: #1f7d14;
	color: #fff !important;
}

.bab-cat-cta__button--secondary {
	border-color: #1a1a1a;
	background: #1a1a1a;
}

.bab-cat-cta__button--secondary:hover,
.bab-cat-cta__button--secondary:focus {
	border-color: #000;
	background: #000;
}

.bab-cat-cta__button:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
}

.bab-cat-cta--has-bg .bab-cat-cta__button:focus-visible {
	outline-color: #289e19;
}

/* ---------- FAQs ---------- */
.bab-cat-faqs {
	margin: 2.5rem 0 3rem;
}

.bab-cat-faqs__heading {
	margin: 0 0 1.25rem;
	font-size: clamp(1.35rem, 2vw, 1.75rem);
	font-weight: 700;
	color: #1a1a1a;
}

.bab-cat-faqs__list {
	border-top: 1px solid #ddd;
}

.bab-faq {
	border-bottom: 1px solid #ddd;
}

.bab-faq__heading {
	margin: 0;
	font-size: 1rem;
	font-weight: 600;
}

.bab-faq__trigger {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	width: 100%;
	padding: 1rem 0;
	margin: 0;
	background: transparent;
	border: 0;
	text-align: left;
	font: inherit;
	font-weight: 600;
	color: #1a1a1a;
	cursor: pointer;
}

.bab-faq__trigger:hover {
	color: #289e19;
}

.bab-faq__trigger:focus-visible {
	outline: 2px solid #289e19;
	outline-offset: 2px;
}

.bab-faq__question {
	flex: 1 1 auto;
}

.bab-faq__icon {
	flex: 0 0 auto;
	position: relative;
	width: 1rem;
	height: 1rem;
}

.bab-faq__icon::before,
.bab-faq__icon::after {
	content: '';
	position: absolute;
	background: currentColor;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.bab-faq__icon::before {
	top: 50%;
	left: 0;
	width: 100%;
	height: 2px;
	margin-top: -1px;
}

.bab-faq__icon::after {
	top: 0;
	left: 50%;
	width: 2px;
	height: 100%;
	margin-left: -1px;
}

.bab-faq__trigger[aria-expanded="true"] .bab-faq__icon::after {
	transform: rotate(90deg);
	opacity: 0;
}

.bab-faq__panel {
	overflow: hidden;
	max-height: 0;
	transition: max-height 0.3s ease;
}

.bab-faq__panel-inner {
	padding: 0 0 1.15rem;
	font-size: 0.975rem;
	line-height: 1.7;
	color: #444;
}

.bab-faq__panel-inner > *:last-child {
	margin-bottom: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 767px) {
	.bab-cat-cta {
		padding: 2rem 1.15rem;
	}

	.bab-faq__trigger {
		padding: 0.9rem 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.bab-cat-cta__button,
	.bab-faq__icon::before,
	.bab-faq__icon::after,
	.bab-faq__panel {
		transition: none !important;
	}
}
