/* ==========================================================================
   Libro — bază comună pentru ambele lumi (curățenie + evenimente)
   ========================================================================== */

/* ---------- Fonturi, găzduite pe site (fără cereri către alte servere) ----------
   Fiecare font are două fișiere: literele de bază și diacriticele (ă, ș, ț).
   Browserul descarcă doar ce folosește pagina deschisă. */
/* latin-ext */
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(../assets/fonts/manrope-latin-ext.woff2?v=1) 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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
/* latin */
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(../assets/fonts/manrope-latin.woff2?v=1) 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; }
/* latin-ext */
@font-face { font-family: 'Sofia Sans Extra Condensed'; font-style: normal; font-weight: 600 900; font-display: swap; src: url(../assets/fonts/sofia-sans-extra-condensed-latin-ext.woff2?v=1) 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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
/* latin */
@font-face { font-family: 'Sofia Sans Extra Condensed'; font-style: normal; font-weight: 600 900; font-display: swap; src: url(../assets/fonts/sofia-sans-extra-condensed-latin.woff2?v=1) 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; }

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  font-family: var(--ff-b);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, picture, video, canvas { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

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

.wrap {
  width: min(100% - 2 * var(--pad), 1280px);
  margin-inline: auto;
}

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  background: var(--pre-bg);
  color: var(--pre-fg);
  /* dacă JavaScript nu pornește deloc, ecranul dispare singur */
  animation: preloader-failsafe .6s ease 5s forwards;
}
.preloader__inner { display: grid; justify-items: center; gap: 18px; }
.preloader__mark { width: 84px; height: auto; }
.preloader__word {
  font-family: var(--ff-d);
  font-size: clamp(44px, 9vw, 96px);
  line-height: .9;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.preloader__bar {
  width: min(240px, 50vw); height: 3px; border-radius: 3px;
  background: var(--pre-track); overflow: hidden;
}
.preloader__bar i {
  display: block; height: 100%; width: 100%;
  background: var(--pre-accent);
  transform: scaleX(0); transform-origin: left center;
}
@keyframes preloader-failsafe { to { opacity: 0; visibility: hidden; } }
/* a doua pagină deschisă în aceeași vizită nu mai arată ecranul de încărcare */
html.seen .preloader { display: none; }

/* odată ce clipul e pe ecran, imaginea statică de sub el nu mai este desenată */
.has-clip > picture, .has-clip > img { visibility: hidden; }
/* animațiile care rulează singure stau pe loc cât timp nu se văd */
.is-offscreen, .is-offscreen * { animation-play-state: paused !important; }

/* ---------- Cortina de trecere între lumi ---------- */
.curtain {
  position: fixed; inset: 0; z-index: 190;
  display: grid; place-items: center;
  visibility: hidden;
  pointer-events: none;
  will-change: transform;
}
/* am venit din cealaltă lume: cortina acoperă pagina din primul cadru */
html.via-curtain .curtain--landing {
  visibility: visible;
  animation: preloader-failsafe .6s ease 5s forwards;
}
html.via-curtain .curtain--landing img,
html.via-curtain .curtain--landing .curtain__word { opacity: 1; }
html.via-curtain .preloader { display: none; }
.curtain img { width: clamp(90px, 14vw, 150px); height: auto; opacity: 0; }
.curtain--clean img { width: clamp(130px, 17vw, 200px); }
.curtain--events { background: #5a1420; }
.curtain--clean { background: #ffc738; }
.curtain--clean .curtain__word {
  font-family: "Sofia Sans Extra Condensed", "Barlow Condensed", "Arial Narrow", sans-serif;
  font-weight: 800; font-size: clamp(60px, 12vw, 160px); line-height: .9;
  text-transform: uppercase; color: #141b2e; opacity: 0;
}

/* ---------- Butoane ---------- */
.btn {
  --btn-bg: var(--accent);
  --btn-fg: var(--on-accent);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 0 26px;
  border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 700; font-size: 16px; letter-spacing: .01em;
  white-space: nowrap;
  transition: background-color .3s ease, color .3s ease, box-shadow .3s ease;
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.btn:hover svg { transform: translateX(5px); }
.btn--ghost {
  --btn-bg: transparent; --btn-fg: var(--text);
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
}
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px currentColor; }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 15px; }

/* ---------- Texte mici ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; background: var(--accent); flex: none;
}

/* ---------- Formular ---------- */
.form { display: grid; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--form-label); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 15px 18px;
  border-radius: 14px;
  border: 1.5px solid var(--form-border);
  background: var(--form-bg);
  color: var(--form-fg);
  font-size: 16px;
  transition: border-color .25s ease, background-color .25s ease;
}
.field textarea { min-height: 130px; resize: vertical; }
.field select { appearance: none; -webkit-appearance: none; background-image: var(--form-caret); background-repeat: no-repeat; background-position: right 18px center; padding-right: 46px; }
.field input::placeholder, .field textarea::placeholder { color: var(--form-ph); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); background: var(--form-bg-focus);
}
/* câmp-capcană pentru roboți: invizibil pentru oameni și pentru cititoarele de ecran */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.check { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; font-size: 14px; line-height: 1.5; color: var(--form-label); cursor: pointer; }
.check input { width: 24px; height: 24px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.check a { color: var(--form-fg); text-decoration: underline; text-underline-offset: 3px; }
.form__status.is-error { color: #ff8f8f; }
.btn[disabled] { opacity: .6; cursor: progress; }
.form__note { font-size: 14px; color: var(--form-label); }
.form__status { font-size: 15px; font-weight: 600; min-height: 1.4em; color: var(--accent); }

@media (max-width: 640px) {
  .form__row { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- Telefon: ținte de atingere de cel puțin 44 px ---------- */
@media (max-width: 820px) {
  .footer .footer__grid a, .efooter .efooter__grid a { padding-top: 11px; padding-bottom: 11px; }
  .nav .nav__brand { min-height: 44px; }
  .menu__phone { display: inline-flex; align-items: center; min-height: 44px; }
}
