/* Layout values ported from the approved HealthFlex child-theme design. */

.rm-home {
	color: var(--rm-ink,#293b34);
	font-size: 15px;
	line-height: 1.5;
}

.rm-home, .rm-home * {
	box-sizing: border-box;
}

.rm-home a {
	text-decoration: none;
}

.rm-home .rm-hero {
	background: var(--rm-cream,#f5f5ef);
	padding: 48px 0 54px;
	color: var(--rm-ink,#293b34);
	font-family: var(--rm-font-body);
	border-bottom: 1px solid var(--rm-tone-e1e6dd,#e1e6dd);
}

.rm-hero-grid {
	display: grid;
	grid-template-columns: 1.12fr 1fr;
	gap: 54px;
	align-items: center;
}

@media (max-width:360px) {
	.rm-home .rm-hero-grid { grid-template-columns: minmax(0,1fr); }
	.rm-home .rm-hero h1 { font-size: clamp(26px,9vw,32px); overflow-wrap: anywhere; }
}

.rm-hero .rm-eyebrow {
	display: flex;
	align-items: center;
	gap: 9px;
	margin: 0 0 23px;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .16em;
	color: var(--rm-sage,#426653);
}

.rm-eyebrow>span {
	width: 7px;
	height: 7px;
	background: var(--rm-tone-719077,#719077);
	border-radius: 50%;
}

.rm-hero h1 {
	margin: 0 0 20px;
	font-family: var(--rm-font-heading);
	font-size: 43px;
	font-weight: 600;
	line-height: 1.12;
	letter-spacing: 0;
	text-transform: none;
	color: var(--rm-ink,#293b34);
}

.rm-hero h1>span {
	color: var(--rm-sage,#426653);
}

.rm-hero-description {
	max-width: 515px;
	font-size: 15px;
	line-height: 1.72;
	color: var(--rm-tone-5a665e,#5a665e);
	margin: 0 0 24px;
}

.rm-hero-actions {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

.rm-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 22px;
	padding: 15px 22px;
	min-height: 52px;
	font-size: 14px;
	font-weight: 700;
	border: 1px solid var(--rm-sage,#426653);
	border-radius: 5px;
	transition: background .15s;
}

.rm-button .rm-arrow-icon {
	width: 10.5px;
}

.rm-button-primary {
	background: var(--rm-sage,#426653);
	color: white;
}

.rm-button-primary:hover,.rm-button-primary:focus {
	color: white;
	background: var(--rm-tone-304d3f,#304d3f);
}

.rm-button-secondary {
	color: var(--rm-sage,#426653);
	background: transparent;
}

.rm-button-secondary:hover,.rm-button-secondary:focus {
	color: var(--rm-tone-304d3f,#304d3f);
	background: var(--rm-tone-e7ece3,#e7ece3);
}

.rm-hero-visual {
	position: relative;
	padding-bottom: 22px;
}

.rm-hero-gallery {
	position: relative;
	overflow: hidden;
	border-radius: 88px 8px 8px 8px;
	background: var(--rm-tone-e9eee8,#e9eee8);
}

.rm-hero-photo {
	width: 100%;
	height: 405px;
	object-fit: cover;
	object-position: 55% center;
	border-radius: 88px 8px 8px 8px;
	display: block;
}

.rm-hero-gallery .rm-hero-photo {
	transition: opacity .28s ease;
}

.rm-hero-gallery-changing .rm-hero-photo {
	opacity: .18;
}

.rm-photo-caption {
	position: absolute;
	bottom: 0;
	left: -22px;
	right: 28px;
	background: #fff;
	padding: 20px 23px;
	border: 1px solid var(--rm-tone-e4e8e0,#e4e8e0);
	border-radius: 7px;
	display: flex;
	align-items: center;
	gap: 17px;
	box-shadow: 0 8px 25px var(--rm-tone-293b3408,#293b3408);
}

.rm-caption-symbol {
	font-size: 29px;
	color: var(--rm-sage,#426653);
	font-weight: 400;
	border-right: 1px solid var(--rm-tone-dce3d9,#dce3d9);
	padding-right: 17px;
}

.rm-photo-caption strong {
	display: block;
	font-size: 15px;
	font-weight: 700;
	color: var(--rm-ink,#293b34);
}

.rm-photo-caption div>span {
	display: block;
	font-size: 12px;
	margin-top: 3px;
	color: var(--rm-tone-657467,#657467);
}

.rm-home-partners {
	background: #fff;
	padding: 24px 0 0;
	color: var(--rm-ink,#293b34);
	font-family: var(--rm-font-body);
}

.rm-partners-layout {
	display: grid;
	grid-template-columns: 220px 1fr;
	gap: 22px;
	align-items: center;
	padding: 0 0 22px;
	border-bottom: 1px solid var(--rm-tone-e1e7de,#e1e7de);
}

.rm-partners-copy p {
	margin: 0 0 8px;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .16em;
	color: var(--rm-sage,#426653);
	text-transform: uppercase;
}

.rm-partners-copy span {
	display: block;
	font-size: 12px;
	line-height: 1.55;
	color: var(--rm-tone-69756d,#69756d);
}

.rm-partner-list {
	display: grid;
	grid-template-columns: repeat(3,minmax(0,1fr));
	gap: 10px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.rm-partner-list li {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 50px;
	padding: 9px 10px;
	background: var(--rm-tone-fafaf7,#fafaf7);
	border: 1px solid var(--rm-tone-e5ebe2,#e5ebe2);
	border-radius: 8px;
	color: var(--rm-tone-40564b,#40564b);
	text-align: center;
	line-height: 1.25;
}

.rm-partner-list img {
	display: block;
	max-width: 118px;
	max-height: 33px;
	width: auto;
	height: auto;
	filter: grayscale(1) contrast(.92);
	opacity: .58;
}

.rm-partner-wordmark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 31px;
	color: #40564b;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: .03em;
	opacity: .7;
}

.rm-partner-logo-luxmed {
	font-family: Arial,sans-serif;
	font-weight: 900;
	letter-spacing: .02em;
}

.rm-partner-logo-luxmed::before {
	content: "+";
	margin-right: 6px;
	color: #719077;
	font-size: 17px;
	line-height: 1;
}

.rm-partner-logo-medicover {
	font-weight: 700;
	color: #426653;
}

.rm-partner-logo-compensa {
	font-family: Georgia,serif;
	font-weight: 700;
	letter-spacing: .06em;
}

.rm-nfz-banner {
	display: grid;
	grid-template-columns: auto 1fr auto;
	gap: 22px;
	align-items: center;
	margin: 24px 0 -24px;
	padding: 25px 28px;
	background: var(--rm-sage,#426653);
	color: #fff;
	border-radius: 8px;
	box-shadow: 0 14px 35px var(--rm-tone-293b3412,#293b3412);
	text-decoration: none;
	position: relative;
	z-index: 2;
}

.rm-nfz-banner:hover,.rm-nfz-banner:focus {
	color: #fff;
	background: var(--rm-tone-304d3f,#304d3f);
	text-decoration: none;
}

.rm-nfz-badge {
	display: grid;
	place-items: center;
	width: 70px;
	height: 70px;
	border-radius: 50%;
	background: #fff;
	color: var(--rm-sage,#426653);
	font-size: 22px;
	font-weight: 800;
}

.rm-nfz-copy strong {
	display: block;
	margin: 0 0 7px;
	font-family: var(--rm-font-heading);
	font-size: 24px;
	line-height: 1.25;
	color: #fff;
}

.rm-nfz-copy em {
	display: block;
	max-width: 690px;
	font-style: normal;
	font-size: 14px;
	line-height: 1.65;
	color: var(--rm-tone-e8f0e9,#e8f0e9);
}

.rm-nfz-action {
	font-size: 13px;
	font-weight: 800;
	color: #fff;
	white-space: nowrap;
}

.rm-home-services {
	background: #fff;
	padding: 72px 0 78px;
	color: var(--rm-ink,#293b34);
	font-family: var(--rm-font-body);
}

.rm-section-heading {
	max-width: 680px;
	margin: 0 auto 34px;
	text-align: center;
}

.rm-section-heading p {
	margin: 0 0 12px;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .16em;
	color: var(--rm-sage,#426653);
}

.rm-section-heading h2 {
	margin: 0 0 14px;
	font-family: var(--rm-font-heading);
	font-size: 36px;
	line-height: 1.2;
	font-weight: 600;
	color: var(--rm-ink,#293b34);
	text-transform: none;
}

.rm-section-heading>span {
	display: block;
	font-size: 15px;
	line-height: 1.75;
	color: var(--rm-tone-657467,#657467);
}

.rm-service-grid {
	display: grid;
	grid-template-columns: repeat(3,minmax(0,1fr));
	gap: 18px;
}

.rm-service-card {
	display: flex;
	min-height: 250px;
	flex-direction: column;
	gap: 15px;
	padding: 26px;
	background: var(--rm-tone-f8f8f4,#f8f8f4);
	border: 1px solid var(--rm-tone-e0e6dc,#e0e6dc);
	border-radius: 8px;
	color: var(--rm-tone-4e5b54,#4e5b54);
	transition: transform .15s,box-shadow .15s,border-color .15s;
}

.rm-service-card:hover,.rm-service-card:focus {
	color: var(--rm-tone-4e5b54,#4e5b54);
	border-color: var(--rm-tone-b9c8b8,#b9c8b8);
	box-shadow: 0 14px 35px var(--rm-tone-293b3412,#293b3412);
	transform: translateY(-2px);
	text-decoration: none;
}

.rm-service-icon {
	display: grid;
	place-items: center;
	width: 47px;
	height: 47px;
	border-radius: 8px;
	background: var(--rm-tone-e4ece2,#e4ece2);
	color: var(--rm-sage,#426653);
	font-size: 20px;
}

.rm-service-card strong {
	display: block;
	font-family: var(--rm-font-heading);
	font-size: 20px;
	line-height: 1.25;
	font-weight: 700;
	color: var(--rm-ink,#293b34);
}

.rm-service-card>span:not(.rm-service-icon) {
	display: block;
	font-size: 14px;
	line-height: 1.7;
	color: var(--rm-tone-5e6b63,#5e6b63);
}

.rm-service-card em {
	margin-top: auto;
	font-style: normal;
	font-size: 13px;
	font-weight: 700;
	color: var(--rm-sage,#426653);
}

.rm-home-cta {
	margin-top: 24px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 22px;
	padding: 24px 28px;
	background: var(--rm-tone-eef3ed,#eef3ed);
	border: 1px solid var(--rm-tone-dce6da,#dce6da);
	border-radius: 8px;
}

.rm-home-cta p {
	margin: 0 0 5px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .08em;
	color: var(--rm-sage,#426653);
	text-transform: uppercase;
}

.rm-home-cta strong {
	display: block;
	font-size: 19px;
	line-height: 1.45;
	color: var(--rm-ink,#293b34);
}

@media (max-width:1199px) {
	.rm-hero-grid {
		gap: 32px;
	}
	.rm-hero h1 {
		font-size: 40px;
	}
	.rm-hero-photo {
		height: 440px;
	}
	.rm-photo-caption {
		left: 0;
		right: 12px;
		padding: 16px;
	}
	.rm-partners-layout {
		grid-template-columns: 1fr;
		gap: 16px;
	}
	.rm-partner-list {
		grid-template-columns: repeat(3,minmax(0,1fr));
	}
	.rm-nfz-banner {
		grid-template-columns: auto 1fr;
		gap: 18px;
	}
	.rm-nfz-action {
		grid-column: 2;
	}
	.rm-service-grid {
		grid-template-columns: repeat(2,minmax(0,1fr));
	}
}

@media (max-width:767px) {
	.rm-home .rm-hero {
		padding: 35px 0 38px;
	}
	.rm-hero-grid {
		grid-template-columns: 1fr;
		gap: 30px;
	}
	.rm-hero .rm-eyebrow {
		font-size: 8px;
		letter-spacing: .12em;
		margin-bottom: 19px;
	}
	.rm-hero h1 {
		font-size: 35px;
		line-height: 1.13;
		letter-spacing: 0;
		margin-bottom: 20px;
		overflow-wrap: normal;
	}
	.rm-desktop-break {
		display: none;
	}
	.rm-hero-description {
		font-size: 14px;
		line-height: 1.75;
		margin-bottom: 23px;
	}
	.rm-hero-actions {
		flex-direction: column;
		gap: 10px;
	}
	.rm-button {
		min-height: 48px;
		padding: 12px 18px;
		font-size: 13px;
	}
	.rm-hero-photo {
		height: 290px;
		border-top-left-radius: 65px;
		object-position: center;
	}
	.rm-hero-gallery {
		border-top-left-radius: 65px;
	}
	.rm-photo-caption {
		left: 12px;
		right: 12px;
		padding: 15px;
	}
	.rm-photo-caption strong {
		font-size: 13px;
	}
	.rm-photo-caption div>span {
		font-size: 10px;
	}
	.rm-home-partners {
		padding-top: 28px;
	}
	.rm-partners-layout {
		padding-bottom: 22px;
	}
	.rm-partner-list {
		grid-template-columns: repeat(2,minmax(0,1fr));
		gap: 8px;
	}
	.rm-partner-list li {
		min-height: 50px;
		font-size: 10px;
		padding: 10px 8px;
	}
	.rm-nfz-banner {
		grid-template-columns: 1fr;
		margin: 18px 0 -18px;
		padding: 22px 20px;
		gap: 13px;
	}
	.rm-nfz-badge {
		width: 58px;
		height: 58px;
		font-size: 18px;
	}
	.rm-nfz-copy strong {
		font-size: 21px;
	}
	.rm-nfz-copy em {
		font-size: 13px;
	}
	.rm-nfz-action {
		grid-column: auto;
		white-space: normal;
	}
	.rm-home-services {
		padding: 42px 0 48px;
	}
	.rm-section-heading {
		text-align: left;
		margin-bottom: 24px;
	}
	.rm-section-heading h2 {
		font-size: 28px;
	}
	.rm-section-heading>span {
		font-size: 14px;
	}
	.rm-service-grid {
		grid-template-columns: 1fr;
		gap: 12px;
	}
	.rm-service-card {
		min-height: 0;
		padding: 21px;
		gap: 12px;
	}
	.rm-service-card strong {
		font-size: 18px;
	}
	.rm-home-cta {
		align-items: stretch;
		flex-direction: column;
		padding: 22px 20px;
	}
	.rm-home-cta strong {
		font-size: 17px;
	}
	.rm-home-cta .rm-button {
		width: 100%;
	}
}

@media (prefers-reduced-motion:reduce) {
	.rm-home .rm-button, .rm-hero-gallery .rm-hero-photo {
		transition: none;
	}
}
