/* =========================================================================
   Realest.Consulea — stratul v6 „CINEMA & CONCIERGE" (Fable Varianta 2)
   Se încarcă după v5.css. Filmul: tranziții între pagini, praf de aur,
   cursor propriu, titlu care se scrie singur, banda de brand.
   Concierge: „Brieful de 30 de secunde" — dialog scurt → mesaj WhatsApp gata scris.
   ========================================================================= */

/* ---------------- TRANZIȚII CINEMATICE ÎNTRE PAGINI ---------------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation-duration: .22s; }
::view-transition-new(root) { animation-duration: .34s; }

/* ---------------- BARA DE PROGRES AURIE ---------------- */
.vprog {
  position: fixed; top: 0; left: 0; height: 2.5px; width: 100%;
  transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--gold), var(--gold-2));
  z-index: 150; pointer-events: none;
}

/* ---------------- CURSORUL AURIU (doar desktop, cu mouse) ---------------- */
@media (hover: hover) and (pointer: fine) {
  .cur {
    position: fixed; top: 0; left: 0; z-index: 400; pointer-events: none;
    width: 34px; height: 34px; margin: -17px 0 0 -17px;
    border: 1.5px solid rgba(230, 197, 95, .55); border-radius: 50%;
    transition: width .25s var(--ease), height .25s var(--ease), margin .25s var(--ease),
                border-color .25s var(--ease), opacity .3s;
    opacity: 0;
  }
  .cur.on { opacity: 1; }
  .cur.big {
    width: 58px; height: 58px; margin: -29px 0 0 -29px;
    border-color: var(--gold-2);
  }
  .cur::after {
    content: ""; position: absolute; inset: 0; margin: auto;
    width: 4px; height: 4px; border-radius: 50%; background: var(--gold-2);
  }
}

/* ---------------- PRAF DE AUR (canvas generativ în hero) ---------------- */
.fx { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.heroq { position: relative; }
.heroq .wrap { position: relative; z-index: 1; }

/* ---------------- TITLUL CARE SE SCRIE SINGUR ---------------- */
.typing::after {
  content: ""; display: inline-block; width: .08em; height: .82em;
  margin-left: .06em; vertical-align: -.06em;
  background: var(--gold-2);
  animation: caret .8s steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }

/* ---------------- BANDA DE BRAND (marquee) ---------------- */
.mq {
  overflow: hidden; background: var(--ink); border-block: 1px solid var(--line-d);
  padding: 18px 0; user-select: none;
}
.mq__t {
  display: inline-flex; align-items: center; gap: 44px; white-space: nowrap;
  padding-right: 44px; will-change: transform;
  animation: mq 36s linear infinite;
}
.mq:hover .mq__t { animation-play-state: paused; }
.mq__t span {
  font-size: var(--t-lead); font-weight: 600; letter-spacing: -.01em; color: var(--od-mid);
}
.mq__t i { color: var(--gold); font-style: normal; font-size: .8em; }
.mq__t b { color: var(--gold-2); font-weight: 700; }
@keyframes mq { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .mq__t { animation: none; } }

/* ---------------- CONCIERGE — „Brieful de 30 de secunde" ---------------- */
.cg { position: fixed; inset: 0; z-index: 260; display: none; }
.cg.open { display: block; }
.cg__bg { position: absolute; inset: 0; background: rgba(10,10,13,.7); -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px); }
.cg__win {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: min(560px, 100vw); max-height: min(86vh, 720px);
  background: var(--ink-2); border: 1px solid var(--line-d); border-bottom: 0;
  border-radius: 22px 22px 0 0; display: flex; flex-direction: column;
  box-shadow: 0 -30px 90px -20px rgba(0,0,0,.8);
}
@media (min-width: 700px) {
  .cg__win { bottom: auto; top: 50%; transform: translate(-50%, -50%); border-radius: 22px; border-bottom: 1px solid var(--line-d); }
}
.cg__hd {
  display: flex; align-items: center; gap: 14px; padding: 18px 22px;
  border-bottom: 1px solid var(--line-d);
}
.cg__hd img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; object-position: top center; }
.cg__hd .t { font-weight: 700; color: var(--od); font-size: var(--t-body); }
.cg__hd .s { font-size: var(--t-micro); color: var(--od-mid); margin-top: 2px; }
.cg__x {
  margin-left: auto; flex: 0 0 auto; background: none; cursor: pointer;
  font: inherit; font-size: var(--t-micro); font-weight: 700; letter-spacing: .04em;
  color: var(--od-mid); border: 1.5px solid var(--line-d); border-radius: var(--pill);
  padding: 9px 16px; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
}
.cg__x:hover { color: var(--od); border-color: var(--od-dim); background: rgba(255,255,255,.05); }
.cg__x svg { width: 14px; height: 14px; }

.cg__body { padding: 22px; overflow-y: auto; flex: 1; }
.cg__q { font-size: var(--t-h3); font-weight: 700; color: var(--od); letter-spacing: -.012em; margin: 0 0 4px; }
.cg__hint { font-size: var(--t-small); color: var(--od-mid); margin: 0 0 18px; }
.cg__chips { display: flex; flex-wrap: wrap; gap: 10px; }
.cg__chip {
  font: inherit; font-size: var(--t-small); font-weight: 600; color: var(--od);
  background: var(--ink); border: 1.5px solid var(--line-d); border-radius: var(--pill);
  padding: 12px 20px; cursor: pointer;
  transition: border-color .2s var(--ease), color .2s var(--ease), background .2s var(--ease);
}
.cg__chip:hover { border-color: var(--gold); color: var(--gold-2); }
.cg__in {
  width: 100%; font: inherit; font-size: var(--t-body); color: var(--od);
  background: var(--ink); border: 1.5px solid var(--line-d); border-radius: 14px;
  padding: 14px 16px; outline: none; margin-bottom: 12px;
}
.cg__in:focus { border-color: var(--gold); }
.cg__row { display: flex; gap: 10px; flex-wrap: wrap; }

/* rezumatul — arată ca un mesaj de WhatsApp */
.cg__msg {
  background: #1F2C24; border: 1px solid #2C6A4A55; border-radius: 16px 16px 16px 4px;
  padding: 16px 18px; font-size: var(--t-small); line-height: 1.6; color: var(--od);
  white-space: pre-wrap; margin-bottom: 18px;
}
.cg__foot { padding: 16px 22px 20px; border-top: 1px solid var(--line-d); display: grid; gap: 10px; }
.cg__foot .btn { justify-content: center; }
.cg__alt { text-align: center; font-size: var(--t-small); color: var(--od-mid); }
.cg__alt a { color: var(--gold-2); }
.cg__back {
  background: none; border: 0; cursor: pointer; font: inherit;
  font-size: var(--t-small); font-weight: 600; color: var(--od-dim);
  display: inline-flex; align-items: center; gap: 6px; padding: 0; margin-bottom: 16px;
}
.cg__back:hover { color: var(--od); }
.cg__back svg { width: 15px; height: 15px; }
.cg__dots { display: flex; gap: 6px; margin-bottom: 18px; }
.cg__dots i { width: 22px; height: 4px; border-radius: 2px; background: var(--line-d); }
.cg__dots i.on { background: var(--gold); }

/* butonul de brief din hero */
.briefbtn {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 22px;
  font: inherit; font-size: clamp(12px, 3.4vw, 15px); font-weight: 700; color: var(--ink);
  white-space: nowrap; max-width: 100%;
  background: linear-gradient(100deg, var(--gold-2), var(--gold));
  border: 0; border-radius: var(--pill); padding: 13px clamp(14px, 4vw, 24px); cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
  box-shadow: 0 8px 26px -10px rgba(201,162,39,.55);
}
.briefbtn:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -10px rgba(201,162,39,.65); }
.briefbtn svg { width: 17px; height: 17px; }

/* butonul de brief din dock — auriu, primar */
.dock .dock-brief { background: var(--gold); color: var(--ink); white-space: nowrap; flex: 0 0 auto; }
.dock .dock-brief:hover { background: var(--gold-2); }

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
  .cur { display: none !important; }
  .typing::after { animation: none; }
}

/* bara de jos pe index: ascunsă la intrare, apare după ce treci de uși (01-04) */
.mbar { transition: transform .4s var(--ease); }
.mbar--wait { transform: translateY(140%); }
