/* ==========================================================================
   Libro Events — lumea evenimentelor (alb-piatră, grafit, vișiniu): ton corporate
   ========================================================================== */

:root {
  --ivory: #f6f5f2;
  --cream: #e9e7e2;
  --white: #ffffff;
  --ink: #17191e;
  --ink-soft: #5b5f68;
  --wine: #7b1d2b;
  --wine-deep: #4d0f1a;
  --gold: #7b1d2b;
  --gold-light: #ddd6ca;
  --blush: #f3dcd3;

  --bg: var(--ivory);
  --text: var(--ink);
  --muted: var(--ink-soft);
  --accent: var(--wine);
  --on-accent: #fff7ec;
  --line: rgba(23, 25, 30, .12);
  --line-strong: rgba(23, 25, 30, .3);
  --focus: var(--wine);

  --pre-bg: var(--ivory);
  --pre-fg: var(--wine);
  --pre-track: rgba(123, 29, 43, .16);
  --pre-accent: var(--wine);

  --form-bg: #fff;
  --form-bg-focus: #fff;
  --form-border: rgba(23, 25, 30, .18);
  --form-fg: var(--ink);
  --form-ph: rgba(23, 25, 30, .38);
  --form-label: var(--ink-soft);
  --form-caret: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' fill='none' stroke='%237b1d2b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5 7 7.5l6-6'/%3E%3C/svg%3E");

  --ff-d: "Sofia Sans Extra Condensed", "Barlow Condensed", "Arial Narrow", sans-serif;
  --ff-b: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --pad: clamp(20px, 4vw, 64px);
  --r: 28px;
}

.serif {
  font-family: var(--ff-d); font-weight: 800; text-transform: uppercase;
  font-size: clamp(44px, 6.2vw, 104px); line-height: .92; letter-spacing: .004em;
  text-wrap: balance;
}
.serif em, .ehero__title em { font-style: normal; color: var(--wine); }
.eyebrow { color: var(--wine); }
.eyebrow::before { background: var(--gold); }
.btn--ghost { --btn-fg: var(--ink); background: rgba(255, 255, 255, .6); }

/* ---------- Navigație ---------- */
.nav {
  position: fixed; z-index: 100;
  top: 16px; left: 50%;
  width: min(100% - 24px, 1240px);
  transform: translateX(-50%);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 8px 8px 8px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .95);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 10px 40px -14px rgba(77, 15, 26, .28);
  transition: translate .5s cubic-bezier(.2, .8, .2, 1);
}
.nav.is-hidden { translate: 0 -220%; }
.nav__brand { display: flex; align-items: center; gap: 10px; flex: none; }
.nav__brand img { width: 48px; height: auto; }
.nav__word {
  font-family: var(--ff-d); font-weight: 800; font-size: 28px; line-height: .9; letter-spacing: .03em; text-transform: uppercase; color: var(--ink);
}
.nav__links { display: flex; gap: clamp(16px, 2.4vw, 36px); font-size: 15px; font-weight: 600; }
.nav__links a { position: relative; padding: 8px 0; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px;
  background: var(--wine); transform: scaleX(0); transform-origin: right center;
  transition: transform .4s cubic-bezier(.2, .8, .2, 1);
}
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left center; }
.nav__actions { display: flex; align-items: center; gap: 8px; flex: none; }
.nav__phone { padding: 0 12px; font-weight: 700; font-size: 15px; white-space: nowrap; }
.nav__portal {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: 999px;
  background: #ffc738; color: #141b2e;
  font-weight: 700; font-size: 15px; white-space: nowrap;
  transition: background-color .3s ease, color .3s ease;
}
.nav__portal svg { width: 15px; height: 15px; transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.nav__portal:hover { background: #141b2e; color: #ffc738; }
.nav__portal:hover svg { transform: translateX(-4px); }
.nav__burger { display: none; width: 44px; height: 44px; border-radius: 50%; background: var(--wine); position: relative; }
.nav__burger span {
  position: absolute; left: 13px; right: 13px; height: 2px; background: #fff; border-radius: 2px;
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), top .35s cubic-bezier(.2, .8, .2, 1);
}
.nav__burger span:nth-child(1) { top: 17px; }
.nav__burger span:nth-child(2) { top: 25px; }
.nav__burger[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 90;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 120px var(--pad) 40px;
  background: var(--wine); color: #fff7ec;
}
.menu[hidden] { display: none; }
.menu nav { display: grid; gap: 10px; }
.menu nav a { font-family: var(--ff-d); font-weight: 800; font-size: clamp(44px, 13vw, 72px); line-height: 1; text-transform: uppercase; }
.menu nav a.menu__portal {
  margin-top: 22px; padding: 18px 22px; border-radius: 20px;
  background: #ffc738; color: #141b2e;
  font-family: var(--ff-b); font-size: 18px; font-weight: 700;
}
.menu__phone { font-weight: 700; font-size: 20px; color: var(--gold-light); }

@media (max-width: 1100px) { .nav__phone { display: none; } }
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__burger { display: block; }
}
@media (max-width: 620px) {
  .nav__portal { display: none; }
  .nav__word { font-size: 25px; }
}

/* ---------- Hero: text sus, o fereastră cu clipul care se deschide pe tot ecranul ---------- */
.ehero { position: relative; height: 320vh; background: var(--ivory); }
.ehero__sticky {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  overflow: hidden;
}
.ehero__copy {
  position: relative; z-index: 2;
  width: min(100% - 2 * var(--pad), 1320px); margin-inline: auto;
  padding-top: clamp(96px, 12vh, 132px);
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 70px);
  align-items: end;
}
.ehero__title {
  margin-top: 14px;
  font-family: var(--ff-d); font-weight: 800; text-transform: uppercase;
  font-size: clamp(48px, min(6.5vw, 11vh), 124px); line-height: .9; letter-spacing: .004em;
}
@media (min-width: 901px) { .ehero__title .line__in { white-space: nowrap; } }
.ehero__title .line { display: block; overflow: hidden; padding: .12em .08em .12em; margin: -.12em -.08em -.12em; }
.ehero__title .line__in { display: block; }
.ehero__side { display: grid; gap: 20px; justify-items: start; padding-bottom: .6em; }
.ehero__sub { max-width: 38ch; font-size: clamp(16px, 1.3vw, 19px); color: var(--ink-soft); text-wrap: balance; }
.ehero__cta { display: flex; flex-wrap: wrap; gap: 12px; }

.ehero__media {
  position: absolute; z-index: 1;
  left: 4%; right: 4%; top: max(40%, var(--etop, 0px)); bottom: 4%;
  border-radius: 32px; overflow: hidden;
  background: var(--cream);
  box-shadow: 0 50px 100px -50px rgba(77, 15, 26, .5);
}
.ehero__media picture { width: 100%; height: 100%; }
.ehero__media img,
.ehero__canvas {
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 42%;
}
.ehero__canvas { position: absolute; inset: 0; opacity: 0; }
.ehero__canvas.is-ready { opacity: 1; }

/* eticheta care se schimbă singură, peste clip */
.ehero__rot {
  position: absolute; z-index: 2; left: clamp(14px, 2vw, 28px); bottom: clamp(14px, 2vw, 28px);
  display: inline-flex; align-items: center; gap: 12px;
  padding: 10px 20px 10px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .95);
  font-weight: 700; font-size: 15px; color: var(--ink);
}
.ehero__rot::before {
  content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--wine);
  box-shadow: 0 0 0 5px rgba(123, 29, 43, .18);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 50% { box-shadow: 0 0 0 9px rgba(123, 29, 43, 0); } }
.rot { display: block; height: 1.5em; overflow: hidden; line-height: 1.5; }
.rot__list { display: block; animation: rot 10s cubic-bezier(.7, 0, .2, 1) infinite; }
.rot__list span { display: block; white-space: nowrap; }
@keyframes rot {
  0%, 18% { transform: translateY(0); }
  25%, 43% { transform: translateY(-20%); }
  50%, 68% { transform: translateY(-40%); }
  75%, 93% { transform: translateY(-60%); }
  100% { transform: translateY(-80%); }
}

.ehero__fade {
  position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0;
  background: linear-gradient(to top, var(--ivory) 0%, var(--ivory) 30%, rgba(246, 245, 242, 0) 100%);
}

@media (max-width: 900px) {
  .ehero__copy { grid-template-columns: 1fr; gap: 18px; }
  .ehero__side { padding-bottom: 0; }
}
@media (max-width: 700px) {
  .ehero { height: 230vh; }
  .ehero__copy { padding-top: 104px; text-align: left; }
  .ehero__title { font-size: clamp(44px, 12.8vw, 62px); }
  .ehero__media { left: 16px; right: 16px; top: max(56%, var(--etop, 0px)); bottom: 16px; border-radius: 24px; }
  .ehero__media img, .ehero__canvas { object-position: 50% 50%; }
  .ehero__cta .btn { min-height: 48px; padding: 0 20px; font-size: 15px; }
  .ehero__cta .btn--ghost { display: none; }
  .ehero__eyebrow { font-size: 12px; letter-spacing: .1em; }
  .ehero__rot { font-size: 13px; padding: 8px 16px 8px 10px; }
}
@media (max-height: 760px) and (min-width: 901px) {
  .ehero__sub { display: none; }
}

/* ---------- Bandă rulantă ---------- */
.eband { padding: clamp(22px, 2.6vw, 38px) 0; background: var(--wine); color: #fff7ec; overflow: hidden; }
.eband__row { display: flex; overflow: hidden; }
.eband__in {
  display: flex; flex: none;
  font-family: var(--ff-d); font-weight: 800; text-transform: uppercase; letter-spacing: -.02em;
  font-size: clamp(38px, 5.6vw, 90px); line-height: 1.1;
  animation: eband 40s linear infinite;
  will-change: transform;
}
.eband__in span { display: inline-flex; align-items: center; white-space: nowrap; padding-right: .5em; }
.eband__in span::after {
  content: "✦"; font-style: normal; font-size: .4em; margin-left: 1.2em; color: var(--gold-light);
}
.eband__in span:nth-child(even) { color: var(--wine); -webkit-text-stroke: 3px var(--gold-light); paint-order: stroke fill; }
.eband__in span:nth-child(even)::after { -webkit-text-stroke: 0; }
@keyframes eband { to { transform: translateX(-50%); } }

/* ecrane scunde (telefon cu barele browserului, telefon pe orizontală): mai puțin text, ca fereastra să rămână mare */
@media (max-width: 700px) and (max-height: 700px) { .ehero__sub { display: none; } }
@media (max-height: 480px) and (min-width: 701px) {
  .ehero__eyebrow, .ehero__sub, .ehero__cta .btn--ghost { display: none; }
  .ehero__title { margin-top: 0; font-size: clamp(34px, 11vh, 60px); }
  .ehero__side { padding-bottom: 0; }
}

/* ---------- Tipuri de evenimente: carduri care se deschid ---------- */
/* acoperă ultimii pixeli ai heroului, ca să nu rămână o dungă fină la îmbinare */
.etypes {
  position: relative; z-index: 2; margin-top: -2px; background: var(--ivory);
  padding: clamp(60px, 7vw, 110px) 0 clamp(60px, 8vw, 120px);
}
.etypes__head { display: grid; gap: 18px; max-width: 900px; }
.etypes__row {
  margin-top: clamp(36px, 4.5vw, 70px);
  display: flex; gap: clamp(10px, 1.2vw, 18px);
  height: clamp(420px, 68vh, 700px);
}
.etype {
  position: relative; flex: 1 1 0; min-width: 0; overflow: hidden;
  border-radius: var(--r); background: var(--cream);
  cursor: pointer;
  transition: flex-grow .8s cubic-bezier(.2, .8, .2, 1);
}
.etype.is-open { flex-grow: 3.2; }
.etype img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: scale 1.4s cubic-bezier(.2, .8, .2, 1);
}
.etype.is-open img { scale: 1.04; }
.etype::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(77, 15, 26, .82) 0%, rgba(77, 15, 26, .28) 34%, rgba(77, 15, 26, 0) 58%);
}
.etype__body {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: 0;
  padding: clamp(18px, 2vw, 30px);
  display: grid; gap: 10px; color: #fff7ec;
}
.etype__n {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: #fff7ec; color: var(--wine);
  font-weight: 800; font-size: 13px; letter-spacing: .04em;
}
.etype h3 {
  font-family: var(--ff-d); font-weight: 800; text-transform: uppercase; letter-spacing: .01em;
  font-size: clamp(28px, 2.7vw, 46px); line-height: .95; white-space: nowrap;
}
/* pe cardurile strânse titlul stă pe verticală, ca să se vadă întreg */
@media (min-width: 901px) {
  .etype:not(.is-open) h3 {
    writing-mode: vertical-rl; transform: rotate(180deg); justify-self: start;
    font-size: clamp(22px, 2vw, 32px);
    animation: etitle .6s ease both;
  }
  .etype.is-open h3 { animation: etitle-open .7s .15s ease both; }
}
@keyframes etitle { from { opacity: 0; } }
@keyframes etitle-open { from { opacity: 0; translate: 0 14px; } }
@media (max-width: 900px) {
  .etypes__row { display: grid; grid-template-columns: 1fr 1fr; height: auto; }
  .etype, .etype.is-open { aspect-ratio: 3 / 4; flex: none; }
  .etype h3 { white-space: normal; font-size: clamp(26px, 7.4vw, 38px); }
}

/* ---------- Declarație ---------- */
.estatement { padding: clamp(60px, 8vw, 120px) 0 clamp(80px, 10vw, 150px); }
.estatement__text {
  max-width: 26em;
  font-family: var(--ff-b); font-weight: 600;
  font-size: clamp(25px, 3.3vw, 50px); line-height: 1.18; letter-spacing: -.02em;
}
.estatement__text .w { display: inline-block; }
.estatement__meta { margin-top: clamp(40px, 5vw, 70px); padding-top: 28px; border-top: 2px solid var(--ink); display: flex; }
.estatement__meta div { display: flex; align-items: center; gap: 22px; }
.estatement__meta strong { font-family: var(--ff-d); font-weight: 800; font-size: clamp(80px, 9vw, 150px); line-height: .8; color: var(--wine); }
.estatement__meta span { max-width: 22ch; color: var(--muted); font-weight: 500; }

/* ---------- Catering: fotografiile reale, într-un șir care curge ---------- */
.etaste { padding: clamp(80px, 10vw, 150px) 0; background: var(--cream); overflow: hidden; }
.etaste__head { display: grid; gap: 18px; max-width: 1000px; }
.etaste__strip { margin-top: clamp(40px, 5vw, 80px); will-change: transform; }
.etaste__track {
  display: flex; gap: clamp(12px, 1.4vw, 22px); width: max-content;
  animation: etaste 46s linear infinite;
}
.etaste__strip:hover .etaste__track { animation-play-state: paused; }
.etaste__item {
  flex: none; height: clamp(240px, 36vw, 440px); aspect-ratio: 4 / 3;
  overflow: hidden; border-radius: var(--r);
  box-shadow: 0 30px 60px -36px rgba(77, 15, 26, .55);
}
.etaste__item:nth-child(odd) { transform: rotate(-1.4deg); }
.etaste__item:nth-child(even) { transform: rotate(1.2deg) translateY(14px); }
.etaste__item--wide { aspect-ratio: 16 / 9; }
.etaste__item--square { aspect-ratio: 1 / 1; }
.etaste__item img { width: 100%; height: 100%; object-fit: cover; }
@keyframes etaste { to { transform: translateX(calc(-50% - clamp(6px, .7vw, 11px))); } }

/* ---------- Contact ---------- */
.econtact { padding: clamp(90px, 11vw, 170px) 0; }
.econtact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 100px); align-items: start; }
.econtact__grid > div:first-child { display: grid; gap: 22px; justify-items: start; }
.econtact__lead { max-width: 42ch; color: var(--ink-soft); font-size: 18px; }
.econtact__direct { margin-top: 18px; display: grid; gap: 22px; }
.econtact__direct a { display: grid; width: fit-content; font-family: var(--ff-d); font-weight: 800; font-size: clamp(36px, 4vw, 62px); line-height: 1; transition: color .3s ease; }
.econtact__direct a:hover { color: var(--wine); }
.econtact__direct small { font-family: var(--ff-b); font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.econtact__form {
  padding: clamp(24px, 3vw, 44px); border-radius: var(--r);
  background: var(--cream);
  box-shadow: 0 40px 80px -50px rgba(77, 15, 26, .45);
}
.econtact__form .btn { justify-self: start; margin-top: 6px; }
.form__status.is-error { color: #b3261e; }
@media (max-width: 900px) { .econtact__grid { grid-template-columns: 1fr; } }

/* ---------- Înapoi la curățenie ---------- */
.eback { padding: 0 0 clamp(70px, 8vw, 120px); }
.eback__card {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: clamp(28px, 4vw, 60px);
  border-radius: clamp(24px, 3vw, 40px);
  background: #ffc738; color: #141b2e;
  transition: background-color .4s ease, color .4s ease;
}
.eback__card:hover { background: #141b2e; color: #ffc738; }
.eback__card p { font-size: 13px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.eback__card h2 {
  margin-top: 8px;
  font-family: var(--ff-d);
  font-weight: 800; font-size: clamp(48px, 7.4vw, 124px); line-height: .9; text-transform: uppercase;
}
.eback__btn {
  flex: none; display: grid; place-items: center;
  width: clamp(64px, 8vw, 120px); height: clamp(64px, 8vw, 120px); border-radius: 50%;
  background: #141b2e; color: #ffc738;
  transition: transform .5s cubic-bezier(.2, .8, .2, 1), background-color .4s ease, color .4s ease;
}
.eback__btn svg { width: 36%; height: 36%; }
.eback__card:hover .eback__btn { transform: translateX(10px) rotate(-12deg); background: #ffc738; color: #141b2e; }

/* ---------- Footer ---------- */
.efooter { padding: 56px 0 36px; background: var(--wine-deep); color: rgba(255, 247, 236, .7); }
.efooter__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; align-items: start; }
.efooter__grid > img { width: 170px; height: auto; }
.efooter h4 { font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 14px; }
.efooter__grid a { display: block; width: fit-content; padding: 4px 0; color: #fff7ec; font-weight: 600; transition: color .25s ease; }
.efooter__grid a:hover { color: var(--gold-light); }
.efooter__legal { margin-top: 44px; font-size: 14px; line-height: 1.6; color: rgba(255, 247, 236, .72); }
@media (max-width: 820px) { .efooter__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .efooter__grid { grid-template-columns: 1fr; } }
