/* ==========================================================================
   Coco Salvaje — Custom Styles
   ========================================================================== */

/* --- Custom Properties --- */
:root {
  --color-cream: #FFFCF7;
  --color-sand: #F4EBE1;
  --color-terracotta: #C4715E;
  --color-sage: #8B9E82;
}

/* --- Typography --- */
.font-display {
  font-family: 'Fraunces', serif;
}

.font-body {
  font-family: 'Karla', sans-serif;
}

/* --- Reveal Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* --- Scroll indicator pulse --- */
@keyframes scroll-hint {
  0%, 100% { opacity: 0.4; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(6px); }
}

.animate-scroll-hint {
  animation: scroll-hint 2s ease-in-out infinite;
}

/* --- Hover underline for nav links --- */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background-color: currentColor;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* --- Auth forms --- */
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(16px); }
  to { opacity: 1; transform: translateX(0); }
}

.auth-input:-webkit-autofill,
.auth-input:-webkit-autofill:hover,
.auth-input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0px 1000px #f9fafb inset;
  -webkit-text-fill-color: #111827;
  transition: background-color 5000s ease-in-out 0s;
}

.auth-input:focus:-webkit-autofill {
  -webkit-box-shadow: 0 0 0px 1000px white inset;
}

/* --- Accessibility --- */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .animate-scroll-hint {
    animation: none;
    opacity: 0.6;
  }
}
