/* =========================================================================
   Hyluxmed Doctors — Frontend design system
   Aesthetic: medical-spa luxury / editorial. Ivory + eucalyptus + gold + ink.
   Totul e scoped sub .hlx-app ca să nu afecteze tema.
   ========================================================================= */

.hlx-app {
	--hlx-bg: transparent;
	--hlx-surface: #ffffff;
	--hlx-surface-2: #f4f4f4;
	--hlx-ink: #1c1b18;
	--hlx-ink-soft: #5c584f;
	--hlx-line: rgba(28, 27, 24, .14);
	--hlx-line-soft: rgba(28, 27, 24, .08);
	--hlx-accent: #2c5749;
	--hlx-accent-deep: #1e3d33;
	/* Accent secundar (eyebrow-uri, numere de secțiune, borduri decorative).
	   Numele „gold” e păstrat pentru compatibilitate, dar acum e albastrul de brand. */
	--hlx-gold: #1e73be;
	--hlx-gold-soft: #7fb0dd;

	--hlx-serif: 'Fraunces', 'Times New Roman', serif;
	--hlx-sans: 'Mulish', -apple-system, BlinkMacSystemFont, sans-serif;

	--hlx-maxw: 1200px;
	--hlx-gap: clamp(24px, 4vw, 56px);

	color: var(--hlx-ink);
	font-family: var(--hlx-sans);
	font-weight: 400;
	line-height: 1.65;
	font-size: 17px;
	-webkit-font-smoothing: antialiased;
	background: transparent;
}

/* Full-bleed: rupem containerul îngust al temei pentru un canvas propriu. */
.hlx-app {
	position: relative;
	width: 100vw;
	left: 50%;
	right: 50%;
	margin-left: -50vw;
	margin-right: -50vw;
	padding: clamp(40px, 6vw, 96px) clamp(20px, 5vw, 80px);
	overflow: hidden;
}

.hlx-wrap {
	max-width: var(--hlx-maxw);
	margin: 0 auto;
}

/* ---------- Tipografie ---------- */
.hlx-app h1, .hlx-app h2, .hlx-app h3, .hlx-app h4 {
	font-family: var(--hlx-serif);
	font-weight: 500;
	line-height: 1.08;
	letter-spacing: -.01em;
	color: var(--hlx-ink);
	margin: 0;
}
.hlx-app p { margin: 0 0 1em; }
.hlx-app a { color: inherit; }

.hlx-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: .6em;
	font-family: var(--hlx-sans);
	font-weight: 700;
	font-size: .72rem;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: var(--hlx-gold);
}
.hlx-eyebrow::before {
	content: "";
	width: 28px;
	height: 1px;
	background: currentColor;
	opacity: .7;
}

/* Etichetă de secțiune numerotată */
.hlx-section {
	margin-top: clamp(48px, 6vw, 88px);
}
.hlx-section__label {
	display: flex;
	align-items: baseline;
	gap: .8em;
	font-family: var(--hlx-sans);
	font-weight: 700;
	font-size: .74rem;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: var(--hlx-ink-soft);
	padding-bottom: .9em;
	margin-bottom: 1.6em;
	border-bottom: 1px solid var(--hlx-line);
}
.hlx-section__label .num {
	font-family: var(--hlx-serif);
	font-style: italic;
	font-weight: 400;
	font-size: 1.05rem;
	letter-spacing: 0;
	color: var(--hlx-gold);
}
.hlx-section__title {
	font-size: clamp(1.7rem, 3.4vw, 2.6rem);
	margin-bottom: .5em;
}

/* ---------- Butoane ---------- */
.hlx-app .hlx-btn,
.hlx-app a.hlx-btn {
	display: inline-flex;
	align-items: center;
	gap: .6em;
	font-family: var(--hlx-sans);
	font-weight: 600;
	font-size: .82rem;
	letter-spacing: .08em;
	text-transform: uppercase;
	text-decoration: none;
	padding: .95em 1.7em;
	border-radius: 999px;
	background: var(--hlx-accent);
	color: #fff;
	border: 1px solid var(--hlx-accent);
	transition: background .25s ease, color .25s ease, transform .25s ease;
}
.hlx-app .hlx-btn:hover { background: var(--hlx-accent-deep); border-color: var(--hlx-accent-deep); transform: translateY(-2px); }
.hlx-app .hlx-btn--ghost { background: transparent; color: var(--hlx-accent); }
.hlx-app .hlx-btn--ghost:hover { background: var(--hlx-accent); color: #fff; }

/* =========================================================================
   PAGINA DOCTOR
   ========================================================================= */
.hlx-doc-hero {
	display: grid;
	grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
	gap: clamp(28px, 5vw, 72px);
	align-items: center;
}
.hlx-doc-hero__media {
	position: relative;
}
.hlx-doc-hero__media::before {
	content: "";
	position: absolute;
	inset: 18px -18px -18px 18px;
	border: 1px solid var(--hlx-gold-soft);
	z-index: 0;
}
.hlx-doc-hero__media img {
	position: relative;
	z-index: 1;
	width: 100%;
	aspect-ratio: 4 / 5;
	/* Pozele sunt decupate (nobg) și serviciul păstrează raportul persoanei,
	   deci le încadrăm întregi (contain), așezate la baza ramei — nu tăiem capul. */
	object-fit: contain;
	object-position: center bottom;
	display: block;
	filter: saturate(1.02);
}
.hlx-doc-name {
	font-size: clamp(2.6rem, 6vw, 4.6rem);
	line-height: .98;
	margin: .28em 0 .34em;
}
.hlx-doc-name em { font-style: italic; color: var(--hlx-accent); }
.hlx-doc-depts {
	display: flex;
	flex-wrap: wrap;
	gap: .5em;
	margin-bottom: 1.4em;
}
.hlx-doc-depts a {
	font-size: .78rem;
	letter-spacing: .04em;
	text-decoration: none;
	color: var(--hlx-ink-soft);
	padding: .35em .9em;
	border: 1px solid var(--hlx-line);
	border-radius: 999px;
	transition: border-color .2s, color .2s;
}
.hlx-doc-depts a:hover { border-color: var(--hlx-accent); color: var(--hlx-accent); }
.hlx-doc-lead {
	font-family: var(--hlx-serif);
	font-size: clamp(1.15rem, 2.2vw, 1.5rem);
	font-weight: 400;
	line-height: 1.45;
	color: var(--hlx-ink);
	max-width: 34ch;
}
.hlx-doc-lead::first-letter { }

.hlx-doc-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 300px);
	gap: clamp(32px, 5vw, 72px);
	margin-top: clamp(40px, 6vw, 80px);
	align-items: start;
}
.hlx-doc-grid--single { grid-template-columns: minmax(0, 1fr); max-width: 820px; }
.hlx-doc-aside {
	position: sticky;
	top: 24px;
}
.hlx-doc-main > .hlx-section:first-child { margin-top: 0; }

.hlx-prose { color: var(--hlx-ink-soft); }
.hlx-prose p { margin-bottom: 1.1em; }

/* Liste editoriale (studii, distincții) */
.hlx-list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.hlx-list li {
	position: relative;
	padding: 1em 0 1em 2.4em;
	border-bottom: 1px solid var(--hlx-line-soft);
	color: var(--hlx-ink);
}
.hlx-list li::before {
	counter-increment: hlx-li;
	content: counter(hlx-li, decimal-leading-zero);
	position: absolute;
	left: 0;
	top: 1.15em;
	font-family: var(--hlx-serif);
	font-style: italic;
	font-size: .95rem;
	color: var(--hlx-gold);
}
.hlx-list { counter-reset: hlx-li; }

/* Distincții — variantă cu semn decorativ */
.hlx-list--mark li { padding-left: 1.8em; }
.hlx-list--mark li::before {
	content: "";
	counter-increment: none;
	width: 7px; height: 7px;
	top: 1.7em; left: 2px;
	border: 1px solid var(--hlx-gold);
	transform: rotate(45deg);
}

/* Program (timetable) în aside */
.hlx-timetable {
	background: var(--hlx-surface);
	border: 1px solid var(--hlx-line);
	padding: 1.6em 1.5em;
}
.hlx-timetable h3 {
	font-size: 1.15rem;
	margin-bottom: .9em;
	padding-bottom: .7em;
	border-bottom: 1px solid var(--hlx-line);
}
.hlx-timetable table { width: 100%; border-collapse: collapse; background: none; }
.hlx-timetable th, .hlx-timetable td {
	padding: .6em .2em !important;
	font-size: .9rem;
	text-align: left;
	background: none !important;
	border: 0;
	border-bottom: 1px solid var(--hlx-line-soft) !important;
	color: var(--hlx-ink);
}
.hlx-timetable th { font-weight: 600; font-family: var(--hlx-sans); }
.hlx-timetable td { text-align: right; color: var(--hlx-ink-soft); font-variant-numeric: tabular-nums; }
.hlx-timetable tr:last-child th, .hlx-timetable tr:last-child td { border-bottom: 0; }

/* Listă de prețuri (stil meniu) — proceduri efectuate */
.hlx-pricelist { list-style: none; margin: 0; padding: 0; }
.hlx-pricelist li {
	display: flex;
	align-items: baseline;
	gap: .8em;
	padding: .95em 0;
	border-bottom: 1px solid var(--hlx-line-soft);
}
.hlx-pricelist .name {
	font-family: var(--hlx-serif);
	font-size: 1.12rem;
	color: var(--hlx-ink);
	text-decoration: none;
	flex: 0 1 auto;
}
.hlx-pricelist a.name { border-bottom: 1px solid transparent; transition: border-color .2s, color .2s; }
.hlx-pricelist a.name:hover { color: var(--hlx-accent); border-bottom-color: var(--hlx-accent); }
.hlx-pricelist .leader {
	flex: 1 1 auto;
	border-bottom: 1px dotted var(--hlx-line);
	transform: translateY(-.25em);
	min-width: 24px;
}
.hlx-pricelist .price {
	font-weight: 700;
	font-size: .95rem;
	white-space: nowrap;
	color: var(--hlx-accent);
	font-variant-numeric: tabular-nums;
}

/* Recomandări (3 + 3) */
.hlx-recos {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: clamp(20px, 3vw, 40px);
}
.hlx-reco { position: relative; }
.hlx-reco__img {
	position: relative;
	overflow: hidden;
	margin-bottom: 1em;
}
.hlx-reco__img img {
	width: 100%;
	aspect-ratio: 3 / 4;
	object-fit: cover;
	display: block;
	transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.hlx-reco:hover .hlx-reco__img img { transform: scale(1.05); }
.hlx-reco__num {
	position: absolute;
	top: .5em; left: .55em;
	z-index: 2;
	font-family: var(--hlx-serif);
	font-style: italic;
	font-size: 1.4rem;
	color: #fff;
	text-shadow: 0 1px 8px rgba(0,0,0,.4);
}
.hlx-reco h4 { font-size: 1.25rem; margin-bottom: .3em; }
.hlx-reco p { font-size: .95rem; color: var(--hlx-ink-soft); margin: 0; }

/* =========================================================================
   PAGINA PROCEDURĂ
   ========================================================================= */
.hlx-proc-hero {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(28px, 5vw, 64px);
	align-items: center;
}
.hlx-proc-hero__media { position: relative; }
.hlx-proc-hero__media img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	display: block;
}
.hlx-proc-title { font-size: clamp(2.2rem, 5vw, 3.6rem); margin: .3em 0 .5em; }
.hlx-proc-price-tag {
	display: inline-flex;
	flex-direction: column;
	gap: .1em;
	padding: .7em 1.3em;
	background: var(--hlx-accent);
	color: #fff;
	margin-top: .4em;
}
.hlx-proc-price-tag .k { font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; opacity: .8; }
.hlx-proc-price-tag .v { font-family: var(--hlx-serif); font-size: 1.55rem; font-variant-numeric: tabular-nums; }

.hlx-proc-prose { max-width: 68ch; color: var(--hlx-ink-soft); }
.hlx-proc-prose p { margin-bottom: 1.1em; }

/* Before / After */
.hlx-ba {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: clamp(20px, 3vw, 36px);
}
.hlx-ba__pair { }
.hlx-ba__imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hlx-ba__imgs figure { margin: 0; position: relative; }
.hlx-ba__imgs img { width: 100%; aspect-ratio: 3/4; object-fit: cover; display: block; }
.hlx-ba__imgs figcaption {
	position: absolute; top: 8px; left: 8px;
	font-size: .62rem; letter-spacing: .16em; text-transform: uppercase;
	background: rgba(28,27,24,.72); color: #fff; padding: .3em .7em;
}
.hlx-ba__caption { margin-top: .7em; font-style: italic; color: var(--hlx-ink-soft); font-family: var(--hlx-serif); }

/* Doctori care efectuează */
.hlx-proc-doctors { display: flex; flex-wrap: wrap; gap: clamp(18px, 3vw, 34px); }

/* =========================================================================
   CARDURI PROCEDURĂ (liste: departament + arhivă)
   ========================================================================= */
.hlx-procedure-list {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: clamp(18px, 2.2vw, 30px);
}
.hlx-procedure-card {
	display: flex;
	flex-direction: column;
	background: var(--hlx-surface);
	border: 1px solid var(--hlx-line);
	transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.hlx-procedure-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 18px 40px -24px rgba(28,27,24,.4);
	border-color: var(--hlx-gold-soft);
}
.hlx-procedure-thumb { overflow: hidden; }
.hlx-procedure-thumb img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	display: block;
	transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.hlx-procedure-card:hover .hlx-procedure-thumb img { transform: scale(1.06); }
.hlx-procedure-body { padding: 1.3em 1.4em 1.5em; display: flex; flex-direction: column; flex: 1; }
.hlx-procedure-title { font-size: 1.35rem; margin-bottom: .5em; }
.hlx-procedure-desc { font-size: .92rem; color: var(--hlx-ink-soft); line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.hlx-procedure-desc p { margin: 0; }
.hlx-procedure-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: auto;
	padding-top: 1.2em;
}
.hlx-procedure-price {
	font-family: var(--hlx-serif);
	font-size: 1.2rem;
	font-weight: 500;
	color: var(--hlx-accent);
	font-variant-numeric: tabular-nums;
}
.hlx-details-btn {
	font-family: var(--hlx-sans);
	font-weight: 600;
	font-size: .72rem;
	letter-spacing: .12em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--hlx-ink);
	border-bottom: 1px solid var(--hlx-gold);
	padding-bottom: .2em;
	transition: color .2s, border-color .2s;
	white-space: nowrap;
}
.hlx-details-btn:hover { color: var(--hlx-accent); border-color: var(--hlx-accent); }

/* =========================================================================
   DEPARTAMENT (single + arhivă)
   ========================================================================= */
.hlx-dept-intro {
	max-width: 60ch;
	font-family: var(--hlx-serif);
	font-size: clamp(1.15rem, 2.2vw, 1.5rem);
	line-height: 1.5;
	color: var(--hlx-ink);
}

.hlx-dept-grid {
	display: grid;
	grid-template-columns: repeat(var(--hlx-dept-cols, 3), 1fr);
	gap: clamp(22px, 3vw, 40px);
}

/* Variantă embed: shortcode pus într-o pagină (ex. prima pagină) — anulăm
   full-bleed-ul, ca să stea în containerul temei, dar păstrăm stilurile. */
.hlx-app.hlx-embed {
	width: auto;
	left: auto;
	right: auto;
	margin-left: 0;
	margin-right: 0;
	padding: 0;
	overflow: visible;
	background: transparent;
}

/* =========================================================================
   Shortcode departamente — carduri editoriale cu titlu + medici overlay
   ========================================================================= */
.hlx-departments-shortcode .hlx-deptx-grid {
	display: grid;
	grid-template-columns: repeat(var(--hlx-dept-cols, 3), minmax(0, 1fr));
	gap: clamp(14px, 1.5vw, 22px);
}
.hlx-departments-shortcode .hlx-deptx-card {
	position: relative;
	display: block;
	overflow: hidden;
	aspect-ratio: 3 / 2;
	border-radius: 6px;
	text-decoration: none;
	isolation: isolate;
	/* Fundal de brand — vizibil la departamentele fără poză, altfel acoperit de imagine. */
	background: linear-gradient(155deg, #2b5f86 0%, #10314c 100%);
	box-shadow: 0 10px 30px -18px rgba(12, 22, 30, .6);
	transition: transform .5s cubic-bezier(.2, .7, .2, 1), box-shadow .5s ease;
}
/* Variație de nuanță pentru cardurile fără poză, ca să nu fie monotone. */
.hlx-departments-shortcode .hlx-deptx-card--noimg:nth-child(3n+2) { background: linear-gradient(155deg, #2c5749 0%, #14342a 100%); }
.hlx-departments-shortcode .hlx-deptx-card--noimg:nth-child(3n) { background: linear-gradient(155deg, #3a5f7e 0%, #16293c 100%); }
/* Fără poză: voal mai discret (nu avem imagine de întunecat). */
.hlx-departments-shortcode .hlx-deptx-card--noimg .hlx-deptx-scrim {
	background: linear-gradient(to top, rgba(9, 17, 24, .32) 0%, transparent 55%);
}
.hlx-departments-shortcode .hlx-deptx-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 26px 50px -24px rgba(12, 22, 30, .7);
}
.hlx-departments-shortcode .hlx-deptx-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .9s cubic-bezier(.2, .7, .2, 1);
}
.hlx-departments-shortcode .hlx-deptx-card:hover .hlx-deptx-img { transform: scale(1.07); }
.hlx-departments-shortcode .hlx-deptx-scrim {
	position: absolute;
	inset: 0;
	z-index: 1;
	background:
		linear-gradient(to top, rgba(9, 17, 24, .9) 0%, rgba(9, 17, 24, .5) 30%, rgba(9, 17, 24, .05) 60%, transparent 100%),
		linear-gradient(to bottom, rgba(9, 17, 24, .38) 0%, transparent 32%);
}

/* Medici — cerculete decorative (non-click), suprapuse, în colțul de sus */
.hlx-departments-shortcode .hlx-deptx-avatars {
	position: absolute;
	top: clamp(14px, 1.5vw, 20px);
	left: clamp(16px, 1.6vw, 22px);
	z-index: 2;
	display: flex;
	align-items: center;
}
.hlx-departments-shortcode .hlx-deptx-av {
	width: clamp(34px, 3vw, 42px);
	height: clamp(34px, 3vw, 42px);
	border-radius: 50%;
	overflow: hidden;
	border: 2px solid rgba(255, 255, 255, .92);
	margin-left: -12px;
	background: #cdd9e4;
	box-shadow: 0 3px 10px rgba(9, 17, 24, .35);
	transition: margin-left .4s cubic-bezier(.2, .7, .2, 1);
}
.hlx-departments-shortcode .hlx-deptx-av:first-child { margin-left: 0; }
.hlx-departments-shortcode .hlx-deptx-av img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top;
	display: block;
}
.hlx-departments-shortcode .hlx-deptx-av--more {
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: 'Mulish', sans-serif;
	font-weight: 800;
	font-size: .68rem;
	color: #1e3a52;
	background: #eaf1f8;
}
.hlx-departments-shortcode .hlx-deptx-card:hover .hlx-deptx-av { margin-left: -7px; }
.hlx-departments-shortcode .hlx-deptx-card:hover .hlx-deptx-av:first-child { margin-left: 0; }

/* Corp (jos): kicker + titlu + accent, excerpt/cue la hover */
.hlx-departments-shortcode .hlx-deptx-body {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2;
	display: flex;
	flex-direction: column;
	padding: clamp(16px, 1.7vw, 26px);
	color: #fff;
}
.hlx-departments-shortcode .hlx-deptx-kicker {
	font-family: 'Mulish', sans-serif;
	font-weight: 700;
	font-size: .6rem;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: #bcd4ec;
	margin-bottom: .55em;
}
.hlx-departments-shortcode .hlx-deptx-title {
	font-family: 'Fraunces', 'Times New Roman', serif;
	font-weight: 500;
	font-size: clamp(1.25rem, 1.6vw, 1.7rem);
	line-height: 1.04;
	color: #fff;
	margin: 0;
}
.hlx-departments-shortcode .hlx-deptx-title::after {
	content: "";
	display: block;
	width: 24px;
	height: 2px;
	margin-top: .55em;
	background: #1e73be;
	transition: width .5s cubic-bezier(.2, .7, .2, 1);
}
.hlx-departments-shortcode .hlx-deptx-card:hover .hlx-deptx-title::after { width: 52px; }
.hlx-departments-shortcode .hlx-deptx-excerpt,
.hlx-departments-shortcode .hlx-deptx-cue {
	max-height: 0;
	opacity: 0;
	overflow: hidden;
	transform: translateY(6px);
	transition: max-height .55s ease, opacity .45s ease, transform .55s ease, margin .45s ease;
}
.hlx-departments-shortcode .hlx-deptx-excerpt {
	font-family: 'Mulish', sans-serif;
	font-size: .82rem;
	line-height: 1.5;
	color: rgba(255, 255, 255, .9);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}
.hlx-departments-shortcode .hlx-deptx-cue {
	font-family: 'Mulish', sans-serif;
	font-weight: 700;
	font-size: .68rem;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: #bcd4ec;
}
.hlx-departments-shortcode .hlx-deptx-card:hover .hlx-deptx-excerpt { max-height: 4.5em; opacity: 1; transform: none; margin-top: .7em; }
.hlx-departments-shortcode .hlx-deptx-card:hover .hlx-deptx-cue { max-height: 2em; opacity: 1; transform: none; margin-top: .7em; }
/* Link întins peste tot cardul (cardul e un <div> ca să nu-l spargă wpautop). */
.hlx-departments-shortcode .hlx-deptx-link {
	position: absolute;
	inset: 0;
	z-index: 3;
	text-indent: -9999px;
	overflow: hidden;
}
.hlx-departments-shortcode .hlx-deptx-link:focus-visible { outline: 2px solid #1e73be; outline-offset: 3px; }

@media (max-width: 700px) {
	.hlx-departments-shortcode .hlx-deptx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 460px) {
	.hlx-departments-shortcode .hlx-deptx-grid { grid-template-columns: 1fr; }
	/* Fără hover pe mobil: arătăm excerpt-ul permanent. */
	.hlx-departments-shortcode .hlx-deptx-excerpt { max-height: 4.5em; opacity: 1; transform: none; margin-top: .7em; }
}
.hlx-department-card { display: flex; flex-direction: column; }
.hlx-department-photo { display: block; text-decoration: none; position: relative; overflow: hidden; }
.hlx-department-photo img {
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	display: block;
	transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.hlx-department-card:hover .hlx-department-photo img { transform: scale(1.05); }
.hlx-department-card h3 { font-size: 1.5rem; margin: .7em 0 .1em; }
.hlx-department-card > p { color: var(--hlx-ink-soft); font-size: .95rem; }
.hlx-department-doctors-mini { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 1em; }

/* Avatare rotunde (cerculețe) */
.hlx-doctor-circle {
	display: flex; flex-direction: column; align-items: center;
	width: 74px; text-decoration: none; text-align: center;
	font-size: .72rem; line-height: 1.2; color: var(--hlx-ink-soft);
}
.hlx-doctor-circle img {
	width: 62px !important; height: 62px !important;
	/* Cutout întreg → încadrăm capul (sus), nu talia, în cercul de avatar. */
	aspect-ratio: 1/1; object-fit: cover; object-position: top; border-radius: 50%;
	border: 1px solid var(--hlx-gold-soft);
	padding: 2px; background: var(--hlx-surface);
	margin-bottom: 6px;
	transition: transform .3s;
}
.hlx-doctor-circle:hover img { transform: scale(1.08); }
.hlx-doctor-circle span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Doctor mini (pe proceduri / departament single) */
.hlx-doctor-mini a { display: block; text-align: center; text-decoration: none; color: var(--hlx-ink); width: 130px; }
.hlx-doctor-mini img {
	width: 130px !important; height: 150px !important;
	/* Headshot mic: încadrăm capul/bustul (sus), nu tăiem capul. */
	aspect-ratio: 4/5; object-fit: cover; object-position: top; display: block; margin: 0 auto .7em;
}
.hlx-doctor-mini span { font-family: var(--hlx-serif); font-size: 1rem; }

/* =========================================================================
   ARHIVE (doctori)
   ========================================================================= */
.hlx-archive-head { margin-bottom: clamp(28px, 4vw, 56px); }
.hlx-archive-head h1 { font-size: clamp(2.4rem, 6vw, 4rem); margin: .2em 0; }

/* Căutare proceduri */
.hlx-procedure-search {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	margin-top: clamp(18px, 2.5vw, 28px);
	max-width: 560px;
}
.hlx-procedure-search input[type="search"] {
	flex: 1 1 260px;
	min-width: 0;
	font-family: var(--hlx-sans);
	font-size: 1rem;
	color: var(--hlx-ink);
	background: #fff;
	border: 1px solid var(--hlx-line);
	border-radius: 999px;
	padding: .7em 1.1em;
	outline: none;
	transition: border-color .2s ease, box-shadow .2s ease;
}
.hlx-procedure-search input[type="search"]:focus {
	border-color: var(--hlx-accent);
	box-shadow: 0 0 0 3px rgba(44, 87, 73, .12);
}
.hlx-procedure-search button {
	font-family: var(--hlx-sans);
	font-weight: 700;
	font-size: .82rem;
	letter-spacing: .04em;
	color: #fff;
	background: var(--hlx-accent);
	border: 1px solid var(--hlx-accent);
	border-radius: 999px;
	padding: .7em 1.5em;
	cursor: pointer;
	transition: background .2s ease, transform .2s ease;
}
.hlx-procedure-search button:hover { background: var(--hlx-accent-deep); transform: translateY(-1px); }
.hlx-procedure-search__clear {
	font-family: var(--hlx-sans);
	font-size: .8rem;
	color: var(--hlx-ink-soft);
	text-decoration: none;
	border-bottom: 1px solid var(--hlx-line);
}
.hlx-procedure-search__clear:hover { color: var(--hlx-ink); }

/* Card fără pagină (rezultat backend nemapat) — semnalăm subtil că nu e clickabil */
.hlx-procedure-card--nolink { cursor: default; }
.hlx-procedure-card--nolink:hover { transform: none; }

.hlx-doctor-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: clamp(24px, 3vw, 48px);
}
.hlx-doctor-card { display: flex; flex-direction: column; }
.hlx-doctor-card a.hlx-doctor-card__media { display: block; overflow: hidden; text-decoration: none; }
.hlx-doctor-card img {
	width: 100%;
	aspect-ratio: 4 / 5;
	/* Cutout nobg: încadrăm întreg doctorul, așezat la bază — fără cap tăiat. */
	object-fit: contain;
	object-position: center bottom;
	display: block;
	transition: transform .6s cubic-bezier(.2,.7,.2,1), filter .4s;
	filter: grayscale(.1);
}
.hlx-doctor-card:hover img { transform: scale(1.04); filter: grayscale(0); }
.hlx-doctor-card h3 { font-size: 1.5rem; margin: .6em 0 .12em; }
.hlx-doctor-card h3 a { text-decoration: none; }
.hlx-doctor-departments { margin: 0; font-size: .82rem; color: var(--hlx-ink-soft); }
.hlx-doctor-departments a { text-decoration: none; border-bottom: 1px solid var(--hlx-line); }
.hlx-doctor-departments a:hover { color: var(--hlx-accent); border-color: var(--hlx-accent); }

/* Grup de departament în arhiva de medici */
.hlx-dept-group { margin-top: clamp(40px, 5vw, 72px); }
.hlx-dept-group:first-of-type { margin-top: 0; }
.hlx-dept-group__title {
	display: flex; align-items: baseline; gap: .7em;
	font-family: var(--hlx-serif); font-style: italic; font-weight: 400;
	font-size: clamp(1.4rem, 2.6vw, 2rem);
	padding-bottom: .5em; margin-bottom: 1.5em;
	border-bottom: 1px solid var(--hlx-line);
}
.hlx-dept-group__title .count { font-family: var(--hlx-sans); font-style: normal; font-size: .8rem; letter-spacing: .12em; color: var(--hlx-gold); }

/* =========================================================================
   PAGINARE
   ========================================================================= */
.hlx-pagination {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin-top: clamp(36px, 5vw, 64px);
}
.hlx-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px; height: 44px;
	padding: 0 .6em;
	font-family: var(--hlx-serif);
	font-size: 1rem;
	text-decoration: none;
	color: var(--hlx-ink);
	border: 1px solid var(--hlx-line);
	border-radius: 999px;
	transition: all .2s;
}
.hlx-pagination .page-numbers:hover { border-color: var(--hlx-accent); color: var(--hlx-accent); }
.hlx-pagination .page-numbers.current {
	background: var(--hlx-accent); color: #fff; border-color: var(--hlx-accent);
}
.hlx-pagination .page-numbers.dots { border: 0; }

.hlx-empty { color: var(--hlx-ink-soft); font-style: italic; font-family: var(--hlx-serif); }

/* =========================================================================
   ANIMAȚII la încărcare
   ========================================================================= */
@keyframes hlx-fade-up {
	from { opacity: 0; transform: translateY(18px); }
	to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: no-preference) {
	.hlx-app .hlx-reveal {
		opacity: 0;
		animation: hlx-fade-up .9s cubic-bezier(.2,.7,.2,1) forwards;
	}
	.hlx-app .hlx-reveal:nth-child(1) { animation-delay: .05s; }
	.hlx-app .hlx-reveal:nth-child(2) { animation-delay: .14s; }
	.hlx-app .hlx-reveal:nth-child(3) { animation-delay: .23s; }
	.hlx-app .hlx-reveal:nth-child(4) { animation-delay: .32s; }
	.hlx-app .hlx-reveal:nth-child(5) { animation-delay: .41s; }
	.hlx-app .hlx-reveal:nth-child(6) { animation-delay: .5s; }
}

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 991px) {
	.hlx-doc-hero,
	.hlx-proc-hero { grid-template-columns: 1fr; }
	.hlx-doc-grid { grid-template-columns: 1fr; }
	.hlx-doc-aside { position: static; }
	.hlx-procedure-list,
	.hlx-dept-grid,
	.hlx-doctor-grid,
	.hlx-recos { grid-template-columns: repeat(2, 1fr); }
	.hlx-ba { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
	.hlx-procedure-list,
	.hlx-dept-grid,
	.hlx-doctor-grid,
	.hlx-recos { grid-template-columns: 1fr; }
	.hlx-doc-name { font-size: 3rem; }
}
