/**
 * Single doctor profile page.
 * @package ZarClinic
 */

.site-main--doctor-profile {
	overflow-x: clip;
	background: #fff;
}

.c-doc-profile {
	isolation: isolate;
}

/* -------------------------------------------------------------------------- */
/* Hero                                                                       */
/* -------------------------------------------------------------------------- */

.c-doc-profile__hero {
	position: relative;
	padding-block: calc(var(--header-height) + clamp(1.75rem, 4vw, 3rem)) clamp(3rem, 7vw, 5rem);
	isolation: isolate;
}

.c-doc-profile__hero-bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	background:
		radial-gradient(ellipse 42% 70% at 8% 20%, rgba(184, 138, 221, 0.2), transparent 65%),
		radial-gradient(ellipse 40% 55% at 96% 8%, rgba(215, 184, 120, 0.16), transparent 60%),
		linear-gradient(180deg, #f6effb 0%, #fbfafc 52%, #fff 100%);
	pointer-events: none;
}

.c-doc-profile__hero-bg::after {
	content: "Z";
	position: absolute;
	inset-block-end: -8%;
	inset-inline-end: -2%;
	font-size: clamp(10rem, 22vw, 18rem);
	font-weight: 800;
	line-height: 0.8;
	color: rgba(109, 61, 143, 0.045);
	pointer-events: none;
	user-select: none;
}

.c-doc-profile__hero-inner {
	position: relative;
	z-index: 1;
	display: grid;
	gap: clamp(2rem, 4vw, 3.25rem);
	align-items: center;
}

@media (min-width: 960px) {
	.c-doc-profile__hero-inner {
		grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.9fr);
	}
}

.c-doc-profile__crumbs {
	margin-block-end: 1.15rem;
}

.c-doc-profile__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	margin: 0 0 0.9rem;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	color: var(--purple-deep);
}

.c-doc-profile__eyebrow-mark {
	width: 1.55rem;
	height: 1.55rem;
	border-radius: 50%;
	background:
		radial-gradient(circle at 30% 30%, #fff 0%, transparent 45%),
		linear-gradient(135deg, #c9a4e0, var(--purple-deep));
	box-shadow: 0 0 0 4px rgba(139, 91, 183, 0.12);
	flex-shrink: 0;
}

.c-doc-profile__title {
	margin: 0 0 0.55rem;
	font-family: var(--font-heading);
	font-size: clamp(1.85rem, 4vw, 2.85rem);
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -0.02em;
	color: var(--eggplant);
}

.c-doc-profile__specialty {
	margin: 0 0 1rem;
	font-size: clamp(0.95rem, 1.3vw, 1.1rem);
	font-weight: 700;
	color: var(--purple-main);
}

.c-doc-profile__lead {
	margin: 0;
	max-width: 40rem;
	font-size: clamp(0.95rem, 1.2vw, 1.05rem);
	line-height: 1.9;
	color: var(--text-muted);
}

.c-doc-profile__portrait .c-doc-profile__stats {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.55rem;
	list-style: none;
	margin: 0.9rem 0 0;
	padding: 0;
}

.c-doc-profile__stat {
	display: inline-flex;
	align-items: center;
	min-height: 2.1rem;
	padding: 0.35rem 0.85rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.92);
	border: 1px solid rgba(139, 91, 183, 0.14);
	font-size: 0.8rem;
	font-weight: 700;
	color: var(--purple-dark);
	box-shadow: 0 6px 18px rgba(36, 19, 41, 0.04);
}

.c-doc-profile__social {
	display: flex;
	flex-wrap: wrap;
	gap: 0.85rem;
	margin-block-start: 1.15rem;
}

.c-doc-profile__social-link {
	font-size: 0.82rem;
	font-weight: 700;
	color: var(--text-muted);
	text-decoration: none;
}

.c-doc-profile__social-link:hover,
.c-doc-profile__social-link:focus-visible {
	color: var(--purple-deep);
}

.c-doc-profile__portrait {
	position: relative;
	justify-self: center;
	width: min(100%, 420px);
}

@media (min-width: 960px) {
	.c-doc-profile__portrait {
		justify-self: end;
		width: min(100%, 460px);
	}
}

.c-doc-profile__portrait-frame {
	position: relative;
	overflow: hidden;
	border-radius: 28px;
	aspect-ratio: 4 / 5;
	background:
		linear-gradient(160deg, rgba(245, 240, 248, 0.95), rgba(255, 255, 255, 0.7));
	border: 1px solid rgba(139, 91, 183, 0.12);
	box-shadow:
		0 24px 60px rgba(36, 19, 41, 0.1),
		0 2px 0 rgba(255, 255, 255, 0.7) inset;
}

.c-doc-profile__portrait-frame::before {
	content: "";
	position: absolute;
	inset: auto -20% -18% auto;
	width: 55%;
	height: 40%;
	background: radial-gradient(circle, rgba(215, 184, 120, 0.35), transparent 70%);
	pointer-events: none;
	z-index: 1;
}

.c-doc-profile__portrait-frame img {
	position: relative;
	z-index: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
}

.c-doc-profile__portrait-fallback {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	color: var(--purple-main);
	opacity: 0.45;
}

.c-doc-profile__portrait-fallback svg {
	width: 4.5rem;
	height: 4.5rem;
}

/* -------------------------------------------------------------------------- */
/* Sections                                                                   */
/* -------------------------------------------------------------------------- */

.c-doc-profile__section {
	padding-block: clamp(2.5rem, 5vw, 4rem);
}

.c-doc-profile__section--areas {
	background:
		linear-gradient(180deg, rgba(251, 247, 245, 0.65), rgba(255, 255, 255, 0.2));
	border-block: 1px solid var(--surface-border);
}

.c-doc-profile__section-title {
	margin: 0 0 0.55rem;
	font-family: var(--font-heading);
	font-size: clamp(1.35rem, 2.4vw, 1.85rem);
	font-weight: 800;
	letter-spacing: -0.015em;
	color: var(--purple-dark);
}

.c-doc-profile__section-lead {
	margin: 0 0 1.35rem;
	max-width: 36rem;
	font-size: 0.95rem;
	line-height: 1.8;
	color: var(--text-muted);
}

.c-doc-profile__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.c-doc-profile__chip {
	display: inline-flex;
	align-items: center;
	min-height: 2.35rem;
	padding: 0.4rem 0.95rem;
	border-radius: 999px;
	background: #fff;
	border: 1px solid rgba(139, 91, 183, 0.14);
	font-size: 0.86rem;
	font-weight: 700;
	color: var(--eggplant);
	box-shadow: 0 8px 22px rgba(36, 19, 41, 0.04);
}

.c-doc-profile__about-grid {
	display: grid;
	gap: clamp(1.5rem, 3vw, 2.5rem);
}

@media (min-width: 900px) {
	.c-doc-profile__about-grid {
		grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.75fr);
		align-items: start;
	}
}

.c-doc-profile__about-bio,
.c-doc-profile__prose {
	font-size: 1rem;
	line-height: 1.95;
	color: var(--text-main);
}

.c-doc-profile__prose > *:first-child {
	margin-block-start: 0;
}

.c-doc-profile__creds {
	padding: 1.25rem 1.2rem 1.35rem;
	border-radius: 20px;
	background:
		radial-gradient(ellipse 80% 60% at 100% 0%, rgba(215, 184, 120, 0.14), transparent 55%),
		var(--bg-lavender);
	border: 1px solid rgba(139, 91, 183, 0.1);
}

.c-doc-profile__aside-title {
	margin: 0 0 0.9rem;
	font-size: 1rem;
	font-weight: 800;
	color: var(--purple-dark);
}

.c-doc-profile__cred-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.55rem;
}

.c-doc-profile__cred-item {
	position: relative;
	padding: 0.7rem 0.85rem;
	padding-inline-start: 1.85rem;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.72);
	font-size: 0.9rem;
	font-weight: 650;
	line-height: 1.55;
	color: var(--text-main);
}

.c-doc-profile__cred-item::before {
	content: "";
	position: absolute;
	inset-inline-start: 0.75rem;
	top: 1rem;
	width: 0.45rem;
	height: 0.45rem;
	border-radius: 50%;
	background: var(--accent-gold);
	box-shadow: 0 0 0 3px rgba(215, 184, 120, 0.25);
}

.c-doc-profile__services {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.75rem;
}

@media (min-width: 760px) {
	.c-doc-profile__services {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.c-doc-profile__service {
	display: grid;
	gap: 0.35rem;
	min-height: 100%;
	padding: 1.1rem 1.15rem;
	border-radius: 16px;
	background: #fff;
	border: 1px solid var(--surface-border);
	text-decoration: none;
	color: inherit;
	transition: border-color var(--transition-base), box-shadow var(--transition-base), transform var(--transition-base);
}

.c-doc-profile__service:hover,
.c-doc-profile__service:focus-visible {
	border-color: rgba(139, 91, 183, 0.28);
	box-shadow: 0 14px 34px rgba(36, 19, 41, 0.06);
	transform: translateY(-2px);
}

.c-doc-profile__service-title {
	font-size: 1rem;
	font-weight: 800;
	color: var(--purple-dark);
}

.c-doc-profile__service-excerpt {
	font-size: 0.86rem;
	line-height: 1.7;
	color: var(--text-muted);
}

.c-doc-profile__service-cta {
	margin-block-start: 0.35rem;
	font-size: 0.8rem;
	font-weight: 750;
	color: var(--purple-deep);
}

/* -------------------------------------------------------------------------- */
/* CTA band                                                                   */
/* -------------------------------------------------------------------------- */

.c-doc-profile__cta {
	padding-block: clamp(2.5rem, 5vw, 3.75rem);
	background:
		radial-gradient(ellipse 50% 80% at 100% 0%, rgba(184, 138, 221, 0.28), transparent 60%),
		linear-gradient(145deg, var(--eggplant) 0%, var(--plum) 58%, var(--purple-deep) 100%);
	color: #fff;
}

.c-doc-profile__cta-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1.25rem 2rem;
}

.c-doc-profile__cta-title {
	margin: 0 0 0.45rem;
	font-family: var(--font-heading);
	font-size: clamp(1.35rem, 2.6vw, 1.85rem);
	font-weight: 800;
	line-height: 1.35;
	color: #fff;
}

.c-doc-profile__cta-lead {
	margin: 0;
	max-width: 34rem;
	font-size: 0.95rem;
	line-height: 1.75;
	color: rgba(255, 255, 255, 0.82);
}

.c-doc-profile__cta-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem;
}

.c-doc-profile__cta .c-button--primary {
	background: #fff;
	border-color: #fff;
	color: var(--eggplant);
}

.c-doc-profile__cta .c-button--primary:hover,
.c-doc-profile__cta .c-button--primary:focus-visible {
	background: var(--accent-gold);
	border-color: var(--accent-gold);
	color: var(--eggplant);
}

.c-doc-profile__cta .c-button--on-dark,
.c-doc-profile__cta .c-button--ghost {
	color: #fff;
	border-color: rgba(255, 255, 255, 0.45);
	background: transparent;
}

.c-doc-profile__cta .c-button--on-dark:hover,
.c-doc-profile__cta .c-button--ghost:hover {
	background: rgba(255, 255, 255, 0.1);
	border-color: #fff;
	color: #fff;
}

/* -------------------------------------------------------------------------- */
/* Other doctors                                                              */
/* -------------------------------------------------------------------------- */

.c-doc-profile__section--others {
	padding-block-end: clamp(3.5rem, 7vw, 5.5rem);
}

.c-doc-profile__others-head {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 1rem;
	margin-block-end: 1.25rem;
}

.c-doc-profile__others-head .c-doc-profile__section-title {
	margin: 0;
}

.c-doc-profile__others-all {
	font-size: 0.88rem;
	font-weight: 750;
	color: var(--purple-deep);
	text-decoration: none;
	white-space: nowrap;
}

.c-doc-profile__others-all:hover,
.c-doc-profile__others-all:focus-visible {
	color: var(--eggplant);
}

.c-doc-profile__others {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.85rem;
}

@media (min-width: 720px) {
	.c-doc-profile__others {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.c-doc-profile__other {
	display: grid;
	grid-template-columns: 72px minmax(0, 1fr);
	gap: 0.85rem;
	align-items: center;
	padding: 0.75rem;
	border-radius: 16px;
	border: 1px solid var(--surface-border);
	background: #fff;
	text-decoration: none;
	color: inherit;
	transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.c-doc-profile__other:hover,
.c-doc-profile__other:focus-visible {
	border-color: rgba(139, 91, 183, 0.25);
	box-shadow: 0 12px 28px rgba(36, 19, 41, 0.05);
}

.c-doc-profile__other-media {
	overflow: hidden;
	width: 72px;
	height: 88px;
	border-radius: 12px;
	background: var(--bg-lavender);
}

.c-doc-profile__other-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.c-doc-profile__other-body {
	display: grid;
	gap: 0.25rem;
	min-width: 0;
}

.c-doc-profile__other-name {
	font-size: 0.95rem;
	font-weight: 800;
	color: var(--purple-dark);
}

.c-doc-profile__other-specialty {
	font-size: 0.8rem;
	font-weight: 650;
	color: var(--text-muted);
}

@media (prefers-reduced-motion: reduce) {
	.c-doc-profile__service,
	.c-doc-profile__other {
		transition: none;
	}

	.c-doc-profile__service:hover,
	.c-doc-profile__service:focus-visible {
		transform: none;
	}
}
