/* ==========================================================================
   Smalț – clinică stomatologică
   Porțelan, cerneală și coral de gingie; nuanțele de smalț (cheia de culori
   VITA A1–A3) apar în logo, pe dinți și la avatarurile echipei.
   ========================================================================== */

:root {
	--sm-ink: #1C2B2A;
	--sm-ink-deep: #122019;
	--sm-text: #3B4745;
	--sm-muted: #5E6A68;
	--sm-coral: #C24E33;
	--sm-coral-dark: #A63F27;
	--sm-coral-soft: #F8E1D8;
	--sm-porcelain: #F7F5F0;
	--sm-white: #FFFFFF;
	--sm-mint: #D6EDE2;
	--sm-mint-dark: #2F6B55;
	--sm-line: #E3DFD6;
	--sm-a1: #F3EBDD;
	--sm-a2: #EBDDC4;
	--sm-a3: #E2CFAE;
	--sm-a35: #D6BE96;

	--sm-serif: "Instrument Serif", Georgia, serif;
	--sm-sans: "Onest", system-ui, sans-serif;
}

body {
	background: var(--sm-porcelain);
	color: var(--sm-text);
	font-family: var(--sm-sans);
	font-size: 1.0625rem;
	line-height: 1.6;
}

h1, h2, h3, h4 {
	font-family: var(--sm-serif);
	font-weight: 400;
	color: var(--sm-ink);
	line-height: 1.05;
	letter-spacing: -0.01em;
	text-wrap: balance;
}
h1 { font-size: clamp(2.8rem, 1.6rem + 4.4vw, 5.4rem); }
h2 { font-size: clamp(2.1rem, 1.4rem + 2.4vw, 3.4rem); }
h3 { font-size: 1.6rem; }
h1 em, h2 em { color: var(--sm-coral); }

p { max-width: 62ch; }
a { color: var(--sm-ink); text-decoration-color: var(--sm-coral); text-underline-offset: 0.2em; }
a:hover { color: var(--sm-coral); }
:focus-visible { outline: 3px solid var(--sm-coral); outline-offset: 3px; }

.elementor-button { border-radius: 10px; font-weight: 600; }
.sm-btn-line .elementor-button { background: transparent; color: var(--sm-ink); box-shadow: inset 0 0 0 2px currentColor; }
.sm-btn-line .elementor-button:hover { background: var(--sm-white); color: var(--sm-ink); }

/* ---------- Logo: cheia de nuanțe ---------- */

.sm-logo {
	display: inline-flex;
	align-items: flex-end;
	gap: 0.6rem;
	color: var(--sm-ink);
	font-family: var(--sm-serif);
	font-size: 1.9rem;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
}
.sm-logo:hover { color: var(--sm-ink); }
.sm-logo__tabs { display: inline-flex; gap: 3px; padding-bottom: 0.15em; }
.sm-logo__tabs i { width: 7px; height: 20px; border-radius: 4px 4px 2px 2px; background: var(--sm-a1); box-shadow: inset 0 0 0 1px rgba(28, 43, 42, 0.18); }
.sm-logo__tabs i:nth-child(2) { height: 23px; background: var(--sm-a2); }
.sm-logo__tabs i:nth-child(3) { height: 26px; background: var(--sm-a3); }
.sm-logo__tabs i:nth-child(4) { height: 23px; background: var(--sm-coral); box-shadow: none; }
.sm-dark .sm-logo, .sm-dark .sm-logo:hover { color: #fff; }

/* ---------- Deschis acum ---------- */

.sm-open { display: inline-flex; align-items: center; gap: 0.55rem; margin: 0; padding: 0.4rem 0.9rem; border-radius: 99px; background: var(--sm-white); box-shadow: inset 0 0 0 1px var(--sm-line); font-size: 0.9rem; font-weight: 500; color: var(--sm-ink); max-width: none; }
.sm-open__dot { flex: none; width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--sm-muted); }
.sm-open.is-open .sm-open__dot { background: #2E9A6B; box-shadow: 0 0 0 4px rgba(46, 154, 107, 0.18); }

/* ---------- Schema dinților ---------- */

.sm-arch {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 2rem;
	padding: 1.6rem;
	border-radius: 24px;
	background: var(--sm-white);
	box-shadow: 0 1px 0 var(--sm-line), 0 24px 60px -30px rgba(28, 43, 42, 0.35);
}
.sm-arch__chart { display: flex; flex-direction: column; align-items: center; }
.sm-arch__hint { margin: 0 0 0.4rem; font-size: 0.9rem; color: var(--sm-muted); text-align: center; }
.sm-arch__svg { width: 100%; max-width: 440px; }
.sm-teeth { display: block; width: 100%; height: auto; }
.sm-teeth__jaw { font: italic 26px var(--sm-serif); fill: #B9B2A4; }
.sm-teeth__sides { display: flex; justify-content: space-between; margin: 0.2rem 0 0; font-size: 0.8rem; color: var(--sm-muted); max-width: none; }

.sm-tooth { cursor: pointer; outline: none; }
.sm-tooth rect { fill: var(--sm-a1); stroke: #CDBFA6; stroke-width: 1.5; transition: fill 0.15s, stroke 0.15s; }
.sm-tooth--premolar rect { fill: var(--sm-a2); }
.sm-tooth--molar rect, .sm-tooth--minte rect { fill: var(--sm-a3); }
.sm-tooth__num { font: 600 11px var(--sm-sans); fill: var(--sm-muted); pointer-events: none; }
.sm-tooth:hover rect { fill: var(--sm-mint); stroke: var(--sm-mint-dark); }
.sm-tooth:focus-visible rect { stroke: var(--sm-coral); stroke-width: 3; }
.sm-tooth[aria-pressed="true"] rect { fill: var(--sm-coral); stroke: var(--sm-coral-dark); }
.sm-tooth[aria-pressed="true"] .sm-tooth__num { fill: var(--sm-coral); font-size: 13px; }

.sm-arch__panel { display: flex; flex-direction: column; gap: 1rem; }
.sm-arch__tooth { margin: 0; color: var(--sm-muted); }
.sm-arch__tooth strong { display: block; font: 400 2.3rem/1.05 var(--sm-serif); color: var(--sm-ink); }
.sm-arch__panel.is-empty .sm-arch__symptoms { display: none; }
.sm-arch__symptoms { margin: 0; padding: 0; border: 0; }
.sm-arch__symptoms legend { margin-bottom: 0.5rem; font-weight: 600; color: var(--sm-ink); }
.sm-arch__symptoms > div { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.sm-symptom {
	padding: 0.5rem 0.85rem;
	border: 1.5px solid var(--sm-line);
	border-radius: 10px;
	background: var(--sm-porcelain);
	color: var(--sm-ink);
	font: 500 0.92rem var(--sm-sans);
	text-align: left;
	cursor: pointer;
}
.sm-symptom:hover { border-color: var(--sm-ink); background: var(--sm-white); color: var(--sm-ink); }
.sm-symptom[aria-pressed="true"] { border-color: var(--sm-ink); background: var(--sm-ink); color: #fff; }

.sm-result[hidden] { display: none; }
.sm-result { padding: 1.2rem 1.3rem; border-radius: 16px; background: var(--sm-porcelain); }
.sm-result h3 { margin: 0.9rem 0 0.15rem; font: 600 0.8rem var(--sm-sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--sm-muted); }
.sm-result p { margin: 0; }
.sm-result__when { display: inline-block; padding: 0.3rem 0.75rem; border-radius: 8px; font-weight: 600; font-size: 0.92rem; background: var(--sm-mint); color: var(--sm-mint-dark); }
.sm-result__when--2 { background: #FBEBC7; color: #7A5410; }
.sm-result__when--3 { background: var(--sm-coral-soft); color: var(--sm-coral-dark); }
.sm-result__price { font: 400 2rem/1.1 var(--sm-serif); color: var(--sm-ink); }
.sm-result__cta, .sm-calm__cta, .sm-plan__cta {
	display: inline-block;
	margin-top: 1rem;
	padding: 0.8rem 1.3rem;
	border-radius: 10px;
	background: var(--sm-coral);
	color: #fff;
	font-weight: 600;
	text-decoration: none;
}
.sm-result__cta:hover, .sm-calm__cta:hover, .sm-plan__cta:hover { background: var(--sm-coral-dark); color: #fff; }
.sm-result__note { margin-top: 0.9rem !important; font-size: 0.82rem; color: var(--sm-muted); }

/* ---------- Prețuri ---------- */

.sm-prices { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 2.5rem; align-items: start; }
.sm-prices__group { margin-bottom: 2.4rem; }
.sm-prices__group h3 { margin: 0 0 0.4rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--sm-ink); }
.sm-prices ul { margin: 0; padding: 0; list-style: none; }
.sm-price { display: grid; grid-template-columns: auto 1fr auto; gap: 0.9rem; align-items: start; padding: 0.95rem 0; border-bottom: 1px solid var(--sm-line); }
.sm-price input { width: 1.2rem; height: 1.2rem; margin-top: 0.2rem; accent-color: var(--sm-coral); cursor: pointer; }
.sm-price label { cursor: pointer; }
.sm-price__name { display: block; font-weight: 600; color: var(--sm-ink); }
.sm-price__detail { display: block; font-size: 0.92rem; color: var(--sm-muted); }
.sm-price__value { font-weight: 700; color: var(--sm-ink); white-space: nowrap; }
.sm-price__value small { font-weight: 500; color: var(--sm-muted); }
.sm-price:has(input:checked) { background: linear-gradient(90deg, var(--sm-coral-soft), transparent 70%); }

.sm-plan { position: sticky; top: 1.5rem; padding: 1.5rem; border-radius: 20px; background: var(--sm-ink); color: #DCE5E2; }
.sm-plan p { margin: 0; }
.sm-plan__title { font: 400 1.9rem var(--sm-serif); color: #fff; margin-bottom: 0.6rem !important; }
.sm-plan__empty { font-size: 0.95rem; }
.sm-plan__empty[hidden], .sm-plan__total[hidden], .sm-plan__rates[hidden], .sm-plan__cta[hidden] { display: none; }
.sm-plan__items { margin: 0; padding: 0; list-style: none; font-size: 0.92rem; }
.sm-plan__items li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.4rem 0; border-bottom: 1px solid #34453F; }
.sm-plan__items li span:last-child { white-space: nowrap; }
.sm-plan__total { margin-top: 0.9rem !important; font: 400 1.7rem/1.15 var(--sm-serif); color: #fff; }
.sm-plan__rates { font-size: 0.9rem; color: var(--sm-a2); }

/* ---------- Emoții ---------- */

.sm-calm { padding: 1.8rem; border-radius: 24px; background: var(--sm-white); box-shadow: inset 0 0 0 1px var(--sm-line); }
.sm-calm fieldset { margin: 0; padding: 0; border: 0; }
.sm-calm legend { margin-bottom: 0.9rem; font: 400 1.9rem/1.1 var(--sm-serif); color: var(--sm-ink); }
.sm-calm__options { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.sm-calm__options label { display: flex; align-items: center; gap: 0.5rem; padding: 0.6rem 1rem; border: 1.5px solid var(--sm-line); border-radius: 10px; background: var(--sm-porcelain); font-weight: 500; color: var(--sm-ink); cursor: pointer; }
.sm-calm__options label:has(input:checked) { border-color: var(--sm-ink); background: var(--sm-mint); }
.sm-calm__options input { accent-color: var(--sm-coral); }
.sm-calm__answer[hidden] { display: none; }
.sm-calm__answer { margin-top: 1.3rem; }
.sm-calm__answer p { margin: 0 0 0.6rem; font-weight: 600; color: var(--sm-ink); }
.sm-calm__answer ul, .sm-list { margin: 0; padding: 0; list-style: none; }
.sm-calm__answer li, .sm-list li { position: relative; padding: 0.35rem 0 0.35rem 1.6rem; }
.sm-calm__answer li::before, .sm-list li::before { content: ""; position: absolute; left: 0; top: 0.85em; width: 0.8rem; height: 0.45rem; border-radius: 3px 3px 1px 1px; background: var(--sm-coral); }

/* ---------- Prima vizită, minut cu minut ---------- */

.sm-steps { margin: 0; padding: 0; list-style: none; counter-reset: none; }
.sm-steps li { display: grid; grid-template-columns: 4.5rem 1fr; gap: 1.2rem; padding: 1.1rem 0; border-top: 1px solid var(--sm-line); }
.sm-steps li:last-child { border-bottom: 1px solid var(--sm-line); }
.sm-steps__min { font: 400 2.2rem/1 var(--sm-serif); color: var(--sm-coral); }
.sm-steps h3 { margin: 0 0 0.2rem; font-size: 1.5rem; }
.sm-steps p { margin: 0; }

/* ---------- Echipa ---------- */

.sm-team { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.2rem; margin: 0; padding: 0; list-style: none; }
.sm-member { display: flex; gap: 1rem; padding: 1.4rem; border-radius: 20px; background: var(--sm-white); box-shadow: inset 0 0 0 1px var(--sm-line); }
.sm-member__avatar { flex: none; display: grid; place-items: center; width: 4rem; height: 4.8rem; border-radius: 2rem 2rem 1.2rem 1.2rem; background: var(--shade); box-shadow: inset 0 0 0 1px rgba(28, 43, 42, 0.12); font: 400 1.6rem var(--sm-serif); color: var(--sm-ink); }
.sm-member h3 { margin: 0; font-size: 1.6rem; }
.sm-member__role { margin: 0.1rem 0 0.5rem; font-weight: 600; color: var(--sm-coral); font-size: 0.92rem; }
.sm-member p:last-child { margin: 0; font-size: 0.95rem; }

/* ---------- Cartonașe și note ---------- */

.sm-card { padding: 1.5rem; border-radius: 20px; background: var(--sm-white); box-shadow: inset 0 0 0 1px var(--sm-line); }
.sm-card h3 { margin: 0 0 0.4rem; }
.sm-card p { margin: 0; }
.sm-msg { display: grid; gap: 0.6rem; }
.sm-msg__bubble { max-width: 34ch; padding: 0.8rem 1rem; border-radius: 16px 16px 16px 4px; background: var(--sm-mint); color: var(--sm-ink); font-size: 0.95rem; }
.sm-msg__bubble small { display: block; margin-bottom: 0.2rem; color: var(--sm-mint-dark); font-weight: 600; }

/* ---------- Formular ---------- */

.sm-form { border-radius: 24px; background: var(--sm-white); box-shadow: inset 0 0 0 1px var(--sm-line); }
.sm-form .elementor-field-group .elementor-field-textual,
.sm-form .elementor-field-group select { border: 1.5px solid var(--sm-line); border-radius: 10px; background: var(--sm-porcelain); }
.sm-form .elementor-field-group .elementor-field-textual:focus,
.sm-form .elementor-field-group select:focus { border-color: var(--sm-ink); box-shadow: none; }
.sm-form .elementor-field-type-acceptance label { font-size: 0.9rem; }

/* ---------- Secțiunea închisă ---------- */

.sm-dark { color: #CFDAD6; }
.sm-dark h1, .sm-dark h2, .sm-dark h3, .sm-dark h4, .sm-dark .elementor-heading-title { color: #fff; }
.sm-dark .elementor-widget-text-editor { color: #CFDAD6; }
.sm-dark a:not(.elementor-button) { color: #fff; }
.sm-footer p { margin-bottom: 0.3em; }

@media (max-width: 900px) {
	.sm-arch, .sm-prices { grid-template-columns: 1fr; }
	.sm-plan { position: static; }
}
@media (max-width: 767px) {
	.sm-arch { padding: 1rem; border-radius: 18px; }
	.sm-steps li { grid-template-columns: 3.4rem 1fr; gap: 0.8rem; }
	.sm-steps__min { font-size: 1.8rem; }
}

/* Prețurile de pe prima pagină */
.sm-home-prices { font-size: 1.05rem !important; }
.sm-home-prices li { padding: 0.85rem 0 !important; border-bottom-color: var(--sm-line) !important; color: var(--sm-ink); }
.sm-home-prices li span:last-child { font-weight: 700; }

/* Pașii din dreapta schemei, cât timp nu e ales niciun dinte */
.sm-arch__how { margin: 0.6rem 0 0; padding: 0; list-style: none; counter-reset: how; }
.sm-arch__how li { position: relative; padding: 1rem 0 1rem 3.2rem; border-top: 1px solid var(--sm-line); counter-increment: how; color: var(--sm-muted); }
.sm-arch__how li::before { content: counter(how); position: absolute; left: 0; top: 0.75rem; font: 400 2.2rem/1 var(--sm-serif); color: var(--sm-coral); }
.sm-arch__how strong { display: block; color: var(--sm-ink); }
.sm-arch__panel:not(.is-empty) .sm-arch__how { display: none; }
.sm-price label { line-height: 1.4; }
.sm-price__detail { margin-top: 0.15rem; }
