/* ==========================================================================
   Home page redesign additions (heartmath.com layout, adapted to Bootstrap 4)
   Scoped under .hmr-home so it cannot collide with existing home.css rules.

   Colors/sizes below were measured directly off the live heartmath.com page
   (computed styles), not guessed from the site's existing brand palette:
     text dark   #171826    accent purple #6b2d8b    accent pink  #c31f64
     accent blue #185fa5    body copy     #3a3a3c     band bg     #eef0fa
     pill bg     #efe9fb

   IMPORTANT: this site's global stylesheet (heartmath.css) sets bare-tag
   rules (h1, h2, h3, p, .btn, ...) using !important on nearly every
   typography property (font-family, size, weight, style, line-height,
   letter-spacing, color, text-transform, text-align, margin-top). Every
   rule below that targets one of those tags re-declares the same set of
   properties with !important + a class-scoped selector so it wins on
   specificity too. Don't remove the !important flags.

   heartmath.css ALSO has "#mainContent a { color: #ed8b00 !important }".
   Being ID-scoped, that beats a plain class selector even with !important
   on both sides, so any rule that sets color on an <a> is prefixed with
   "#mainContent .hmr-home" to out-rank it.
   ========================================================================== */

.hmr-home {
	overflow: hidden;
}

.hmr-home .hmr-eyebrow {
	display: block;
	font-family: 'OpenSans', Arial !important;
	font-weight: 600 !important;
	font-style: normal !important;
	font-size: 1.3rem !important;
	line-height: 1.4 !important;
	letter-spacing: 0px !important;
	text-transform: none !important;
	text-align: left !important;
	color: #6b2d8b !important;
	margin: 0 0 0.5rem !important;
}

.hmr-home h2.hmr-h2 {
	font-family: 'OpenSans', Arial !important;
	font-weight: 600 !important;
	font-style: normal !important;
	font-size: 2.75rem !important;
	line-height: 1.3 !important;
	letter-spacing: 0px !important;
	text-transform: none !important;
	color: #171826 !important;
	margin: 0 0 1rem !important;
}

.hmr-home h2.hmr-h2 .hmr-accent {
	color: #c31f64 !important;
}

.hmr-home .hmr-lead {
	font-family: 'OpenSans', Arial !important;
	font-weight: 400 !important;
	font-style: normal !important;
	font-size: 1.1rem !important;
	line-height: 1.7 !important;
	letter-spacing: 0px !important;
	text-align: left !important;
	color: #3a3a3c !important;
	margin: 0 0 1rem !important;
}

/* Buttons: heartmath.com's own two CTA styles, not the site's existing
   .btn-bluepill/.btn-outlinepill (those assume white text on a colored
   background, which doesn't fit these white/pale-lavender sections). */

#mainContent .hmr-home a.hmr-btn-primary,
#mainContent .hmr-home a.hmr-btn-secondary {
	display: inline-flex !important;
	align-items: center;
	gap: 0.6rem;
	font-family: 'OpenSans', Arial !important;
	font-weight: 600 !important;
	font-size: 1rem !important;
	line-height: 1.4 !important;
	text-decoration: none !important;
	border-radius: 30px !important;
	padding: 0.9rem 1.75rem !important;
	transition: transform .15s;
}

#mainContent .hmr-home a.hmr-btn-primary:hover,
#mainContent .hmr-home a.hmr-btn-secondary:hover {
	text-decoration: none !important;
}

#mainContent .hmr-home a.hmr-btn-primary {
	background-color: #185fa5 !important;
	border: 1px solid #185fa5 !important;
	color: #fff !important;
}

#mainContent .hmr-home a.hmr-btn-secondary {
	background-color: transparent !important;
	border: 1px solid #171826 !important;
	color: #171826 !important;
}

.hmr-home a.hmr-btn-primary i,
.hmr-home a.hmr-btn-secondary i {
	font-size: 0.85em;
	transition: transform .2s;
}

.hmr-home a.hmr-btn-primary:hover i,
.hmr-home a.hmr-btn-secondary:hover i {
	transform: translateX(4px);
}

/* ---- Section band backgrounds (heartmath.com alternates white / pale
   lavender rather than using saturated color blocks) --------------------- */

.hmr-band-white {
	background-color: #fff;
}

.hmr-band-tint {
	background-color: #eef0fa;
}

.hmr-section {
	padding: 4.5rem 0;
}

.hmr-section.hmr-align-center {
	text-align: center;
}

.hmr-section.hmr-align-center .hmr-eyebrow,
.hmr-section.hmr-align-center h2.hmr-h2,
.hmr-section.hmr-align-center .hmr-lead {
	text-align: center !important;
}

.hmr-section .hmr-lead.hmr-lead-narrow {
	max-width: 720px;
	margin-left: auto !important;
	margin-right: auto !important;
}

/* ---- Section 1: Hero -------------------------------------------------- */

.hmr-hero h1 {
	font-family: 'OpenSans', Arial !important;
	font-weight: 500 !important;
	font-style: normal !important;
	font-size: 2.9rem !important;
	line-height: 1.25 !important;
	letter-spacing: 0px !important;
	text-transform: none !important;
	color: #171826 !important;
	margin: 0 0 1.25rem !important;
}

.hmr-hero h1 .hmr-accent {
	color: #c31f64 !important;
}

.hmr-hero img {
	max-width: 100%;
	height: auto;
	border-radius: 1rem;
}

/* ---- Section 2: 35 years / stat pills --------------------------------- */

.hmr-pills {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.75rem;
	margin-bottom: 2rem;
}

.hmr-pill {
	background-color: #efe9fb;
	border: 1px solid rgba(107, 45, 139, 0.2);
	color: #6b2d8b !important;
	font-family: 'OpenSans', Arial !important;
	font-weight: 400 !important;
	font-size: 0.9rem !important;
	line-height: 1.4 !important;
	padding: 0.55rem 1.1rem;
	border-radius: 50px;
}

/* ---- Section 3: Three steps -------------------------------------------- */

.hmr-step-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
	margin-top: 2.5rem;
}

.hmr-step-card {
	background-color: #fff;
	border: 1px solid #dfd6e7;
	border-radius: 1.25rem;
	overflow: hidden;
	text-align: left;
}

.hmr-step-card img {
	width: 100%;
	height: 190px;
	object-fit: cover;
	display: block;
}

.hmr-step-card .hmr-step-body {
	padding: 1.5rem;
}

.hmr-step-badge {
	display: block;
	font-family: 'OpenSans', Arial !important;
	font-weight: 600 !important;
	font-style: normal !important;
	font-size: 1rem !important;
	line-height: 1.4 !important;
	letter-spacing: 0px !important;
	text-transform: none !important;
	text-align: left !important;
	color: #171826 !important;
	margin: 0 0 0.4rem !important;
}

.hmr-step-card h3 {
	font-family: 'OpenSans', Arial !important;
	font-weight: 600 !important;
	font-style: normal !important;
	font-size: 1.75rem !important;
	line-height: 1.2 !important;
	letter-spacing: 0px !important;
	text-transform: none !important;
	color: #185fa5 !important;
	margin: 0 0 0.2rem !important;
}

.hmr-step-card .hmr-step-subtitle {
	font-family: 'OpenSans', Arial !important;
	font-weight: 600 !important;
	font-style: normal !important;
	font-size: 1.25rem !important;
	line-height: 1.4 !important;
	letter-spacing: 0px !important;
	text-align: left !important;
	color: #185fa5 !important;
	margin: 0 0 0.75rem !important;
}

/* heartmath.com cycles the three brand accent colors across the three
   steps (blue, purple, pink) rather than using one color for all three. */
.hmr-step-grid .hmr-step-card:nth-child(2) h3,
.hmr-step-grid .hmr-step-card:nth-child(2) .hmr-step-subtitle {
	color: #6b2d8b !important;
}

.hmr-step-grid .hmr-step-card:nth-child(3) h3,
.hmr-step-grid .hmr-step-card:nth-child(3) .hmr-step-subtitle {
	color: #c31f64 !important;
}

.hmr-step-card p {
	font-family: 'OpenSans', Arial !important;
	font-weight: 400 !important;
	font-style: normal !important;
	font-size: 1rem !important;
	line-height: 1.4 !important;
	letter-spacing: 0px !important;
	text-align: left !important;
	color: #3a3a3c !important;
	margin: 0 !important;
}

/* ---- Section 4: Resources & education ---------------------------------- */

.hmr-resource-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
	margin-top: 2.5rem;
}

/* This is a <div>, not an <a>, on purpose: the content-field editor strips
   an <a> that wraps block-level children (h3/p) apart into two separate
   inline links, destroying the card. Only the title itself is a link; the
   ::after on it stretches over the whole div so the card still reads (and
   behaves) as one clickable unit — see .hmr-resource-card h3 a below. */
.hmr-resource-card {
	position: relative;
	display: block;
	background-color: #eef0fa;
	border-radius: 1.25rem;
	padding: 1.5rem;
	text-align: left;
	transition: transform .2s;
}

.hmr-resource-card:hover {
	transform: translateY(-4px);
}

.hmr-resource-card h3 {
	font-family: 'OpenSans', Arial !important;
	font-weight: 600 !important;
	font-style: normal !important;
	font-size: 1.75rem !important;
	line-height: 1.2 !important;
	letter-spacing: 0px !important;
	text-transform: none !important;
	color: #6b2d8b !important;
	margin: 0 0 0.5rem !important;
}

#mainContent .hmr-home .hmr-resource-card h3 a {
	color: inherit !important;
	text-decoration: none !important;
}

.hmr-resource-card h3 a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.hmr-resource-card p {
	font-family: 'OpenSans', Arial !important;
	font-weight: 400 !important;
	font-style: normal !important;
	font-size: 1rem !important;
	line-height: 1.4 !important;
	letter-spacing: 0px !important;
	text-align: left !important;
	color: #3a3a3c !important;
	margin: 0 !important;
}

/* ---- Section 5: For professionals CTA ----------------------------------- */

.hmr-pro-cta {
	text-align: center;
}

/* ---- Section 6: FAQ accordion ------------------------------------------- */

.hmr-faq-wrap {
	max-width: 820px;
	margin: 2.5rem auto 0;
	border-top: 1px solid #ccc;
}

.hmr-faq-item {
	border-bottom: 1px solid #ccc;
}

.hmr-faq-question {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 1.1rem 0;
	background: none;
	border: none;
	text-align: left;
	font-family: 'OpenSans', Arial !important;
	font-weight: 400 !important;
	font-style: normal !important;
	font-size: 1rem !important;
	line-height: 1.4 !important;
	letter-spacing: 0px !important;
	text-transform: none !important;
	color: #171826 !important;
	cursor: pointer;
}

.hmr-faq-question:focus {
	outline: none;
}

.hmr-faq-question .hmr-faq-icon {
	flex: 0 0 auto;
	margin-left: 1rem;
	font-size: 0.9rem;
	color: #6b2d8b;
	transform: rotate(180deg);
	transition: transform .25s;
}

.hmr-faq-question.collapsed .hmr-faq-icon {
	transform: rotate(0deg);
}

.hmr-faq-answer {
	padding: 0 0 1.25rem;
}

.hmr-faq-answer,
.hmr-faq-answer p {
	font-family: 'OpenSans', Arial !important;
	font-weight: 400 !important;
	font-style: normal !important;
	font-size: 1rem !important;
	line-height: 1.7 !important;
	letter-spacing: 0px !important;
	text-align: left !important;
	color: #3a3a3c !important;
	margin: 0 !important;
}

/* ---- Responsive ---------------------------------------------------------- */

@media (max-width: 767px) {
	.hmr-section {
		padding: 3rem 0;
	}

	.hmr-hero h1 {
		font-size: 2rem !important;
	}

	.hmr-hero img {
		margin-top: 2rem;
	}

	.hmr-home h2.hmr-h2 {
		font-size: 1.85rem !important;
	}

	.hmr-step-grid,
	.hmr-resource-grid {
		grid-template-columns: 1fr;
	}
}

@media (min-width: 768px) and (max-width: 991px) {
	.hmr-step-grid,
	.hmr-resource-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}
