/* ==========================================================================
   BEAUTY CONCEPT — demo de prezentare pentru studiouri de înfrumusețare
   Fonturi: Archivo (OFL, local) + serif de sistem pentru titluri
   Pictograme: Lucide (ISC) + Simple Icons (CC0), inline
   ========================================================================== */

/* ---------- fonturi locale ---------- */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/archivo-latin-ext-400-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/archivo-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/archivo-latin-ext-600-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/archivo-latin-600-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- tokenuri ---------- */
:root {
  /* suprafețe */
  --porcelain: #FCF8F5;
  --porcelain-2: #F5ECE6;
  --shell: #EFE1D9;
  --white: #FFFFFF;

  /* cerneală */
  --ink: #2A1F24;
  --ink-2: #6A5A60;

  /* accent */
  --rose: #A8475C;
  --rose-hover: #8E3A4C;
  --rose-soft: #C98A97;
  --rose-wash: #F8EDEE;
  --sand: #B9906A;

  /* linii */
  --line: rgba(42, 31, 36, .13);
  --line-2: rgba(42, 31, 36, .07);

  /* tipografie */
  --font-display: Georgia, 'Times New Roman', 'Noto Serif', serif;
  --font-ui: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* mișcare — trei durate, o singură curbă */
  --ease: cubic-bezier(.4, 0, .2, 1);
  --t-fast: 200ms;
  --t-base: 300ms;
  --t-slow: 500ms;

  /* ritm */
  --gutter: 1.375rem;
  --maxw: 74rem;
  --header-h: 60px;
}

@media (min-width: 900px) {
  :root { --gutter: 2.5rem; --header-h: 76px; }
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}
body {
  margin: 0;
  background: var(--porcelain);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }

/* ---------- tipografie ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -.022em;
  line-height: 1.04;
}
h1.display { font-size: clamp(2.4rem, 9.4vw, 4.7rem); }
h2.display {
  font-size: clamp(1.85rem, 5.6vw, 3rem);
  line-height: 1.1;
  letter-spacing: -.018em;
}
h3 { font-size: 1.0625rem; font-weight: 600; line-height: 1.35; letter-spacing: -.005em; }

.eyebrow {
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  line-height: 1.5;
  color: var(--rose);
}
.lead { font-size: 1.125rem; line-height: 1.6; color: var(--ink-2); }
.muted { color: var(--ink-2); }
.small { font-size: .9375rem; }

@media (min-width: 900px) {
  .lead { font-size: 1.25rem; }
}

/* ---------- layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
section { padding-block: clamp(3.75rem, 9vw, 7rem); }
.section-head { max-width: 40rem; }
.section-head .eyebrow { margin-bottom: .9rem; }
.section-head p { margin-top: 1.1rem; }

.rule {
  height: 1px;
  background: var(--line-2);
  border: 0;
  margin: 0;
}

/* ---------- accesibilitate ---------- */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--ink);
  color: var(--porcelain);
  padding: .85rem 1.25rem;
  border-radius: 0 0 .5rem 0;
}
.skip:focus { left: 0; }

:where(a, button, [tabindex]):focus-visible {
  outline: 2px solid var(--rose);
  outline-offset: 3px;
  border-radius: 3px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- butoane ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 48px;
  padding: .8rem 1.5rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .9375rem;
  font-weight: 600;
  letter-spacing: .01em;
  text-decoration: none;
  cursor: pointer;
  background: none;
  transition:
    background-color var(--t-base) var(--ease),
    color            var(--t-base) var(--ease),
    border-color     var(--t-base) var(--ease),
    box-shadow       var(--t-base) var(--ease),
    transform        var(--t-fast) var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; }

.btn-primary {
  background: var(--rose);
  color: var(--white);
  box-shadow: 0 1px 2px rgba(42, 31, 36, .16);
}
.btn-primary:hover {
  background: var(--rose-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px -10px rgba(142, 58, 76, .7);
}
.btn-primary:active { transform: translateY(0) scale(.98); box-shadow: 0 1px 2px rgba(42, 31, 36, .2); }

.btn-ghost {
  border-color: var(--line);
  color: var(--ink);
}
.btn-ghost:hover {
  border-color: var(--ink);
  background: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -12px rgba(42, 31, 36, .5);
}
.btn-ghost:active { transform: translateY(0) scale(.98); }

/* ---------- bara de demo ---------- */
.demobar {
  background: var(--ink);
  color: var(--porcelain);
  font-size: .75rem;
  line-height: 1.45;
  letter-spacing: .02em;
  padding: .55rem var(--gutter);
  text-align: center;
}
.demobar strong { font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--rose-soft); }

/* ---------- antet ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(252, 248, 245, .88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
}
.site-header.is-stuck {
  border-bottom-color: var(--line-2);
  box-shadow: 0 6px 24px -20px rgba(42, 31, 36, .9);
}
.header-in {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 46px;
  padding-block: .35rem;
  text-decoration: none;
  line-height: 1;
  margin-right: auto;
}
.brand-mark {
  font-family: var(--font-display);
  font-size: 1.3125rem;
  letter-spacing: -.01em;
}
.brand-sub {
  font-size: .5625rem;
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-top: .2rem;
}
@media (min-width: 900px) {
  .brand-mark { font-size: 1.5rem; }
  .brand-sub { font-size: .625rem; }
}

.nav { display: none; }
@media (min-width: 900px) {
  .nav { display: flex; gap: 2rem; align-items: center; }
  .nav a {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 46px;
    text-decoration: none;
    font-size: .9375rem;
    padding-block: .7rem;
    color: var(--ink-2);
    transition: color var(--t-base) var(--ease);
  }
  .nav a::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: .6rem;
    height: 1px;
    background: var(--rose);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--t-base) var(--ease);
  }
  .nav a:hover { color: var(--ink); }
  .nav a:hover::after { transform: scaleX(1); }
}

.header-call { display: none; }
@media (min-width: 900px) {
  .header-call { display: inline-flex; }
}

/* ---------- hero ---------- */
.hero { padding-top: clamp(2.5rem, 6vw, 4.5rem); padding-bottom: clamp(3rem, 7vw, 5.5rem); }
.hero-grid { display: grid; gap: clamp(2.25rem, 5vw, 3.5rem); }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.05fr .95fr; align-items: center; gap: 4rem; }
}
.hero h1 { margin-top: 1rem; }
.hero .lead { margin-top: 1.35rem; max-width: 34rem; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 2rem;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem 1.35rem;
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-2);
  font-size: .875rem;
  color: var(--ink-2);
}
.hero-meta span { display: inline-flex; align-items: center; gap: .45rem; }
.hero-meta svg { width: 15px; height: 15px; color: var(--rose); flex: none; }

.frame {
  position: relative;
  border-radius: 2px;
  overflow: hidden;
  background: var(--porcelain-2);
}
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame-tall { aspect-ratio: 4 / 5; }
.frame-wide { aspect-ratio: 16 / 10; }
.frame::after {
  content: '';
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px var(--line-2);
  pointer-events: none;
}
.hero-figure { position: relative; }
.hero-figure::before {
  content: '';
  position: absolute;
  inset: auto -.85rem -.85rem auto;
  width: 62%;
  height: 62%;
  background: var(--shell);
  z-index: -1;
}

/* ---------- taburi de servicii ---------- */
.tabs { margin-top: 2.5rem; }
.tablist {
  display: flex;
  gap: .5rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: .25rem;
  margin-inline: calc(var(--gutter) * -1);
  padding-inline: var(--gutter);
  scroll-snap-type: x proximity;
}
.tablist::-webkit-scrollbar { display: none; }
@media (min-width: 700px) {
  .tablist { margin-inline: 0; padding-inline: 0; flex-wrap: wrap; overflow: visible; }
}
.tab {
  flex: none;
  scroll-snap-align: start;
  min-height: 48px;
  padding: .7rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  font-size: .9375rem;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
  white-space: nowrap;
  transition:
    background-color var(--t-base) var(--ease),
    color            var(--t-base) var(--ease),
    border-color     var(--t-base) var(--ease),
    transform        var(--t-fast) var(--ease);
}
.tab:hover { color: var(--ink); border-color: var(--ink); transform: translateY(-2px); }
.tab:active { transform: translateY(0) scale(.98); }
.tab[aria-selected="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--porcelain);
}

.tabpanel { padding-top: 2.25rem; }
.tabpanel[hidden] { display: none; }
.svc-list { display: grid; gap: 0; }
@media (min-width: 800px) { .svc-list { grid-template-columns: 1fr 1fr; column-gap: 3.5rem; } }

.svc {
  display: grid;
  grid-template-columns: 2.5rem 1fr auto;
  align-items: baseline;
  gap: 0 1rem;
  padding-block: 1.35rem;
  border-top: 1px solid var(--line-2);
  transition: background-color var(--t-base) var(--ease);
}
.svc:hover { background: rgba(255, 255, 255, .6); }
.svc-no {
  font-family: var(--font-display);
  font-size: .9375rem;
  color: var(--rose-soft);
  letter-spacing: .02em;
}
.svc-body p { margin-top: .3rem; font-size: .9375rem; color: var(--ink-2); line-height: 1.55; }
.svc-time {
  font-size: .8125rem;
  color: var(--ink-2);
  white-space: nowrap;
  letter-spacing: .04em;
}

/* ---------- studio ---------- */
.studio { background: var(--porcelain-2); }
.studio-grid { display: grid; gap: clamp(2.25rem, 5vw, 3.5rem); }
@media (min-width: 900px) {
  .studio-grid { grid-template-columns: .95fr 1.05fr; align-items: center; gap: 4rem; }
  .studio-figure { order: -1; }
}
.points { margin-top: 2rem; display: grid; gap: 1.5rem; }
.point { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start; }
.point-no {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--rose-soft);
}
.point p { margin-top: .35rem; font-size: .9375rem; color: var(--ink-2); }

/* ---------- contoare ---------- */
.stats { background: var(--ink); color: var(--porcelain); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem 1.5rem;
}
@media (min-width: 800px) { .stats-grid { grid-template-columns: repeat(4, 1fr); gap: 2rem; } }
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 10vw, 4.25rem);
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--shell);
  font-variant-numeric: tabular-nums;
}
.stat-label {
  margin-top: .7rem;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(252, 248, 245, .62);
}
.stat-note { margin-top: .5rem; font-size: .875rem; color: rgba(252, 248, 245, .5); line-height: 1.5; }

/* ---------- recenzii ---------- */
.rev-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.rev-nav { display: flex; gap: .5rem; }
.rev-btn {
  width: 48px; height: 48px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition:
    background-color var(--t-base) var(--ease),
    border-color     var(--t-base) var(--ease),
    color            var(--t-base) var(--ease),
    transform        var(--t-fast) var(--ease);
}
.rev-btn svg { width: 19px; height: 19px; }
.rev-btn:hover { background: var(--ink); border-color: var(--ink); color: var(--porcelain); transform: translateY(-2px); }
.rev-btn:active { transform: translateY(0) scale(.96); }
.rev-btn[disabled] { opacity: .3; cursor: default; transform: none; background: transparent; border-color: var(--line); color: var(--ink); }

.rev-viewport {
  margin-top: 2.5rem;
  overflow: hidden;
  margin-inline: calc(var(--gutter) * -1);
  padding-inline: var(--gutter);
}
.rev-track {
  display: flex;
  gap: 1.25rem;
  transition: transform var(--t-slow) var(--ease);
  touch-action: pan-y;
}
.rev-track.is-drag { transition: none; cursor: grabbing; }
.rev-card {
  flex: 0 0 auto;
  width: min(20.5rem, 82vw);
  background: var(--white);
  border: 1px solid var(--line-2);
  padding: 1.75rem 1.6rem;
  display: flex;
  flex-direction: column;
}
.rev-card svg.q { width: 22px; height: 22px; color: var(--shell); }
.rev-stars { display: flex; gap: .15rem; margin-top: 1rem; color: var(--sand); }
.rev-stars svg { width: 15px; height: 15px; fill: currentColor; }
.rev-card blockquote { margin-top: .9rem; font-size: .9375rem; line-height: 1.62; flex: 1; }
.rev-who { margin-top: 1.4rem; padding-top: 1rem; border-top: 1px solid var(--line-2); font-size: .8125rem; }
.rev-who strong { font-weight: 600; }
.rev-who span { color: var(--ink-2); }

.rev-dots { display: flex; gap: .5rem; margin-top: .9rem; }
/* linia vizibilă are 2px, dar zona de atingere rămâne de 44px */
.rev-dot {
  width: 40px; height: 44px;
  border: 0; padding: 0;
  background: none;
  cursor: pointer;
  display: grid;
  align-items: center;
}
.rev-dot::after {
  content: '';
  display: block;
  height: 2px;
  background: var(--line);
  transition: background-color var(--t-base) var(--ease);
}
.rev-dot:hover::after { background: var(--rose-soft); }
.rev-dot[aria-current="true"]::after { background: var(--rose); }

/* fallback fără JS: recenziile se derulează cu degetul */
.no-js .rev-viewport { overflow-x: auto; }
.no-js .rev-nav, .no-js .rev-dots { display: none; }

/* ---------- contact ---------- */
.contact { background: var(--porcelain-2); }
.contact-grid { display: grid; gap: clamp(2.25rem, 5vw, 3.5rem); }
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 1fr .85fr; gap: 4rem; align-items: stretch; }
  /* imaginea urmează înălțimea coloanei de text, ca să nu rămână un gol sub ea */
  .contact-grid figure { display: flex; }
  .contact-grid .frame-wide { aspect-ratio: auto; flex: 1; position: sticky; top: calc(var(--header-h) + 2rem); min-height: 30rem; }
}
.contact .btn-primary { margin-top: 1.75rem; }
.contact-note { margin-top: 1rem; font-size: .875rem; color: var(--ink-2); }

.chan {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
  gap: .625rem;
}
.chan a, .chan span {
  display: flex;
  align-items: center;
  gap: .7rem;
  min-height: 52px;
  padding: .7rem .9rem;
  background: var(--white);
  border: 1px solid var(--line-2);
  text-decoration: none;
  font-size: .875rem;
  font-weight: 600;
  transition:
    border-color var(--t-base) var(--ease),
    box-shadow   var(--t-base) var(--ease),
    transform    var(--t-fast) var(--ease);
}
.chan a:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: 0 10px 22px -16px rgba(42, 31, 36, .8); }
.chan a:active { transform: translateY(0) scale(.99); }
.chan svg { width: 19px; height: 19px; flex: none; }
.chan .ic-wa { color: #25D366; }
.chan .ic-ig { color: #E4405F; }
.chan .ic-fb { color: #0866FF; }
.chan .ic-phone, .chan .ic-pin, .chan .ic-mail { color: var(--rose); }

.chan-todo {
  color: var(--ink-2);
  background: transparent;
  border-style: dashed;
  cursor: default;
}
.chan-todo svg { opacity: .5; }
.chan-todo em {
  font-style: normal;
  font-size: .625rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--rose-soft);
  margin-left: auto;
}

.hours { margin-top: 2rem; font-size: .9375rem; }
.hours dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: .4rem 1.5rem; }
.hours dt { color: var(--ink-2); }
.hours dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(252, 248, 245, .72);
  padding-block: clamp(3rem, 6vw, 4.5rem);
  font-size: .875rem;
}
.foot-grid { display: grid; gap: 2.25rem; }
@media (min-width: 800px) { .foot-grid { grid-template-columns: 1.2fr 1fr 1fr; gap: 3rem; } }
.foot-brand .brand-mark { color: var(--porcelain); font-size: 1.5rem; }
.foot-brand .brand-sub { color: rgba(252, 248, 245, .5); }
.foot-brand p { margin-top: 1rem; max-width: 22rem; line-height: 1.6; }
.foot-title {
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(252, 248, 245, .5);
  margin-bottom: 1rem;
}
.foot-list li + li { margin-top: .6rem; }
.foot-list a {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  transition: color var(--t-base) var(--ease);
}
.foot-list a:hover { color: var(--porcelain); }
.foot-bottom {
  margin-top: 3rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(252, 248, 245, .13);
  font-size: .8125rem;
  color: rgba(252, 248, 245, .5);
  line-height: 1.6;
}

/* ---------- bara mobilă de apel ---------- */
.mobile-call {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 70;
  display: flex;
  background: var(--ink);
  padding: .5rem var(--gutter) calc(.5rem + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(252, 248, 245, .12);
}
.mobile-call .btn { flex: 1; }
@media (min-width: 900px) { .mobile-call { display: none; } }
body { padding-bottom: 0; }
@media (max-width: 899px) { body { padding-bottom: 76px; } }

/* ---------- chat flotant ---------- */
.chat-fab {
  position: fixed;
  right: 1rem;
  bottom: calc(76px + 1rem + env(safe-area-inset-bottom));
  z-index: 80;
  width: 56px; height: 56px;
  border: 0;
  border-radius: 999px;
  background: var(--rose);
  color: var(--white);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 10px 28px -10px rgba(42, 31, 36, .75);
  transition:
    background-color var(--t-base) var(--ease),
    box-shadow       var(--t-base) var(--ease),
    transform        var(--t-fast) var(--ease);
}
@media (min-width: 900px) { .chat-fab { right: 1.75rem; bottom: 1.75rem; } }
.chat-fab svg { width: 26px; height: 26px; fill: currentColor; }
.chat-fab .ic-close { display: none; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.chat-fab:hover { background: var(--rose-hover); transform: translateY(-2px); }
.chat-fab:active { transform: translateY(0) scale(.94); }
.chat-fab[aria-expanded="true"] .ic-wa { display: none; }
.chat-fab[aria-expanded="true"] .ic-close { display: block; }

.chat-hint {
  position: fixed;
  right: calc(1rem + 66px);
  bottom: calc(76px + 1.55rem + env(safe-area-inset-bottom));
  z-index: 79;
  background: var(--white);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: .55rem 1rem;
  font-size: .8125rem;
  white-space: nowrap;
  box-shadow: 0 10px 26px -18px rgba(42, 31, 36, .9);
  opacity: 0;
  transform: translateX(8px);
  pointer-events: none;
  transition: opacity var(--t-base) var(--ease), transform var(--t-base) var(--ease);
}
@media (min-width: 900px) { .chat-hint { right: calc(1.75rem + 66px); bottom: 2.3rem; } }
.chat-hint.is-on { opacity: 1; transform: translateX(0); }
@media (max-width: 420px) { .chat-hint { display: none; } }

.chat-panel {
  position: fixed;
  z-index: 81;
  right: 1rem;
  left: 1rem;
  bottom: calc(76px + 4.75rem + env(safe-area-inset-bottom));
  max-width: 21.5rem;
  margin-left: auto;
  background: var(--white);
  border: 1px solid var(--line-2);
  border-radius: 4px;
  box-shadow: 0 24px 60px -24px rgba(42, 31, 36, .55);
  overflow: hidden;
  opacity: 0;
  transform: translateY(14px) scale(.98);
  transform-origin: bottom right;
  visibility: hidden;
  transition:
    opacity    var(--t-base) var(--ease),
    transform  var(--t-base) var(--ease),
    visibility 0s linear var(--t-base);
}
@media (min-width: 900px) { .chat-panel { right: 1.75rem; left: auto; bottom: 5.75rem; width: 21.5rem; } }
.chat-panel.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  visibility: visible;
  transition-delay: 0s;
}

.chat-top {
  background: var(--ink);
  color: var(--porcelain);
  padding: 1.1rem 1.25rem;
}
.chat-top .brand-mark { font-size: 1.0625rem; color: var(--porcelain); }
.chat-live {
  margin-top: .4rem;
  display: flex;
  align-items: center;
  gap: .45rem;
  font-size: .75rem;
  color: rgba(252, 248, 245, .62);
}
.chat-dot {
  width: 7px; height: 7px;
  border-radius: 999px;
  background: #48C97B;
  flex: none;
  animation: pulse 2.2s var(--ease) infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(72, 201, 123, .55); }
  60%      { box-shadow: 0 0 0 7px rgba(72, 201, 123, 0); }
}

.chat-body { padding: 1.25rem; background: var(--porcelain); }
.chat-bubble {
  background: var(--white);
  border: 1px solid var(--line-2);
  border-radius: 2px 12px 12px 12px;
  padding: .8rem 1rem;
  font-size: .875rem;
  line-height: 1.55;
}
.chat-qs { margin-top: 1rem; display: grid; gap: .5rem; }
.chat-q {
  text-align: left;
  min-height: 46px;
  padding: .6rem .9rem;
  border: 1px solid var(--rose-soft);
  border-radius: 999px;
  background: transparent;
  color: var(--rose);
  font-size: .8125rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    background-color var(--t-base) var(--ease),
    color            var(--t-base) var(--ease),
    transform        var(--t-fast) var(--ease);
}
.chat-q:hover { background: var(--rose); color: var(--white); transform: translateY(-2px); }
.chat-q:active { transform: translateY(0) scale(.98); }

.chat-foot {
  display: flex;
  gap: .5rem;
  padding: .75rem;
  border-top: 1px solid var(--line-2);
  background: var(--white);
}
.chat-input {
  flex: 1;
  min-width: 0;
  min-height: 46px;
  padding: .55rem .85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .875rem;
  font-family: inherit;
  background: var(--porcelain);
  color: var(--ink);
}
.chat-input::placeholder { color: var(--ink-2); }
.chat-send {
  width: 46px; height: 46px;
  flex: none;
  border: 0;
  border-radius: 999px;
  background: var(--rose);
  color: var(--white);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background-color var(--t-base) var(--ease), transform var(--t-fast) var(--ease);
}
.chat-send svg { width: 18px; height: 18px; }
.chat-send:hover { background: var(--rose-hover); transform: translateY(-2px); }
.chat-send:active { transform: translateY(0) scale(.94); }

/* fără JS chat-ul nu poate funcționa: controlul dispare, canalele rămân în pagină */
.no-js .chat-fab, .no-js .chat-panel, .no-js .chat-hint { display: none; }

/* ---------- dezvăluire la derulare ----------
   Ascunderea se aplică NUMAI când JS rulează (clasa .js pe <html>).
   Fără JS, sau dacă mecanismul cade, conținutul rămâne vizibil. */
.js .reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- mișcare redusă ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, ::before, ::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}
