/* Aroma Service Card — structural CSS
   Colors, sizes, spacing & typography are injected dynamically by
   Elementor's own control "selectors" (see class-aroma-service-card-widget.php).
   This file only contains the layout + hover-expand mechanics. */

.aroma-card {
	position: relative;
	display: block;
	overflow: hidden;
	isolation: isolate; /* keeps stacking context clean around the expanding image */
	text-decoration: none;
}

.aroma-card__top {
	display: flex;
	align-items: center;
	position: relative;
	z-index: 2;
}

.aroma-card__divider {
	flex: 1;
	height: 1px;
	background: currentColor;
	opacity: 0.15;
	margin-left: 16px;
}

.aroma-card__body {
	position: relative;
	z-index: 2;
	margin-top: 16px;
	max-width: 70%;
}

.aroma-card__number,
.aroma-card__title,
.aroma-card__desc {
	margin: 0 0 8px 0;
	transition: color 0.4s ease;
	position: relative;
	z-index: 2;
}

.aroma-card__icon {
	position: absolute;
	z-index: 2;
	display: inline-flex;
	bottom: 25px;
	transition: color 0.4s ease, transform 0.4s ease;
}

.aroma-card:hover .aroma-card__icon {
	transform: translateY(-4px);
}

/* --- The expanding image --- */
.aroma-card__image {
	position: absolute;
	z-index: 1;
	background-size: cover;
	background-position: center;
	overflow: hidden;
	transition-property: width, height, top, left, right, bottom, border-radius;
	transition-timing-function: cubic-bezier(0.65, 0, 0.35, 1);
	/* transition-duration is set dynamically via the widget's
	   "Transition Duration" control, default 0.5s */
}

.aroma-card__image::after {
	content: '';
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity 0.4s ease;
	pointer-events: none;
}

.aroma-card:hover .aroma-card__image {
	bottom: 0 !important;
    right: 0 !important;
	width: 100% !important;
	height: 100% !important;
}

.aroma-card:hover .aroma-card__image::after {
	opacity: 1;
}

/* Small screens: keep the circle modest so it never overwhelms the text */
@media (max-width: 480px) {
	.aroma-card__body {
		max-width: 100%;
	}
}
