/* Completări peste style.css (Tailwind-ul original): animațiile și piesele care erau în React */
html { scroll-behavior: auto; }
img { height: auto; }

/* apariții la scroll — ascunse doar când JS rulează */
.js [data-reveal] { opacity: 0; transition: opacity .6s cubic-bezier(.22,1,.36,1), transform .6s cubic-bezier(.22,1,.36,1); will-change: opacity, transform; }
.js [data-reveal="up"]    { transform: translateY(30px); }
.js [data-reveal="down"]  { transform: translateY(-30px); }
.js [data-reveal="left"]  { transform: translateX(-50px); }
.js [data-reveal="right"] { transform: translateX(50px); }
.js [data-reveal="scale"] { transform: scale(.9); }
.js [data-reveal].is-in   { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js [data-reveal] { opacity: 1; transform: none; transition: none; } }

/* meniul de pe telefon */
#mobile-menu { visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s; }
#mobile-menu.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .25s ease, transform .25s ease; }

/* bannerul de cookie-uri */
#cookie-banner { opacity: 0; transform: translateY(100px); transition: opacity .4s ease, transform .4s ease; pointer-events: none; }
#cookie-banner.is-in { opacity: 1; transform: none; pointer-events: auto; }

/* toast */
#toast-root { position: fixed; top: 0; right: 0; z-index: 100; display: flex; flex-direction: column; gap: 8px; padding: 16px; width: 100%; max-width: 420px; pointer-events: none; }
.toast { pointer-events: auto; background: #fff; color: #111827; border: 1px solid #e5e7eb; border-radius: 8px; padding: 16px 20px; box-shadow: 0 10px 25px rgba(0,0,0,.12); opacity: 0; transform: translateX(100%); transition: opacity .3s ease, transform .3s ease; font-size: 14px; }
.toast strong { display: block; font-weight: 600; margin-bottom: 2px; }
.toast p { opacity: .9; }
.toast.is-in { opacity: 1; transform: none; }
.toast--err { background: #ef4444; color: #fff; border-color: #ef4444; }
@media (min-width: 640px) { #toast-root { top: auto; bottom: 0; } }
