:root {
  --color-primary: #3D2914;
  --color-secondary: #5C4020;
  --color-accent: #FF8C00;
}

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

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

/* Header scroll effects */
.header-scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.header-scrolled .text-white {
  color: #1f2937 !important;
}

.header-scrolled .text-white\/90 {
  color: #4b5563 !important;
}

.header-scrolled .text-white\/80 {
  color: #6b7280 !important;
}

/* 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%;
}

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

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

.rotate-180 {
  transform: rotate(180deg);
}

/* Form styles */
.form-input {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.1);
}

.form-input.error {
  border-color: #ef4444;
}

/* Loading states */
.loading {
  position: relative;
  color: transparent;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1rem;
  height: 1rem;
  margin: -0.5rem 0 0 -0.5rem;
  border: 2px solid #ffffff;
  border-radius: 50%;
  border-right-color: transparent;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Testimonial slider */
.testimonial-slider {
  overflow: hidden;
}

.testimonial-track {
  display: flex;
  animation: slide 20s linear infinite;
}

.testimonial-track:hover {
  animation-play-state: paused;
}

@keyframes slide {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

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

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

/* Price highlight */
.price-highlight {
  position: relative;
}

.price-highlight::before {
  content: '';
  position: absolute;
  top: 50%;
  left: -10%;
  right: -10%;
  height: 40%;
  background: linear-gradient(45deg, var(--color-accent), var(--color-primary));
  opacity: 0.1;
  border-radius: 0.5rem;
  transform: translateY(-50%) rotate(-2deg);
}

/* Star ratings */
.star-rating {
  display: inline-flex;
  gap: 0.125rem;
}

.star {
  color: #fbbf24;
  font-size: 0.875rem;
}

/* Progress bars */
.progress-bar {
  width: 100%;
  height: 0.5rem;
  background-color: #f3f4f6;
  border-radius: 0.25rem;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-accent), var(--color-primary));
  transition: width 1s ease-out;
}

/* Floating elements */
.float-animation {
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Ingredient cards hover */
.ingredient-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Order form styling */
.order-form {
  background: linear-gradient(135deg, #fffbf0 0%, #fef0c7 100%);
  border: 2px solid var(--color-accent);
}

.quantity-selector {
  display: flex;
  align-items: center;
  border: 1px solid #d1d5db;
  border-radius: 0.75rem;
  overflow: hidden;
}

.quantity-btn {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f9fafb;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s;
}

.quantity-btn:hover {
  background: #f3f4f6;
}

.quantity-input {
  width: 4rem;
  text-align: center;
  border: none;
  padding: 0.5rem;
  font-weight: 600;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-content {
    text-align: center;
  }
  
  .benefit-item {
    text-align: center;
  }
  
  .testimonial-track {
    animation-duration: 30s;
  }
}