/* ==========================================================================
   Clinică dentară (demo) – page-dental.php
   ========================================================================== */

:root {
	--bg: #ffffff;
	--bg-alt: #f2f8fd;
	--surface: #ffffff;
	--border: #dcebf7;
	--text: #0d2238;
	--muted: #52667c;
	--blue: #1872b5;        /* butoane: contrast AA cu text alb */
	--blue-hover: #135f98;
	--blue-soft: #e3f2fd;
	--blue-light: #7cc3f7;
	--star: #f5b301;
	--ok: #127a4b;
	--err: #b42318;
	--ease: cubic-bezier(0.22, 1, 0.36, 1);
	--font: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--shadow: 0 16px 40px rgba(24, 114, 181, .10);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body.dental {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font: 400 16px/24px var(--font);
	-webkit-font-smoothing: antialiased;
}
/* Reset cu :where() (specificitate 0), ca să nu bată clasele componentelor. */
:where(.dental) :where(h1, h2, h3, p, ul, dl, dd, figure, blockquote) { margin: 0; }
:where(.dental) :where(ul) { padding: 0; list-style: none; }
:where(.dental) :where(a) { color: inherit; text-decoration: none; }
:where(.dental) :where(h1, h2, h3) { text-wrap: balance; }
:where(.dental) :where(p, blockquote) { text-wrap: pretty; }
.dental :focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 8px; }

/* ---------- Stiluri de text ---------- */
.heading-1 { font-size: 60px; line-height: 60px; font-weight: 600; letter-spacing: -0.02em; }
.heading-2 { font-size: 48px; line-height: 48px; font-weight: 600; letter-spacing: -0.02em; }
.heading-3 { font-size: 36px; line-height: 40px; font-weight: 600; letter-spacing: -0.01em; }
.heading-4 { font-size: 30px; line-height: 36px; font-weight: 600; }
.heading-5 { font-size: 24px; line-height: 32px; font-weight: 600; }
.heading-6 { font-size: 20px; line-height: 28px; font-weight: 600; }
.title-1 { font-size: 20px; line-height: 28px; font-weight: 500; }
.title-2 { font-size: 18px; line-height: 28px; font-weight: 500; }
.title-3 { font-size: 16px; line-height: 24px; font-weight: 500; }
.title-4 { font-size: 14px; line-height: 20px; font-weight: 500; }
.body-2 { font-size: 16px; line-height: 24px; font-weight: 500; }
.body-3 { font-size: 16px; line-height: 24px; font-weight: 400; color: var(--muted); }
.body-4 { font-size: 14px; line-height: 20px; font-weight: 600; }
.body-5 { font-size: 14px; line-height: 20px; font-weight: 500; }
.body-6 { font-size: 14px; line-height: 20px; font-weight: 400; color: var(--muted); }
.body-lead { font-size: 18px; line-height: 28px; color: var(--muted); max-width: 680px; }
.caption-2 { font-size: 14px; line-height: 20px; color: var(--muted); }
.caption-5 { font-size: 12px; line-height: 16px; color: var(--muted); }

@media (max-width: 1100px) { .heading-1 { font-size: 48px; line-height: 48px; } }
@media (max-width: 760px) {
	.heading-1 { font-size: 36px; line-height: 40px; }
	.heading-2 { font-size: 30px; line-height: 36px; }
	.heading-3 { font-size: 24px; line-height: 32px; }
	.heading-4 { font-size: 24px; line-height: 32px; }
}

/* ---------- Utilitare ---------- */
.d-container { width: min(1160px, 100% - 32px); margin-inline: auto; }
.d-section { padding: 96px 0; }
.d-section-alt { background: var(--bg-alt); }
@media (max-width: 760px) { .d-section { padding: 64px 0; } }

.skip-link { position: absolute; left: -999px; top: 8px; z-index: 300; background: var(--blue); color: #fff; padding: 8px 12px; border-radius: 8px; }
.skip-link:focus { left: 8px; }
.hp { position: absolute; left: -9999px; }

.d-eyebrow {
	display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px;
	padding: 4px 12px; border-radius: 9999px; background: var(--blue-soft); color: var(--blue);
	font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
}

.d-head { max-width: 680px; margin-bottom: 48px; }
.d-head-row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

.d-grid { display: grid; gap: 24px; }
.d-grid-2 { grid-template-columns: repeat(2, 1fr); }
.d-grid-3 { grid-template-columns: repeat(3, 1fr); }
.d-grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .d-grid-3, .d-grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .d-grid-2, .d-grid-3, .d-grid-4 { grid-template-columns: 1fr; } }

/* ---------- Butoane ---------- */
.d-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 8px 16px; border-radius: 9999px; border: 1px solid transparent;
	font: 600 16px/24px var(--font); cursor: pointer; white-space: nowrap;
	transition: transform .5s var(--ease), background-color .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease);
}
.d-btn:hover { transform: translateY(-2px); }
.d-btn:active { transform: scale(.98); }
.d-btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 24px rgba(24, 114, 181, .25); }
.d-btn-primary:hover { background: var(--blue-hover); }
.d-btn-ghost { background: var(--surface); border-color: var(--border); color: var(--text); }
.d-btn-ghost:hover { border-color: var(--blue-light); color: var(--blue); }
.d-btn-lg { padding: 12px 24px; }
.d-btn-sm { font-size: 14px; line-height: 20px; }
.d-btn-block { width: 100%; }

/* ---------- Header ---------- */
.d-header { position: fixed; top: 16px; left: 0; right: 0; z-index: 100; display: flex; justify-content: center; padding: 0 16px; pointer-events: none; }
.d-nav {
	pointer-events: auto; display: flex; align-items: center; gap: 24px;
	position: relative; isolation: isolate;
	padding: 8px 8px 8px 16px; border-radius: 9999px; border: 1px solid rgba(220, 235, 247, .9);
	box-shadow: 0 8px 32px rgba(13, 34, 56, .06);
}
/* Blur pe pseudo-element: backdrop-filter direct pe .d-nav ar închide meniul mobil (position: fixed) în bară. */
.d-nav::before {
	content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
	background: rgba(255, 255, 255, .75); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.d-brand { display: inline-flex; align-items: center; gap: 8px; font-size: 18px; line-height: 28px; font-weight: 700; }
.d-brand-accent { color: var(--blue); }
.d-footer .d-brand-accent { color: var(--blue-light); }
.d-brand-mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9999px; background: var(--blue); color: #fff; font-size: 18px; }
.d-menu ul { display: flex; align-items: center; gap: 24px; }
.d-menu a:not(.d-btn) { font-size: 14px; line-height: 20px; font-weight: 500; color: var(--muted); transition: color .3s var(--ease); }
.d-menu a:not(.d-btn):hover, .d-menu a.is-current { color: var(--blue); }
.d-menu-cta { display: none; }
.d-toggle { display: none; position: relative; width: 40px; height: 40px; border: 0; border-radius: 9999px; background: var(--blue-soft); cursor: pointer; }
.d-toggle span { position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: var(--text); transition: transform .5s var(--ease); }
.d-toggle span:nth-child(1) { transform: translateY(-4px); }
.d-toggle span:nth-child(2) { transform: translateY(4px); }
.d-toggle[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg); }
.d-toggle[aria-expanded="true"] span:nth-child(2) { transform: rotate(-45deg); }

@media (max-width: 900px) {
	.d-nav { width: 100%; justify-content: space-between; gap: 8px; }
	.d-nav-cta { margin-left: auto; }
	.d-toggle { display: block; z-index: 2; }
	.d-menu {
		position: fixed; inset: 0; z-index: 1; padding: 96px 24px 32px;
		background: rgba(255, 255, 255, .94); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
		opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility 0s .3s;
	}
	.d-menu.is-open { opacity: 1; visibility: visible; transition: opacity .3s var(--ease); }
	.d-menu ul { flex-direction: column; align-items: stretch; gap: 8px; }
	.d-menu li { opacity: 0; transform: translateY(24px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
	.d-menu.is-open li { opacity: 1; transform: none; }
	.d-menu.is-open li:nth-child(2) { transition-delay: 60ms; }
	.d-menu.is-open li:nth-child(3) { transition-delay: 120ms; }
	.d-menu.is-open li:nth-child(4) { transition-delay: 180ms; }
	.d-menu.is-open li:nth-child(5) { transition-delay: 240ms; }
	.d-menu.is-open li:nth-child(6) { transition-delay: 300ms; }
	.d-menu a:not(.d-btn) { display: block; padding: 12px 0; font-size: 24px; line-height: 32px; font-weight: 600; color: var(--text); }
	.d-menu-cta { display: block; margin-top: 24px; }
	.d-menu-cta .d-btn { width: 100%; padding: 12px 24px; }
	.dental.menu-open .d-header { z-index: 200; }
}
@media (max-width: 420px) { .d-nav-cta { display: none; } }

/* ---------- Hero ---------- */
.d-hero { padding: 144px 0 64px; background: var(--bg-alt); }
.d-accent { color: var(--blue); }
.d-hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.d-hero-title {
	max-width: 680px; margin-bottom: 24px; color: var(--text);
}
.d-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.d-proof { display: flex; align-items: center; gap: 12px; margin-top: 24px; }
.d-proof strong { color: var(--text); font-weight: 600; }
.d-stars { display: inline-flex; gap: 2px; color: var(--star); font-size: 16px; }

.d-hero-visual { position: relative; padding: 32px; }
.d-hero-card {
	aspect-ratio: 1 / 1; max-width: 440px; margin-inline: auto; border-radius: 9999px;
	background: radial-gradient(circle at 50% 45%, #ffffff 0 40%, var(--blue-soft) 41% 100%);
	border: 1px solid var(--border); display: grid; place-items: center; box-shadow: var(--shadow);
}
.d-tooth { width: 58%; animation: d-float 6s var(--ease) infinite alternate; }
@keyframes d-float { to { transform: translateY(-12px) rotate(-3deg); } }
.d-chip {
	position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 16px;
	border-radius: 16px; border: 1px solid var(--border); background: rgba(255, 255, 255, .9); backdrop-filter: blur(8px);
	box-shadow: var(--shadow); font-size: 12px; line-height: 16px; color: var(--muted);
}
.d-chip strong { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--text); }
.d-chip i { font-size: 32px; color: var(--blue); }
.d-chip-a { top: 16%; left: 0; }
.d-chip-b { bottom: 12%; right: 0; }

.d-stats {
	display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 64px;
	padding: 32px; border-radius: 24px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
}
.d-stats li { display: flex; flex-direction: column; gap: 4px; }
.d-stats strong { color: var(--blue); }

@media (max-width: 900px) {
	.d-hero { padding-top: 128px; }
	.d-hero-grid { grid-template-columns: 1fr; }
	.d-hero-visual { max-width: 440px; margin-inline: auto; width: 100%; }
	.d-stats { grid-template-columns: repeat(2, 1fr); padding: 24px; }
}
@media (max-width: 420px) { .d-chip { padding: 8px 12px; } .d-chip i { font-size: 24px; } }

/* ---------- Despre ---------- */
.d-about { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.d-about-media { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.d-about-tile {
	display: flex; flex-direction: column; justify-content: flex-end; gap: 12px; min-height: 160px; padding: 24px;
	border-radius: 24px; background: var(--bg-alt); border: 1px solid var(--border);
}
.d-about-tile i { font-size: 40px; color: var(--blue); }
.d-about-tile-lg { grid-column: 1 / -1; min-height: 220px; background: var(--blue); color: #fff; border-color: var(--blue); }
.d-about-tile-lg i { color: #fff; font-size: 56px; }
.d-about-copy .heading-2 { margin-bottom: 24px; }
.d-checks { display: grid; gap: 12px; margin-top: 32px; }
.d-checks li { display: flex; gap: 12px; align-items: flex-start; }
.d-checks i { font-size: 24px; color: var(--blue); flex: none; }
@media (max-width: 900px) { .d-about { grid-template-columns: 1fr; gap: 48px; } .d-about-copy { order: -1; } }

/* ---------- Servicii ---------- */
.d-card {
	padding: 32px; border-radius: 24px; background: var(--surface); border: 1px solid var(--border);
	transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s var(--ease);
}
.d-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--blue-light); }
.d-card-icon { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 24px; border-radius: 16px; background: var(--blue-soft); color: var(--blue); font-size: 32px; }
.d-card h3 { margin-bottom: 8px; }

/* ---------- Prețuri ---------- */
.d-prices { margin-top: 64px; padding: 48px; border-radius: 32px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.d-prices-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 32px; }
.d-prices-head p { max-width: 420px; }
.d-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 4px; margin-bottom: 24px; border-radius: 9999px; background: var(--bg-alt); scrollbar-width: none; }
.d-tabs::-webkit-scrollbar { display: none; }
.d-tab {
	flex: none; padding: 8px 16px; border: 0; border-radius: 9999px; background: transparent; cursor: pointer;
	font: 600 14px/20px var(--font); color: var(--muted); transition: background-color .3s var(--ease), color .3s var(--ease);
}
.d-tab:hover { color: var(--blue); }
.d-tab[aria-selected="true"] { background: var(--blue); color: #fff; }
.d-panel:not([hidden]) { animation: d-fade .5s var(--ease); }
@keyframes d-fade { from { opacity: 0; transform: translateY(8px); } }
.d-price-list li { display: flex; align-items: baseline; gap: 12px; padding: 16px 0; border-bottom: 1px dashed var(--border); }
.d-price-name { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.d-price-list strong { color: var(--blue); white-space: nowrap; }
.d-prices-foot { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-top: 32px; }
.d-prices-foot p { max-width: 520px; }
@media (max-width: 640px) {
	.d-prices { padding: 24px 16px; border-radius: 24px; }
	.d-prices-foot .d-btn { width: 100%; }
}

/* ---------- Tagline ---------- */
.d-tagline-card {
	position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; gap: 32px;
	padding: 96px 64px; border-radius: 32px; background: var(--blue); color: #fff; text-align: center;
}
/* Cercuri decorative (pete plate, nu gradient). */
.d-tagline-card::before, .d-tagline-card::after { content: ''; position: absolute; border-radius: 9999px; background: rgba(255, 255, 255, .06); pointer-events: none; }
.d-tagline-card::before { width: 420px; height: 420px; top: -180px; right: -120px; }
.d-tagline-card::after { width: 280px; height: 280px; bottom: -140px; left: -80px; }
.d-tagline-quote { font-size: 64px; color: var(--blue-light); line-height: 1; }
.d-eyebrow-inv { margin: 0; background: rgba(255, 255, 255, .14); color: #fff; }
.d-tagline-text { position: relative; max-width: 860px; }
.d-tagline-text .w { color: rgba(255, 255, 255, .3); transition: color .5s var(--ease); }
.d-tagline-text .w.is-on { color: #fff; }
.d-tagline-sign { display: flex; align-items: center; gap: 12px; text-align: left; }
.d-tagline-sign > span:last-child { display: flex; flex-direction: column; }
.d-tagline-sign .caption-2 { color: #cfe6f8; }
.d-sign-avatar { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 9999px; background: #fff; color: var(--blue); font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .d-tagline-text .w { color: #fff; } }
@media (max-width: 640px) { .d-tagline-card { padding: 64px 24px; border-radius: 24px; gap: 24px; } .d-tagline-quote { font-size: 48px; } }

/* ---------- Echipa ---------- */
.d-member { padding: 16px 16px 24px; border-radius: 24px; background: var(--surface); border: 1px solid var(--border); text-align: center; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.d-member:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.d-avatar { display: grid; place-items: center; aspect-ratio: 4 / 3; margin-bottom: 24px; border-radius: 8px; color: var(--blue); }
.d-avatar-0 { background: #e3f2fd; }
.d-avatar-1 { background: #dbeefa; }
.d-avatar-2 { background: #e8f4fc; }
.d-avatar-3 { background: #d6ebf9; }
.d-member h3 { margin-bottom: 4px; }
.d-role { color: var(--blue); margin-bottom: 8px; }

/* ---------- Recenzii ---------- */
.d-score { display: flex; align-items: center; gap: 16px; padding: 12px 24px; border-radius: 9999px; background: var(--bg-alt); border: 1px solid var(--border); }
.d-score > span { display: flex; flex-direction: column; }
.d-review { display: flex; flex-direction: column; gap: 16px; padding: 32px; border-radius: 24px; background: var(--bg-alt); border: 1px solid var(--border); }
.d-review blockquote { color: var(--text); flex: 1; }
.d-review figcaption { display: flex; align-items: center; gap: 12px; }
.d-review figcaption > span:last-child { display: flex; flex-direction: column; }
.d-review-avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 9999px; background: var(--blue); color: #fff; font-size: 14px; font-weight: 600; }

/* ---------- Contact ---------- */
.d-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.d-contact-copy .heading-2 { margin-bottom: 16px; }
.d-info { display: grid; gap: 16px; margin-top: 32px; }
.d-info li { display: flex; gap: 16px; align-items: center; }
.d-info i { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); color: var(--blue); font-size: 24px; }
.d-info li > span { display: flex; flex-direction: column; }
.d-info a { transition: color .3s var(--ease); }
.d-info a:hover { color: var(--blue); }
.d-hours { margin-top: 32px; padding: 24px; border-radius: 24px; background: var(--surface); border: 1px solid var(--border); }
.d-hours h3 { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.d-hours dl { display: grid; gap: 8px; }
.d-hours dl div { display: flex; justify-content: space-between; gap: 16px; }

.d-form { display: grid; gap: 16px; padding: 32px; border-radius: 32px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.d-form h3 { margin-bottom: 8px; }
.d-field { display: grid; gap: 8px; }
.d-field input, .d-field select, .d-field textarea {
	width: 100%; padding: 12px 16px; border-radius: 16px; border: 1px solid var(--border); background: var(--bg-alt);
	font: 400 16px/24px var(--font); color: var(--text); transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.d-field textarea { resize: vertical; }
.d-field input:focus, .d-field select:focus, .d-field textarea:focus { outline: none; border-color: var(--blue); background: #fff; }
.d-field.has-error input { border-color: var(--err); }
.d-error { color: var(--err); }
.d-form-note { text-align: center; }
.d-notice { padding: 12px 16px; border-radius: 16px; font-size: 14px; line-height: 20px; font-weight: 500; }
.d-notice-ok { background: #e7f6ee; color: var(--ok); }
.d-notice-err { background: #fdecea; color: var(--err); }
@media (max-width: 900px) { .d-contact { grid-template-columns: 1fr; gap: 48px; } }
@media (max-width: 640px) { .d-form { padding: 24px 16px; border-radius: 24px; } }

/* ---------- Footer ---------- */
.d-footer { padding: 48px 0 96px; background: var(--text); color: #fff; }
.d-footer .d-brand-mark { background: #fff; color: var(--blue); }
.d-footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.d-footer nav ul { display: flex; flex-wrap: wrap; gap: 24px; }
.d-footer .body-6 { color: #b9c8d8; transition: color .3s var(--ease); }
.d-footer .body-6:hover { color: #fff; }
.d-footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 32px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .12); }
.d-footer .caption-5, .d-footer-bottom { color: #8ea3b8; }

/* ---------- Bara admin WordPress (doar când ești logat) ---------- */
.admin-bar .d-header { top: 48px; }
@media (max-width: 782px) { .admin-bar .d-header { top: 62px; } }

/* ---------- Selector de limbă ---------- */
.d-lang { position: relative; z-index: 3; }
.d-lang-btn {
	display: inline-flex; align-items: center; gap: 4px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 9999px;
	background: var(--surface); color: var(--text); font: 600 14px/20px var(--font); cursor: pointer;
	transition: border-color .3s var(--ease), color .3s var(--ease);
}
.d-lang-btn i { font-size: 16px; }
.d-lang-btn:hover, .d-lang-btn[aria-expanded="true"] { border-color: var(--blue-light); color: var(--blue); }
.d-caret { transition: transform .5s var(--ease); }
.d-lang-btn[aria-expanded="true"] .d-caret { transform: rotate(180deg); }
.d-lang-list {
	position: absolute; top: calc(100% + 12px); right: 0; z-index: 5; min-width: 200px; padding: 8px;
	border-radius: 16px; border: 1px solid var(--border); background: #fff; box-shadow: 0 16px 40px rgba(13, 34, 56, .12);
	animation: d-pop .3s var(--ease);
}
@keyframes d-pop { from { opacity: 0; transform: translateY(-8px); } }
.d-lang-list a {
	display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 8px;
	font-size: 14px; line-height: 20px; font-weight: 500; transition: background-color .3s var(--ease), color .3s var(--ease);
}
.d-lang-list a:hover { background: var(--bg-alt); color: var(--blue); }
.d-lang-list a[aria-current] { color: var(--blue); }
.d-lang-list i { margin-left: auto; }
.d-lang-code { display: grid; place-items: center; width: 32px; height: 24px; border-radius: 4px; background: var(--blue-soft); color: var(--blue); font-size: 12px; font-weight: 600; }

/* ---------- Înapoi sus ---------- */
.d-to-top {
	position: fixed; right: 24px; bottom: 24px; z-index: 90; display: inline-flex; align-items: center; gap: 8px;
	padding: 12px 16px; border-radius: 9999px; background: var(--text); color: #fff; box-shadow: 0 12px 32px rgba(13, 34, 56, .25);
	font-size: 14px; line-height: 20px; font-weight: 600;
	opacity: 0; transform: translateY(16px); pointer-events: none;
	transition: opacity .3s var(--ease), transform .5s var(--ease), background-color .3s var(--ease);
}
.d-to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.d-to-top:hover { background: var(--blue); }
.d-to-top:active { transform: scale(.98); }
@media (max-width: 640px) { .d-to-top { right: 16px; bottom: 16px; } }

/* ---------- Reveal la scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(32px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	.js .reveal { transform: none; transition: opacity .3s linear; }
	.d-tooth { animation: none; }
}

/* ---------- Notă „site demo” ---------- */
.d-demo {
	position: fixed; left: 24px; bottom: 24px; z-index: 90; display: flex; align-items: center; gap: 8px;
	max-width: min(520px, calc(100% - 180px)); padding: 8px 16px 8px 12px; border-radius: 16px;
	background: #fff8e6; border: 1px solid #f5d98a; color: #6b4e00; box-shadow: 0 12px 32px rgba(13, 34, 56, .12);
	font-size: 12px; line-height: 16px; font-weight: 500;
}
.d-demo i { font-size: 20px; color: #c48a00; flex: none; }
.d-demo a { flex: none; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.d-demo a:hover { color: #3d2c00; }
.d-demo-short { display: none; }
@media (max-width: 760px) {
	.d-demo { left: 16px; bottom: 16px; max-width: calc(100% - 140px); }
	.d-demo-long { display: none; }
	.d-demo-short { display: inline; }
	.d-demo a { display: none; }
}
.d-footer-demo { flex-basis: 100%; color: #b9c8d8; }
