/* ==========================================================================
   Homepage (templates/page-home.php) – measured on the old Elementor page.
   1. Hero  2. Boxes  3. About  4. Specialties  5. News  6. CTA band
   7. Clinic + map
   ========================================================================== */


/* 1. Hero ----------------------------------------------------------------- */
.be_home-hero {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 90vh;
	overflow: hidden;
	background: var(--be-white);
}

.be_home-hero-bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: right center;
	opacity: 0.23; /* photo under the old white overlay (opacity .77) */
}

.be_home-hero-text {
	position: relative;
	width: 50%;
	animation: be-fade 1.25s both;
}

.be_home-hero-name {
	margin: 0 0 20px;
	color: var(--be-navy);
	font: 400 28px/1 "Roboto Slab", serif;
}

.be_home-hero-title {
	margin: 0 0 20px;
	color: var(--be-navy);
	font: 600 47px/1 var(--be-font);
}

.be_home-hero-lines {
	color: var(--be-navy);
	font: 400 16px/14px "Open Sans", sans-serif;
}

.be_home-hero-lines p {
	margin: 0 0 0.9rem;
}

@media (max-width: 1024px) {
	.be_home-hero {
		min-height: 100vh;
		padding-inline: 30px;
	}

	.be_home-hero-text {
		width: 100%;
	}
}

@media (max-width: 767px) {
	.be_home-hero {
		min-height: 60vh;
		padding-inline: 10px;
	}

	.be_home-hero-title {
		font-size: 32px;
	}

	.be_home-hero-lines {
		line-height: 1.4;
	}
}


/* 2. Boxes ---------------------------------------------------------------- */
.be_home-boxes {
	position: relative;
	display: flex;
	gap: 10px;
	margin: -100px 0 100px;
	padding-block: 10px;
}

.be_home-box {
	display: flex;
	flex: 1 1 50%;
	flex-direction: column;
	padding: 60px;
	border: 3px solid var(--be-navy);
	border-radius: 1px;
	background: var(--be-white);
}

.be_home-box--navy {
	justify-content: center;
	background: var(--be-navy);
	color: var(--be-white);
}

.be_home-box-title {
	margin: 0 0 20px;
	color: var(--be-navy);
	font: 300 32px/1 var(--be-font);
}

.be_home-box--navy .be_home-box-title {
	color: var(--be-white);
}

.be_home-box--hours .be_home-box-title {
	margin-bottom: 8px;
}

.be_home-box-text {
	margin: 0 0 84.4px; /* 14.4 paragraph + 50 widget margin + 20 gap */
	font: 400 16px/22px var(--be-font);
}

.be_home-box-action {
	margin: 0;
}

.be_home-hours {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.be_home-hours-row {
	display: flex;
	justify-content: space-between;
	gap: 30px;
	padding: 10px 0;
	border-bottom: 1px dashed #dddddd;
	font: 500 16px/22px var(--be-font);
}

.be_home-hours-row dt {
	flex: 0 1 205px;
	color: var(--be-navy);
}

.be_home-hours-row dd {
	margin: 0;
	color: var(--be-grey);
	text-align: right;
}

.be_home-hours-row:last-child {
	padding: 20px 0 21px;
}

.be_home-hours-row:last-child dd {
	padding-top: 10px;
}

@media (max-width: 767px) {
	.be_home-boxes {
		display: block;
		margin: 0;
		padding: 0;
	}

	.be_home-box {
		margin: 10px 0;
		padding: 2em;
	}

	.be_home-hours-row {
		gap: 10px;
		font-size: 12px;
		line-height: 20px;
	}

	.be_home-hours-row dt {
		flex-basis: 50%;
	}
}


/* 3. About ---------------------------------------------------------------- */
.be_home-about {
	display: flex;
	gap: 10px;
	border-bottom: 1px solid var(--be-line);
}

.be_home-about-media {
	display: flex;
	flex: 0 0 49.912%;
	flex-direction: column;
	justify-content: flex-end;
	max-width: 49.912%;
	padding: 10px 10px 0;
}

.be_home-about-img {
	display: block;
	width: 100%;
	height: auto;
	filter: brightness(102%) saturate(81%) hue-rotate(351deg);
}

.be_home-about-text {
	flex: 1 1 0;
	min-width: 0;
	padding: 35px 20px 20px;
}

.be_home-about-title {
	margin: 0 0 20px;
	color: var(--be-navy);
	font: 300 40px/43px var(--be-font);
}

.be_home-about-body {
	margin-bottom: 20px;
	color: var(--be-slate);
}

.be_home-about-body p:last-child {
	margin-bottom: 0.9rem;
}

@media (max-width: 1024px) {
	.be_home-about {
		padding-inline: 15px;
	}

	.be_home-about-body {
		font-size: 14px;
		line-height: 20px;
	}
}

@media (max-width: 767px) {
	.be_home-about {
		display: block;
		padding: 50px 0 30px;
	}

	.be_home-about-media {
		max-width: none;
		padding: 0 10px;
	}

	.be_home-about-text {
		padding: 30px 25px;
	}

	.be_home-about-title {
		font-size: 24px;
		line-height: 1.2;
	}
}


/* 4. Specialties ---------------------------------------------------------- */
.be_home-feature {
	display: flex;
	padding-block: 10px;
}

.be_home-feature + .be_home-feature {
	margin-top: 50px;
}

.be_home-feature--reverse {
	flex-direction: row-reverse;
}

.be_home-feature > .be_col {
	flex: 0 0 50%;
	max-width: 50%;
}

.be_home-feature-media img {
	display: block;
	width: 100%;
	height: auto;
}

.be_home-feature-title {
	margin: 0 0 20px;
	color: var(--be-navy);
	font: 400 30px/28px var(--be-font);
}

.be_home-feature-title a {
	color: inherit;
}

.be_home-feature-body {
	margin: 0 0 64.4px; /* 14.4 paragraph + 30 widget margin + 20 gap */
	color: var(--be-slate);
	font: 300 16px/24px var(--be-font);
}

.be_home-conditions {
	display: flex;
	padding-block: 70px;
}

.be_home-conditions-col {
	display: flex;
	flex: 0 0 25%;
	flex-direction: column;
	justify-content: center;
	max-width: 25%;
}

.be_home-conditions-col--left {
	padding: 0 20px 0 20px;
}

.be_home-conditions-col--right {
	padding: 0 20px 0 20px;
}

.be_home-conditions-col--center {
	flex-basis: 50%;
	align-items: center;
	max-width: 50%;
	padding: 0 20px;
}

.be_home-conditions-img {
	display: block;
	width: 100%;
	height: auto;
	margin-bottom: 20px;
}

.be_home-teaser {
	display: block;
	padding: 10px;
}

.be_home-teaser-title {
	margin: 0 0 20px;
	color: var(--be-navy);
	font: 300 24px/25px var(--be-font);
	transition: color 0.3s;
}

.be_home-teaser-text {
	margin: 0 0 0.9rem;
	color: #7c7c7c;
	font: 300 16px/24px var(--be-font);
}

a.be_home-teaser:hover .be_home-teaser-title,
a.be_home-teaser:focus .be_home-teaser-title {
	color: var(--be-red);
}

.be_home-conditions-col--center .be_home-teaser {
	width: 320px;
	max-width: 100%;
	text-align: center;
}

@media (max-width: 1024px) {
	.be_home-feature-title {
		font-size: 18px;
		line-height: 24px;
	}

	.be_home-conditions {
		display: block;
		padding: 60px 40px;
	}

	.be_home-conditions-col,
	.be_home-conditions-col--center {
		max-width: none;
		padding: 0;
	}

	.be_home-conditions-col--center {
		margin-top: 40px;
		padding-bottom: 40px;
	}
}

@media (max-width: 767px) {
	.be_home-feature,
	.be_home-feature--reverse {
		display: block;
	}

	.be_home-feature > .be_col {
		max-width: none;
	}

	.be_home-feature-title {
		line-height: 26px;
	}

	.be_home-conditions {
		padding: 70px 10px;
	}

	.be_home-conditions-col--center .be_home-teaser {
		width: auto;
		margin-inline: 20px;
		text-align: left;
	}
}


/* 5. News ----------------------------------------------------------------- */
.be_home-news {
	padding-top: 80px;
	padding-bottom: 80px;
	border-top: 1px solid var(--be-line);
	background: var(--be-light);
}

.be_home-news .be_section-title {
	padding-bottom: 0;
}

.be_home-news-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	grid-auto-rows: 1fr;
	gap: 30px;
	padding: 20px 10px 10px;
}

.be_card {
	display: flex;
	flex-direction: column;
	gap: 20px;
	margin: 10px;
	background: var(--be-white);
	box-shadow: 0 2px 15px 0 rgba(0, 0, 0, 0.1);
}

.be_card-image {
	display: block;
	aspect-ratio: 3 / 2;
	background: var(--be-line);
}

.be_card-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.be_card-title {
	margin: 0 20px;
	font: 500 20px/28px var(--be-font);
	text-transform: capitalize;
}

.be_card-title a {
	color: var(--be-navy);
}

.be_card-excerpt {
	margin: 0 0 0.9rem;
	padding: 0 20px;
	color: var(--be-ink);
	font: 400 16px/24px var(--be-font-sys);
}

.be_card-more {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	align-self: flex-start;
	margin: -6px 20px 0;
	padding-bottom: 30px;
	color: #192431;
	font: 500 14px/22px var(--be-font);
}

.be_card-more .be_icon {
	width: 14px;
	height: 14px;
}

.be_card-more:hover,
.be_card-title a:hover {
	color: var(--be-red);
}

@media (max-width: 1024px) {
	.be_home-news {
		padding-inline: 15px;
	}

	.be_home-news-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 767px) {
	.be_home-news-grid {
		grid-template-columns: 1fr;
		grid-auto-rows: auto;
	}
}


/* 6. CTA band ------------------------------------------------------------- */
.be_cta {
	position: relative;
	display: flex;
	align-items: center;
	padding-block: 100px;
	overflow: hidden;
	background: #111111;
}

.be_cta-bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center bottom;
	opacity: 0.37; /* photo under the old #111 overlay (opacity .63) */
}

.be_cta > .be_col {
	position: relative;
	flex: 0 0 50%;
	max-width: 50%;
}

.be_cta-eyebrow {
	margin: 0 0 20px;
	color: rgba(255, 255, 255, 0.95);
	font: 700 16px/26px var(--be-font);
	letter-spacing: 1.6px;
	text-transform: uppercase;
}

.be_cta-title {
	margin: 0;
	color: var(--be-white);
	font: 300 32px/1 var(--be-font);
}

.be_cta-action {
	text-align: right;
}

@media (max-width: 1024px) {
	.be_cta {
		display: block;
		padding-block: 60px;
		text-align: center;
	}

	.be_cta > .be_col {
		max-width: none;
		padding: 20px;
	}

	.be_cta-action {
		text-align: center;
	}
}


/* 7. Clinic + map --------------------------------------------------------- */
.be_home-clinic {
	padding-block: 55px;
	border-top: 1px solid var(--be-line);
	background: var(--be-light);
	text-align: center;
}

.be_home-clinic .be_section-title {
	padding-bottom: 0;
}

.be_home-clinic .be_section-title-heading {
	font-size: 53px;
	line-height: 1;
}

.be_home-clinic-action {
	margin: 5.6px 0 0;
	padding: 0 10px 10px;
}

.be_home-map {
	height: 410px;
}

.be_home-map iframe {
	filter: contrast(95%) saturate(67%);
}

@media (max-width: 767px) {
	.be_home-clinic {
		margin-block: 50px 0;
	}

	.be_home-clinic .be_section-title-heading {
		font-size: 30px;
	}
}
