/* ProClinic — shared styles: tokens, layout, typography, buttons, media,
   forms, carousel, advantages block, callback + WhatsApp, inner pages.
   Loaded first on every page. */


:root {
	--pc-font: "Rubik", "Segoe UI", system-ui, -apple-system, sans-serif;

	--pc-accent: #937eef;
	--pc-accent-dark: #7c64ea;
	--pc-accent-soft: #f2effd;

	--pc-ink: #161616;
	--pc-body: #565656;
	--pc-muted: #969696;
	--pc-line: #e4e4e4;

	--pc-bg: #ffffff;
	--pc-bg-soft: #f9f9f9;
	--pc-bg-card: #f1f1f1;
	--pc-footer-dark: #0f1a17;

	--pc-radius-sm: 8px;
	--pc-radius: 16px;
	--pc-pill: 999px;

	--pc-container: 1290px;
	--pc-gutter: 24px;
	--pc-gap: 30px;
	--pc-section: 120px;
	--pc-header-top: 36px;
	--pc-header-h: 75px;
}

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--pc-font);
	font-size: 15px;
	line-height: 1.6;
	color: var(--pc-body);
	background: var(--pc-bg);
	-webkit-font-smoothing: antialiased;
}

body.pc-menu-open {
	overflow: hidden;
}

img,
svg,
video {
	max-width: 100%;
}

a {
	color: inherit;
	text-decoration: none;
}

button {
	font: inherit;
	color: inherit;
	cursor: pointer;
}

h1, h2, h3, h4, p, figure, blockquote, ul, ol {
	margin: 0;
	padding: 0;
}

ul, ol {
	list-style: none;
}

:focus-visible {
	outline: 2px solid var(--pc-accent);
	outline-offset: 3px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.pc-skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 200;
	padding: 12px 20px;
	background: var(--pc-ink);
	color: #fff;
}

.pc-skip-link:focus {
	left: 0;
}

.pc-container {
	width: 100%;
	max-width: calc(var(--pc-container) + (var(--pc-gutter) * 2));
	margin: 0 auto;
	padding: 0 var(--pc-gutter);
}

.pc-container--narrow {
	max-width: 880px;
}

.pc-section {
	padding: var(--pc-section) 0;
}

.pc-section__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	margin-bottom: 50px;
}

.pc-body--offset {
	padding-top: calc(var(--pc-header-top) + var(--pc-header-h) + 48px);
}

.pc-h {
	font-size: 35px;
	font-weight: 700;
	color: var(--pc-ink);
}

.pc-h--lead {
	max-width: 1110px;
	line-height: 1.7;
}

.pc-h--center {
	max-width: 880px;
	margin: 0 auto;
	text-align: center;
}

.pc-h--light {
	color: #fff;
}

.pc-h__muted {
	color: var(--pc-muted);
}

.pc-h--light .pc-h__muted {
	color: rgba(255, 255, 255, 0.62);
}

.pc-prose p {
	margin: 0 0 1em;
}

.pc-prose a {
	color: var(--pc-accent-dark);
	text-decoration: underline;
}

.pc-btn {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	height: 48px;
	padding: 0 8px 0 24px;
	border: 0;
	border-radius: var(--pc-pill);
	background: var(--pc-accent);
	color: #fff;
	font-size: 15px;
	font-weight: 500;
	line-height: 1;
	white-space: nowrap;
	transition: background-color 0.2s ease, transform 0.15s ease;
}

.pc-btn:hover {
	background: var(--pc-accent-dark);
}

.pc-btn:active {
	transform: translateY(1px);
}

.pc-btn--lg {
	height: 54px;
	padding: 0 12px 0 28px;
	font-size: 15px;
}

.pc-btn--block {
	display: flex;
	justify-content: center;
	width: 100%;
	padding: 0 20px;
}

.pc-btn__ico {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: #fff;
	color: var(--pc-accent);
	flex: none;
}

.pc-btn--lg .pc-btn__ico {
	width: 30px;
	height: 30px;
}

.pc-btn__wave {
	flex: none;
	margin-right: 14px;
}

.pc-arrows {
	display: flex;
	gap: 12px;
	flex: none;
}

.pc-arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 50%;
	background: var(--pc-ink);
	color: #fff;
	transition: opacity 0.2s ease, background-color 0.2s ease;
}

.pc-arrow:hover {
	background: var(--pc-accent);
}

.pc-arrow[disabled] {
	opacity: 0.25;
	cursor: default;
	background: var(--pc-ink);
}

.pc-dots {
	display: none;
	justify-content: center;
	align-items: center;
	gap: 8px;
	margin-top: 24px;
}

.pc-dots button {
	width: 8px;
	height: 8px;
	padding: 0;
	border: 0;
	border-radius: var(--pc-pill);
	background: #d5d5d8;
	transition: width 0.25s ease, background-color 0.25s ease;
}

.pc-dots button.is-active {
	width: 26px;
	background: var(--pc-accent);
}

.pc-media {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: 8px;
	background: #eeeef0;
}

.pc-media__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Placeholder until an image is picked in ACF. */

.pc-media__ph {
	position: absolute;
	inset: 0;
	display: block;
	background: linear-gradient(135deg, #e8e8ec 0%, #f4f4f7 55%, #e6e6ea 100%);
}

.pc-play {
	position: absolute;
	z-index: 1;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	padding-left: 3px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.42);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	color: #fff;
}

.pc-play--sm {
	width: 38px;
	height: 38px;
}

/* Glass panel over a photo. */

.pc-glass {
	background: #FFFFFF0D;
	backdrop-filter: blur(15px);
	-webkit-backdrop-filter: blur(15px);
	border: 1px solid #FFFFFF1A;
	border-radius: var(--pc-radius-sm);
	color: #fff;
}

.pc-checklist {
	display: grid;
	gap: 15px;
}

.pc-checklist li {
	display: grid;
	grid-template-columns: 20px 1fr;
	gap: 15px;
	align-items: start;
	font-size: 16px;
	font-weight: 400;
	color: #313131;
}

.pc-checklist.pc-checklist--light li {
	max-width: 100%;
}

.pc-check {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	margin-top: 4px;
	border-radius: 5px;
	background: var(--pc-ink);
	color: #fff;
}

.pc-checklist--light li {
	color: rgba(255, 255, 255, 0.88);
}

.pc-checklist--light .pc-check {
	background: #fff;
	color: var(--pc-ink);
}

.pc-field {
	display: block;
}

.pc-field__label {
	display: block;
	margin-bottom: 8px;
	font-size: 13px;
	font-weight: 600;
	color: var(--pc-ink);
}

.pc-field__input {
	width: 100%;
	height: 44px;
	padding: 0 20px;
	font: inherit;
	font-size: 14px;
	color: var(--pc-ink);
	background: #fff;
	border: 1px solid var(--pc-line);
	border-radius: var(--pc-pill);
	transition: border-color 0.2s ease;
}

.pc-field__input:focus {
	border-color: var(--pc-accent);
	outline: none;
}

.pc-field.is-invalid .pc-field__input {
	border-color: #dc5b5b;
}

.pc-form {
	display: grid;
	gap: 15px;
	max-width: 545px;
}

.pc-form__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.pc-form__submit {
	justify-self: start;
	margin-top: 25px;
	padding: 0 34px;
}

.pc-form__trap {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.pc-form__note {
	font-size: 12px;
	color: var(--pc-muted);
}

.pc-form__msg {
	margin-top: 4px;
	font-size: 14px;
	font-weight: 600;
	color: var(--pc-accent-dark);
}

.pc-form__msg:empty {
	display: none;
}

.pc-form__msg.is-error {
	color: #dc5b5b;
}

.pc-form.is-sending {
	opacity: 0.6;
	pointer-events: none;
}

/* Splide sets slide width, gap and clipping inline. What is left here
   covers the pre-init state and mobile, where Splide is destroyed. */

.pc-carousel {
	overflow: hidden;
}

.pc-carousel__track {
	display: flex;
	gap: var(--pc-gap);
}

/* Splide adds its own gap — ours would double it. */

.splide.is-initialized .pc-carousel__track {
	gap: 0;
}

.pc-carousel__item {
	flex: none;
}

.pc-arrows--overlay {
	display: none;
}

/* Advantages — used by both the front and about pages */

.pc-advantages {
	position: relative;
	padding: var(--pc-section) 0;
	overflow: hidden;
	background: #1616164D center / cover no-repeat;
	color: #fff;
}

.pc-advantages__scrim {
	position: absolute;
	inset: 0;
	background: rgba(12, 12, 13, 0.78);
}

.pc-advantages__inner {
	position: relative;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 100px;
	align-items: center;
}

.pc-advantages__main {
	aspect-ratio: 595 / 500;
}

/* Bottom scrim under the caption. */

.pc-advantages__main::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) 37.19%, rgba(0, 0, 0, 0) 63.66%, rgba(0, 0, 0, 0.64) 100%);
}

.pc-advantages__caption {
	position: absolute;
	z-index: 1;
	left: 25px;
	right: 25px;
	bottom: 25px;
	padding: 26px;
	font-size: 16px;
	font-weight: 500;
}

.pc-advantages__thumbs {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 30px;
	margin-top: 30px;
}

.pc-advantages__thumb {
	aspect-ratio: 282.5 / 180;
	border-radius: 12px;
}

/* Thumbnails get a denser scrim. */

.pc-advantages__thumb::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: linear-gradient(180deg, rgba(30, 30, 30, 0) 0%, rgba(30, 30, 30, 0.0594187) 35.93%, rgba(30, 30, 30, 0.207666) 64.53%, rgba(30, 30, 30, 0.81) 100%);
}

.pc-advantages__text > .pc-h {
	margin-bottom: 30px;
}

.pc-advantages__text .pc-checklist {
	margin-bottom: 44px;
}


/* Patient reviews — two columns where every second card runs the full
   height of the two beside it, the way the layout shows it. */

.pc-reviews__title {
	margin-bottom: 44px;
}

/* splide-core styles .splide__list even while the slider is destroyed, with
   four classes of its own — and it loads after this file, so it wins any tie.
   Hence five classes here, one more than the gallery needs in service.css. */

.pc-reviews .pc-reviews__carousel.splide .pc-reviews__grid.splide__list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--pc-gap);
	height: auto;
}

.pc-review:nth-child(3n + 2) {
	grid-row: span 2;
}

.pc-review {
	display: flex;
	flex-direction: column;
	padding: 30px;
	background: var(--pc-bg-card);
	border-radius: var(--pc-radius);
}

.pc-review__head {
	display: grid;
	gap: 2px;
	margin-bottom: 40px;
}

.pc-review__name {
	font-size: 20px;
	font-weight: 700;
	color: var(--pc-ink);
}

.pc-review__source {
	font-size: 13px;
	font-style: italic;
	color: var(--pc-body);
}

.pc-review__mark {
	display: block;
	margin-bottom: 2px;
	color: var(--pc-ink);
}

.pc-review__text {
	font-size: 16px;
	line-height: 1.65;
	padding-bottom: 28px;
}

/* Phones only — the desktop card is tall enough to hold the whole review. */

.pc-review__more {
	display: none;
}

.pc-review__text p {
	margin: 0 0 1em;
}

.pc-review__text p:last-child {
	margin-bottom: 0;
}

/* auto keeps the rating on the bottom edge, so the tall card does not leave
   its footer floating in the middle. */

.pc-review__foot {
	display: flex;
	align-items: center;
	/* The star sits 2.4px inside its box, so 7 here reads as the 9 the
	   layout measures. */
	gap: 7px;
	margin-top: auto;
	padding-top: 22px;
	border-top: 1px solid #dedede;
}

.pc-review__rating {
	font-size: 28px;
	font-weight: 800;
	line-height: 1;
	color: var(--pc-ink);
}

.pc-review__star {
	color: var(--pc-ink);
}


/* Before / after — used by the front page and service pages */

.pc-results {
	background: var(--pc-bg-soft);
}

.pc-results__title {
	max-width: 630px;
}

.pc-results__body {
	position: relative;
}

.pc-results__carousel .pc-carousel__item {
	width: calc((100% - var(--pc-gap)) / 2);
}

.pc-result {
	display: grid;
	gap: 1px;
	align-content: start;
}

.pc-result__shot {
	aspect-ratio: 630 / 266;
}

.pc-result__caption {
	margin-top: 8px;
	font-size: 14px;
}


/* One section with a shared photo: the scrim whitens it at the top and
   fades out, so the background visually starts at the WhatsApp card. */

.pc-outro {
	position: relative;
	overflow: hidden;
	background: var(--pc-bg-soft) center center / cover no-repeat;
	background-image: var(--pc-outro-bg, none);
}

.pc-outro__scrim {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		180deg,
		var(--pc-bg-soft) 0%,
		var(--pc-bg-soft) 38%,
		rgba(249, 249, 249, 0.94) 50%,
		rgba(249, 249, 249, 0.78) 62%,
		rgba(249, 249, 249, 0.5) 76%,
		rgba(249, 249, 249, 0.2) 90%,
		rgba(249, 249, 249, 0.04) 100%
	);
}

.pc-outro > .pc-callback,
.pc-outro > .pc-cta {
	position: relative;
	background: transparent;
}

.pc-callback {
	padding: 0;
}

.pc-callback__card {
	display: grid;
	grid-template-columns: 0.545fr 0.506fr;
	gap: 99px;
	align-items: center;
	padding: 70px 63px 70px 77px;
	background: linear-gradient(180deg, #F8F8F8 0%, #F9F9F9 42.48%, #FFFFFF 100%);
	border-radius: var(--pc-radius);
}

.pc-callback__title {
	margin-bottom: 24px;
}

.pc-callback__text {
	margin-bottom: 40px;
	font-size: 16px;
	font-weight: 400;
}

.pc-callback__media {
	aspect-ratio: 506 / 476;
}

.pc-cta {
	position: relative;
	padding: 110px 0;
	color: #fff;
}

.pc-cta__inner {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 40px;
}

.pc-cta__title {
	max-width: 835px;
	font-size: 40px;
	font-weight: 700;
	color: #fff;
}

a.pc-contact__value:hover {
	color: var(--pc-accent);
}

.pc-checklist--accent .pc-check {
	background: var(--pc-accent);
}

.pc-entries__list {
	display: grid;
	gap: 40px;
	margin-top: 40px;
}

.pc-entry__media {
	aspect-ratio: 16 / 9;
	margin-bottom: 18px;
}

.pc-entry__title {
	font-size: 22px;
	font-weight: 800;
	color: var(--pc-ink);
}

.pc-page__title {
	margin-bottom: 24px;
}

.pc-pagination {
	margin-top: 48px;
	font-weight: 700;
}

.pc-pagination .page-numbers {
	display: inline-block;
	padding: 6px 12px;
	border-radius: var(--pc-radius-sm);
}

.pc-pagination .current {
	background: var(--pc-accent);
	color: #fff;
}

.pc-404 {
	text-align: center;
}

.pc-404__code {
	font-size: clamp(72px, 12vw, 140px);
	font-weight: 800;
	line-height: 1;
	color: var(--pc-accent);
}

.pc-404__text {
	margin: 12px 0 28px;
}


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

@media (max-width: 1280px) {
	.pc-callback__card {
		padding: 56px;
		gap: 40px;
	}

	.pc-advantages__inner {
		gap: 56px;
	}
}

@media (max-width: 1024px) {
	/* Section rhythm from the layout: 48px against 120px on desktop. */
	:root {
		--pc-section: 48px;
		--pc-gap: 20px;
		--pc-gutter: 20px;
		--pc-header-top: 0px;
		--pc-header-h: 62px;
	}

	.pc-section__head {
		flex-direction: column;
		align-items: flex-start;
		gap: 20px;
		margin-bottom: 20px;
	}

	/* Layout sizes: 24/29 for section headings, 18/24 for lead ones. */
	.pc-h {
		font-size: 24px;
		line-height: 1.2;
	}

	.pc-h--lead {
		font-size: 18px;
		line-height: 1.35;
	}

	.pc-checklist {
		gap: 10px;
	}

	.pc-checklist li {
		gap: 8px;
		font-size: 13px;
		line-height: 1.4;
	}

	/* Bigger than on desktop. --sm is excluded: this rule sits below it. */
	.pc-play:not(.pc-play--sm) {
		width: 62px;
		height: 62px;
	}

	.pc-check {
		margin-top: 0;
		background: var(--pc-accent);
	}

	.pc-checklist--light .pc-check {
		background: #fff;
	}

	.pc-arrows--overlay {
		position: absolute;
		top: 50%;
		left: 0;
		right: 0;
		display: flex;
		justify-content: space-between;
		transform: translateY(-50%);
		padding: 0 12px;
		pointer-events: none;
	}

	.pc-arrows--overlay .pc-arrow {
		width: 38px;
		height: 38px;
		background: rgba(255, 255, 255, 0.86);
		color: var(--pc-ink);
		pointer-events: auto;
	}

	.pc-arrows--overlay .pc-arrow[disabled] {
		opacity: 0.4;
		background: rgba(255, 255, 255, 0.86);
	}

	.pc-dots {
		display: flex;
		gap: 8px;
		margin-top: 16px;
	}

	.pc-dots button {
		width: 6px;
		height: 6px;
	}

	.pc-dots button.is-active {
		width: 20px;
	}

	/* Callback form */

	/* Solid white card, no gradient. */
	.pc-callback__card {
		grid-template-columns: 1fr;
		gap: 24px;
		padding: 20px 21px;
		background: #fff;
	}

	.pc-callback__title {
		margin-bottom: 14px;
		font-size: 18px;
		line-height: 1.25;
	}

	.pc-callback__text {
		margin-bottom: 24px;
		font-size: 13px;
	}

	.pc-form {
		gap: 12px;
	}

	.pc-form__row {
		grid-template-columns: 1fr;
	}

	.pc-field__input {
		height: 42px;
	}

	.pc-form__submit {
		justify-self: stretch;
		justify-content: center;
	}

	.pc-callback__media {
		display: none;
	}

	/* No shared photo on phones — both blocks become cards. */
	.pc-outro {
		background-image: none;
	}

	.pc-outro__scrim {
		display: none;
	}

	.pc-cta {
		padding: var(--pc-section) 0;
	}

	/* Screen inset comes from margin, since padding is used inside the card.
	   width: auto is required: .pc-container is 100% wide and the margin would
	   be added outside it, pushing the card off screen. */
	.pc-cta__inner {
		flex-direction: column;
		align-items: stretch;
		gap: 20px;
		width: auto;
		margin: 0 var(--pc-gutter);
		padding: 20px;
		background: var(--pc-ink);
		border-radius: var(--pc-radius-sm);
	}

	.pc-cta__title {
		font-size: 17px;
		line-height: 1.2;
	}

	.pc-cta__btn {
		justify-content: center;
		padding: 0 24px;
	}

	/* Advantages */
	.pc-advantages__inner {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.pc-advantages__thumbs {
		gap: var(--pc-gap);
		margin-top: var(--pc-gap);
	}

	.pc-advantages__text > .pc-h {
		margin-bottom: 24px;
	}

	.pc-advantages__text .pc-checklist {
		margin-bottom: 28px;
	}

	.pc-advantages__text .pc-btn {
		width: 100%;
		justify-content: center;
	}

	.pc-results .pc-section__head .pc-arrows {
		display: none;
	}

	.pc-results__carousel .pc-carousel__item {
		width: 100%;
	}

	.pc-result__shot {
		aspect-ratio: 7 / 4;
	}

	/* On phones Splide takes over, so the list goes back to a flex row. */
	.pc-reviews .pc-reviews__carousel.splide .pc-reviews__grid.splide__list {
		display: flex;
		gap: 0;
		height: 100%;
	}

	.pc-review:nth-child(3n + 2) {
		grid-row: auto;
	}

	/* The quote hangs in the left gutter with the text beside it, instead of
	   sitting on its own line the way the desktop card stacks them. */
	.pc-review {
		display: grid;
		grid-template-columns: 20px minmax(0, 1fr);
		column-gap: 9px;
		align-items: start;
		padding: 16px;
		border-radius: 12px;
	}

	.pc-review__head,
	.pc-review__foot {
		grid-column: 1 / -1;
	}

	.pc-review__head {
		margin-bottom: 8px;
	}

	.pc-review__mark {
		margin-bottom: 0;
	}

	/* Clipped to four lines, so one wordy review does not stretch every card
	   in the slider. JS reveals the button when there is more to show. */
	.pc-review__text {
		display: -webkit-box;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 4;
		line-clamp: 4;
		overflow: hidden;
		padding-bottom: 0;
		line-height: 1.35;
	}

	.pc-review.is-open .pc-review__text {
		-webkit-line-clamp: unset;
		line-clamp: unset;
		overflow: visible;
	}

	.pc-review__more {
		grid-column: 2;
		justify-self: start;
		display: inline-block;
		margin-top: 8px;
		padding: 0;
		border: 0;
		background: none;
		font-size: 13px;
		font-weight: 500;
		color: var(--pc-accent);
		text-decoration: underline;
	}

	.pc-review__more[hidden] {
		display: none;
	}

	/* No divider on phones — the rating follows the text directly. */
	.pc-review__foot {
		padding-top: 14px;
		border-top: 0;
	}

	.pc-review__rating {
		font-size: 18px;
	}

	/* Reviews sit lower than the other sliders — 52 in the layout. */
	.pc-reviews .pc-dots {
		margin-top: 52px;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	.pc-carousel__track {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
	}
}
