/* ==========================================================================
   Viržių ūkis – tema ir animacijos (atkartota iš originalios svetainės)
   ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=DM+Sans:wght@400;500;600;700&display=swap");

:root {
  --background: 40 33% 97%;
  --foreground: 285 25% 14%;
  --card: 40 40% 99%;
  --card-foreground: 285 25% 14%;
  --primary: 288 42% 32%;
  --primary-foreground: 40 33% 97%;
  --secondary: 90 18% 90%;
  --secondary-foreground: 120 20% 20%;
  --muted: 40 20% 92%;
  --muted-foreground: 285 10% 42%;
  --accent: 300 45% 55%;
  --accent-foreground: 0 0% 100%;
  --destructive: 0 72% 46%;
  --destructive-foreground: 0 0% 98%;
  --border: 40 16% 86%;
  --input: 40 16% 86%;
  --ring: 288 42% 32%;
  --radius: 0.75rem;
  --heath: 300 50% 42%;
  --moss: 120 22% 30%;
}

* {
  border-color: hsl(var(--border));
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "DM Sans", sans-serif;
  overflow-x: clip;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
}

.font-display {
  /* Playfair Display – elegantiškas serifas, teisingai atvaizduoja lietuviškus ū/ų/ė */
  font-family: "Playfair Display", Georgia, serif;
}

[v-cloak] {
  display: none;
}

/* --- Bėganti juosta (marquee) --- */
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.animate-marquee {
  animation: marquee 32s linear infinite;
}

/* --- Turinio iškilimas (framer-motion „fade up“ atitikmuo) --- */
@keyframes fade-up {
  0% { opacity: 0; transform: translateY(24px); }
  100% { opacity: 1; transform: translateY(0); }
}
.animate-fade-up {
  animation: fade-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* --- Pasirodymas slenkant (whileInView atitikmuo per IntersectionObserver) --- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Pagarba naudotojui, išjungusiam animacijas */
@media (prefers-reduced-motion: reduce) {
  .animate-marquee,
  .animate-fade-up { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
