/*
 * Stiluri scrise de mână pentru varianta PHP (fără React).
 * Restul (Tailwind + modulele CSS) sunt fișierele compilate din site-ul original: entry/root/footer/layout/program/careers.css.
 * Aici: stările care înainte erau puse de animațiile JS (meniu, fereastra „Despre”, ecranul de intrare)
 * și componentele adăugate în machetă (prețuri, portret, logo în footer).
 * Stilurile unei singure pagini stau în assets/css/pages/{pagina}.css.
 */

:root {
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-back: cubic-bezier(.34, 1.56, .64, 1);}

/* ---------------------------------------------------------------- butoane */
.btn-pill { border-radius: 3.125rem; transition: transform .3s var(--ease-back), filter .2s; }
.btn-pill:hover { transform: scale(1.04); }
.btn-pill:active { transform: scale(.97); }
.btn-pill.cta-primary { background: var(--color-red); color: var(--color-white); }
.btn-pill.cta-blue { background: var(--color-blue); color: var(--color-white); }
.btn-pill.cta-white { background: var(--color-white); color: var(--color-black); }
.btn-pill.cta-yellow { background: var(--color-yellow); color: var(--color-black); }
.btn-round { transition: transform .3s var(--ease-back), background-color .3s; }
.btn-round:hover { transform: scale(1.06); }

/* ---------------------------------------------------------------- header + meniu */
.header { animation: header-in .9s var(--ease-out) .2s both; }
@keyframes header-in { from { transform: translateY(-200%); } }
.header-backdrop { background: var(--header-tint, var(--color-yellow)); opacity: 0; transition: opacity .5s; pointer-events: none; }
.header.is-open .header-backdrop { opacity: .6; pointer-events: auto; }
.header.is-open .nav-pill,
.header.is-open .btn-round.bg-white { background: var(--color-beige); }
.header > a:first-of-type { transition: opacity .3s; }
/* logo-ul din header: simbolul (PNG folosit ca mască, raport 640×855), albastru, + textul, roșu; culorile vin din --logo-color și --logo-text-color */
.site-logo { --c: var(--logo-color, var(--color-blue)); gap: .5rem; color: var(--logo-text-color, var(--color-red)); transition: color .5s; }
.site-logo-mark {
  height: 2.25rem; aspect-ratio: 640 / 855;
  background-color: var(--c); transition: background-color .5s;
  -webkit-mask: var(--logo-src) center / contain no-repeat; mask: var(--logo-src) center / contain no-repeat;
}
.site-logo-text { font-family: 'ABC Diatype Rounded', system-ui, sans-serif; font-weight: 800; font-size: 1.25rem; letter-spacing: -.01em; line-height: 1; white-space: nowrap; }
@media (min-width: 64rem) {
  .site-logo { gap: .625rem; }
  .site-logo-mark { height: 3rem; }
  .site-logo-text { font-size: 1.6875rem; }
}
html.about-open .header > a:first-of-type { opacity: 0; pointer-events: none; }
.btn-pill { white-space: nowrap; }
.nav-chevron { display: inline-block; transition: transform .4s var(--ease-out); }
[data-nav-toggle][aria-expanded="true"] .nav-chevron { transform: rotate(180deg); }
[data-nav-toggle] { cursor: pointer; user-select: none; }

.nav-panel { transform: rotate(90deg); transition: transform .8s var(--ease-out); will-change: transform; }
.nav-panel.is-open { transform: rotate(-4deg); }
/* rânduri mai înalte decât line-height-ul de 80%, ca diacriticele (Ă, Î, Ț) să nu atingă rândul vecin */
.nav-panel .height-nav-item { height: 4rem; }
@media (max-width: 1024px) { .nav-panel .height-nav-item { height: 2.8rem; } }
.nav-preview { transform: scale(0); transition: transform .45s var(--ease-back); }
.nav-preview.is-active { transform: rotate(-3.3deg) scale(1); z-index: 1; }

/* ---------------------------------------------------------------- fereastra „Despre Beatrice” */
.about-overlay { opacity: 0; transition: opacity .45s; }
.about-overlay.is-open { opacity: 1; }
.about-overlay[hidden] { display: none; }
.about-overlay-scroll { overflow-y: auto; overscroll-behavior: contain; }
.about-overlay-sheet { transform-origin: top left; transition: transform .8s var(--ease-out); }
.about-overlay:not(.is-open) .about-overlay-sheet { transform: translateY(12%) rotate(4deg); }
html.no-scroll, html.no-scroll body { overflow: hidden; }

.about-girl { grid-column: 1 / -1; position: relative; height: clamp(9rem, 16vw, 15rem); pointer-events: none; }
.about-girl-inner { position: absolute; left: clamp(.5rem, 3vw, 3rem); top: -9rem; width: clamp(15rem, 27vw, 25rem); }

.quote-portrait {
  grid-column: 1 / -1; position: relative; z-index: 20; background: #f3efe0; border-radius: 2.5rem;
  display: flex; align-items: center; flex-wrap: wrap; gap: clamp(1.5rem, 4vw, 4rem); max-width: min(100%, 78rem);
  margin: clamp(2rem, 5vw, 4rem) clamp(0rem, 6vw, 8rem) clamp(2rem, 4vw, 3rem) 0;
  padding: clamp(1.2rem, 3vw, 2.5rem) clamp(1.2rem, 4vw, 3rem);
}
.quote-portrait-photo { position: relative; flex: 0 0 auto; }
.quote-portrait-photo img {
  width: clamp(12rem, 24vw, 26rem); height: clamp(12rem, 24vw, 26rem); border-radius: 50%;
  object-fit: cover; object-position: 50% 28%; display: block; background: #fff;
}
.quote-portrait-mark {
  position: absolute; left: -.25em; top: -.28em; z-index: 2; font-family: 'Robuck Rounded';
  font-size: clamp(6rem, 12vw, 12rem); line-height: 1; color: var(--color-red);
}
.quote-portrait-text { flex: 1 1 22rem; min-width: 16rem; max-width: 40rem; }
.quote-portrait-quote {
  font-family: 'Robuck Rounded'; text-transform: uppercase; color: var(--color-blue);
  font-size: clamp(1.7rem, 3.2vw, 3.5rem); line-height: 1.02; margin: 0 0 1.2rem;
}
.quote-portrait-by { font-family: 'ABC Diatype Rounded', system-ui, sans-serif; font-size: 1.05rem; margin: 0; }

/* ---------------------------------------------------------------- ecranul de intrare */
.curtain { z-index: 300; transition: transform 1.6s var(--ease-out) , opacity .6s; } /* peste header (z 200) */
.curtain.is-leaving { transform: translateY(-100%); }
.curtain.is-gone { display: none; }
.curtain-title, .curtain-desc { animation: curtain-text 1.3s var(--ease-out) .5s both; }
.curtain-desc { animation-delay: .85s; }
.curtain-cloud { animation: curtain-cloud 1.1s var(--ease-back) .2s both; }
@keyframes curtain-text { from { opacity: 0; transform: translateY(1.5rem); } }
@keyframes curtain-cloud { from { transform: scale(0); } }
html.curtain-seen .curtain { display: none; }
/* cadrul static al personajelor nu se vede (doar ține locul), altfel apare și dispare înainte să pornească animația */
.curtain .lottie-static { visibility: hidden; }
/* cât timp e afișat ecranul de intrare, pagina nu se derulează; gutter-ul păstrează lățimea barei de derulare */
html.curtain-lock { overflow: hidden; scrollbar-gutter: stable; }
/* header-ul intră abia când se ridică ecranul de intrare */
html.curtain-lock .header { animation-play-state: paused; }

/* ---------------------------------------------------------------- meniu */
/* Panourile „Servicii”/„Despre” se ancorează de marginea dreaptă a meniului (nu de cea stângă),
   ca lungimea textului din butonul „Despre …” să nu le mute. 31.15rem = lățimea inițială a meniului. */
.main-nav > .sub-nav { left: auto; right: 0; }
.sub-nav > .left-\[-24\.375rem\] { left: calc(-36.375rem - 31.15rem); }
.sub-nav > .left-\[-6\.25rem\] { left: calc(-18.25rem - 31.15rem); }

/* ---------------------------------------------------------------- meniu pe mobil (sub 64rem) */
/* Meniul cu două panouri rotite și butonul lung „Despre …” nu încap pe ecran mic:
   acolo rămân doar simbolul logo-ului și butonul „Meniu”, care deschide o listă sub header (cu tot cu Contact). */
.nav-mobile-toggle { display: none; }
.nav-mobile { display: none; }
@media (max-width: 63.999rem) {
  .main-nav > .sub-nav, .main-nav > .nav-pill, .main-nav > .nav-about-cta, .main-nav > .nav-contact { display: none; }
  .nav-mobile-toggle { display: flex; margin-right: 0; }
  .site-logo-text { display: none; }
  .nav-mobile {
    display: block; position: absolute; top: 4.25rem; left: 1.25rem; right: 1.25rem; z-index: 5;
    max-height: calc(100dvh - 6.5rem); overflow-y: auto; overscroll-behavior: contain;
    padding: 1.5rem 1.5rem 1.75rem; border-radius: 2rem;
    transform-origin: top right; transform: translateY(-1rem) scale(.96); opacity: 0; visibility: hidden;
    transition: transform .45s var(--ease-out), opacity .3s, visibility 0s .45s;
  }
  .nav-mobile.is-open { transform: none; opacity: 1; visibility: visible; transition: transform .45s var(--ease-out), opacity .3s; }
  .header.is-open .nav-mobile-toggle { background: var(--color-beige); }
}
.nav-mobile-title { font-family: 'ABC Diatype Rounded', system-ui, sans-serif; font-size: .9375rem; color: #777; margin: 0 0 .5rem; }
.nav-mobile-list { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.nav-mobile-list a { padding: .4rem 0; gap: .75rem; }
.nav-mobile-list a > :last-child:not(.nav-mobile-item) { white-space: nowrap; flex-shrink: 0; }
.nav-mobile-item { font-family: 'Robuck Rounded'; text-transform: uppercase; color: var(--color-red); font-size: 2rem; line-height: .9; }
.nav-mobile-cta { width: 100%; white-space: normal; text-align: center; line-height: 1.2; padding-top: .9rem; padding-bottom: .9rem; height: auto; }

/* ---------------------------------------------------------------- footer */
.footer-logo { grid-column: 1 / -1; justify-self: center; display: block; line-height: 0; }
.footer-logo img { height: 6rem; width: auto; display: block; }
/* mobil: „Programează-te” pe un rând, iconițele sociale dedesubt (altfel ies din casetă) */
@media (max-width: 63.999rem) {
  .footer-actions { grid-column: 1 / -1; flex-wrap: wrap; gap: 1rem .5rem; }
  .footer-actions > li.max-lg\:order-1 { flex-basis: 100%; }
}
/* Desktop: logo-ul stă pe același rând cu linkurile, ca footer-ul să fie mai compact */
@media (min-width: 64rem) {
  .ro-footer-box { row-gap: 1.75rem; padding-top: 2rem; padding-bottom: 1.25rem; }
  .footer-logo { grid-column: 1 / span 2; justify-self: start; padding-left: 3.125rem; }
  .footer-logo img { height: 7rem; }
  .ro-footer-box > ul:nth-of-type(1) { grid-column: 3 / span 2; padding-left: 0; }
  .ro-footer-box > ul:nth-of-type(2) { grid-column: 5 / span 3; }
  .ro-footer-box > ul:nth-of-type(3) { grid-column: 8 / span 5; align-self: center; }
  .ro-footer-legal { padding-top: 1rem; }
}

/* ---------------------------------------------------------------- prețuri (prima pagină) */
.prices-section {
  position: relative; z-index: 5; margin: clamp(40px, 6vw, 80px) clamp(12px, 2vw, 24px) 28rem;
  background: var(--color-yellow); border-radius: 40px; padding: clamp(40px, 6vw, 80px) clamp(20px, 5vw, 72px);
  font-family: 'ABC Diatype Rounded', system-ui, sans-serif; color: #1a1a1a;
}
.prices-inner { max-width: 1100px; margin: 0 auto; }
.prices-title { font-family: 'Robuck Rounded'; text-transform: uppercase; color: var(--color-red); font-size: clamp(56px, 9vw, 120px); line-height: .95; margin: 0 0 12px; }
.prices-intro { font-size: clamp(17px, 2vw, 22px); margin: 0 0 32px; max-width: 640px; font-weight: 500; }
.prices-card { background: #fff; border-radius: 32px; box-shadow: 0 18px 50px rgba(0, 0, 0, .08); overflow: hidden; }
.price-row { display: grid; grid-template-columns: 1fr auto auto; gap: 24px; align-items: center; padding: 22px clamp(18px, 3vw, 36px); border-bottom: 1px solid rgba(0, 0, 0, .07); }
.price-row:last-child { border-bottom: 0; }
.price-row-service { font-size: 20px; }
.price-row-note { color: #555; font-size: 16px; margin-top: 4px; }
.price-row-duration { color: #555; white-space: nowrap; }
.price-row-price { font-family: 'Robuck Rounded'; font-size: 36px; color: var(--color-red); white-space: nowrap; }
.price-row-price em { font-style: normal; font-size: 15px; color: #555; font-family: 'ABC Diatype Rounded'; margin-left: 4px; }
.prices-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 28px; font-weight: 600; font-size: 18px; }
.prices-actions a { color: inherit; text-decoration: none; }
/* mobil: serviciul pe un rând, durata și prețul dedesubt */
@media (max-width: 640px) {
  .price-row { grid-template-columns: 1fr auto; gap: 6px 16px; }
  .price-row > :first-child { grid-column: 1 / -1; }
}
.prices-actions .prices-cta { background: var(--color-red); color: #fff; padding: 14px 26px; border-radius: 999px; }

/* ---------------------------------------------------------------- Lottie */
.lottie > svg { width: 100%; height: auto; display: block; }
.lottie.is-playing > .lottie-static { display: none; }

/* ---------------------------------------------------------------- apariție la scroll (data-reveal) */
[data-reveal] { transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
[data-reveal].is-hidden { opacity: 0; transform: translateY(2.5rem); }
[data-reveal="scale"].is-hidden { transform: scale(.85); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; transition-duration: 1ms !important; }
}
