/* CHD Design Kit — motion and finishing styles.
   Use by adding these classes in Elementor: Advanced → CSS Classes. */

/* ---------- Animated hero background ---------- */
.chd-hero {
	position: relative;
	overflow: hidden;
	isolation: isolate;
}
.chd-hero::before,
.chd-hero::after {
	content: "";
	position: absolute;
	z-index: -1;
	border-radius: 50%;
	filter: blur(70px);
	opacity: .55;
	pointer-events: none;
	will-change: transform;
}
.chd-hero::before {
	width: 620px;
	height: 620px;
	top: -220px;
	right: -140px;
	background: radial-gradient(circle, #2f7fe0 0%, rgba(36, 96, 173, 0) 70%);
	animation: chd-drift-a 18s ease-in-out infinite alternate;
}
.chd-hero::after {
	width: 520px;
	height: 520px;
	bottom: -260px;
	left: -120px;
	background: radial-gradient(circle, #ea9b3f 0%, rgba(234, 155, 63, 0) 70%);
	opacity: .38;
	animation: chd-drift-b 22s ease-in-out infinite alternate;
}
/* Fine grid that slowly pans behind the hero content. */
.chd-hero > .e-con-inner::before,
.chd-hero-grid::before {
	content: "";
	position: absolute;
	inset: -40px;
	z-index: -1;
	background-image:
		linear-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, .055) 1px, transparent 1px);
	background-size: 56px 56px;
	-webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 68%);
	mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 68%);
	animation: chd-grid 28s linear infinite;
	pointer-events: none;
}
.chd-hero > .e-con-inner {
	position: relative;
}
@keyframes chd-drift-a {
	to { transform: translate(-90px, 70px) scale(1.15); }
}
@keyframes chd-drift-b {
	to { transform: translate(110px, -60px) scale(1.2); }
}
@keyframes chd-grid {
	to { background-position: 56px 56px, 56px 56px; }
}

/* ---------- Rotating words in a heading ----------
   <span class="chd-rotate"><span>one</span><span>two</span><span>three</span></span> */
.chd-rotate {
	display: grid;
	overflow: hidden;
	padding-bottom: .12em;
}
.chd-rotate > span {
	grid-area: 1 / 1;
	opacity: 0;
	transform: translateY(70%);
	animation: chd-rotate 9s cubic-bezier(.2, .7, .2, 1) infinite;
	color: #f2b566;
	font-style: italic;
}
.chd-rotate > span:nth-child(2) { animation-delay: 3s; }
.chd-rotate > span:nth-child(3) { animation-delay: 6s; }
@keyframes chd-rotate {
	0% { opacity: 0; transform: translateY(70%); }
	6%, 30% { opacity: 1; transform: translateY(0); }
	36%, 100% { opacity: 0; transform: translateY(-70%); }
}

/* ---------- Hand-drawn underline that draws itself ---------- */
.chd-mark {
	position: relative;
	white-space: nowrap;
}
.chd-mark::after {
	content: "";
	position: absolute;
	left: -2%;
	right: -2%;
	bottom: -.08em;
	height: .32em;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 14' preserveAspectRatio='none'%3E%3Cpath d='M2 9c40-7 92-8 196-3' fill='none' stroke='%23EA9B3F' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
	clip-path: inset(0 100% 0 0);
	animation: chd-draw 1.1s .5s cubic-bezier(.6, 0, .2, 1) forwards;
}
@keyframes chd-draw {
	to { clip-path: inset(0 0 0 0); }
}

/* ---------- Floating cards ---------- */
.chd-float { animation: chd-float 6s ease-in-out infinite; }
.chd-float-b { animation: chd-float 7.5s ease-in-out -2.5s infinite; }
@keyframes chd-float {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-14px); }
}

/* ---------- Hero photo: soft reveal + slow zoom ---------- */
.chd-photo {
	overflow: hidden;
	border-radius: 28px;
}
.chd-photo img {
	display: block;
	width: 100%;
	animation: chd-kenburns 16s ease-in-out infinite alternate;
}
@keyframes chd-kenburns {
	from { transform: scale(1.02); }
	to { transform: scale(1.1) translate(-1.5%, -1%); }
}

/* ---------- Cards: lift on hover ---------- */
.chd-card {
	transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s, border-color .35s;
}
.chd-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 26px 50px -24px rgba(14, 42, 71, .35);
}
.chd-card .elementor-icon {
	transition: transform .35s cubic-bezier(.2, .7, .2, 1);
}
.chd-card:hover .elementor-icon {
	transform: scale(1.12) rotate(-4deg);
}

/* ---------- Buttons: arrow nudge + light sweep ---------- */
.chd-btn .elementor-button {
	position: relative;
	overflow: hidden;
	transition: transform .25s, box-shadow .25s, background-color .25s, color .25s;
}
.chd-btn .elementor-button:hover {
	transform: translateY(-2px);
	box-shadow: 0 14px 28px -14px rgba(234, 155, 63, .8);
}
.chd-btn .elementor-button::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .35) 50%, transparent 65%);
	transform: translateX(-120%);
	transition: transform .7s;
}
.chd-btn .elementor-button:hover::after {
	transform: translateX(120%);
}
.chd-btn .elementor-button-icon {
	transition: transform .25s;
}
.chd-btn .elementor-button:hover .elementor-button-icon {
	transform: translateX(4px);
}

/* ---------- Small label above headings ---------- */
.chd-eyebrow .elementor-heading-title {
	display: inline-flex;
	align-items: center;
	gap: 10px;
}
.chd-eyebrow .elementor-heading-title::before {
	content: "";
	width: 28px;
	height: 2px;
	background: currentColor;
	border-radius: 2px;
}
.chd-eyebrow.chd-center .elementor-heading-title::after {
	content: "";
	width: 28px;
	height: 2px;
	background: currentColor;
	border-radius: 2px;
}

/* ---------- Logo strips: calm, greyscale until hover ---------- */
.chd-logos img {
	max-height: 76px;
	width: auto !important;
	margin: 0 auto;
	object-fit: contain;
	filter: grayscale(1);
	opacity: .75;
	transition: filter .3s, opacity .3s;
}
.chd-logos img:hover {
	filter: none;
	opacity: 1;
}

/* ---------- Stats: divider lines between counters ---------- */
.chd-stat + .chd-stat {
	border-left: 1px solid rgba(255, 255, 255, .16);
}
@media (max-width: 767px) {
	.chd-stat + .chd-stat { border-left: 0; }
	.chd-hero::before { width: 380px; height: 380px; }
	.chd-hero::after { width: 320px; height: 320px; }
}

/* ---------- Pulsing dot (e.g. "enrolling now") ---------- */
.chd-pulse .elementor-icon-list-icon,
.chd-pulse-dot {
	position: relative;
}
.chd-pulse-dot::before {
	content: "";
	display: inline-block;
	width: 9px;
	height: 9px;
	margin-right: 10px;
	border-radius: 50%;
	background: #86b85a;
	box-shadow: 0 0 0 0 rgba(134, 184, 90, .7);
	animation: chd-pulse 2s infinite;
	vertical-align: middle;
}
@keyframes chd-pulse {
	70% { box-shadow: 0 0 0 12px rgba(134, 184, 90, 0); }
	100% { box-shadow: 0 0 0 0 rgba(134, 184, 90, 0); }
}

/* ---------- Respect "reduce motion" ---------- */
@media (prefers-reduced-motion: reduce) {
	.chd-hero::before,
	.chd-hero::after,
	.chd-hero > .e-con-inner::before,
	.chd-hero-grid::before,
	.chd-float,
	.chd-float-b,
	.chd-photo img,
	.chd-pulse-dot::before {
		animation: none !important;
	}
	.chd-rotate > span { animation: none; }
	.chd-rotate > span:first-child { opacity: 1; transform: none; }
	.chd-mark::after { animation: none; clip-path: none; }
	.chd-card,
	.chd-btn .elementor-button { transition: none; }
}

/* ---------- Small-screen and finishing fixes ---------- */
.chd-logos,
.chd-logos .elementor-widget-container {
	overflow: hidden;
	max-width: 100%;
}
.chd-cta a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 3px;
}
@media (max-width: 767px) {
	.chd-mark { white-space: normal; }
	.chd-float,
	.chd-float-b { animation-duration: 8s; }
}

/* ---------- [chd_contact_form] ---------- */
.chd-form { font-family: "DM Sans", sans-serif; }
.chd-form p { margin: 0 0 16px; padding: 0; }
.chd-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.chd-form label { display: block; margin-bottom: 6px; font-weight: 700; font-size: 15px; color: #0e2a47; }
.chd-form label span { color: #c0392b; }
.chd-form input[type="text"],
.chd-form input[type="email"],
.chd-form input[type="tel"],
.chd-form textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 13px 15px;
	border: 1px solid #d9d0c1;
	border-radius: 12px;
	background: #fff;
	color: #0e2a47;
	font: inherit;
	font-size: 16px;
	transition: border-color .2s, box-shadow .2s;
}
.chd-form input:focus,
.chd-form textarea:focus {
	outline: none;
	border-color: #2460ad;
	box-shadow: 0 0 0 4px rgba(36, 96, 173, .14);
}
.chd-form button {
	padding: 15px 32px;
	border: 0;
	border-radius: 999px;
	background: #ea9b3f;
	color: #0e2a47;
	font: inherit;
	font-weight: 700;
	font-size: 16px;
	cursor: pointer;
	transition: transform .25s, background-color .25s, box-shadow .25s;
}
.chd-form button:hover {
	background: #d9832a;
	transform: translateY(-2px);
	box-shadow: 0 14px 28px -14px rgba(234, 155, 63, .8);
}
.chd-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.chd-form__notice { padding: 14px 16px; border-radius: 12px; border: 1px solid; }
.chd-form__notice--ok { background: #ecfdf3; border-color: #abefc6; color: #067647; }
.chd-form__notice--err { background: #fef3f2; border-color: #fecdca; color: #b42318; }
@media (max-width: 640px) { .chd-form__row { grid-template-columns: 1fr; } }

/* ---------- Team portraits ---------- */
.chd-portrait img {
	width: 132px !important;
	height: 132px !important;
	object-fit: cover;
	border-radius: 50% !important;
	border: 4px solid #fff;
	box-shadow: 0 12px 26px -14px rgba(14, 42, 71, .5);
}
.chd-portrait-lg img {
	aspect-ratio: 4 / 5;
	object-fit: cover;
	width: 100%;
}
/* Numbered steps */
.chd-steps { counter-reset: chd-step; }
.chd-steps .chd-card { counter-increment: chd-step; position: relative; }
.chd-steps .chd-card::before {
	content: "0" counter(chd-step);
	font-family: "Fraunces", serif;
	font-size: 34px;
	font-weight: 600;
	color: #ea9b3f;
	line-height: 1;
}

/* ---------- Header and footer (Elementor templates) ---------- */
.chd-cta a { text-decoration: none; }
.chd-cta .elementor-widget-text-editor a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 3px;
}
.ehf-header #masthead {
	position: sticky;
	top: 0;
	z-index: 999;
}
.admin-bar.ehf-header #masthead { top: 32px; }
#masthead .elementor-icon-list-items.elementor-inline-items { flex-wrap: nowrap; }
#masthead .hfe-nav-menu a.hfe-menu-item,
#masthead .hfe-nav-menu a.hfe-sub-menu-item { transition: color .2s, background-color .2s; }
#masthead .chd-header-main .hfe-nav-menu > li > .hfe-has-submenu-container > a,
#masthead .chd-header-main .hfe-nav-menu > li > a { position: relative; }
#masthead .chd-header-main .hfe-nav-menu > li > a::after,
#masthead .chd-header-main .hfe-nav-menu > li > .hfe-has-submenu-container > a::after {
	content: "";
	position: absolute;
	left: 14px;
	right: 14px;
	bottom: 6px;
	height: 2px;
	background: #ea9b3f;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .3s cubic-bezier(.2, .7, .2, 1);
}
#masthead .chd-header-main .hfe-nav-menu > li:hover > a::after,
#masthead .chd-header-main .hfe-nav-menu > li:hover > .hfe-has-submenu-container > a::after,
#masthead .chd-header-main .hfe-nav-menu > li.current-menu-item > a::after { transform: scaleX(1); }
.chd-footer a { transition: color .2s, padding-left .2s; }
.chd-footer .elementor-icon-list-item a:hover { padding-left: 4px; }
#masthead .elementor-icon-list-text { white-space: nowrap; }

/* ---------- Membership purchase links (shortcode output) styled as buttons ---------- */
.chd-plan-link a,
.chd-plan-link .ihc-level-item-link {
	display: inline-block;
	margin-top: 6px;
	padding: 14px 28px;
	border-radius: 999px;
	background: #ea9b3f;
	color: #0e2a47 !important;
	font-family: "DM Sans", sans-serif;
	font-weight: 700;
	font-size: 16px;
	text-decoration: none;
	transition: transform .25s, background-color .25s, box-shadow .25s;
}
.chd-plan-link a:hover,
.chd-plan-link .ihc-level-item-link:hover {
	background: #d9832a;
	transform: translateY(-2px);
	box-shadow: 0 14px 28px -14px rgba(234, 155, 63, .8);
}

.chd-plan-link .ihc-level-item-link { cursor: pointer; }
#masthead .elementor-widget-icon-list { flex: 0 0 auto; max-width: none; }
@media (max-width: 767px) {
	#masthead .chd-header-top .e-con { flex-wrap: nowrap; }
	#masthead .chd-header-top .hfe-nav-menu { flex-wrap: nowrap; }
	#masthead .chd-header-top .hfe-nav-menu a.hfe-menu-item {
		padding-left: 4px;
		padding-right: 4px;
		font-size: 11.5px;
		white-space: nowrap;
	}
	#masthead .chd-header-main .hfe-nav-menu__toggle { margin-left: auto; margin-right: 0; }
}
.chd-footer .elementor-widget-image {
	align-self: flex-start;
	width: auto;
	max-width: 100px;
}
