/* ============================================
   BASE - Variables, Fonts, Scrollbar, Animations
   ============================================ */

:root {
  --color-livo-green: #1B3022;
  --color-livo-green-dark: #0F1D14;
  --color-livo-green-deep: #152A1E;
  --color-livo-green-deeper: #0A120D;
  --color-livo-gold: #C5A880;
  --color-livo-gold-light: #D9C4A8;
  --color-livo-bg-light: #faf8f5;
  --color-livo-bg-cream: #f4f1ea;
  --color-livo-bg-warm: #eae6df;
  --color-livo-card-light: #ffffff;
  --color-text-primary: #1f2821;
  --color-text-secondary: #4e5a50;
  --color-text-muted: #526054;
  --color-text-light: #a8b2aa;
  --color-accent: #C5A880;
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-font-smoothing: antialiased;
  font-smooth: always;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg-light);
  color: var(--color-text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-serif);
  letter-spacing: -0.01em;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Performance: lazy loading for images */
img[loading="lazy"] {
  opacity: 1;
  transition: opacity 0.3s ease;
}

/* Performance: will-change for animated elements */
.animate-float,
.animate-fade-in,
.animate-bounce-custom {
  will-change: transform;
}

/* Print styles */
@media print {
  body {
    background: white;
    color: black;
  }
  
  .floating-whatsapp-container,
  #floating-whatsapp-container {
    display: none !important;
  }
  
  a::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #666;
  }
}

::-webkit-scrollbar {
  width: 7px;
}

::-webkit-scrollbar-track {
  background: #f2efe9;
}

::-webkit-scrollbar-thumb {
  background: var(--color-livo-green);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-livo-gold);
}

::selection {
  background: var(--color-livo-green);
  color: #fff;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-6px);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes bounce {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(-3px);
  }
}

@keyframes ping {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.5);
    opacity: 0.5;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.animate-float {
  animation: float 4s ease-in-out infinite;
}

.animate-fade-in {
  animation: fadeIn 0.3s ease-out;
}

.animate-bounce-custom {
  animation: bounce 1s ease-in-out infinite;
}

.animate-ping-custom {
  animation: ping 1.5s ease-in-out infinite;
}

.animate-spin-custom {
  animation: spin 1s linear infinite;
}

/* Custom color utility classes */
.text-livo-green {
  color: var(--color-livo-green);
}

.bg-livo-green {
  background-color: var(--color-livo-green);
}

.bg-livo-green-dark {
  background-color: var(--color-livo-green-dark);
}

.bg-livo-green-deep {
  background-color: var(--color-livo-green-deep);
}

.text-livo-gold {
  color: var(--color-livo-gold);
}

.border-livo-gold {
  border-color: rgba(197, 168, 128, 0.4);
}

.border-livo-green {
  border-color: rgba(27, 48, 34, 0.25);
}

.font-serif-luxury {
  font-family: var(--font-serif);
}

/* Additional custom color utilities */
.bg-livo-bg-light {
  background-color: var(--color-livo-bg-light);
}

.bg-livo-bg-cream {
  background-color: var(--color-bg-cream);
}

.bg-livo-bg-warm {
  background-color: var(--color-bg-warm);
}

.text-text-primary {
  color: var(--color-text-primary);
}

.text-text-secondary {
  color: var(--color-text-secondary);
}

.text-text-muted {
  color: var(--color-text-muted);
}

.text-livo-bg-light {
  color: var(--color-livo-bg-light);
}

.bg-livo-card-light {
  background-color: var(--color-livo-card-light);
}
