/* Base styles and custom utilities */
html {
  scroll-behavior: smooth;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Navbar scroll state */
#navbar.scrolled {
  background: rgba(254, 253, 248, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

#navbar.scrolled .font-bold {
  color: #453631 !important;
}

#navbar.scrolled .text-warm-700,
#navbar.scrolled .text-warm-500 {
  color: #6e564c !important;
}

/* Mobile menu link hover fix */
#navbar.scrolled .mobile-link {
  color: #6e564c;
}

#navbar.scrolled .mobile-link:hover {
  color: #C4704B;
  background: #fdf0eb;
}

/* Scroll reveal animations - progressive enhancement */
.scroll-reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }

  .scroll-reveal:not(.revealed) {
    opacity: 0;
    transform: translateY(24px);
  }
}

/* Hero decorative pulse */
@keyframes soft-pulse {
  0%, 100% { opacity: 0.2; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(1.05); }
}

#hero .absolute.rounded-full {
  animation: soft-pulse 6s ease-in-out infinite;
}

#hero .absolute:nth-child(3) {
  animation-delay: 2s;
}

#hero .absolute:nth-child(4) {
  animation-delay: 4s;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

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

::-webkit-scrollbar-thumb {
  background: #d9c8b8;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #bfa896;
}

/* Focus visible styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #C4704B;
  outline-offset: 2px;
  border-radius: 4px;
}
