/* Custom styles for Urbano Chimi Burger */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Navbar transition */
#navbar {
  transition: background-color 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

#navbar.scrolled {
  background-color: rgba(253, 248, 240, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

#navbar.scrolled .font-serif {
  color: #9f2715;
}

/* Mobile menu */
#mobile-menu {
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll reveal — progressive enhancement, only active when JS runs and motion preferred */
.scroll-reveal {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: no-preference) {
  .scroll-reveal.revealed {
    animation: fadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #FDF8F0;
}
::-webkit-scrollbar-thumb {
  background: #e06549;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #bf361c;
}

/* Selection color */
::selection {
  background-color: #f3b8a8;
  color: #6c1c11;
}

/* Input autofill styling */
input:-webkit-autofill,
textarea:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 30px #fefdf8 inset !important;
  -webkit-text-fill-color: #6B5E57 !important;
}

/* Focus visible */
*:focus-visible {
  outline: 2px solid #e06549;
  outline-offset: 2px;
}

/* Mobile menu link hover */
.mobile-link {
  display: block;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(237, 201, 109, 0.2);
}
.mobile-link:last-child {
  border-bottom: none;
}

/* Nav logo on scroll */
#navbar.scrolled .text-terra-700 {
  color: #9f2715 !important;
}
