/*
 * Site-wide polish for Elementor's free-tier widgets, since per-element
 * Custom CSS is an Elementor Pro feature. Targets Elementor's own class
 * names, so this applies to every page built with the theme's Elementor
 * helpers without needing to touch per-page content.
 *
 * Fixes the most common "why don't these look aligned" cause: card and
 * hero images at wildly different native aspect ratios rendering at
 * their raw size instead of a consistent crop.
 */

/* Keep every section's content contained and away from the viewport
 * edge — Elementor's own boxed-width default can end up overridden by
 * site settings, so this enforces it directly regardless of that state. */
.elementor-container {
	max-width: 1140px;
	margin-left: auto;
	margin-right: auto;
	width: 100%;
	padding-left: 20px;
	padding-right: 20px;
	box-sizing: border-box;
}
.elementor-column > .elementor-widget-wrap {
	padding-left: 8px;
	padding-right: 8px;
	box-sizing: border-box;
}
@media (max-width: 767px) {
	.elementor-container {
		padding-left: 16px;
		padding-right: 16px;
	}
}

/* Image Box (therapy/service/team cards) */
.elementor-image-box-img {
	overflow: hidden;
	border-radius: 12px;
	margin-bottom: 0.75rem;
}
.elementor-image-box-img img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	transition: transform 0.4s ease;
}
.elementor-widget-image-box:hover .elementor-image-box-img img {
	transform: scale(1.05);
}

/* Plain Image widget (hero images, category headers, gallery photos) */
.elementor-widget-image img {
	border-radius: 12px;
	transition: transform 0.4s ease;
}

/* Equal-height cards in a row: Elementor's row already uses flexbox, so
 * columns stretch to match the tallest sibling by default — this just
 * makes sure each card's own content fills that stretched height and
 * pins its call-to-action to the bottom, which is what actually keeps
 * a row of shorter/longer cards looking level. */
.elementor-column .elementor-widget-image-box {
	height: 100%;
	display: flex;
}
.elementor-image-box-wrapper {
	display: flex;
	flex-direction: column;
	height: 100%;
}
.elementor-image-box-content {
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

/* Testimonial cards: consistent padding/shadow so a row reads as one set */
.elementor-widget-testimonial .elementor-testimonial-wrapper {
	background: #fff;
	border-radius: 12px;
	padding: 1.75rem;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
	height: 100%;
}

/* Accordion (FAQs): match the site's palette instead of Elementor's default gray */
.elementor-accordion .elementor-tab-title {
	font-weight: 600;
	color: #14532d;
}
.elementor-accordion .elementor-tab-title.elementor-active {
	color: #15803d;
}
.elementor-accordion .elementor-tab-content {
	border-color: #d1fae5 !important;
}

/* Buttons: consistent rounded pill shape matching the site's original look */
.elementor-button {
	border-radius: 9999px !important;
}

@media (prefers-reduced-motion: reduce) {
	.elementor-image-box-img img,
	.elementor-widget-image img {
		transition: none !important;
	}
}
