:root {
  --color-primary: #1C1917;
  --color-secondary: #2C2825;
  --color-accent: #D4B896;
  --bg-light: #FDFCFB;
  --bg-alt: #F9F5F0;
}

html { 
  scroll-behavior: smooth; 
  scroll-padding-top: 5rem; 
}

body { 
  font-family: 'Nunito Sans', system-ui, sans-serif; 
}

/* Button fixes */
button, .btn, [class*="btn-"], a[href="#order_form"] {
  white-space: nowrap;
  min-width: fit-content;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

form button[type="submit"] {
  white-space: normal;
  width: 100%;
}

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

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

::-webkit-scrollbar-thumb {
  background: var(--color-accent);
  border-radius: 3px;
}

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

/* Animations */
[data-animate] {
  opacity: 0;
  transform: translateX(2rem);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* Specific animation delays */
[data-animate]:nth-child(1) { transition-delay: 0.1s; }
[data-animate]:nth-child(2) { transition-delay: 0.2s; }
[data-animate]:nth-child(3) { transition-delay: 0.3s; }
[data-animate]:nth-child(4) { transition-delay: 0.4s; }

/* Form enhancements */
.form-input {
  @apply w-full px-4 py-3 border border-gray-300 rounded-full focus:ring-2 focus:ring-accent focus:border-accent outline-none transition-colors;
}

.form-input:focus {
  box-shadow: 0 0 0 3px rgba(212, 184, 150, 0.1);
}

/* Loading states */
.loading {
  opacity: 0.7;
  pointer-events: none;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Rotate utility */
.rotate-180 { 
  transform: rotate(180deg); 
}

/* Custom gradient backgrounds */
.bg-gradient-champagne {
  background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-alt) 100%);
}

/* Star rating */
.star-fill {
  color: #fbbf24;
  fill: currentColor;
}

/* Order form styling */
.order-form {
  background: linear-gradient(135deg, var(--bg-light) 0%, white 100%);
  border: 1px solid rgba(212, 184, 150, 0.2);
}

/* Testimonial cards */
.testimonial-card {
  background: rgba(253, 252, 251, 0.5);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(212, 184, 150, 0.1);
}

/* Ingredient cards */
.ingredient-card {
  transition: all 0.3s ease;
}

.ingredient-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Mobile menu animation */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

#mobile-menu.show {
  max-height: 300px;
}

/* Cookie banner animation */
#cookie-consent {
  transform: translateY(100%);
  transition: transform 0.3s ease-out;
}

#cookie-consent.show {
  transform: translateY(0);
}