/* Stiluri care nu se pot exprima cu utilitare Tailwind. */

html {
  scroll-behavior: smooth;
}

a {
  color: #8d6c2f;
  text-decoration: none;
}
a:hover {
  color: #6f5322;
}

/* Fundal cu dungi pentru secțiunile întunecate (hero). */
.stripes {
  background: repeating-linear-gradient(135deg, #232323 0 2px, #1c1c1c 2px 14px);
  opacity: 0.9;
}

/* Placeholder pentru imaginile care urmează să fie înlocuite cu fotografii reale. */
.stripes-light {
  background: repeating-linear-gradient(135deg, #e2e0dc 0 6px, #efedea 6px 16px);
}

img {
  display: block;
}

/* Bandă continuă cu logo-urile clienților. */
.marquee {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  gap: 56px;
  width: max-content;
  animation: marquee 55s linear infinite;
}
.marquee:hover .marquee-track {
  animation-play-state: paused;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Apariție la scroll. */
/* Ascunse doar dacă JS-ul a preluat controlul (altfel conținutul rămâne vizibil). */
.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
}
/* Animație (nu transition) ca să nu blocheze tranzițiile de hover. */
.js-reveal [data-reveal].is-visible {
  opacity: 1;
  transform: none;
  animation: reveal 0.7s ease;
}
@keyframes reveal {
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
  .js-reveal [data-reveal] { opacity: 1; transform: none; }
  .js-reveal [data-reveal].is-visible { animation: none; }
}

/* ——— Mișcare & accente ——— */

/* Orbite colorate care se mișcă lent în fundalul secțiunilor întunecate. */
.orb {
  position: absolute;
  border-radius: 9999px;
  filter: blur(70px);
  opacity: 0.5;
  animation: drift 18s ease-in-out infinite alternate;
}
.orb-2 { animation-duration: 24s; animation-delay: -6s; }
.orb-3 { animation-duration: 30s; animation-delay: -12s; }
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(6%, -8%, 0) scale(1.15); }
}

/* Reflex care traversează butonul principal. */
.sheen { position: relative; overflow: hidden; }
.sheen::after {
  content: '';
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-18deg);
  animation: sheen 4.5s ease-in-out infinite;
}
@keyframes sheen {
  0%, 65% { left: -60%; }
  100% { left: 130%; }
}

/* Card care se ridică la hover, cu bară de accent. */
.lift { transition: transform 0.4s ease, box-shadow 0.4s ease, background-color 0.4s ease; }
.lift:hover { transform: translateY(-6px); box-shadow: 0 18px 40px -24px rgba(16, 16, 16, 0.45); }

/* Indicator de scroll în hero. */
.scroll-cue { animation: cue 2.2s ease-in-out infinite; }
@keyframes cue {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(8px); opacity: 1; }
}

/* Inel colorat în jurul portretelor. */
.ring-spin {
  background: #c5a059;
}

.marquee-track.reverse { animation-direction: reverse; animation-duration: 70s; }

@media (prefers-reduced-motion: reduce) {
  .orb, .sheen::after, .scroll-cue { animation: none; }
  .lift:hover { transform: none; }
}

/* ——— Hero: încape exact în 100dvh și pe ecrane scunde ——— */
@media (max-height: 820px) and (min-width: 768px) {
  #acasa { padding-top: 4.5rem; padding-bottom: 1.25rem; }
  #acasa h1 { font-size: clamp(28px, 4.4vw, 46px); }
  #acasa .hero-col { gap: 1rem; }
  #acasa img { border-radius: 1.25rem; }
}
@media (max-height: 700px) and (min-width: 768px) {
  #acasa h1 { font-size: clamp(26px, 3.6vw, 38px); }
  #acasa .hero-badges { display: none; }
  #acasa .hero-lead { font-size: 14px; line-height: 1.6; }
  #acasa .hero-cue { display: none; }
}
@media (max-height: 620px) and (max-width: 767px) {
  #acasa { padding-top: 3.75rem; padding-bottom: 1.5rem; }
  #acasa h1 { font-size: clamp(24px, 7vw, 32px); }
  #acasa .hero-col { gap: 0.85rem; }
  #acasa .hero-badges, #acasa .hero-cue { display: none; }
  #acasa .hero-media { display: none; }
}

/* Telefoane în portret: heroul trebuie să încapă în 100dvh (~780px util). */
@media (max-width: 767px) and (orientation: portrait) {
  #acasa { padding-top: 4.25rem; padding-bottom: 1.5rem; }
  #acasa h1 { font-size: clamp(26px, 7.4vw, 34px); line-height: 1.1; }
  #acasa .hero-col { gap: 0.9rem; }
  #acasa .hero-badges { display: none; }
  #acasa .hero-lead { font-size: 14px; line-height: 1.6; }
  #acasa .hero-media img { aspect-ratio: 16 / 10; max-height: 34dvh; object-position: center; }
}
@media (max-width: 767px) and (orientation: portrait) and (max-height: 720px) {
  #acasa .hero-media { display: none; }
}

/* ——— Cookie-uri: popup blocant (<dialog> nativ) ——— */
.cookie-dialog {
  width: min(30rem, calc(100vw - 40px));
  max-width: none;
  padding: 34px 28px 30px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  background: #101010;
  color: #e5e5e5;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8);
  text-align: center;
}
.cookie-dialog::backdrop {
  background: rgba(10, 10, 10, 0.78);
  backdrop-filter: blur(6px);
}
.cookie-dialog[open] { animation: cookie-in 0.4s cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes cookie-in {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.cookie-dialog__logo { height: 34px; width: auto; margin: 0 auto 22px; }
.cookie-dialog__title {
  margin: 0 0 14px;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: #c5a059;
}
.cookie-dialog__text {
  margin: 0 0 26px;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(229, 229, 229, 0.74);
}
.cookie-dialog__actions { display: flex; flex-direction: column; gap: 10px; }

.cookie-btn {
  border-radius: 999px;
  padding: 13px 26px;
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.cookie-btn--solid { background: #c5a059; border: 1px solid #c5a059; color: #fff; }
.cookie-btn--solid:hover { background: #fff; border-color: #fff; color: #101010; }
.cookie-btn--ghost { background: none; border: 1px solid rgba(255, 255, 255, 0.28); color: #e5e5e5; }
.cookie-btn--ghost:hover { border-color: #c5a059; color: #c5a059; }
.cookie-btn:focus-visible { outline: 2px solid #c5a059; outline-offset: 3px; }

/* Scroll blocat cât timp dialogul este deschis. */
body.cookie-locked { overflow: hidden; }

@media (min-width: 520px) {
  .cookie-dialog { padding: 40px 36px 34px; }
  .cookie-dialog__actions { flex-direction: row; justify-content: center; }
  .cookie-btn { flex: 1 1 0; }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-dialog[open] { animation: none; }
}

/* ——— Pagini legale: conținut long-form ——— */
.legal { font-size: 15.5px; font-weight: 300; line-height: 1.8; color: #3f3f3f; }
.legal > * + * { margin-top: 1.1em; }
.legal h2 {
  margin-top: 2.4em;
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0.01em;
  color: #101010;
}
.legal h3 {
  margin-top: 1.9em;
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #101010;
}
.legal h2 + *, .legal h3 + * { margin-top: 0.7em; }
.legal ul, .legal ol { padding-left: 1.35em; }
.legal ul { list-style: disc; }
.legal ol { list-style: decimal; }
.legal li + li { margin-top: 0.5em; }
.legal a { color: #8d6c2f; border-bottom: 1px solid rgba(197, 160, 89, 0.5); }
.legal a:hover { color: #6f5322; border-bottom-color: #6f5322; }
.legal strong { font-weight: 600; color: #101010; }
.legal table { width: 100%; border-collapse: collapse; font-size: 14px; }
.legal th, .legal td { padding: 12px 14px; border: 1px solid #e2e0dc; text-align: left; vertical-align: top; }
.legal th { background: #fff; font-weight: 600; }
.legal .legal__meta { font-size: 13px; color: #8a8781; }

/* Tabelul din Politica de cookies: derulabil pe ecrane mici. */
.legal__table { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.legal__table table { min-width: 34rem; }
.legal code {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 13px;
  background: #f2f0ec;
  padding: 2px 6px;
  border-radius: 4px;
}

/* Butonul de re-deschidere a consimțământului, în Politica de cookies. */
.legal__action { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.legal__btn {
  border: 1px solid #c5a059;
  border-radius: 999px;
  background: none;
  padding: 8px 18px;
  font: inherit;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8d6c2f;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.legal__btn:hover { background: #c5a059; color: #fff; }
.legal__btn:focus-visible { outline: 2px solid #c5a059; outline-offset: 3px; }
