/* Heart N Mind Site Features - small touches Elementor cannot do on its own.
   Layout, colours, fonts and spacing stay in Elementor so they remain editable there. */

/* Home - What We Do cards */
.hnm-wwd-card {
	transition: transform .35s ease, box-shadow .35s ease;
}
.hnm-wwd-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 30px 56px -26px rgba(20, 41, 58, .34) !important;
}
.hnm-wwd-art img {
	transition: transform .5s ease;
}
.hnm-wwd-card:hover .hnm-wwd-art img {
	transform: scale(1.035);
}
/* The divider keeps its Elementor colour and weight; this only fades its ends. */
.hnm-wwd-line .elementor-divider-separator {
	border-block-start: 0 !important;
	height: var(--divider-border-width, 3px);
	border-radius: 3px;
	background: linear-gradient(90deg, transparent, var(--divider-color, #C9A86C) 18%, var(--divider-color, #C9A86C) 82%, transparent);
}
.hnm-wwd-card .elementor-widget-text-editor p:last-child,
.hnm-why-card .elementor-widget-text-editor p:last-child {
	margin-bottom: 0;
}

/* Home - Why Heart N Mind Therapies? cards */
.hnm-why-card {
	position: relative;
	transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.hnm-why-card::after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient(90deg, var(--hnm-accent), var(--hnm-accent-2));
	transition: height .3s ease;
	pointer-events: none;
	z-index: 2;
}
.hnm-why-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 28px 52px -26px rgba(20, 41, 58, .34) !important;
	border-color: var(--hnm-accent-soft) !important;
}
.hnm-why-card:hover::after {
	height: 6px;
}
.hnm-why-card--1 { --hnm-accent: #79948B; --hnm-accent-2: #A9C2B4; --hnm-accent-soft: rgba(121, 148, 139, .45); }
.hnm-why-card--2 { --hnm-accent: #2E5E7C; --hnm-accent-2: #6E9CBB; --hnm-accent-soft: rgba(46, 94, 124, .40); }
.hnm-why-card--3 { --hnm-accent: #CE9188; --hnm-accent-2: #E8BDB5; --hnm-accent-soft: rgba(206, 145, 136, .50); }
.hnm-why-card--4 { --hnm-accent: #C9A86C; --hnm-accent-2: #E4CF9F; --hnm-accent-soft: rgba(201, 168, 108, .50); }
.hnm-why-icon .elementor-icon {
	transition: transform .35s ease;
}
.hnm-why-card:hover .hnm-why-icon .elementor-icon {
	transform: translateY(-2px) rotate(-6deg);
}

/* Home - Meet Megan Marie: soft gold offset block behind the photo (stays inside its own column) */
.hnm-megan-img img {
	box-shadow: -14px 14px 0 0 rgba(228, 207, 159, .32), 0 30px 60px -30px rgba(0, 0, 0, .45);
}
.hnm-megan-text p:last-child {
	margin-bottom: 0;
}
@media (max-width: 767px) {
	.hnm-megan-img img {
		box-shadow: -10px 10px 0 0 rgba(228, 207, 159, .32), 0 24px 44px -26px rgba(0, 0, 0, .45);
	}
}

/* Header on tablet and phone (logo + menu button, sticks to the top while scrolling) */
@media (max-width: 1024px) {
	.hnm-header-main {
		box-shadow: 0 1px 0 rgba(28, 58, 82, .08);
		transition: box-shadow .3s ease;
	}
	.hnm-header-main.elementor-sticky--effects {
		box-shadow: 0 12px 28px -16px rgba(20, 41, 58, .35);
	}
	.hnm-logo-h a,
	.hnm-logo-h img {
		display: block;
	}
	.hnm-header-main .elementor-menu-toggle {
		width: 44px;
		height: 44px;
		padding: 0 !important;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		box-shadow: 0 8px 18px -10px rgba(28, 58, 82, .6);
		transition: transform .2s ease;
	}
	.hnm-header-main .elementor-menu-toggle:active {
		transform: scale(.96);
	}
	.hnm-header-main .elementor-nav-menu--dropdown {
		box-shadow: 0 26px 40px -22px rgba(20, 41, 58, .4);
		border-top: 1px solid rgba(28, 58, 82, .08);
		border-radius: 0 0 20px 20px;
		overflow: hidden;
	}
	.hnm-header-main .elementor-nav-menu--dropdown a {
		border-left: 3px solid transparent;
	}
	.hnm-header-main .elementor-nav-menu--dropdown a.elementor-item-active {
		border-left-color: #79948B;
	}
}

/* Quick-action bar on tablet and phone (built in the footer template, class hnm-mbar).
   Pinned to the bottom; slides up once the visitor starts scrolling. */
.hnm-mbar {
	position: fixed !important;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 998;
	padding-bottom: calc(10px + env(safe-area-inset-bottom)) !important;
	border-top: 1px solid rgba(28, 58, 82, .08);
	border-radius: 18px 18px 0 0;
	box-shadow: 0 -12px 30px -14px rgba(20, 41, 58, .28);
	transition: transform .45s cubic-bezier(.2, .8, .2, 1);
}
.hnm-js .hnm-mbar {
	transform: translateY(115%);
}
.hnm-js .hnm-mbar.is-in {
	transform: translateY(0);
}
.hnm-mbar .elementor-widget-button {
	flex: 1 1 0 !important;
	min-width: 0;
}
.hnm-mbar .elementor-button {
	width: 100%;
	white-space: nowrap;
	box-shadow: 0 8px 18px -12px rgba(20, 41, 58, .55);
}
@media (max-width: 1024px) {
	body:not(.elementor-editor-active) {
		padding-bottom: 78px;
	}
	#ast-scroll-top {
		bottom: calc(92px + env(safe-area-inset-bottom)) !important;
	}
}
/* In the Elementor editor the bar sits in place so it can be edited. */
.elementor-editor-active .hnm-mbar,
.elementor-editor-preview .hnm-mbar {
	position: relative !important;
	transform: none !important;
	border-radius: 0;
}

/* Scroll-to-top button in the brand colour */
#ast-scroll-top {
	background-color: #2E5E7C !important;
	border-radius: 50% !important;
}

/* About page - no stray gap under the last paragraph of a text block */
body.page-id-12 .elementor-widget-text-editor p:last-child {
	margin-bottom: 0;
}

@media (prefers-reduced-motion: reduce) {
	.hnm-wwd-card,
	.hnm-why-card,
	.hnm-wwd-art img,
	.hnm-why-icon .elementor-icon,
	.hnm-mbar {
		transition: none;
	}
	.hnm-wwd-card:hover,
	.hnm-why-card:hover,
	.hnm-wwd-card:hover .hnm-wwd-art img,
	.hnm-why-card:hover .hnm-why-icon .elementor-icon {
		transform: none;
	}
}
