/* ==========================================================================
   Homepage (front-page.php), after the "SG CROWN" brief.
   Loaded on the front page only; all classes start with "hp-".
   ========================================================================== */

:root {
	--hp-red: #c8102e;
	--hp-grey: #f4f4f6;
	--hp-pink: #fdecec;
	--hp-radius: 18px;
	--hp-shadow: 0 14px 40px rgba(140, 31, 30, 0.12);
}

/* Shared ------------------------------------------------------------------ */

.hp-title {
	margin: 0 0 18px;
	color: var(--hp-red);
	font-size: clamp(24px, 2.6vw, 36px);
	font-weight: 800;
	line-height: 1.22;
	letter-spacing: -0.01em;
}

.hp-head {
	max-width: 960px;
	margin: 0 auto 40px;
	text-align: center;
}

.hp-head p {
	margin: 0;
	color: #4a4a4a;
	font-size: 17px;
	line-height: 1.7;
}

.hp-center {
	display: flex;
	justify-content: center;
}

.hp-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 26px;
}

/* Gold button. */
.hp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 14px 28px;
	border-radius: 40px;
	background: linear-gradient(135deg, #e7b347 0%, var(--c-gold) 55%, #b97f17 100%);
	box-shadow: 0 8px 20px rgba(216, 157, 43, 0.35);
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.04em;
	line-height: 1.3;
	text-align: center;
	text-transform: uppercase;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hp-btn:hover,
.hp-btn:focus-visible {
	color: #fff;
	transform: translateY(-2px);
	box-shadow: 0 12px 26px rgba(216, 157, 43, 0.45);
}

.hp-btn .icon {
	width: 16px;
	height: 16px;
}

.hp-btn--small {
	padding: 11px 22px;
	font-size: 14px;
}

.hp-btn--wide {
	padding-inline: 34px;
}

/* Scroll reveal: only hidden once home.js is known to run. */
.hp-js [data-reveal] {
	opacity: 0;
	transform: translateY(36px);
	transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
	transition-delay: var(--delay, 0ms);
}

.hp-js [data-reveal].is-visible {
	opacity: 1;
	transform: none;
}

/* 1. Hero ----------------------------------------------------------------- */

.hp-hero {
	position: relative;
	overflow: hidden;
	background: var(--c-maroon) center / cover no-repeat;
	color: #fff;
}

.hp-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(circle at 80% 30%, rgba(234, 45, 40, 0.35), transparent 55%),
		linear-gradient(110deg, rgba(110, 16, 20, 0.94) 0%, rgba(200, 16, 46, 0.86) 55%, rgba(140, 31, 30, 0.75) 100%);
}

.hp-hero__inner {
	position: relative;
	display: grid;
	grid-template-columns: 1.15fr 1fr;
	align-items: center;
	gap: 48px;
	min-height: 620px;
	padding-block: 64px;
}

.hp-hero__kicker {
	display: inline-block;
	margin: 0 0 22px;
	padding: 9px 18px;
	border: 1px solid rgba(252, 209, 105, 0.7);
	border-radius: 30px;
	background: rgba(252, 209, 105, 0.12);
	color: var(--c-gold-light);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.04em;
	line-height: 1.4;
	text-transform: uppercase;
}

.hp-hero__title {
	margin: 0;
	font-size: clamp(40px, 5.6vw, 78px);
	font-weight: 800;
	letter-spacing: 0.02em;
	line-height: 1.02;
}

.hp-hero__tagline {
	position: relative;
	max-width: 560px;
	margin: 22px 0 34px;
	padding-left: 20px;
	font-size: clamp(19px, 1.8vw, 26px);
	font-weight: 400;
	line-height: 1.45;
}

.hp-hero__tagline::before {
	content: "";
	position: absolute;
	top: 4px;
	bottom: 4px;
	left: 0;
	width: 4px;
	border-radius: 2px;
	background: var(--c-gold-light);
}

.hp-hero__media {
	position: relative;
	justify-self: end;
	width: min(100%, 580px);
}

.hp-hero__media::before {
	content: "";
	position: absolute;
	inset: 22px -22px -22px 22px;
	border: 2px solid rgba(252, 209, 105, 0.7);
	border-radius: 28px;
}

.hp-hero__media img {
	position: relative;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 28px;
	box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}

/* 2. About ---------------------------------------------------------------- */

.hp-about {
	padding-block: 88px;
	background: var(--hp-grey);
}

.hp-about__inner {
	display: grid;
	grid-template-columns: 1fr 1.1fr;
	align-items: center;
	gap: 64px;
}

.hp-about__media img {
	width: 100%;
	max-height: 640px;
	object-fit: cover;
	border-radius: var(--hp-radius);
	box-shadow: var(--hp-shadow);
}

.hp-about__content p {
	margin: 0 0 14px;
	font-size: 16px;
	line-height: 1.75;
}

/* 3. Services ------------------------------------------------------------- */

.hp-services {
	padding-block: 88px;
	background: #fff;
}

.hp-services__grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 28px;
}

.hp-service {
	display: flex;
	flex-direction: column;
	flex: 0 1 calc((100% - 56px) / 3);
	overflow: hidden;
	border: 1px solid #f0e2e2;
	border-radius: var(--hp-radius);
	background: #fff;
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
	transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.hp-service:hover {
	box-shadow: var(--hp-shadow);
}

.hp-service__media {
	display: block;
	overflow: hidden;
}

.hp-service__media img {
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.hp-service:hover .hp-service__media img {
	transform: scale(1.06);
}

.hp-service__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: flex-start;
	padding: 24px 26px 28px;
}

.hp-service__title {
	margin: 0 0 10px;
	color: var(--hp-red);
	font-size: 20px;
	font-weight: 800;
	letter-spacing: 0.02em;
}

.hp-service__body p {
	flex: 1;
	margin: 0 0 20px;
	color: #4a4a4a;
	font-size: 15px;
	line-height: 1.65;
}

/* CTA: plan before you travel --------------------------------------------- */

.hp-plan {
	padding-block: 72px;
	background: linear-gradient(120deg, #fff 0%, var(--hp-pink) 100%);
}

.hp-plan__inner {
	display: grid;
	grid-template-columns: 1.25fr 1fr;
	align-items: center;
	gap: 56px;
}

.hp-plan__media img {
	width: 100%;
	border-radius: var(--hp-radius);
}

.hp-plan__lead {
	margin: 0 0 18px;
	color: var(--hp-red);
	font-size: 24px;
	font-weight: 800;
	line-height: 1.3;
}

.hp-checks {
	display: grid;
	gap: 14px;
	margin: 0 0 30px;
	padding: 0;
	list-style: none;
}

.hp-checks li {
	position: relative;
	padding-left: 38px;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.5;
}

.hp-checks li::before {
	content: "✓";
	position: absolute;
	top: 0;
	left: 0;
	display: grid;
	place-items: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--hp-red);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
}

/* 4. Dentists ------------------------------------------------------------- */

.hp-dentists {
	position: relative;
	padding-block: 96px;
	background: #fff center / cover no-repeat fixed;
}

/* The dental chair photo shows faintly behind a light wash, so the red title stays readable. */
.hp-dentists::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 245, 245, 0.92));
}

.hp-dentists__inner {
	position: relative;
}

.hp-dentists__intro {
	max-width: 920px;
	margin: 0 auto 48px;
	text-align: center;
}

.hp-dentists__intro > p {
	margin: 0 0 12px;
	font-size: 16px;
	line-height: 1.7;
}

.hp-dentists__lead {
	color: var(--c-maroon);
	font-size: 19px !important;
	font-style: italic;
	font-weight: 500;
}

.hp-strengths {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 14px;
	margin: 28px 0 0;
	padding: 0;
	list-style: none;
	text-align: left;
}

.hp-strengths li {
	padding: 16px 18px 16px 20px;
	border-left: 4px solid var(--c-gold);
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.92);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
	font-size: 15px;
	line-height: 1.55;
}

.hp-strengths strong {
	color: var(--hp-red);
}

.hp-dentists__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
	margin-bottom: 44px;
}

.hp-dentist {
	overflow: hidden;
	border-radius: var(--hp-radius);
	background: #fff;
	box-shadow: var(--hp-shadow);
}

/* The whole card opens the dentist's profile. */
.hp-dentist__link {
	display: block;
	color: inherit;
	text-decoration: none;
}

.hp-dentist__photo {
	display: block;
	overflow: hidden;
}

.hp-dentist img {
	display: block;
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	background: #e9e9ec;
	transition: transform 0.4s ease;
}

.hp-dentist__link:hover img {
	transform: scale(1.04);
}

.hp-dentist__link:hover .hp-dentist__name,
.hp-dentist__link:focus-visible .hp-dentist__name {
	text-decoration: underline;
}

.hp-dentist__body {
	padding: 20px 22px 24px;
	border-top: 4px solid var(--hp-red);
	text-align: center;
}

.hp-dentist__name {
	margin: 0 0 6px;
	color: var(--hp-red);
	font-size: 19px;
	font-weight: 800;
}

.hp-dentist__body p {
	margin: 0;
	color: #4a4a4a;
	font-size: 15px;
	line-height: 1.5;
}

/* 5. Journey + before/after ---------------------------------------------- */

.hp-journey {
	padding-block: 88px;
	background: #fff;
}

.hp-journey__top {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: center;
	gap: 48px;
	margin-bottom: 44px;
}

.hp-journey__head p {
	margin: 0;
	font-size: 16px;
	line-height: 1.75;
}

.hp-journey__banner img {
	width: 100%;
	border-radius: var(--hp-radius);
	box-shadow: var(--hp-shadow);
}

.hp-stories {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
	margin-bottom: 48px;
}

.hp-story {
	margin: 0;
	overflow: hidden;
	border-radius: var(--hp-radius);
	background: var(--hp-grey);
}

.hp-story img {
	width: 100%;
}

.hp-story figcaption {
	display: grid;
	gap: 4px;
	padding: 18px 22px 22px;
}

.hp-story strong {
	color: var(--hp-red);
	font-size: 17px;
}

.hp-story span {
	color: #4a4a4a;
	font-size: 15px;
	font-style: italic;
}










/* Case slider: picture left, title right, one case at a time. */

.hp-cases {
	overflow: hidden;
	border-radius: var(--hp-radius);
	background: #fff;
	box-shadow: var(--hp-shadow);
}

.hp-cases__track {
	display: flex;
	overflow-x: auto;
	scroll-behavior: smooth;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}

.hp-cases__track::-webkit-scrollbar {
	display: none;
}

.hp-cases__slide {
	display: grid;
	flex: 0 0 100%;
	grid-template-columns: 1.55fr 1fr;
	margin: 0;
	scroll-snap-align: start;
}

.hp-cases__media img {
	width: 100%;
	height: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.hp-cases__text {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 14px;
	padding: 40px 44px 72px;
}

.hp-cases__label {
	color: #1d1d1f;
	font-size: clamp(30px, 3.4vw, 46px);
	font-weight: 300;
	letter-spacing: 0.01em;
	line-height: 1.05;
}

.hp-cases__title {
	color: #333;
	font-size: 18px;
	line-height: 1.55;
}

.hp-cases__count {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 12px;
	color: #777;
	font-size: 14px;
}

.hp-cases__count b {
	color: var(--hp-red);
	font-size: 18px;
}

.hp-cases__count::after {
	content: "";
	flex: 1;
	max-width: 140px;
	height: 1px;
	background: #1d1d1f;
}

.hp-cases__controls {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 12px;
	margin-top: -60px;
	padding: 0 44px 22px;
	pointer-events: none;
}

.hp-cases__controls > * {
	pointer-events: auto;
}

.hp-cases__nav {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 1px solid #e3d4d4;
	border-radius: 50%;
	background: #fff;
	color: var(--hp-red);
	cursor: pointer;
}

.hp-cases__nav:hover {
	background: var(--hp-red);
	color: #fff;
}

.hp-cases__nav .icon {
	width: 20px;
	height: 20px;
}

.hp-cases__dots {
	display: flex;
	gap: 6px;
}

.hp-cases__dots button {
	width: 8px;
	height: 8px;
	padding: 0;
	border: 0;
	border-radius: 4px;
	background: #e3d4d4;
	cursor: pointer;
	transition: width 0.25s ease, background 0.25s ease;
}

.hp-cases__dots button[aria-current] {
	width: 22px;
	background: var(--hp-red);
}

/* 6. What to expect -------------------------------------------------------- */

.hp-expect {
	padding-block: 88px;
	background: var(--hp-grey);
}

.hp-expect__list {
	position: relative;
	max-width: 1080px;
	margin: 0 auto;
}

.hp-expect__line {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 50%;
	width: 3px;
	border-radius: 2px;
	background: #e3d4d4;
	transform: translateX(-50%);
}

.hp-expect__line span {
	display: block;
	height: var(--progress, 0%);
	border-radius: 2px;
	background: linear-gradient(var(--c-gold), var(--hp-red));
}

.hp-expect__items {
	display: grid;
	gap: 56px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.hp-expect__item {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: center;
	gap: 80px;
}

.hp-expect__item:nth-child(even) .hp-expect__text {
	order: 2;
}

.hp-expect__item:nth-child(odd) .hp-expect__text {
	text-align: right;
}

.hp-expect__num {
	display: inline-grid;
	place-items: center;
	width: 46px;
	height: 46px;
	margin-bottom: 12px;
	border-radius: 50%;
	background: var(--hp-red);
	color: #fff;
	font-size: 16px;
	font-weight: 800;
}

.hp-expect__text h3 {
	margin: 0 0 10px;
	color: #1d1d1f;
	font-size: 24px;
	font-weight: 800;
	line-height: 1.3;
}

.hp-expect__text p {
	margin: 0;
	color: #4a4a4a;
	font-size: 16px;
	line-height: 1.7;
}

.hp-expect__media img {
	width: 100%;
	filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.12));
}

/* 7. Process & timeline --------------------------------------------------- */

.hp-process {
	padding-block: 88px;
	background: var(--hp-pink);
}

.hp-process__inner {
	display: grid;
	grid-template-columns: 1.5fr 1fr;
	align-items: center;
	gap: 40px;
}

.hp-process__steps {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.hp-process__steps img {
	width: 100%;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 6px 20px rgba(140, 31, 30, 0.1);
}

.hp-timeline {
	padding: 36px 34px;
	border-radius: var(--hp-radius);
	background: #fff;
	box-shadow: var(--hp-shadow);
}

.hp-timeline__title {
	margin: 0 0 18px;
	color: var(--hp-red);
	font-size: 22px;
	font-weight: 800;
}

.hp-timeline__list {
	display: grid;
	gap: 12px;
	margin: 0 0 18px;
	padding: 0;
	list-style: none;
}

.hp-timeline__list li {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 6px;
	padding: 14px 18px;
	border-radius: 12px;
	background: var(--hp-pink);
	font-size: 16px;
}

.hp-timeline__list strong {
	color: var(--hp-red);
}

.hp-timeline p {
	margin: 0 0 24px;
	color: #4a4a4a;
	font-size: 15px;
	line-height: 1.7;
}

/* 8. Reviews + gallery ---------------------------------------------------- */

.hp-reviews {
	padding-block: 88px 64px;
	background: #fff;
}

.hp-reviews__inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: center;
	gap: 48px;
	margin-bottom: 56px;
}

.hp-reviews__media img {
	width: 100%;
	border-radius: var(--hp-radius);
	box-shadow: var(--hp-shadow);
}

.hp-reviews__list {
	display: grid;
	gap: 22px;
}

.hp-review {
	display: grid;
	grid-template-columns: 110px 1fr;
	align-items: center;
	gap: 22px;
	margin: 0;
	padding: 20px 24px 20px 20px;
	border-radius: var(--hp-radius);
	background: var(--hp-grey);
}

.hp-review img {
	width: 110px;
	height: 110px;
	border: 4px solid #fff;
	border-radius: 50%;
	object-fit: cover;
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.hp-review__stars {
	color: var(--c-gold);
	font-size: 15px;
	letter-spacing: 2px;
}

.hp-review blockquote {
	margin: 4px 0 8px;
}

.hp-review blockquote p {
	margin: 0;
	font-size: 15px;
	font-style: italic;
	line-height: 1.6;
}

.hp-review figcaption {
	color: var(--hp-red);
	font-size: 15px;
	font-weight: 700;
}

.hp-gallery {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

.hp-gallery figure {
	margin: 0;
	overflow: hidden;
	border-radius: var(--hp-radius);
}

.hp-gallery img {
	width: 100%;
	transition: transform 0.5s ease;
}

.hp-gallery figure:hover img {
	transform: scale(1.04);
}

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

@media (max-width: 1024px) {
	.hp-hero__inner,
	.hp-about__inner,
	.hp-plan__inner,
	.hp-journey__top,
	.hp-process__inner,
	.hp-reviews__inner {
		grid-template-columns: 1fr;
		gap: 36px;
	}

	.hp-hero__inner {
		min-height: 0;
	}

	.hp-hero__media {
		justify-self: center;
		width: min(100%, 420px);
	}

	.hp-service {
		flex-basis: calc((100% - 28px) / 2);
	}


	.hp-dentists {
		background-attachment: scroll;
	}
}

@media (max-width: 767px) {
	.hp-hero__inner {
		padding-block: 40px 56px;
		text-align: center;
	}

	.hp-hero__kicker {
		font-size: 12px;
	}

	.hp-hero__tagline {
		margin-inline: auto;
		padding: 14px 0 0;
	}

	.hp-hero__tagline::before {
		top: 0;
		bottom: auto;
		left: 50%;
		width: 56px;
		height: 3px;
		transform: translateX(-50%);
	}

	.hp-hero__media {
		width: calc(100% - 24px);
	}

	.hp-hero__media::before {
		inset: 14px -12px -12px 14px;
	}

	.hp-about,
	.hp-services,
	.hp-journey,
	.hp-expect,
	.hp-process,
	.hp-reviews {
		padding-block: 56px;
	}

	.hp-plan,
	.hp-dentists {
		padding-block: 56px;
	}

	.hp-head {
		margin-bottom: 28px;
	}

	.hp-head p {
		font-size: 15px;
	}

	.hp-actions .hp-btn {
		flex: 1 1 100%;
	}

	.hp-btn--wide {
		width: 100%;
		padding-inline: 20px;
	}

	.hp-service {
		flex-basis: 100%;
	}

	.hp-service__media img {
		aspect-ratio: 16 / 9;
	}

	.hp-service__body {
		padding: 18px 20px 22px;
	}

	.hp-strengths,
	.hp-stories,
	.hp-process__steps {
		grid-template-columns: 1fr;
	}

	/* Doctors and gallery swipe sideways instead of stacking three tall cards. */
	.hp-dentists__grid,
	.hp-gallery {
		grid-auto-columns: 78%;
		grid-auto-flow: column;
		grid-template-columns: none;
		gap: 16px;
		margin-inline: calc(-1 * var(--gutter));
		padding: 4px var(--gutter) 16px;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scroll-padding-inline: var(--gutter);
	}

	.hp-dentists__grid > *,
	.hp-gallery > * {
		scroll-snap-align: start;
	}



	.hp-expect__line {
		left: 22px;
	}

	.hp-expect__items {
		gap: 40px;
	}

	.hp-expect__item {
		grid-template-columns: 1fr;
		gap: 18px;
		padding-left: 56px;
	}

	.hp-expect__item:nth-child(n) .hp-expect__text {
		order: 0;
		text-align: left;
	}

	.hp-expect__num {
		position: absolute;
		left: 0;
		width: 44px;
		height: 44px;
	}

	.hp-expect__item {
		position: relative;
	}

	.hp-expect__text h3 {
		font-size: 20px;
	}

	.hp-timeline {
		padding: 26px 22px;
	}

	.hp-review {
		grid-template-columns: 76px 1fr;
		gap: 16px;
		padding: 16px;
	}

	.hp-review img {
		width: 76px;
		height: 76px;
	}
}

@media (max-width: 1024px) {
	.hp-stories {
		grid-template-columns: repeat(2, 1fr);
	}

	.hp-cases__slide {
		grid-template-columns: 1fr;
	}

	.hp-cases__text {
		padding: 22px 24px 76px;
	}

	.hp-cases__controls {
		justify-content: center;
		padding-inline: 24px;
	}
}

@media (max-width: 767px) {
	.hp-stories {
		grid-template-columns: 1fr;
	}

	.hp-cases__label {
		font-size: 28px;
	}

	.hp-cases__title {
		font-size: 16px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hp-js [data-reveal] {
		opacity: 1;
		transform: none;
		transition: none;
	}

	.hp-cases__track {
		scroll-behavior: auto;
	}
}
