/* Așezarea copiată 1:1 după santarosadentalsuite.com (desktop 1440): antet 120px, erou 780px,
   secțiuni 50/50 de 660-860px despărțite de linii de 1px, card de citat cu umbră decalată, contact cu hartă, subsol în grilă.
   Marca, culorile, litera și textele sunt ale clinicii Reper. */
:root {
  --noapte: #14204a;
  --noapte-2: #0d1636;
  --semnal: #ff5a1f;
  --hartie: #f7f6f2;
  --cer: #dfe5f3;
  --cerneala: #10162e;
  --gri: #4d556f;
  --alb: #ffffff;
  --fir: 1px solid #10162e;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--hartie); color: var(--cerneala); font: 400 17px/1.65 "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif; padding-bottom: 72px; }
h1, h2, h3, p, ul, ol, figure, blockquote, table { margin: 0; }
h1, h2 { font-weight: 500; font-stretch: 112%; letter-spacing: -0.02em; line-height: 1.12; }
h1 { font-size: clamp(34px, 10vw, 44px); overflow-wrap: break-word; }
h2 { font-size: 26px; }
h3 { font-size: 17px; font-weight: 700; }
img { display: block; width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--noapte); outline-offset: 3px; }
:is(.erou, .split-color, .split-inchis, .bara-wa) :focus-visible, .bara-wa:focus-visible { outline-color: var(--alb); }
[id] { scroll-margin-top: 88px; }
p + p { margin-top: 16px; }
.mic { max-width: 34em; font-size: 16px; color: var(--gri); margin-top: 12px; }

/* antet: meniu stânga, marca la centru, două acțiuni în dreapta */
.cap { position: sticky; top: 0; z-index: 50; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 72px; padding: 0 12px; border-bottom: var(--fir); background: var(--hartie); transition: box-shadow .25s ease; }
.cap.derulat { box-shadow: 0 8px 24px rgba(16, 22, 46, .12); }
.cerc { display: grid; place-items: center; width: 44px; height: 44px; border: var(--fir); border-radius: 50%; flex: none; }
.cerc svg { width: 18px; height: 18px; fill: none; stroke: var(--cerneala); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.cap-actiuni .cerc svg { fill: var(--cerneala); stroke: none; }
.cap-text { display: none; font-size: 16px; letter-spacing: .12em; text-transform: uppercase; }
.cap-meniu { justify-self: start; }
.cap-meniu summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; min-height: 44px; }
.cap-meniu summary::-webkit-details-marker { display: none; }
.cap-meniu nav { position: absolute; left: 0; top: 100%; z-index: 30; display: grid; gap: 8px; width: min(360px, 100vw); padding: 12px; background: var(--hartie); border: var(--fir); }
.cap-meniu[open] nav { animation: intra .2s ease-out; }
@keyframes intra { from { opacity: 0; transform: translateY(-6px); } }
.cap-meniu nav a { padding: 12px; text-decoration: none; border-bottom: 1px solid #d5d8e2; }
.cap-meniu nav a:last-child { border-bottom: 0; }
.cap-meniu nav a[aria-current] { color: var(--noapte); text-decoration: underline; text-decoration-color: var(--semnal); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.marca { display: flex; align-items: center; min-height: 44px; gap: 12px; text-decoration: none; justify-self: center; }
.marca img { width: 30px; }
.marca-text { display: grid; line-height: 1.1; }
.marca-nume { font-size: 17px; font-weight: 700; font-stretch: 125%; letter-spacing: .14em; text-transform: uppercase; color: var(--noapte); }
.marca-sub { display: none; font-size: 16px; color: var(--gri); }
.cap-actiuni { display: none; justify-content: flex-end; gap: 8px; }
.cap-actiuni a { display: flex; align-items: center; gap: 12px; text-decoration: none; }

/* erou: poză pe toată lățimea, titlu centrat jos */
.erou { position: relative; display: grid; border-bottom: var(--fir); }
.erou-foto { grid-area: 1 / 1; height: 520px; overflow: hidden; background: var(--noapte); }
.erou-foto img { height: 100%; object-fit: cover; object-position: 50% 35%; }
.erou-foto::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 100%; background: linear-gradient(to top, rgba(10, 14, 32, .92) 0%, rgba(10, 14, 32, .72) 55%, rgba(10, 14, 32, .35) 100%); pointer-events: none; }
.erou-text { grid-area: 1 / 1; align-self: end; position: relative; z-index: 1; padding: 0 20px 32px; text-align: center; color: var(--alb); }
.erou-text h1 { max-width: 16ch; margin: 0 auto; }
.erou-text p { margin: 12px auto 0; max-width: 60ch; color: #e6e9f4; }
.erou-text a { color: inherit; }
.erou-text .buton-plin { color: var(--cerneala); }
.erou-fara-foto { background: var(--noapte); }
.erou-fara-foto .erou-text { padding-top: 64px; padding-bottom: 64px; }
.actiuni { display: grid; gap: 12px; margin-top: 24px; }
.buton { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 12px 24px; font-weight: 700; text-decoration: none; border-radius: 2px; transition: background-color .15s ease; }
.buton-plin { background: var(--semnal); color: var(--cerneala); }
.buton-contur { border: 1px solid rgba(255, 255, 255, .85); color: var(--alb); }

/* secțiunile 50/50 */
.split { display: grid; border-bottom: var(--fir); }
.split-text { display: flex; align-items: center; }
.split-interior { width: 100%; padding: 48px 20px; }
.split-interior h2 + p, .split-interior h2 + .pasi, .split-interior h2 + .intrebari, .split-interior h2 + .preturi { margin-top: 20px; }
.split-foto { overflow: hidden; background: var(--cer); }
.split-foto img { height: 100%; object-fit: cover; }
.split-deschis .split-foto, .split-incadrat .split-foto { margin: 0 20px 40px; border: var(--fir); aspect-ratio: 4 / 5; }
.split-incadrat .split-foto { margin: 40px 20px 0; }
.split-color { background: var(--noapte); color: var(--alb); }
.split-inchis { background: var(--noapte-2); color: var(--alb); }
.split-color .split-foto, .split-inchis .split-foto { aspect-ratio: 4 / 3; }
.split-color .mic, .split-inchis .mic { color: #b9c4e6; }
.h2-urm { margin-top: 40px; }
.link { display: flex; align-items: center; min-height: 44px; width: fit-content; min-width: 220px; margin-top: 32px; padding-top: 12px; border-top: 1px solid currentColor; font-weight: 700; text-decoration: none; }
.link + .link { margin-top: 16px; }

.pasi { padding-left: 24px; display: grid; gap: 12px; }
.pasi li::marker { font-weight: 700; color: #b8400f; }
.split-color .pasi li::marker, .split-inchis .pasi li::marker { color: var(--semnal); }
.programare input::placeholder { color: #5a6178; opacity: 1; }
:is(.split-color, .split-inchis) .programare input::placeholder { color: #c3cbe4; }
.loc-gol-lat { border: 1px dashed #9aa3bf; padding: 32px; }
.gol-desen { display: block; width: 96px; height: 72px; margin-bottom: 16px; fill: none; stroke: #9aa3bf; stroke-width: 2; stroke-linecap: round; }
@media (max-width: 400px) { .loc-gol, .loc-gol-lat { padding: 16px; } }
.erou-text p, .split-lat p, .loc-gol-lat p { max-width: 540px; }
.semn-404 { width: 64px; margin: 0 auto 24px; }
.intrebari { display: grid; gap: 16px; }
.intrebari { gap: 0; border-top: 1px solid #c9cfe0; }
.intrebare { border-bottom: 1px solid #c9cfe0; }
.intrebare summary { margin: 4px 0; list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 56px; padding: 8px 0; }
.intrebare summary::-webkit-details-marker { display: none; }
.intrebare summary::after { content: ""; flex: none; width: 12px; height: 12px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); transition: transform .2s ease; }
.intrebare[open] summary::after { transform: translateY(3px) rotate(-135deg); }
.intrebare p { margin: 0 0 16px; color: var(--gri); }
.intrebare[open] p { animation: intra .2s ease-out; }
.loc-gol { border: 1px dashed #9aa3bf; margin: 20px; width: auto; color: var(--gri); }
.loc-gol h2 { color: var(--cerneala); }

/* formular */
.programare { display: grid; gap: 16px; }
.programare h2 { font-size: 26px; }
.programare label { display: grid; gap: 8px; font-weight: 700; }
.programare input, .programare select { font: inherit; min-height: 50px; padding: 12px 0; border: 0; border-bottom: 1px solid currentColor; background: transparent; color: inherit; border-radius: 0; }
.programare select option { color: var(--cerneala); }
.programare input:focus, .programare select:focus { border-bottom-width: 2px; }
.programare input:focus:not(:focus-visible), .programare select:focus:not(:focus-visible) { outline: 0; }
.programare input[aria-invalid] { border-bottom: 2px solid #c2361b; }
:is(.split-color, .split-inchis) .programare input[aria-invalid] { border-bottom-color: #ff8a6a; }
.programare button { font: inherit; font-weight: 700; min-height: 54px; margin-top: 8px; border: 0; border-radius: 2px; background: var(--semnal); color: var(--cerneala); cursor: pointer; }
.eroare { color: #c2361b; font-weight: 700; margin: 0; }
.eroare-sumar { padding: 12px 16px; border-left: 4px solid #c2361b; background: #fff; }
.eroare-sumar a { color: #c2361b; font-weight: 700; }
.eroare-sumar[hidden] { display: none; }
.split-color .eroare, .split-inchis .eroare { color: #ffb59c; }
.eroare[hidden] { display: none; }
.split-form { border-top: var(--fir); }
.split-color .split-form { border-color: rgba(255, 255, 255, .3); }

/* citatul, card cu umbră decalată */
.citat { padding: 56px 20px; border-bottom: var(--fir); }
.citat-card { position: relative; max-width: 620px; margin: 0 auto; padding: 40px 32px; background: var(--hartie); border: var(--fir); box-shadow: -24px 24px 0 var(--cer); }
.citat-card blockquote p { font-size: 26px; font-weight: 500; font-stretch: 112%; line-height: 1.2; letter-spacing: -0.01em; }
.citat-card figcaption { margin-top: 20px; color: var(--gri); }

/* contact: harta pe o jumătate */
.harta { position: relative; min-height: 340px; background: var(--cer); }
.harta-asteapta { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; text-align: center; color: var(--gri); }
.harta iframe { position: relative; }
.harta.in-focus { outline: 3px solid var(--noapte); outline-offset: -3px; }
.harta iframe { display: block; width: 100%; height: 100%; min-height: 340px; border: 0; }
@media (hover: none) { .harta iframe { pointer-events: none; } }
.azi { margin-top: 16px; font-weight: 700; }
.azi[hidden] { display: none; }
.sapt { list-style: none; padding: 0; margin-top: 12px; max-width: 360px; }
.sapt li { display: flex; justify-content: space-between; padding: 8px 0; }
.sapt li.e-azi { font-weight: 700; color: var(--noapte); text-decoration: underline; text-decoration-color: var(--semnal); text-decoration-thickness: 3px; text-underline-offset: 5px; }

/* prețuri */
.preturi { width: 100%; border-collapse: collapse; table-layout: fixed; overflow-wrap: anywhere; }
.preturi th, .preturi td { padding: 16px 0; text-align: left; vertical-align: top; border-bottom: 1px solid #c9cfe0; }
.preturi thead th { border-bottom: var(--fir); }
.preturi td { text-align: right; width: 42%; }
.preturi tr { position: relative; }
.preturi a { display: inline-flex; align-items: center; min-height: 44px; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.preturi a::after { content: ""; position: absolute; inset: 5px 0; }
@media (max-width: 600px) { .preturi, .preturi tbody, .preturi tr, .preturi th, .preturi td { display: block; } .preturi td { width: auto; text-align: left; padding-top: 0; } .preturi th { border-bottom: 0; } .preturi thead { display: none; } }
.pret-detaliu { display: block; font-weight: 400; color: var(--gri); }
.de-completat { color: var(--gri); font-style: italic; }
.split-lat { grid-column: 1 / -1; }
.split-lat .split-interior { max-width: 900px; margin: 0 auto; }

/* subsol în grilă cu linii */
.subsol { display: grid; font-size: 16px; }
.subsol-celula { padding: 32px 20px; border-bottom: var(--fir); }
.subsol-celula p + p { margin-top: 12px; }
.subsol-celula a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; margin-bottom: 8px; }
.subsol-marca { display: flex; align-items: center; justify-content: center; gap: 12px; }
.subsol-marca img { width: 30px; }
.subsol-marca span { font-size: 17px; font-weight: 700; font-stretch: 125%; letter-spacing: .14em; text-transform: uppercase; color: var(--noapte); }
.concept { font-size: 17px; font-weight: 700; color: var(--noapte); }

/* bara de jos pe telefon */
.bara { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px 12px max(8px, env(safe-area-inset-bottom)); background: var(--hartie); border-top: var(--fir); transition: transform .28s ease-out; }
.bara.ascunsa { transform: translateY(110%); transition: transform .18s ease-in; }
.bara a { display: flex; align-items: center; justify-content: center; min-height: 50px; border-radius: 2px; font-weight: 700; text-decoration: none; }
.bara-suna { background: var(--semnal); color: var(--cerneala); }
.bara-wa { background: var(--noapte); color: var(--alb); }

@media (min-width: 900px) {
  body { padding-bottom: 0; }
  h1 { font-size: 72px; }
  h2, .programare h2, .citat-card blockquote p { font-size: 48px; }
  .cap { min-height: 120px; padding: 0 20px; }
  [id] { scroll-margin-top: 136px; }
  .cap-actiuni { display: flex; }
  .cap-text { display: inline; }
  .cap-actiuni { gap: 40px; }
  .marca img { width: 38px; }
  .marca-sub { display: block; }
  .erou-foto::after { height: 85%; background: linear-gradient(to top, rgba(10, 14, 32, .9) 0%, rgba(10, 14, 32, .7) 45%, rgba(10, 14, 32, 0) 100%); }
  .actiuni { display: flex; justify-content: center; flex-wrap: wrap; }

  .erou-foto { height: 780px; }
  .erou-text { padding-bottom: 72px; }
  .erou-fara-foto .erou-text { padding: 120px 20px; }

  .split { grid-template-columns: 1fr 1fr; min-height: 760px; }
  .split-interior { max-width: 640px; padding: 88px 48px 88px clamp(40px, 9vw, 140px); }
  .split-deschis .split-foto { margin: 88px 100px 88px 0; aspect-ratio: auto; }
  .split-incadrat .split-foto { margin: 88px 0 88px 100px; aspect-ratio: auto; }
  .split-color .split-foto, .split-inchis .split-foto { aspect-ratio: auto; }
  .split-color .split-foto { border-right: var(--fir); }
  .split-inchis .split-foto { border-left: var(--fir); }
  .split-form { border-top: 0; border-left: var(--fir); }
  .split-color .split-form { border-color: rgba(255, 255, 255, .3); }
  .split-formular { min-height: 0; }
  .loc-gol { margin: 88px 64px 88px 140px; padding: 48px; }
  .split-lat .split-interior { padding: 88px 20px; }

  .citat { padding: 100px 20px; }
  .citat-card { padding: 64px 96px; box-shadow: -60px 40px 0 var(--cer); }
  .harta, .harta iframe { min-height: 760px; }
  .split-contact .harta { border-right: var(--fir); }

  .subsol { grid-template-columns: .8fr 1fr 1fr .9fr 1.4fr; }
  .subsol-celula { padding: 40px 32px; border-bottom: 0; border-right: var(--fir); }
  .subsol-celula:last-child { border-right: 0; }
  .bara { display: none; }
}

/* interacțiuni: umplerea butonului de jos în sus și linia de deasupra linkului, după santarosadentalsuite.com
   (măsurat cu bin/interactiuni.mjs, 2026-10-19); apăsarea, focusul și antetul la derulare din skills/design/interactiuni.md */
::selection { background: var(--semnal); color: var(--cerneala); }
input, select { caret-color: var(--semnal); }
.buton, .programare button { position: relative; isolation: isolate; overflow: hidden; transition: color .3s ease, transform .08s ease; }
.buton::before, .programare button::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--noapte); transform: scaleY(0); transform-origin: bottom; transition: transform .35s cubic-bezier(.2, .7, .2, 1); }
.buton-contur::before { background: var(--alb); }
:is(.erou, .split-color, .split-inchis) :is(.buton-plin, .programare button)::before { background: var(--alb); }
.buton:active, .programare button:active, .bara a:active { transform: translateY(1px) scale(.985); }
.link { position: relative; transition: color .2s ease; }
.link::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 3px; background: var(--semnal); transform: scaleX(0); transform-origin: left; transition: transform .35s cubic-bezier(.2, .7, .2, 1); }
.cerc { transition: background-color .2s ease; }
.cerc svg { transition: fill .2s ease, stroke .2s ease; }
.marca { transition: opacity .2s ease; }
.cap-meniu nav a { transition: padding-left .2s ease, background-color .2s ease; }
.subsol-celula a, main a:not([class]) { text-decoration-thickness: 1px; text-underline-offset: 4px; transition: text-decoration-color .2s ease, text-underline-offset .2s ease; }
.programare input, .programare select { transition: border-color .2s ease; }
.programare input[aria-invalid] { animation: tremur .3s ease; }
@keyframes tremur { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }
.programare button[aria-busy] { cursor: progress; }
@media (hover: hover) {
  .intrebare summary { transition: color .2s ease; }
  .intrebare summary:hover { color: var(--noapte); text-decoration: underline; text-decoration-color: var(--semnal); text-decoration-thickness: 2px; text-underline-offset: 5px; }
  .buton:hover::before, .programare button:hover::before { transform: scaleY(1); }
  .buton-plin:hover, .programare button:hover { color: var(--alb); }
  .buton-contur:hover, :is(.erou, .split-color, .split-inchis) :is(.buton-plin, .programare button):hover { color: var(--cerneala); }
  .link:hover::before { transform: scaleX(1); }
  .cap-meniu summary:hover .cerc, .cap-actiuni a:hover .cerc { background: var(--noapte); }
  .cap-meniu summary:hover .cerc svg { stroke: var(--alb); }
  .cap-actiuni a:hover .cerc svg { fill: var(--alb); }
  .marca:hover { opacity: .75; }
  .cap-meniu nav a:hover { padding-left: 16px; background: var(--cer); }
  .subsol-celula a:hover, main a:not([class]):hover { text-decoration-color: var(--semnal); text-decoration-thickness: 2px; text-underline-offset: 6px; }
  .programare input:hover, .programare select:hover { border-bottom-color: var(--semnal); }
}

@media (max-width: 599px) { main p, main .mic, .erou-text p, .split-lat p, .loc-gol-lat p { max-width: 20em; } }
@media (max-width: 360px) { .pasi { padding-left: 20px; } .split-interior { padding-left: 16px; padding-right: 16px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
