/**
 * Homepage (front-page.php), 2026 redesign.
 */

.adic-hp {
	--hp-wide: 1280px;
	--hp-muted: #3D454D;
	color: var(--color-ink, #1A1A1A);
	overflow-x: clip;
}

.adic-hp *,
.adic-hp *::before,
.adic-hp *::after {
	box-sizing: border-box;
}

.adic-hp h1,
.adic-hp h2,
.adic-hp h3 {
	color: inherit;
}

.hp-wrap {
	max-width: var(--hp-wide);
	margin-inline: auto;
	padding-inline: clamp(16px, 4vw, 32px);
}

.hp-section {
	padding-block: clamp(48px, 7vw, 96px);
}

.hp-head {
	max-width: 760px;
	margin-bottom: clamp(24px, 4vw, 40px);
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.hp-head h2 {
	margin: 0;
	font-size: clamp(30px, 3.6vw, 46px);
	line-height: 1.08;
	letter-spacing: -0.01em;
}

.hp-head--row {
	max-width: none;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px 32px;
}

.hp-head--row > div {
	display: flex;
	flex-direction: column;
	gap: 10px;
	max-width: 720px;
}

.hp-pill {
	align-self: flex-start;
	margin: 0;
	padding: 8px 16px;
	border-radius: 999px;
	background: #FFFFFF;
	color: var(--color-green-text, #3A7330);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.hp-stripe {
	height: 10px;
	background: var(--brand-stripe);
}

/* ======================= HERO ======================= */

.hp-hero {
	position: relative;
	overflow: hidden;
	background: var(--wp--preset--color--quaternary, #EAF6FE);
}

.hp-hero::before,
.hp-hero::after {
	content: "";
	position: absolute;
	border-radius: 50%;
	pointer-events: none;
}

.hp-hero::before {
	width: 620px;
	height: 620px;
	right: -180px;
	top: -260px;
	background: var(--color-sky-light, #95D3F8);
	opacity: 0.35;
}

.hp-hero::after {
	width: 300px;
	height: 300px;
	left: -110px;
	bottom: -150px;
	background: var(--color-sage, #B0D6A7);
	opacity: 0.45;
}

.hp-hero__inner {
	position: relative;
	z-index: 1;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: clamp(32px, 5vw, 64px);
	padding-block: clamp(48px, 7vw, 96px) clamp(56px, 8vw, 104px);
}

.hp-hero__text {
	flex: 1 1 540px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 22px;
}

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

.hp-hero__lead {
	margin: 0;
	max-width: 560px;
	font-size: clamp(18px, 1.6vw, 21px);
	line-height: 1.55;
	color: var(--hp-muted);
}

.hp-hero__search .cliloc-search {
	margin-bottom: 0;
}

/* Fallback search form (when the Clinic Locator results page is not found). */
.hp-search {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	max-width: 640px;
	padding: 8px;
	border-radius: 20px;
	background: #FFFFFF;
	box-shadow: 0 12px 32px rgba(10, 101, 145, 0.12);
}

.hp-search input {
	flex: 1 1 260px;
	min-height: 52px;
	padding: 0 16px;
	border: 0;
	border-radius: 14px;
	font: inherit;
	font-size: 17px;
}

.hp-search input:focus {
	outline: 3px solid var(--color-sky, #63C3F3);
}

/* Visual */

.hp-hero__visual {
	position: relative;
	flex: 1 1 420px;
	max-width: 540px;
	margin-inline: auto;
}

.hp-hero__arch {
	aspect-ratio: 4 / 4.5;
	border-radius: 300px 300px 36px 36px;
	background: var(--color-sky, #63C3F3);
	border: 10px solid #FFFFFF;
	box-shadow: 0 24px 60px rgba(10, 101, 145, 0.18);
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}

.hp-hero__faces {
	position: relative;
	width: 100%;
	height: 100%;
}

.hp-hero__faces img {
	position: absolute;
	border-radius: 50%;
	object-fit: cover;
	border: 8px solid #FFFFFF;
	box-shadow: 0 16px 36px rgba(26, 26, 26, 0.18);
}

.hp-hero__faces img:nth-child(1) {
	width: 58%;
	aspect-ratio: 1;
	left: 21%;
	top: 16%;
	z-index: 2;
}

.hp-hero__faces img:nth-child(2) {
	width: 34%;
	aspect-ratio: 1;
	left: 4%;
	top: 56%;
	border-color: var(--color-sunshine, #FED53B);
	z-index: 3;
}

.hp-hero__faces img:nth-child(3) {
	width: 30%;
	aspect-ratio: 1;
	right: 5%;
	top: 60%;
	border-color: var(--color-green, #8CC47B);
	z-index: 3;
}

.hp-hero__faces.count-1 img:nth-child(1) {
	width: 70%;
	left: 15%;
	top: 15%;
}

.hp-float {
	position: absolute;
	z-index: 4;
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 16px 20px;
	border-radius: 20px;
	background: #FFFFFF;
	box-shadow: 0 16px 36px rgba(26, 26, 26, 0.14);
}

.hp-float--team {
	right: -12px;
	top: 18px;
	max-width: 210px;
}

.hp-float--team strong {
	font-size: 34px;
	line-height: 1;
}

.hp-float--team span {
	font-weight: 700;
}

.hp-float--team em {
	font-style: normal;
	font-size: 14px;
	color: var(--color-green-text, #3A7330);
	font-weight: 600;
}

.hp-float--promo {
	left: -20px;
	bottom: 26px;
}

.hp-float__kicker {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--color-green-text, #3A7330);
}

.hp-float__big {
	font-size: 24px;
	font-weight: 700;
	line-height: 1.15;
}

.hp-float__big mark {
	background: var(--color-sunshine, #FED53B);
	color: inherit;
	padding: 0 6px;
	border-radius: 6px;
}

/* ======================= NUMBERS ======================= */

.hp-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 16px;
	padding-block: clamp(32px, 5vw, 56px) 0;
}

.hp-stats > div {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 20px 24px;
	border-radius: 22px;
	background: #F8FAFF;
	border: 1px solid #E6EAEE;
}

.hp-stats strong {
	font-size: clamp(34px, 4vw, 48px);
	line-height: 1;
}

.hp-stats span {
	font-weight: 600;
	color: var(--hp-muted);
}

.hp-stats > div:nth-child(1) strong { color: #0A6591; }
.hp-stats > div:nth-child(2) strong { color: var(--color-green-text, #3A7330); }
.hp-stats > div:nth-child(3) strong { color: #8A5A00; }
.hp-stats > div:nth-child(4) strong { color: var(--color-ink, #1A1A1A); }

/* ======================= DOCTORS ======================= */

.hp-doctors .adic-docs {
	margin-block: clamp(32px, 5vw, 56px) 0;
}

/* ======================= WHY ======================= */

.hp-why {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 18px;
}

.hp-why__card {
	position: relative;
	padding: 28px;
	border-radius: 24px;
	background: color-mix(in srgb, var(--tint) 18%, #FFFFFF);
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.hp-why__icon {
	width: 54px;
	height: 54px;
	border-radius: 16px;
	background: var(--tint);
	display: flex;
	align-items: center;
	justify-content: center;
}

.hp-why__card h3 {
	margin: 6px 0 0;
	font-size: 22px;
}

.hp-why__card p {
	margin: 0;
	color: var(--hp-muted);
}

/* ======================= TREATMENTS ======================= */

.hp-band {
	background: #F8FAFF;
}

.hp-treat {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 22px;
}

.hp-treat__card {
	display: flex;
	flex-direction: column;
	border-radius: 28px;
	overflow: hidden;
	background: #FFFFFF;
	color: var(--color-ink, #1A1A1A);
	text-decoration: none;
	box-shadow: 0 8px 24px rgba(26, 26, 26, 0.06);
	transition: transform 0.2s, box-shadow 0.2s;
}

.hp-treat__card:hover,
.hp-treat__card:focus-visible {
	transform: translateY(-4px);
	box-shadow: 0 18px 40px rgba(10, 101, 145, 0.14);
}

.hp-treat__img {
	height: 210px;
	background: var(--tint);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.hp-treat__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s;
}

.hp-treat__card:hover .hp-treat__img img {
	transform: scale(1.05);
}

.hp-treat__img svg {
	opacity: 0.8;
}

.hp-treat__body {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 24px;
}

.hp-treat__arrow {
	position: absolute;
	right: 20px;
	top: -28px;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	border: 4px solid #FFFFFF;
	background: var(--color-sunshine, #FED53B);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s;
}

.hp-treat__card:hover .hp-treat__arrow {
	background: var(--color-amber, #FFB53E);
}

.hp-treat__title {
	padding-right: 56px;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.2;
}

.hp-treat__text {
	color: var(--hp-muted);
}

/* ======================= PROMO ======================= */

.hp-promo {
	position: relative;
	overflow: hidden;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 28px;
	padding: clamp(32px, 5vw, 60px);
	border-radius: 32px;
	background: var(--color-sunshine, #FED53B);
}

.hp-promo::after {
	content: "";
	position: absolute;
	width: 380px;
	height: 380px;
	border-radius: 50%;
	right: -110px;
	bottom: -220px;
	background: var(--color-amber, #FFB53E);
}

.hp-promo > * {
	position: relative;
	z-index: 1;
}

.hp-promo > div {
	flex: 1 1 460px;
}

.hp-promo h2 {
	margin: 6px 0;
	font-size: clamp(32px, 4.2vw, 54px);
	line-height: 1.04;
}

.hp-promo__kicker {
	margin: 0;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.hp-promo__terms {
	margin: 0;
	font-size: 14px;
	color: #3D3A2C;
}

/* ======================= CITIES ======================= */

.hp-cities {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 12px;
}

.hp-cities a {
	display: flex;
	flex-direction: column;
	gap: 2px;
	height: 100%;
	padding: 18px 20px;
	border-radius: 20px;
	background: #FFFFFF;
	border: 1px solid #E6EAEE;
	color: var(--color-ink, #1A1A1A);
	text-decoration: none;
	position: relative;
	overflow: hidden;
	transition: border-color 0.2s, transform 0.2s;
}

.hp-cities a::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 6px;
	background: var(--tint);
}

.hp-cities a:hover,
.hp-cities a:focus-visible {
	border-color: var(--color-ink, #1A1A1A);
	transform: translateY(-2px);
}

.hp-cities__name {
	font-size: 19px;
	font-weight: 700;
}

.hp-cities__count {
	font-size: 14px;
	color: var(--hp-muted);
	font-weight: 600;
}

/* ======================= STEPS ======================= */

.hp-dark {
	background: var(--color-ink, #1A1A1A);
	color: #FFFFFF;
}

.hp-dark .hp-head h2 {
	color: #FFFFFF;
}

.hp-eyebrow-light {
	color: var(--color-sunshine, #FED53B);
}

.hp-steps {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 28px;
}

.hp-steps li {
	padding-top: 24px;
	border-top: 6px solid var(--accent);
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.hp-steps__num {
	font-size: 48px;
	font-weight: 700;
	line-height: 1;
	color: var(--accent);
}

.hp-steps h3 {
	margin: 0;
	font-size: 23px;
	color: #FFFFFF;
}

.hp-steps p {
	margin: 0;
	color: #D5DADF;
}

/* ======================= FINAL CTA ======================= */

.hp-final {
	text-align: center;
	padding: clamp(36px, 5vw, 64px);
	border-radius: 32px;
	background: var(--wp--preset--color--quaternary, #EAF6FE);
	position: relative;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
}

.hp-final::before {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 10px;
	background: var(--brand-stripe);
}

.hp-final__logo :where(img, svg) {
	width: 200px;
	height: auto;
}

.hp-final h2 {
	margin: 0;
	font-size: clamp(30px, 3.8vw, 48px);
	line-height: 1.08;
}

.hp-final p {
	margin: 0;
	max-width: 560px;
	color: var(--hp-muted);
	font-size: 18px;
}

.hp-final__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	margin-top: 8px;
}

/* ======================= SMALL SCREENS ======================= */

@media (max-width: 781px) {
	.hp-hero__visual {
		max-width: 420px;
	}

	.hp-float--team {
		right: 0;
		top: 8px;
	}

	.hp-float--promo {
		left: 0;
		bottom: 12px;
	}

	.hp-float__big {
		font-size: 20px;
	}

	.hp-promo .adic-btn,
	.hp-head--row .adic-btn {
		width: 100%;
	}
}
