/* ============================================================
   IMPLANTODENT — Excelența în implantologia dentară
   Design system: travertine editorial × private-hospital caliber
   ============================================================ */

/* Self-hosted Manrope (variable) — site-wide primary typeface */
@font-face {
  font-family: "Manrope";
  /* WOFF2 (53KB) înaintea TTF (163KB) — browserele iau primul format pe care
     îl înțeleg, deci TTF rămâne doar ca plasă de siguranță */
  src: url("../assets/fonts/Manrope-Variable.woff2") format("woff2-variations"),
       url("../assets/fonts/Manrope-Variable.ttf") format("truetype-variations");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper:   #ECECEA;
  --paper-2: #E4E4E2;
  --paper-3: #DADAD8;
  --night:   #0A0C0E;
  --night-2: #131619;
  --ink:     #101820;
  --ink-60:  #4A5560;
  --ink-40:  #7C8791;
  --line:    rgba(16, 24, 32, .12);
  --line-dark: rgba(246, 243, 238, .14);
  --blue:    #1B6FB7;
  --blue-deep: #0E4C86;
  --blue-sky: #7FB5E4;
  --green:   #3EA82C;

  --font: "Manrope", -apple-system, "Segoe UI", sans-serif;

  --r-media: 22px;
  --r-card: 26px;
  --r-pill: 999px;

  --maxw: 1340px;
  /* ONE shared width for the header + every card section (perfect alignment) */
  --gutter: clamp(16px, 5.5vw, 110px);
  --shell: min(1680px, calc(100% - var(--gutter) * 2));
  --page-gutter: clamp(12px, 1.4vw, 24px);
  --maxw-wide: 1760px;
  --card-gap: clamp(12px, 1vw, 18px);        /* gap between stacked cards */
  --section: clamp(5rem, 9vw, 9rem);
  --gap: clamp(1.4rem, 2.5vw, 2.75rem);

  --shadow-card: 0 24px 60px -30px rgba(16, 24, 32, .35);
  --card-shadow: 0 16px 44px -22px rgba(16, 24, 32, .22);
  --ease: cubic-bezier(.22, .8, .24, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
/* No italic anywhere — Manrope only (safety net for stray <em>/<i>) */
em, i, cite, address { font-style: normal; }
body {
  font-family: var(--font);
  background: var(--paper);
  color: var(--ink);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; }
ul, ol { list-style: none; }
::selection { background: var(--blue); color: #fff; }
[id] { scroll-margin-top: 96px; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.03em; line-height: 1.06; text-wrap: balance; }
.display {
  font-size: clamp(2.5rem, 5.4vw, 4.6rem);
  font-weight: 800;
  letter-spacing: -0.035em;
}
.h2 { font-size: clamp(2.1rem, 4.4vw, 3.5rem); }
.h3 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); letter-spacing: -0.02em; line-height: 1.2; }
.lead {
  font-size: clamp(1.125rem, 1.7vw, 1.3rem);
  line-height: 1.55;
  color: var(--ink-60);
  text-wrap: pretty;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--blue);
}
.eyebrow::before {
  content: "";
  width: 22px; height: 2px;
  background: var(--blue);
  border-radius: 2px;
}
.on-dark .eyebrow, .eyebrow--light { color: var(--blue-sky); }
.on-dark .eyebrow::before, .eyebrow--light::before { background: var(--blue-sky); }

.muted { color: var(--ink-60); }

/* ---------- Layout ---------- */
.container {
  width: var(--shell);
  margin-inline: auto;
}
.section { padding-block: var(--section); }

/* Homepage: tight, consistent card-stack spacing (equal small gaps) */
.home .section,
.home .bento-sec { padding-block: 0; }
.home > .spanel,
.home > .expert,
.home > .loc,
.home > .bento-sec,
.home > .tc,
.home > .tst,
.home > .blog-sec,
.home > .pfb,
.home > .wg,
.home > .smile-reveal,
.home > .fx { margin-top: var(--card-gap); }
.section-head {
  display: grid;
  gap: 1.1rem;
  max-width: 46rem;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}
.section-head--split {
  max-width: none;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  align-items: end;
  gap: var(--gap);
}
.section-head--split .lead { max-width: 34rem; }
@media (max-width: 820px) {
  .section-head--split { grid-template-columns: 1fr; align-items: start; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  padding: 1rem 1.75rem;
  border-radius: var(--r-pill);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: -0.01em;
  transition: transform .35s var(--ease), background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
  white-space: nowrap;
}
.btn .arrow { transition: transform .35s var(--ease); display: inline-block; }
.btn:hover .arrow { transform: translateX(5px); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: var(--blue-deep); }
.btn--blue { background: var(--green); color: #fff; }
.btn--blue:hover { background: #2E8A1E; color: #fff; }
.btn--green { background: var(--green); color: #fff; padding: .8rem 1.35rem; font-size: .88rem; }
.btn--green:hover { background: #2E8A1E; color: #fff; }
.btn--light { background: var(--paper); color: var(--ink); }
.btn--light:hover { background: #fff; }
.btn--ghost {
  border: 1.5px solid rgba(246, 243, 238, .4);
  color: var(--paper);
}
.btn--ghost:hover { border-color: var(--paper); background: rgba(246, 243, 238, .1); }
.btn--ghost-ink {
  border: 1.5px solid var(--line);
  color: var(--ink);
}
.btn--ghost-ink:hover { border-color: var(--ink); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 700;
  color: var(--blue);
}
.link-arrow .arrow { transition: transform .35s var(--ease); }
.link-arrow:hover .arrow { transform: translateX(5px); }

/* ---------- Header (two-tier, Klaas-style) ---------- */
:root { --header-h: 124px; }
body { padding-top: var(--header-h); }
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: var(--paper);
  transition: box-shadow .4s var(--ease);
}
.header.scrolled { box-shadow: 0 1px 0 var(--line), 0 18px 40px -30px rgba(16,24,32,.25); }
.header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.header__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.topbar {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  padding: .55rem 0 .5rem;
  border-bottom: 1px solid var(--line);
  width: 100%;
  justify-content: flex-end;
}
.topbar__link {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .82rem;
  font-weight: 600;
  color: var(--ink-60);
  transition: color .25s;
}
.topbar__link:hover { color: var(--ink); }
.topbar__link svg { width: 13px; height: 13px; }
.topbar__link--strong { color: var(--blue); font-weight: 700; }
.topbar__link--strong:hover { color: var(--blue-deep); }

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1.1rem, 2vw, 2rem);
  font-weight: 600;
  font-size: 1.02rem;
  padding-block: .8rem .95rem;
}
.nav__link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  opacity: .82;
  transition: opacity .25s, color .25s;
  position: relative;
  color: inherit;
}
.nav__link:hover, .nav__link.active { opacity: 1; }
.nav__link.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -8px;
  height: 2px;
  border-radius: 2px;
  background: var(--blue);
}
.nav__link .chev { width: 11px; height: 11px; transition: transform .3s var(--ease); margin-top: 1px; }
.nav-group { display: contents; }

/* -- mega panel (full-width) -- */
.mega, .drop {
  position: absolute;
  top: 100%;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .32s var(--ease), transform .32s var(--ease), visibility 0s .32s;
  z-index: 99;
}
.mega {
  left: 0; right: 0;
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-radius: 0 0 26px 26px;
  box-shadow: 0 50px 80px -40px rgba(16, 24, 32, .35);
  overflow: hidden;
}
.mega__inner { padding-block: 2rem 1.8rem; }
.mega__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}
.mega__card {
  display: grid;
  gap: .65rem;
  font-weight: 700;
  font-size: .92rem;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.mega__card .thumb {
  aspect-ratio: 16 / 11;
  border-radius: 14px;
  overflow: hidden;
}
.mega__card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.mega__card:hover img { transform: scale(1.06); }
.mega__card span { transition: color .25s; }
.mega__card:hover span { color: var(--blue); }
.mega__foot {
  margin-top: 1.6rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.mega__foot p { color: var(--ink-60); font-size: .95rem; max-width: 46ch; }
.mega__foot .btn { padding: .85rem 1.5rem; font-size: .9rem; }

/* -- small dropdown -- */
.drop {
  min-width: 230px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 30px 60px -30px rgba(16, 24, 32, .35);
  padding: .6rem;
  display: grid;
  transform: translateY(10px);
}
.drop a {
  padding: .65rem .9rem;
  border-radius: 10px;
  font-size: .93rem;
  font-weight: 600;
  transition: background .25s, color .25s;
}
.drop a:hover { background: var(--paper-2); color: var(--blue-deep); }

/* ---- Treatments mega dropdown with image thumbnails (desktop) ---- */
.nav-group--drop .drop--treat { left: 0; right: auto; }
.drop--treat {
  width: min(640px, 90vw);
  grid-template-columns: 1fr 1fr;
  gap: .3rem;
  padding: .7rem;
  background: #fff;
  box-shadow: 0 40px 80px -34px rgba(16, 24, 32, .5);
}
.drop--treat .dtreat {
  display: grid;
  grid-template-columns: 66px 1fr;
  align-items: center;
  gap: .8rem;
  padding: .5rem .55rem;
  border-radius: 12px;
  transition: background .25s var(--ease);
}
.drop--treat .dtreat:hover { background: var(--paper-2); }
.dtreat__media {
  width: 66px; height: 52px;
  border-radius: 9px;
  overflow: hidden;
  background: #0A0C0E;
}
.dtreat__media img { width: 100%; height: 100%; object-fit: cover; }
.dtreat__t { display: block; font-size: .92rem; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); line-height: 1.2; }
.dtreat__t small { display: block; font-size: .75rem; font-weight: 500; color: var(--ink-60); margin-top: .12rem; }
.drop--treat .dtreat:hover .dtreat__t { color: var(--blue-deep); }
.drop--treat .drop__all {
  grid-column: 1 / -1;
  text-align: center;
  margin-top: .25rem;
  padding-top: .7rem;
  border-top: 1px solid var(--line);
  border-radius: 0;
  color: var(--green);
  font-weight: 700;
}
.drop--treat .drop__all:hover { background: none; color: #2E8A1E; }

/* hover/focus opens (desktop) */
@media (min-width: 1021px) {
  .nav-group:hover .mega, .nav-group:focus-within .mega,
  .nav-group:hover .drop, .nav-group:focus-within .drop {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity .32s var(--ease), transform .32s var(--ease), visibility 0s 0s;
  }
  .nav-group:hover .chev, .nav-group:focus-within .chev { transform: rotate(180deg); }
  .nav-group--drop { position: relative; display: inline-flex; }
  .nav-group--drop .drop { right: 0; }
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  font-weight: 800;
  font-size: 1.36rem;
  letter-spacing: -0.02em;
  line-height: 1;
}
.logo img, .logo__img { height: clamp(44px, 3.9vw, 56px); width: auto; object-fit: contain; display: block; }
.logo .green { color: var(--green); }
.logo small {
  display: block;
  font-size: .58rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-40);
  margin-top: .3rem;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: .5rem;
}
.burger span {
  width: 24px; height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .35s var(--ease), opacity .25s;
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1020px) {
  :root { --header-h: 64px; }
  .topbar { display: none; }
  .burger { display: flex; position: relative; z-index: 110; }
  .header__right { align-items: stretch; }
  .nav {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: .2rem;
    padding: 5.5rem clamp(1.5rem, 6vw, 3rem) 3rem;
    background: var(--night);
    color: var(--paper);
    font-size: 1.25rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity .4s var(--ease);
    overflow-y: auto;
  }
  .nav.open { opacity: 1; pointer-events: auto; }
  .nav__link { padding: .8rem 0; border-bottom: 1px solid var(--line-dark); width: 100%; justify-content: space-between; }
  .nav__link.active::after { display: none; }
  .nav-group { display: block; border-bottom: 1px solid var(--line-dark); }
  .nav-group .nav__link { border-bottom: 0; }
  .mega, .drop {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: transparent;
    border: 0;
    box-shadow: none;
    border-radius: 0;
    display: none;
    padding: 0 0 1rem;
  }
  .nav-group.open .mega, .nav-group.open .drop { display: block; }
  .nav-group.open .chev { transform: rotate(180deg); }
  .mega__inner { padding: 0; width: 100%; }
  .mega__grid { grid-template-columns: 1fr; gap: .4rem; }
  .mega__card { grid-template-columns: 54px 1fr; align-items: center; gap: .8rem; font-size: 1rem; }
  .mega__card .thumb { aspect-ratio: 1; border-radius: 10px; }
  .mega__foot { border-top: 0; padding-top: .4rem; margin-top: .4rem; flex-direction: column; align-items: flex-start; }
  .mega__foot p { display: none; }
  .drop a { padding: .6rem 0; font-size: 1rem; color: rgba(246, 243, 238, .8); }
  .drop a:hover { background: none; color: var(--paper); }
}
/* ---------- Hero (video, centered like Klaas) ---------- */
.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--paper);
  isolation: isolate;
  overflow: hidden;
}
.hero video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at 50% 42%, rgba(10, 12, 14, .38) 0%, rgba(10, 12, 14, .18) 55%, rgba(10, 12, 14, .05) 75%),
    linear-gradient(to bottom, rgba(10, 12, 14, .30) 0%, rgba(10, 12, 14, .05) 26%, rgba(10, 12, 14, .12) 60%, rgba(10, 12, 14, .88) 100%);
}
.hero__content {
  padding-top: clamp(2.5rem, 5vw, 4rem);
  padding-bottom: clamp(1.5rem, 3vw, 2.5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero__content .eyebrow { color: var(--blue-sky); justify-content: center; }
.hero__content .eyebrow::before { background: var(--blue-sky); }
.hero__content .eyebrow::after {
  content: "";
  width: 22px; height: 2px;
  background: var(--blue-sky);
  border-radius: 2px;
}
.hero h1 {
  max-width: 16ch;
  margin-block: 1.1rem 1.2rem;
  text-shadow: 0 2px 30px rgba(10, 12, 14, .35);
}
.hero__sub {
  max-width: 38rem;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.55;
  color: rgba(246, 243, 238, .88);
  text-wrap: pretty;
  text-shadow: 0 1px 18px rgba(10, 12, 14, .45);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .9rem;
  margin-top: 1.9rem;
}
.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: clamp(1.8rem, 3.2vw, 2.6rem);
  padding-top: 1.4rem;
  border-top: 1px solid rgba(246, 243, 238, .22);
  width: 100%;
  text-align: center;
}
.hero__stats .stat b {
  display: block;
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}
.hero__stats .stat span {
  display: block;
  margin-top: .45rem;
  font-size: .85rem;
  color: rgba(246, 243, 238, .68);
}
@media (max-width: 760px) {
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
}

.hero__scroll {
  position: absolute;
  right: clamp(1.5rem, 4vw, 3.5rem);
  bottom: clamp(2rem, 4.5vw, 4rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .7rem;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(246, 243, 238, .65);
  writing-mode: vertical-rl;
}
.hero__scroll::after {
  content: "";
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(246,243,238,.7), transparent);
  animation: scrollPulse 2.2s var(--ease) infinite;
}
@keyframes scrollPulse {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}
@media (max-width: 1020px) { .hero__scroll { display: none; } }

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding-block: 1.05rem;
  background: var(--paper);
}
.marquee__track {
  display: flex;
  gap: 3.5rem;
  width: max-content;
  animation: marquee 36s linear infinite;
}
.marquee__track span {
  display: inline-flex;
  align-items: center;
  gap: 3.5rem;
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-60);
  white-space: nowrap;
}
.marquee__track i {
  font-style: normal;
  color: var(--blue);
  font-size: .8rem;
}
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
}

/* ---------- Intro editorial ---------- */
.intro { background: var(--paper); }
.intro__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}
.intro__media {
  border-radius: var(--r-media);
  overflow: hidden;
  aspect-ratio: 4 / 3.4;
  box-shadow: var(--shadow-card);
}
.intro__media img { width: 100%; height: 100%; object-fit: cover; }
.intro__text h2 { margin-block: 1.1rem 1.4rem; }
.intro__text .lead { margin-bottom: 1.6rem; }
.intro__points { display: grid; gap: 1rem; margin-bottom: 2rem; }
.intro__points li {
  display: flex;
  gap: .8rem;
  align-items: flex-start;
  font-weight: 600;
}
.intro__points .tick {
  flex: none;
  width: 22px; height: 22px;
  margin-top: .15rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(62, 168, 44, .12);
  color: var(--green);
}
.intro__points .tick svg { width: 11px; height: 11px; }
@media (max-width: 900px) {
  .intro__grid { grid-template-columns: 1fr; }
  .intro__media { order: -1; aspect-ratio: 16 / 11; }
}

/* ---------- Treatments ---------- */
.treatments { background: var(--paper-2); }
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
.card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border-radius: var(--r-card);
  overflow: hidden;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); }
.card__media {
  aspect-ratio: 16 / 10.5;
  overflow: hidden;
}
.card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}
.card:hover .card__media img { transform: scale(1.045); }
.card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: .7rem;
  padding: 1.7rem 1.8rem 1.9rem;
}
.card__tag {
  align-self: flex-start;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .13em;
  color: var(--blue);
  background: rgba(27, 111, 183, .09);
  padding: .38rem .8rem;
  border-radius: var(--r-pill);
}
.card p { color: var(--ink-60); font-size: .98rem; text-wrap: pretty; }
.card__foot {
  margin-top: auto;
  padding-top: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  color: var(--blue);
}
.card__foot .circle {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--line);
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
}
.card:hover .card__foot .circle {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  transform: rotate(-45deg);
}
@media (max-width: 980px) { .cards { grid-template-columns: 1fr; max-width: 33rem; } }

/* list rows (secondary treatments) */
.rows { margin-top: clamp(2.5rem, 5vw, 4rem); }
.row-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  padding-block: 1.35rem;
  border-top: 1px solid var(--line);
  font-weight: 700;
  font-size: clamp(1.1rem, 1.9vw, 1.45rem);
  letter-spacing: -0.02em;
  transition: padding-left .35s var(--ease);
}
.row-item:last-child { border-bottom: 1px solid var(--line); }
.row-item:hover { padding-left: .8rem; }
.row-item .idx {
  font-size: .8rem;
  font-weight: 700;
  color: var(--ink-40);
  letter-spacing: .08em;
}
.row-item .row-note {
  font-size: .9rem;
  font-weight: 500;
  color: var(--ink-60);
  justify-self: end;
  text-align: right;
  letter-spacing: 0;
}
.row-item .arrow { color: var(--blue); }
@media (max-width: 640px) { .row-item .row-note { display: none; } }

/* ---------- 24h timeline ---------- */
.timeline { position: relative; overflow: hidden; background: var(--paper); }
.timeline .big-24 {
  position: absolute;
  right: -1rem;
  top: 40%;
  transform: translateY(-50%);
  font-size: clamp(16rem, 34vw, 30rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(16, 24, 32, .10);
  pointer-events: none;
  user-select: none;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  position: relative;
}
.step {
  position: relative;
  padding-top: 1.6rem;
}
.step::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--line);
}
.step::after {
  content: "";
  position: absolute;
  top: -4px; left: 0;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--blue);
}
.step__hour {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--blue);
}
.step h3 { margin-block: .7rem .6rem; }
.step p { color: var(--ink-60); font-size: .98rem; max-width: 30ch; text-wrap: pretty; }
@media (max-width: 820px) {
  .steps { grid-template-columns: 1fr; gap: 2.2rem; }
  .timeline .big-24 { display: none; }
}

/* ---------- Technology ---------- */
.tech { background: var(--paper-2); }
.tech-rows { display: grid; gap: 1.2rem; }
.tech-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(1.2rem, 3vw, 2.5rem);
  padding: 1.2rem;
  border-radius: var(--r-media);
  background: #F7F8F7;
  border: 1px solid rgba(16, 24, 32, .05);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.tech-row:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }
.tech-row img {
  width: 96px; height: 96px;
  object-fit: cover;
  border-radius: 16px;
}
.tech-row h3 { font-size: 1.15rem; letter-spacing: -0.015em; }
.tech-row p { color: var(--ink-60); font-size: .93rem; margin-top: .25rem; max-width: 52ch; }
.tech-row .arrow { color: var(--blue); font-weight: 700; }
@media (max-width: 640px) {
  .tech-row { grid-template-columns: 72px 1fr; }
  .tech-row img { width: 72px; height: 72px; }
  .tech-row .arrow { display: none; }
}

/* ---------- Team (dark band) ---------- */
.team {
  background: var(--night);
  color: var(--paper);
}
.team .section-head .lead { color: rgba(246, 243, 238, .6); }
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
}
.member {
  position: relative;
  border-radius: var(--r-media);
  overflow: hidden;
  background: #000;
  aspect-ratio: 3 / 4;
}
.member img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform .7s var(--ease), opacity .5s var(--ease);
  opacity: .92;
}
.member:hover img { transform: scale(1.04); opacity: 1; }
.member figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 3rem 1.3rem 1.2rem;
  background: linear-gradient(to top, rgba(0,0,0,.85), transparent);
}
.member figcaption b { display: block; font-size: 1.05rem; letter-spacing: -0.015em; }
.member figcaption span {
  display: block;
  font-size: .82rem;
  color: rgba(246, 243, 238, .65);
  margin-top: .2rem;
  text-wrap: pretty;
}
@media (max-width: 980px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Testimonials ---------- */
.quote-band { border-top: 1px solid var(--line); background: var(--paper); }
.bigquote {
  max-width: 54rem;
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.25;
  text-wrap: balance;
}
.bigquote em { font-style: normal; color: var(--blue); }
.bigquote-meta {
  margin-top: 1.6rem;
  display: flex;
  align-items: center;
  gap: .8rem;
  font-size: .95rem;
  color: var(--ink-60);
}
.bigquote-meta b { color: var(--ink); }
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.testi {
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--paper-2);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.testi:hover { transform: translateY(-5px); box-shadow: var(--shadow-card); }
.testi__media {
  position: relative;
  aspect-ratio: 16 / 9.5;
  overflow: hidden;
}
.testi__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}
.testi:hover .testi__media img { transform: scale(1.05); }
.testi__media .play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: rgba(246, 243, 238, .92);
  display: grid;
  place-items: center;
  color: var(--ink);
  transition: transform .35s var(--ease), background .35s var(--ease);
}
.testi:hover .play { transform: scale(1.08); background: #fff; }
.testi__media .play svg { width: 18px; height: 18px; margin-left: 3px; }
.testi__body { padding: 1.4rem 1.5rem 1.6rem; }
.testi__body p { font-size: .98rem; color: var(--ink-60); text-wrap: pretty; }
.testi__body .who {
  margin-top: 1rem;
  font-size: .9rem;
  display: flex;
  align-items: center;
  gap: .55rem;
  font-weight: 700;
}
.testi__body .who span { color: var(--ink-40); font-weight: 500; }
@media (max-width: 900px) { .testi-grid { grid-template-columns: 1fr; max-width: 33rem; } }

/* ---------- Locations ---------- */
.locations { background: var(--paper-2); }
.loc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
.loc {
  background: var(--paper);
  border-radius: var(--r-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.loc:hover { transform: translateY(-5px); box-shadow: var(--shadow-card); }
.loc__media { aspect-ratio: 16 / 10; overflow: hidden; }
.loc__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}
.loc:hover .loc__media img { transform: scale(1.05); }
.loc__body {
  padding: 1.6rem 1.7rem 1.8rem;
  display: flex;
  flex-direction: column;
  gap: .55rem;
  flex: 1;
}
.loc__body h3 { font-size: 1.3rem; }
.loc__body address {
  font-style: normal;
  color: var(--ink-60);
  font-size: .95rem;
  line-height: 1.55;
}
.loc__body .tel {
  font-weight: 700;
  color: var(--blue);
}
.loc__body .maplink {
  margin-top: auto;
  padding-top: 1rem;
}
@media (max-width: 980px) { .loc-grid { grid-template-columns: 1fr; max-width: 33rem; } }

/* ---------- CTA / booking ---------- */
.cta {
  background: linear-gradient(158deg, #37991f 0%, #2a7d1a 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
  width: var(--shell);
  margin-inline: auto;
  border-radius: clamp(22px, 2vw, 34px);
}
.cta .eyebrow { color: rgba(255, 255, 255, .82); }
.cta .eyebrow::before { background: rgba(255, 255, 255, .82); }
.cta::before {
  content: "";
  position: absolute;
  width: 720px; height: 720px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .12), transparent 65%);
  top: -260px; right: -200px;
  pointer-events: none;
}
.cta__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}
.cta__text h2 { margin-block: 1.1rem 1.2rem; }
.cta__text .lead { color: rgba(246, 243, 238, .65); margin-bottom: 2rem; }
.cta__contacts { display: grid; gap: .9rem; }
.cta__contacts a {
  display: flex;
  align-items: baseline;
  gap: .8rem;
  font-weight: 700;
  font-size: 1.1rem;
  transition: color .3s;
}
.cta__contacts a:hover { color: var(--blue-sky); }
.cta__contacts span {
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: rgba(246, 243, 238, .5);
  min-width: 92px;
}
.form-card {
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--r-card);
  padding: clamp(1.8rem, 3.5vw, 2.8rem);
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .6);
}
.form-card h3 { margin-bottom: .4rem; }
.form-card > p { color: var(--ink-60); font-size: .95rem; margin-bottom: 1.6rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: grid; gap: .4rem; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .04em;
}
.field input, .field select, .field textarea {
  font: inherit;
  font-size: .95rem;
  padding: .85rem 1rem;
  border-radius: 14px;
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--ink);
  transition: border-color .3s, box-shadow .3s;
  width: 100%;
  min-width: 0;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(27, 111, 183, .15);
}
.form-card .btn { width: 100%; justify-content: center; margin-top: 1.3rem; }
.form-note {
  margin-top: .9rem;
  font-size: .8rem;
  color: var(--ink-40);
  text-align: center;
}
.form-success {
  display: none;
  text-align: center;
  padding: 2.5rem 1rem;
}
.form-success .tick-big {
  width: 56px; height: 56px;
  margin: 0 auto 1.2rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(62, 168, 44, .14);
  color: var(--green);
}
.form-card.sent form { display: none; }
.form-card.sent .form-success { display: block; }
@media (max-width: 900px) {
  .cta__grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.footer {
  background: var(--night);
  color: var(--paper);
  border-top: 1px solid var(--line-dark);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: 3rem;
}
.footer__brand p {
  color: rgba(246, 243, 238, .55);
  font-size: .92rem;
  max-width: 30ch;
  margin-top: 1rem;
  text-wrap: pretty;
}
.footer h4 {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: rgba(246, 243, 238, .5);
  margin-bottom: 1.1rem;
}
.footer ul { display: grid; gap: .6rem; font-size: .95rem; }
.footer ul a { opacity: .8; transition: opacity .25s; }
.footer ul a:hover { opacity: 1; }
.footer__bottom {
  border-top: 1px solid var(--line-dark);
  padding-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  font-size: .82rem;
  color: rgba(246, 243, 238, .45);
}
@media (max-width: 900px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer__grid { grid-template-columns: 1fr; }
}

/* ---------- Page hero (subpages) ---------- */
.page-hero {
  padding-top: clamp(3.5rem, 7vw, 5.5rem);
  padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
}
.page-hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  font-weight: 800;
  max-width: 16ch;
  margin-block: 1.1rem 1.2rem;
}
.page-hero .lead { max-width: 42rem; }

.page-hero--dark {
  background: var(--night);
  color: var(--paper);
}
.page-hero--dark .lead { color: rgba(246, 243, 238, .65); }

.media-band { padding-bottom: var(--section); }
.media-band .frame {
  border-radius: var(--r-media);
  overflow: hidden;
  aspect-ratio: 21 / 9;
  box-shadow: var(--shadow-card);
}
.media-band img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Split feature (subpages) — each split is a white card ---------- */
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 4.5vw, 4.5rem);
  align-items: center;
  background: #fff;
  border: 1px solid rgba(16, 24, 32, .06);
  border-radius: clamp(22px, 2vw, 34px);
  box-shadow: var(--card-shadow);
  padding: clamp(1.6rem, 3vw, 3rem);
}
.split + .split { margin-top: var(--card-gap); }
.split__media {
  border-radius: var(--r-media);
  overflow: hidden;
  aspect-ratio: 4 / 3.2;
  box-shadow: var(--shadow-card);
}
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split--flip .split__media { order: 2; }
.split h2, .split .h3-title { margin-block: 1rem 1rem; }
.split p + p { margin-top: 1rem; }
.split .body-text { color: var(--ink-60); text-wrap: pretty; }
@media (max-width: 880px) {
  .split, .split--flip { grid-template-columns: 1fr; }
  .split--flip .split__media { order: 0; }
}

/* ---------- Stats grid (despre) ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}
.stat-cell {
  border-top: 2px solid var(--ink);
  padding-top: 1.1rem;
}
.stat-cell b {
  display: block;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
}
.stat-cell span {
  display: block;
  margin-top: .5rem;
  color: var(--ink-60);
  font-size: .92rem;
  text-wrap: pretty;
}
@media (max-width: 880px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Memoriam ---------- */
.memoriam {
  background: var(--night);
  color: var(--paper);
  text-align: center;
}
.memoriam .eyebrow { justify-content: center; color: var(--blue-sky); }
.memoriam .eyebrow::before { background: var(--blue-sky); }
.memoriam blockquote {
  max-width: 44rem;
  margin: 1.6rem auto 0;
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.35;
  text-wrap: balance;
}
.memoriam .who {
  margin-top: 1.6rem;
  color: rgba(246, 243, 238, .6);
  font-size: .95rem;
}
.memoriam .who b { color: var(--paper); }

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Misc ---------- */
.center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

/* ---------- Media reveal (Klaas color-cover animation) ---------- */
.m-rev { position: relative; }
.m-rev::after {
  content: "";
  position: absolute;
  inset: -1px;
  background: var(--paper-3);
  z-index: 2;
  transform: translateY(0);
  transition: transform 1s var(--ease);
  pointer-events: none;
}
.m-rev--dark::after { background: var(--night-2); }
.m-rev img, .m-rev video { transition: transform 1.15s var(--ease); }
:where(.m-rev:not(.visible)) img { transform: translateY(-9%) scale(1.14); }
:where(.m-rev.visible) img { transform: none; }
.m-rev.visible::after { transform: translateY(102%); }
@media (prefers-reduced-motion: reduce) {
  .m-rev::after { display: none; }
  :where(.m-rev:not(.visible)) img { transform: none; }
}

/* ---------- Gallery ---------- */
.g-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
.g-item {
  border: 0;
  padding: 0;
  border-radius: var(--r-media);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: zoom-in;
  display: block;
  width: 100%;
  background: var(--paper-3);
}
.g-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .7s var(--ease);
}
.g-item:hover img { transform: scale(1.05); }
.g-item--tall { aspect-ratio: 3 / 4; grid-row: span 2; }
@media (max-width: 900px) { .g-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .g-grid { grid-template-columns: 1fr; } .g-item--tall { grid-row: auto; aspect-ratio: 4/3; } }

.lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(92vw, 1100px);
  max-height: 90vh;
}
.lightbox::backdrop { background: rgba(10, 12, 14, .88); }
.lightbox img {
  width: 100%;
  max-height: 86vh;
  object-fit: contain;
  border-radius: 14px;
}
.lightbox__close {
  position: fixed;
  top: 1.2rem; right: 1.4rem;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  opacity: .8;
}
.lightbox__close:hover { opacity: 1; }

/* ---------- Memoriam portrait ---------- */
.memoriam__photo {
  width: 108px; height: 108px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  margin: 0 auto 1.5rem;
  border: 2px solid rgba(246, 243, 238, .25);
}

/* ============================================================
   SECTION-OVER-HERO STAIRCASE + PAGE TRANSITIONS + FILL TEXT
   (reference: "animatie intre pagini" — stepped section reveal)
   ============================================================ */



/* ---------- word-by-word text fill on scroll ---------- */
[data-fill] .fw { color: var(--ink-40); transition: color .3s ease; }
[data-fill] .fw.on { color: inherit; }

/* ---------- tilted card fly-in (reference cards settle) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .tilt {
    opacity: 0;
    transform: rotate(var(--tr, -6deg)) translateY(80px);
    transition: transform .95s var(--ease), opacity .65s ease;
    transition-delay: var(--d, 0s);
  }
  .tilt:nth-child(2) { --tr: 5deg; }
  .tilt:nth-child(3) { --tr: -4deg; }
  .tilt.visible { opacity: 1; transform: none; }
}

/* ---------- Smile reveal (pinned full-bleed video; footer rises over it like a curtain) ----------
   Pure CSS, no JS. `.smile-reveal__pin` is position:sticky, top:0 — it
   pins to the top of the viewport (video stays perfectly still, still
   playing) for as long as its wrapper is being scrolled through. The
   footer (opaque background, higher z-index) is pulled up by margin-top:
   -100vh (= -stickyH), which overlaps it with the tail of the wrapper's
   extra scroll height. That overlap is exactly where the "hold" and
   "reveal" phases live:
     wrapper height = stickyH(100vh) + hold(A) + reveal(B, =100vh)
     - scrollY 0..A            → video fully pinned, footer nowhere in view
     - scrollY A..A+B          → footer's top rises from the bottom edge
                                  of the screen up to y=0, progressively
                                  covering the still-pinned video
     - scrollY > A+B           → sticky releases (now hidden under the
                                  opaque footer anyway); ordinary footer
                                  scrolling resumes
   Safe because footer is the last element on the page — nothing after it
   for the sticky layer to bleed into once covered. */
/* DEMO SMILE — now a contained rounded video card (matches the card system) */
.smile-reveal {
  position: relative;
  height: auto;
  width: var(--shell);
  margin-inline: auto;
  border-radius: clamp(22px, 2vw, 34px);
  overflow: hidden;
  box-shadow: var(--card-shadow);
}
.smile-reveal__pin {
  position: relative;
  height: clamp(340px, 54vh, 620px);
  overflow: hidden;
  z-index: 0;
  background: var(--night);
}
.smile-reveal__pin video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.smile-reveal__veil { display: none; }
.footer { margin-top: 0; }
@media (max-width: 760px) {
  .smile-reveal__pin { height: clamp(280px, 60vw, 420px); }
}
@media (prefers-reduced-motion: reduce) {
  .smile-reveal__pin { height: clamp(300px, 48vh, 520px); }
  .footer { margin-top: 0; }
}

/* ============================================================
   "CINE SUNTEM?" + SERVICES LIST (reference: video demo main)
   ============================================================ */

/* dot label (green bullet, quiet text) */
.eyebrow--dot { text-transform: none; letter-spacing: 0; font-size: .95rem; font-weight: 600; color: var(--ink-60); }
.eyebrow--dot::before { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }

/* ---- Cine suntem? ---- */
/* ---- Cine suntem? — white card (reference: dentix "who we are") ---- */
.whowe {
  background: #fff;
  border: 1px solid rgba(16, 24, 32, .06);
  border-radius: clamp(22px, 2vw, 34px);
  width: var(--shell);
  margin-inline: auto;
  padding: clamp(2.4rem, 4.5vw, 4.2rem) clamp(1.6rem, 4vw, 4.2rem);
}
.whowe2__eyebrow { margin-bottom: clamp(1.6rem, 3vw, 2.4rem); }
.whowe2__grid {
  display: grid;
  grid-template-columns: minmax(0, .26fr) minmax(0, .74fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
/* left rail */
.whowe2__avatars { display: flex; }
.whowe2__avatars img {
  width: 52px; height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 2px 9px -3px rgba(16, 24, 32, .35);
  margin-left: -14px;
  background: #ccd;
}
.whowe2__avatars img:first-child { margin-left: 0; }
.whowe2__exp {
  margin-top: 1.1rem;
  font-size: .96rem;
  color: var(--ink-60);
  line-height: 1.3;
}
.whowe2__exp b {
  display: block;
  font-size: clamp(1.7rem, 2.2vw, 2rem);
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--ink);
}
.whowe2__cta {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-top: clamp(2rem, 5vw, 4rem);
  padding: .8rem 1.4rem;
  border: 1.5px solid rgba(16, 24, 32, .18);
  border-radius: 999px;
  font-weight: 700;
  font-size: .92rem;
  color: var(--ink);
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.whowe2__cta span { transition: transform .3s var(--ease); }
/* main */
.whowe2__title {
  font-size: clamp(1.7rem, 2.9vw, 2.7rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.22;
  color: var(--ink);
  text-wrap: pretty;
}
.whowe2__title .hl { color: var(--green); }
.whowe2__feats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 2.5vw, 2.6rem);
  margin-top: clamp(2.8rem, 5vw, 4.5rem);
}
.feat__ic {
  display: grid;
  place-items: center;
  width: clamp(48px, 4vw, 56px);
  aspect-ratio: 1;
  border-radius: 15px;
  background: #EAF3E2;
  color: var(--green);
  margin-bottom: 1.1rem;
}
.feat__ic svg { width: 24px; height: 24px; }
.feat h3 {
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: .5rem;
}
.feat p { color: var(--ink-60); font-size: .95rem; line-height: 1.5; text-wrap: pretty; }

@media (hover: hover) and (pointer: fine) {
  .whowe2__cta:hover { border-color: var(--ink); transform: translateY(-2px); }
  .whowe2__cta:hover span { transform: translate(2px, -2px); }
}
@media (max-width: 880px) {
  .whowe2__grid { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 560px) {
  .whowe2__feats { grid-template-columns: 1fr; }
}

/* ---- Services list with hover panel + photo pop ---- */
.services { background: var(--paper); }
.services__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.services__head .h2 { margin-top: .6rem; }
.sv-list { position: relative; }
.sv {
  position: relative;
  display: grid;
  grid-template-columns: 3.2rem minmax(0, .38fr) minmax(0, .62fr);
  gap: clamp(1rem, 2.5vw, 2.5rem);
  align-items: start;
  padding: 1.7rem 1.6rem;
  border-radius: 18px;
  border-top: 1px solid var(--line);
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s;
}
.sv:last-child { border-bottom: 1px solid var(--line); }
.sv__idx { font-size: .85rem; font-weight: 600; color: var(--ink-40); padding-top: .3rem; }
.sv__name { font-size: clamp(1.15rem, 1.8vw, 1.45rem); font-weight: 700; letter-spacing: -0.02em; }
.sv__body { display: grid; gap: .9rem; max-width: 23rem; }
.sv__desc { font-size: .95rem; color: var(--ink-60); line-height: 1.55; transition: color .35s; }
.sv__checks { display: grid; gap: .45rem; }
.sv__checks span {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-size: .9rem;
  font-weight: 600;
}
.sv__checks span::before {
  content: "";
  flex: none;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--green);
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="none" stroke="black" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" d="M20 6 9 17l-5-5"/></svg>') center / 60% no-repeat, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="none" stroke="black" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" d="M20 6 9 17l-5-5"/></svg>') center / 60% no-repeat, linear-gradient(#000 0 0);
  mask-composite: exclude;
}
.sv__img {
  position: absolute;
  right: clamp(1rem, 4vw, 3.5rem);
  top: 50%;
  width: clamp(180px, 17vw, 250px);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .45);
  opacity: 0;
  transform: translateY(-46%) rotate(7deg) scale(.9);
  transition: opacity .4s var(--ease), transform .55s var(--ease);
  pointer-events: none;
  z-index: 3;
}
.sv:hover, .sv.sv--on {
  background: var(--blue-deep);
  border-color: transparent;
  color: #fff;
  z-index: 2;
}
.sv:hover .sv__idx, .sv.sv--on .sv__idx { color: rgba(246, 243, 238, .55); }
.sv:hover .sv__desc, .sv.sv--on .sv__desc { color: rgba(255, 255, 255, .82); }
.sv:hover .sv__img, .sv.sv--on .sv__img { opacity: 1; transform: translateY(-50%) rotate(-3deg) scale(1); }
.sv:hover + .sv { border-top-color: transparent; }
@media (max-width: 900px) {
  .sv { grid-template-columns: 2.4rem 1fr; }
  .sv__body { grid-column: 2; }
  .sv__img { display: none; }
  .services { background: var(--paper); }
.services__head { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   REFERENCE REBUILD: transparent header, editorial hero,
   connected stepped panel, shared stair geometry (Video 1)
   ============================================================ */
:root { --st-inner: 12vh; --st-center: 22vh; }
@media (max-width: 760px) { :root { --st-inner: 7vh; --st-center: 12vh; } }

body.home { padding-top: 0; }

/* ---- staircase silhouette — retired for the card-based hero ---- */
.stair { display: none; }
.stair--legacy { position: absolute; left: 0; right: 0; bottom: 100%; height: var(--st-center); pointer-events: none; }
.stair span { position: absolute; bottom: -2px; background: var(--paper); }
.stair span:nth-child(1) { left: calc(20vw - 1px); width: calc(20vw + 2px); height: var(--st-inner); }
.stair span:nth-child(2) { left: calc(40vw - 1px); width: calc(20vw + 2px); height: var(--st-center); }
.stair span:nth-child(3) { left: calc(60vw - 1px); width: calc(20vw + 2px); height: var(--st-inner); }

/* ---- transparent header over hero (home) ---- */
.header--clear { background: transparent; color: #fff; }
.header--clear .header__bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding-block: 1.2rem;
}
.header--clear .logo { color: #fff; }
.header--clear .logo small { color: rgba(255, 255, 255, .6); }
.header--clear .nav { justify-self: center; padding: 0; }
.header--clear .hcta { justify-self: end; }
.header--clear.scrolled { background: var(--paper); color: var(--ink); }
.header--clear.scrolled .logo { color: var(--ink); }
.header--clear.scrolled .logo small { color: var(--ink-40); }

.hcta {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  font-size: .98rem;
  padding: .5rem .55rem .5rem 1.35rem;
  border-radius: var(--r-pill);
  transition: background .3s, transform .3s var(--ease);
}
.hcta:hover { background: #2E8A1E; color: #fff; transform: translateY(-1px); }
.hcta__arr {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  display: grid;
  place-items: center;
  font-size: .8rem;
}
@media (max-width: 1020px) {
  .header--clear .header__bar { display: flex; justify-content: space-between; }
  .header--clear .hcta { display: none; }
}

/* ---- full-screen editorial doctor hero ----
   .hero2-wrap bounds the sticky range: hero2 (100svh) stays pinned for
   the wrap's extra height — 42vh pure "hold" + 100vh so it stays glued
   while .spanel's stair-shaped edge naturally rises to cover it (spanel
   has no negative-margin overlap trick; it just needs hero2 to remain
   stuck for the one full viewport-height it takes to scroll into view) —
   then releases for good. It must NOT stick for the rest of the page
   (that was a bug: with no bounding wrapper, sticky's containing block
   was effectively the whole body, so the hero video stayed glued to the
   viewport all the way down, fighting later full-screen sections like
   .smile-reveal for the same z-index:0 layer). */
.hero2-wrap {
  position: relative;
  height: auto;
  padding-inline: 0;
  margin-top: clamp(84px, 8.5vh, 106px);   /* clear the floating pill header */
}
.hero2 {
  position: relative;
  height: min(84svh, 880px);
  width: var(--shell);
  max-width: none;
  margin-inline: auto;
  border-radius: clamp(22px, 2vw, 34px);
  overflow: hidden;
  z-index: 0;
  color: #fff;
  background: #000;
  box-shadow: var(--card-shadow);
}
/* soft lift so white cards separate from the neutral page (reference look) */
.expert__card, .whowe, .tc, .cta { box-shadow: var(--card-shadow); }
.hero2-wrap ~ * { position: relative; z-index: 1; }
.hero2__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
}
.hero2::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(0, 0, 0, .48) 0%, rgba(0, 0, 0, .06) 42%),
    rgba(0, 0, 0, .14);
  pointer-events: none;
}
.hero2__title {
  position: absolute;
  left: clamp(1.75rem, 6vw, 5rem);
  bottom: clamp(3.5rem, 12vh, 8rem);
  z-index: 2;
  width: min(62vw, 1000px);
  font-size: clamp(48px, 5.4vw, 100px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
  text-wrap: balance;
}
.hero2__title h1 { font-size: 1em; font-weight: inherit; letter-spacing: inherit; line-height: inherit; }
.hero2__title em {
  font-family: var(--font);
  font-style: normal;
  font-weight: inherit;
  letter-spacing: inherit;
}
.hero2__tag {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .02em;
  background: rgba(10, 12, 14, .55);
  padding: .4rem 1rem;
  border-radius: var(--r-pill);
  margin-bottom: 1.2rem;
}
.hero2__tag::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
}
.hero2 .hl { display: block; overflow: hidden; }
.hero2 .hl > span { display: block; }
.hero2__side {
  position: absolute;
  right: 9vw;
  bottom: 14vh;
  z-index: 2;
  width: clamp(250px, 24vw, 350px);
}
.hero2__side p {
  font-size: .95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, .92);
  text-shadow: 0 1px 12px rgba(0, 0, 0, .35);
}
.hero2__side .hcta { margin-top: 1.3rem; }

/* entrance: zoom-settle + staggered clipped reveals */
@media (prefers-reduced-motion: no-preference) {
  .hero2__img { animation: h2zoom 1.5s var(--ease) both; }
  .hero2 .hl > span { transform: translateY(112%); animation: h2up .85s var(--ease) forwards; }
  .hero2 .hl--1 > span { animation-delay: .35s; }
  .hero2 .hl--2 > span { animation-delay: .5s; }
  .hero2__tag { opacity: 0; animation: h2fade .6s ease .28s forwards; }
  .hero2__side p { opacity: 0; transform: translateY(22px); animation: h2rise .7s var(--ease) .8s forwards; }
  .hero2__side .hcta { opacity: 0; transform: translateY(22px); animation: h2rise .7s var(--ease) 1s forwards; }
}
@keyframes h2zoom { from { transform: scale(1.06); } to { transform: scale(1); } }
@keyframes h2up { to { transform: translateY(0); } }
@keyframes h2fade { to { opacity: 1; } }
@keyframes h2rise { to { opacity: 1; transform: translateY(0); } }

@media (max-width: 880px) {
  .hero2__title {
    left: 6vw;
    right: 6vw;
    width: auto;
    bottom: 30vh;
    font-size: clamp(2.2rem, 9.5vw, 3.2rem);
  }
  .hero2__side { left: 6vw; right: 6vw; width: auto; bottom: 8vh; }
  .hero2__img { object-position: 50% 40%; }
}

/* ---- connected stepped content panel ---- */
.spanel { position: relative; background: var(--paper); }
.spanel > .stair { z-index: 1; }
.spanel__body { position: relative; }

/* trust row (real equipment brands) just under the stepped edge */
.trustrow {
  overflow: hidden;
  padding-block: 2.2rem 1rem;
}
.trustrow__track {
  display: flex;
  gap: 4.5rem;
  width: max-content;
  animation: marquee 42s linear infinite;
}
.trustrow__track span {
  display: inline-flex;
  gap: 4.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--ink-40);
  white-space: nowrap;
}
@media (prefers-reduced-motion: reduce) { .trustrow__track { animation: none; } }


/* ---- global page transition: same stair geometry, white panel ---- */
.pt { position: fixed; inset: 0; z-index: 300; pointer-events: none; }
.pt__panel {
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: var(--paper);
  transform: translateY(calc(100% + var(--st-center)));
}
.pt--in { pointer-events: auto; }
.pt--in .pt__panel { animation: ptCover .75s var(--ease) forwards; }
.pt-cover .pt__panel { transform: translateY(0); }
.pt--out .pt__panel { animation: ptReveal .8s var(--ease) forwards; }
@keyframes ptCover { to { transform: translateY(0); } }
@keyframes ptReveal { from { transform: translateY(0); } to { transform: translateY(calc(-100% - var(--st-center))); } }
@media (prefers-reduced-motion: reduce) { .pt { display: none; } }

/* ============================================================
   WCARD — generic white shell-wide card (Dentix card system)
   ============================================================ */
.wcard {
  width: var(--shell);
  margin: var(--card-gap) auto 0;
  background: #fff;
  border: 1px solid rgba(16, 24, 32, .06);
  border-radius: clamp(22px, 2vw, 34px);
  box-shadow: var(--card-shadow);
  padding: clamp(2rem, 3.6vw, 3.6rem) clamp(1.4rem, 3.6vw, 3.6rem);
  overflow: hidden;
}
.wcard > .container { width: 100%; }

/* ============================================================
   TEAM CARDS — individual doctor cards (reference: dentix team)
   ============================================================ */
.tm__wrap { position: relative; margin-top: clamp(1.6rem, 3vw, 2.4rem); }
.tm__row {
  display: flex;
  gap: clamp(.9rem, 1.2vw, 1.1rem);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: .4rem;
}
.tm__row::-webkit-scrollbar { display: none; }
.tm-card {
  flex: 0 0 clamp(240px, 31.5%, 460px);
  scroll-snap-align: start;
}
.tm-card__media {
  border-radius: 18px;
  overflow: hidden;
  background: #F3F4F3;
  aspect-ratio: 4 / 4.6;
}
.tm-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform .6s var(--ease);
}
.tm-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  padding: .9rem .2rem 0;
}
.tm-card__foot b { display: block; font-size: 1.05rem; letter-spacing: -0.015em; }
.tm-card__foot span { display: block; font-size: .82rem; color: var(--ink-60); margin-top: .15rem; }
.tm-card__go {
  flex: none;
  width: 36px; height: 36px;
  border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid rgba(16, 24, 32, .14);
  color: var(--ink);
  transition: background .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.tm-card__go svg { width: 15px; height: 15px; }
@media (hover: hover) and (pointer: fine) {
  .tm-card:hover .tm-card__media img { transform: scale(1.04); }
  .tm-card:hover .tm-card__go { background: var(--green); border-color: var(--green); color: #fff; transform: translate(2px, -2px); }
}
.tm__nav {
  position: absolute;
  top: 38%;
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: #fff;
  box-shadow: 0 8px 22px -10px rgba(16, 24, 32, .35);
  color: var(--ink);
  z-index: 2;
  transition: transform .25s var(--ease);
}
.tm__nav svg { width: 17px; height: 17px; }
.tm__nav--prev { left: -8px; }
.tm__nav--next { right: -8px; }
.tm__nav:hover { transform: scale(1.08); }
.tm__promise {
  max-width: 46rem;
  margin: clamp(2rem, 4vw, 3rem) auto 0;
  text-align: center;
  font-size: clamp(1.2rem, 1.8vw, 1.6rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.4;
}
.tm__promise .hl { color: var(--green); }

/* ============================================================
   SERVICES GRID — large photo cards (reference: dentix /services)
   ============================================================ */
.sv-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--card-gap);
  width: var(--shell);
  margin: var(--card-gap) auto 0;
}
.sv-card {
  position: relative;
  isolation: isolate;
  border-radius: clamp(20px, 1.8vw, 28px);
  overflow: hidden;
  background: #0A0C0E;
  height: clamp(320px, 27vw, 480px);
  box-shadow: var(--card-shadow);
  color: #fff;
}
.sv-card img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
  z-index: -1;
}
.sv-card::after {
  content: "";
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(to top, rgba(8, 10, 12, .82) 0%, rgba(8, 10, 12, .35) 40%, rgba(8, 10, 12, .05) 65%);
}
.sv-card__body {
  position: absolute; z-index: 1;
  left: clamp(1.2rem, 2vw, 1.8rem); right: clamp(4.4rem, 5vw, 5.4rem); bottom: clamp(1.2rem, 2vw, 1.7rem);
}
.sv-card__body h3 { font-size: clamp(1.3rem, 1.9vw, 1.75rem); letter-spacing: -0.02em; line-height: 1.15; }
.sv-card__body p { margin-top: .4rem; font-size: .92rem; line-height: 1.45; color: rgba(255, 255, 255, .85); }
.sv-card__go {
  position: absolute; z-index: 1;
  right: clamp(1.1rem, 1.8vw, 1.5rem); bottom: clamp(1.1rem, 1.8vw, 1.5rem);
  width: clamp(42px, 3.4vw, 50px); height: clamp(42px, 3.4vw, 50px);
  border-radius: 50%;
  display: grid; place-items: center;
  background: #fff; color: var(--ink);
  transition: background .35s var(--ease), color .35s var(--ease), transform .35s var(--ease);
}
.sv-card__go svg { width: 19px; height: 19px; }
@media (hover: hover) and (pointer: fine) {
  .sv-card:hover img { transform: scale(1.05); }
  .sv-card:hover .sv-card__go { background: var(--green); color: #fff; transform: translate(2px, -2px); }
}
@media (max-width: 760px) {
  .sv-grid { grid-template-columns: 1fr; }
  .sv-card { height: clamp(280px, 60vw, 380px); }
  .tm-card { flex-basis: min(78vw, 320px); }
}

/* ============================================================
   PAGE HERO CARD (subpages) — image/video card, text bottom-left
   ============================================================ */
.phero {
  position: relative;
  isolation: isolate;
  width: var(--shell);
  margin: var(--card-gap) auto 0;
  height: min(58svh, 560px);
  border-radius: clamp(22px, 2vw, 34px);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  background: #0A0C0E;
  color: #fff;
  display: flex;
  align-items: flex-end;
}
.phero__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
}
.phero::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(8, 10, 12, .86) 0%, rgba(8, 10, 12, .42) 42%, rgba(8, 10, 12, .08) 72%);
}
.phero__inner {
  padding: clamp(1.6rem, 4vw, 3.4rem);
  max-width: 48rem;
}
.phero__inner .eyebrow { color: var(--blue-sky); }
.phero__inner .eyebrow::before { background: var(--blue-sky); }
.phero h1 {
  font-size: clamp(2.3rem, 5vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin-block: .9rem .8rem;
  max-width: 18ch;
  text-shadow: 0 2px 30px rgba(8, 10, 12, .4);
}
.phero__lead {
  max-width: 42rem;
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  line-height: 1.5;
  color: rgba(255, 255, 255, .86);
  text-shadow: 0 1px 16px rgba(8, 10, 12, .5);
}
@media (max-width: 640px) {
  .phero { height: min(66svh, 480px); }
  .phero__inner { padding: 1.4rem; }
}

/* conținutul din primul ecran apare imediat — animația de intrare rămâne
   doar pentru ce ajunge în ecran la derulare (vezi js/main.js) */
.reveal--now { transition: none !important; transition-delay: 0s !important; }

/* ============================================================
   MOBIL — corecții măsurate (audit august 2026)
   ============================================================ */

/* Media nu trebuie să poată împinge niciodată layout-ul în lateral */
img, video, iframe, canvas, svg { max-width: 100%; }

/* .split e grid; pe o coloană, `1fr` păstrează minimul de conținut al
   media-ului, deci coloana rămâne mai lată decât ecranul. minmax(0,1fr) o lasă
   să se strângă. */
@media (max-width: 1040px) {
  .split, .split--flip { grid-template-columns: minmax(0, 1fr); }
  .split > *, .split__media { min-width: 0; }
}

@media (max-width: 700px) {
  /* nimic sub 12px: pe telefon devine ilizibil */
  small, .lbl, .eyebrow small, .fx__col small { font-size: 12px; }
  /* zone de atins: link-urile-săgeată erau de 28px înălțime */
  .link-arrow { min-height: 44px; }
  .fx__legal-links a { display: inline-block; padding-block: 8px; }
}

/* Un buton cu text lung și white-space:nowrap își impune lățimea minimă și
   împinge coloana de grid — pe /tehnologie/ ieșea 15px din ecran. */
@media (max-width: 1040px) {
  .btn { white-space: normal; max-width: 100%; }
}

@media (max-width: 700px) {
  /* etichetele din meniu erau la 10,5px — prea mici pentru majuscule */
  .mmenu__contact a small, .mmenu__contact .lbl { font-size: 12px; }
  /* linkurile din coloanele subsolului aveau 25px înălțime de atins */
  .fx__col a, .fx__col li a { display: inline-block; padding-block: 8px; }
  /* bifa de acord GDPR era de 17×17px */
  .cx-check input[type="checkbox"], .pform-check input[type="checkbox"],
  input[type="checkbox"] { width: 22px; height: 22px; }
  .cx-check, .pform-check { padding-block: 6px; }
}

