/*
 * Home New: refinement layer on top of the existing homepage styles.
 * Same layout, colors and font as the current homepage; stronger type, cleaner
 * buttons, framed images and clearer sections. Loaded only on the Home New template,
 * and every rule is scoped to .hn-page (or the template's body class).
 */

.hn-page {
	--hn-teal: var(--pColor, #249d8c);
	--hn-teal-soft: #eef6f4;
	--hn-coral: #c9614b;      /* brand coral, one step deeper so headings read clearly */
	--hn-btn: #b8513c;        /* button coral with AA contrast for white text */
	--hn-btn-hover: #9c4231;
	--hn-ink: #24343a;
	--hn-body: #4a5a60;
	--hn-shadow: 0 22px 50px -26px rgba(20, 45, 50, 0.45);
}

/* ---------- Header ----------
 * The theme adds .not-home on every page that isn't the front page, which turns the
 * header into a solid teal bar. Undo that here so this page matches the homepage.
 * Once Home New is the front page, .not-home is gone and these rules do nothing.
 */
body.page-template-page-home-new header#site-header.not-home > #header {
	position: fixed;
	background: transparent;
	margin-bottom: 0;
}

@media (min-width: 881px) {
	body.page-template-page-home-new header#site-header.not-home > #header.header-scroll {
		background: #000;
	}
}

@media (max-width: 880px) {
	body.page-template-page-home-new header#site-header.not-home > #header {
		position: relative;
	}
}

/* ---------- Buttons ---------- */

.hn-page a.btn,
.hn-page .carousel-caption > a {
	display: inline-block;
	padding: 15px 34px;
	border-radius: 4px;
	background-color: var(--hn-btn) !important;
	box-shadow: 0 12px 26px -14px rgba(156, 66, 49, 0.9);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #fff !important;
	transition: background-color 0.2s ease, transform 0.2s ease;
}

.hn-page a.btn:hover,
.hn-page .carousel-caption > a:hover {
	background-color: var(--hn-btn-hover) !important;
	transform: translateY(-1px);
}

.hn-page a.btn:focus-visible,
.hn-page .carousel-caption > a:focus-visible,
.hn-page .service-content a:focus-visible,
.hn-page .ss-controls a:focus-visible {
	outline: 2px solid var(--hn-teal);
	outline-offset: 4px;
}

/* ---------- Section headings ---------- */

.hn-page section.welcome h2,
.hn-page .under-service-quote h2,
.hn-page .hn-section-head h2,
.hn-page section.ab-doctors h2 {
	font-weight: 600;
	letter-spacing: 0.06em;
	line-height: 1.2;
	color: var(--hn-coral);
}

.hn-page section.welcome h2::after,
.hn-page .under-service-quote h2::after,
.hn-page .hn-section-head h2::after {
	content: "";
	display: block;
	width: 56px;
	height: 3px;
	margin: 18px auto 0;
	border-radius: 2px;
	background: var(--hn-teal);
}

/* Small uppercase line above a heading, with a short rule on each side. */
.hn-page .hn-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 12px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.22em;
	line-height: 1.4;
	text-transform: uppercase;
	color: var(--hn-teal);
}

.hn-page .hn-eyebrow::before,
.hn-page .hn-section-head .hn-eyebrow::after {
	content: "";
	width: 28px;
	height: 2px;
	border-radius: 1px;
	background: currentColor;
	opacity: 0.6;
}

/* ---------- Hero ---------- */

/* Soft shade behind the caption only, so the rest of the video stays bright. */
.hn-page .video_wrapper::after {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 1;
	background: radial-gradient(ellipse 55% 42% at 50% 55%, rgba(10, 20, 24, 0.5) 0%, rgba(10, 20, 24, 0) 100%);
	pointer-events: none;
}

.hn-page .carousel-caption {
	z-index: 2;
}

/* Keep the theme's white logo filter, add a soft shadow. */
.hn-page .carousel-caption img {
	filter: brightness(0) invert(1) drop-shadow(0 4px 18px rgba(0, 0, 0, 0.35));
}

.hn-page .carousel-caption h3 {
	max-width: 900px;
	margin: 18px auto 28px;
	padding: 0 20px;
	font-size: 21px;
	font-weight: 600;
	letter-spacing: 0.12em;
	line-height: 1.4;
	text-shadow: 0 2px 14px rgba(0, 0, 0, 0.5);
}

/* ---------- Welcome ---------- */

.hn-page section.welcome {
	padding: 90px 0 70px;
}

.hn-page section.welcome h2 {
	font-size: 34px;
	margin-bottom: 60px;
}

/* Image framed with a soft offset block behind it. */
.hn-page section.welcome .dm-half:first-child {
	position: relative;
}

.hn-page section.welcome .dm-half:first-child::before {
	content: "";
	position: absolute;
	left: -18px;
	bottom: -18px;
	width: 70%;
	height: 70%;
	border-radius: 14px;
	background: var(--hn-teal-soft);
}

.hn-page section.welcome .dm-half:first-child img {
	position: relative;
	z-index: 1;
	width: 100%;
	border-radius: 12px;
	box-shadow: var(--hn-shadow);
}

.hn-page section.welcome h3 {
	margin-bottom: 18px;
	font-size: 24px;
	font-weight: 600;
	letter-spacing: 0.02em;
	line-height: 1.3;
}

.hn-page section.welcome .dm-half p {
	margin-bottom: 18px;
	font-size: 16.5px;
	font-weight: 400;
	line-height: 1.8;
	color: var(--hn-body);
}

/* ---------- Service slider ----------
 * Section heading above, slider on a white card, numbered slides and the slide
 * list as a tinted side panel inside the card (chips on tablet).
 */

.hn-page .service-slider {
	padding: 90px 0 100px;
}

.hn-page .hn-section-head {
	position: relative;
	z-index: 1;
	max-width: 760px;
	margin: 0 auto 48px;
	padding: 0 20px;
	text-align: center;
}

.hn-page .hn-section-head h2 {
	margin: 0;
	font-size: 34px;
	text-transform: uppercase;
}

.hn-page .service-slider .container {
	border-radius: 16px;
	background: #fff;
	box-shadow: var(--hn-shadow);
}

.hn-page .hn-slide-num {
	display: block;
	margin-bottom: 6px;
	font-size: 58px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.02em;
	color: #d3e8e3;
}

.hn-page .service-content h2 {
	margin-bottom: 0;
	font-size: 34px;
	font-weight: 600;
	letter-spacing: 0.04em;
	line-height: 1.15;
}

/* Short coral rule under each slide title. */
.hn-page .service-content h2::after {
	content: "";
	display: block;
	width: 40px;
	height: 3px;
	margin: 16px 0 20px;
	border-radius: 2px;
	background: var(--hn-coral);
}

.hn-page .service-content p {
	font-size: 16px;
	font-weight: 400;
	line-height: 1.75;
	color: var(--hn-body);
}

/* "Learn More" as an outlined button with an arrow. */
.hn-page .service-content a {
	display: inline-block;
	padding: 12px 24px;
	border: 2px solid var(--hn-btn);
	border-radius: 4px;
	font-size: 13px;
	letter-spacing: 0.12em;
	color: var(--hn-btn);
	transition: background-color 0.2s ease, color 0.2s ease;
}

.hn-page .service-content a::after,
.hn-page section.ab-doctors a.btn::after {
	content: "\2192";
	display: inline-block;
	margin-left: 10px;
	letter-spacing: 0;
	transition: transform 0.2s ease;
}

.hn-page .service-content a:hover {
	background: var(--hn-btn);
	color: #fff;
}

.hn-page .service-content a:hover::after,
.hn-page section.ab-doctors a.btn:hover::after {
	transform: translateX(4px);
}

.hn-page .media div {
	border-radius: 12px;
	box-shadow: var(--hn-shadow);
}

.hn-page .ss-controls li {
	margin: 0 0 4px;
	padding: 0;
}

.hn-page .ss-controls a {
	font-size: 14px;
	font-weight: 500;
	color: #5a6a70;
	transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.hn-page .ss-controls a:hover {
	color: var(--hn-teal);
}

.hn-page .ss-controls a.active-dot {
	font-weight: 700;
	color: var(--hn-coral);
}

/* Desktop: text | image | tinted list panel, all inside one card. */
@media (min-width: 1171px) {
	.hn-page .service-slider .container {
		position: relative;
		width: calc(100% - 80px);
		max-width: 1200px !important; /* theme caps .container at 1100px with !important */
		padding: 56px 326px 56px 56px;
	}

	/* Equal-height slides so shorter ones sit centered in the card. */
	.hn-page .ss-slider .slick-track {
		display: flex !important;
	}

	.hn-page .ss-slider .slick-slide {
		float: none;
		height: auto;
	}

	.hn-page .service-s .dm-flex {
		height: 100%;
		flex-wrap: nowrap;
		align-items: center;
	}

	.hn-page .service-content {
		flex: none;
		width: 360px;
		max-width: 360px;
		text-align: left;
	}

	.hn-page .media {
		flex: 1 1 auto;
		width: auto;
		height: 440px;
		padding: 0 24px 0 44px; /* right padding keeps the image shadow inside the slide */
	}

	.hn-page .media div {
		width: 100%;
		margin: 0;
	}

	.hn-page .ss-controls {
		top: 0;
		right: 0;
		bottom: 0;
		display: flex;
		flex-direction: column;
		justify-content: center;
		width: 270px;
		padding: 32px 24px;
		border-radius: 0 16px 16px 0;
		background: var(--hn-teal-soft);
		transform: none;
	}

	/* Theme's vertical line; the panel replaces it. */
	.hn-page .ss-controls::before {
		display: none;
	}

	.hn-page .ss-controls a {
		display: flex;
		align-items: center;
		gap: 12px;
		padding: 11px 16px;
		border-radius: 8px;
	}

	.hn-page .ss-controls a:hover {
		background: rgba(255, 255, 255, 0.6);
	}

	.hn-page .ss-controls a.active-dot {
		background: #fff;
		box-shadow: 0 10px 22px -14px rgba(20, 45, 50, 0.5);
	}

	.hn-page .ss-controls .dot {
		position: static;
		flex: none;
		width: 10px;
		height: 10px;
		border: 2px solid #9cc5bd;
		background: transparent;
	}

	.hn-page .ss-controls .dot::before {
		display: none;
	}

	.hn-page .ss-controls .dot + span {
		padding-left: 0;
	}

	.hn-page .ss-controls a.active-dot .dot {
		border-color: var(--hn-coral);
		background: var(--hn-coral);
	}
}

/* Tablet and phone: card fills the width, slide list becomes chips. */
@media (max-width: 1170px) {
	.hn-page .service-slider .container {
		width: calc(100% - 32px) !important;
		padding: 28px 24px 32px;
	}

	.hn-page .ss-controls {
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		gap: 8px;
		margin-top: 28px;
	}

	.hn-page .ss-controls li {
		margin: 0;
	}

	.hn-page .ss-controls a {
		padding: 8px 14px;
		border: 1px solid #d9e6e3;
		border-radius: 999px;
		background: #fff;
		font-size: 13px;
	}

	.hn-page .ss-controls a.active-dot {
		border-color: var(--hn-btn);
		background: var(--hn-btn);
		color: #fff;
	}

	.hn-page .ss-controls .dot {
		display: none;
	}

	.hn-page .ss-controls .dot + span {
		padding-left: 0;
	}

	.hn-page .service-content {
		padding-top: 26px;
	}

	.hn-page .service-content h2::after {
		margin-left: auto;
		margin-right: auto;
	}
}

/* Phone: the theme hides the slide list; keep that. */
@media (max-width: 600px) {
	.hn-page .ss-controls {
		display: none;
	}
}

/* ---------- Appointments band ---------- */

.hn-page .under-service-quote {
	max-width: none;
	padding: 80px 20px;
	background: var(--hn-teal-soft);
}

.hn-page .under-service-quote > * {
	max-width: 700px;
	margin-left: auto;
	margin-right: auto;
}

.hn-page .under-service-quote h2 {
	font-size: 34px;
	margin-bottom: 22px;
}

.hn-page .under-service-quote p {
	font-size: 18px;
	line-height: 1.7;
	color: var(--hn-body);
}

/* ---------- Testimonials ---------- */

.hn-page section#wda_testi:after {
	opacity: 0.85;
}

.hn-page section#wda_testi h2 {
	font-weight: 600 !important;
	letter-spacing: 0.08em;
}

.hn-page section#wda_testi p {
	font-size: 19px !important;
	font-style: normal;
	font-weight: 400;
	line-height: 1.75;
}

/* ---------- About the doctor ---------- */

.hn-page section.ab-doctors {
	overflow: hidden;
	padding-top: 110px;
	padding-bottom: 110px;
}

/* Photo sits on a soft teal block that runs off the left edge of the page. */
.hn-page section.ab-doctors .dm-half:first-child {
	position: relative;
}

.hn-page section.ab-doctors .dm-half:first-child::before {
	content: "";
	position: absolute;
	top: -40px;
	bottom: -40px;
	right: 38%;
	width: 100vw;
	border-radius: 0 18px 18px 0;
	background: var(--hn-teal-soft);
}

.hn-page section.ab-doctors .dm-half:first-child img {
	position: relative;
	z-index: 1;
	display: block;
	width: 230px;
	max-width: 100%;
	border: 8px solid #fff;
	border-radius: 14px;
	box-shadow: var(--hn-shadow);
}

.hn-page section.ab-doctors h2 {
	margin-bottom: 14px;
	font-size: 34px;
}

/* Credentials as a pill. */
.hn-page section.ab-doctors h3 {
	display: inline-block;
	margin-bottom: 22px;
	padding: 8px 18px;
	border-radius: 999px;
	background: var(--hn-teal-soft);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.16em;
	line-height: 1.3;
	text-transform: uppercase;
	color: var(--hn-teal);
}

.hn-page section.ab-doctors p {
	max-width: 720px;
	font-size: 16.5px;
	font-weight: 400;
	line-height: 1.8;
	color: var(--hn-body);
}

.hn-page section.ab-doctors p:last-child {
	margin-top: 10px;
	margin-bottom: 0;
}

@media (min-width: 881px) {
	.hn-page section.ab-doctors .dm-flex {
		grid-template-columns: 250px 1fr;
		column-gap: 72px;
		align-items: center;
	}
}

/* ---------- Mobile ---------- */

@media (max-width: 880px) {
	.hn-page section.welcome,
	.hn-page section.ab-doctors {
		padding-top: 60px;
		padding-bottom: 50px;
	}

	.hn-page section.welcome h2 {
		font-size: 26px;
		margin-bottom: 40px;
	}

	.hn-page section.welcome .dm-half:first-child {
		margin-bottom: 44px;
	}

	.hn-page section.welcome .dm-half:first-child::before {
		left: -10px;
		bottom: -10px;
	}

	.hn-page .under-service-quote {
		padding: 60px 20px;
	}

	.hn-page .under-service-quote h2,
	.hn-page .hn-section-head h2,
	.hn-page section.ab-doctors h2 {
		font-size: 26px;
	}

	.hn-page .service-slider {
		padding: 60px 0 70px;
	}

	.hn-page .hn-section-head {
		margin-bottom: 32px;
	}

	.hn-page .hn-slide-num {
		font-size: 44px;
	}

	.hn-page .service-content h2 {
		font-size: 26px;
	}

	/* Doctor: photo centered on a full-width tinted band. */
	.hn-page section.ab-doctors .dm-half:first-child {
		margin-bottom: 36px;
	}

	.hn-page section.ab-doctors .dm-half:first-child::before {
		top: -30px;
		bottom: 45%;
		left: -50vw;
		right: -50vw;
		width: auto;
		border-radius: 0;
	}

	.hn-page section.ab-doctors .dm-half:first-child img {
		width: 210px;
		margin: 0 auto;
	}

	.hn-page section.ab-doctors .hn-eyebrow::after {
		content: "";
		width: 28px;
		height: 2px;
		border-radius: 1px;
		background: currentColor;
		opacity: 0.6;
	}

	.hn-page section.ab-doctors p {
		margin-left: auto;
		margin-right: auto;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hn-page a.btn,
	.hn-page a.btn::after,
	.hn-page .carousel-caption > a,
	.hn-page .service-content a,
	.hn-page .service-content a::after,
	.hn-page .ss-controls a {
		transition: none;
	}
}
