:root {
  --color-primary: #2F4F2F;
  --color-secondary: #4A6B4A;
  --color-accent: #FFB300;
}

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

body { 
  font-family: 'Work 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%;
}

/* Animations */
[data-animate] {
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

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

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

/* Decorative elements */
.decor-grid-dots {
  background-image: radial-gradient(circle, rgba(47, 79, 47, 0.1) 1px, transparent 1px);
  background-size: 20px 20px;
}

.decor-grid-lines {
  background-image: linear-gradient(rgba(47, 79, 47, 0.03) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(47, 79, 47, 0.03) 1px, transparent 1px);
  background-size: 20px 20px;
}

.decor-diagonal {
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(47, 79, 47, 0.02) 10px,
    rgba(47, 79, 47, 0.02) 20px
  );
}

.decor-mesh {
  background-image: radial-gradient(at 25% 25%, rgba(255, 179, 0, 0.1) 0px, transparent 50%),
                    radial-gradient(at 75% 75%, rgba(47, 79, 47, 0.1) 0px, transparent 50%);
}

.decor-gradient-blur::before {
  content: '';
  position: absolute;
  top: 20%;
  left: 10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 179, 0, 0.1), transparent);
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
}

.decor-gradient-blur::after {
  content: '';
  position: absolute;
  bottom: 20%;
  right: 10%;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(47, 79, 47, 0.1), transparent);
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
}

.decor-corner-tr::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: linear-gradient(-135deg, rgba(255, 179, 0, 0.1) 0%, transparent 50%);
}

.decor-corner-bl::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100px;
  height: 100px;
  background: linear-gradient(45deg, rgba(47, 79, 47, 0.1) 0%, transparent 50%);
}

.decor-glow-element {
  box-shadow: 0 0 60px rgba(255, 179, 0, 0.2);
}

.decor-rings-svg {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='20' fill='none' stroke='rgba(47,79,47,0.05)' stroke-width='0.5'/%3E%3Ccircle cx='50' cy='50' r='35' fill='none' stroke='rgba(47,79,47,0.03)' stroke-width='0.5'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  background-repeat: repeat;
}

.decor-subtle { opacity: 0.05; }
.decor-moderate { opacity: 0.1; }
.decor-bold { opacity: 0.2; }

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

.form-select {
  @apply w-full px-4 py-3 border border-gray-200 rounded-lg focus:outline-none focus:ring-2 focus:ring-accent/20 focus:border-accent transition-colors appearance-none bg-white;
}

.form-checkbox {
  @apply w-4 h-4 text-accent border-gray-300 rounded focus:ring-accent/20;
}

/* Testimonial quote styling */
.testimonial-quote::before {
  content: '"';
  font-size: 4rem;
  color: rgba(255, 179, 0, 0.2);
  position: absolute;
  top: -1rem;
  left: -1rem;
  font-family: serif;
  line-height: 1;
}

.testimonial-quote::after {
  content: '"';
  font-size: 4rem;
  color: rgba(255, 179, 0, 0.2);
  position: absolute;
  bottom: -3rem;
  right: -1rem;
  font-family: serif;
  line-height: 1;
}

/* Rating stars */
.star-rating {
  display: inline-flex;
  gap: 2px;
}

.star-filled {
  color: #FFB300;
}

.star-empty {
  color: #E5E7EB;
}

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

.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Utility classes */
.text-balance {
  text-wrap: balance;
}

.aspect-square {
  aspect-ratio: 1 / 1;
}

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

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