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

body {
  overflow-x: hidden;
}

/* Scroll reveal animations - progressive enhancement only */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
  }

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

  .reveal-delay-1 { transition-delay: 0.1s; }
  .reveal-delay-2 { transition-delay: 0.2s; }
  .reveal-delay-3 { transition-delay: 0.3s; }
  .reveal-delay-4 { transition-delay: 0.4s; }
}

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

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

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

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

/* Selection color */
::selection {
  background: #fce4e8;
  color: #7B2D3B;
}

/* Smooth image loading */
img {
  image-rendering: auto;
}

/* Navbar glass effect */
.nav-scrolled {
  background: rgba(254, 253, 251, 0.95) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 20px rgba(123, 45, 59, 0.08);
}

/* Button hover effects */
a[href="#order"]:hover {
  transform: translateY(-1px);
}

/* Mobile menu transition */
#mobileMenu {
  transition: max-height 0.3s ease, padding 0.3s ease;
}

/* Cookie card hover */
.group:hover .group-hover\\:scale-105 {
  transform: scale(1.05);
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #7B2D3B;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Form styles */
input, textarea {
  border: 1px solid #f9c5cc;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  width: 100%;
  font-family: inherit;
  font-size: 0.95rem;
  color: #4a1720;
  background: #fefdfb;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus, textarea:focus {
  outline: none;
  border-color: #7B2D3B;
  box-shadow: 0 0 0 3px rgba(123, 45, 59, 0.1);
}

input::placeholder, textarea::placeholder {
  color: #f4a0aa;
}
