:root {
  --color-primary: #3D4A3D;
  --color-secondary: #566556;
  --color-accent: #8FBC8F;
}

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

body { 
  font-family: 'Inter', 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);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

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

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

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

.decor-diagonal {
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    currentColor 10px,
    currentColor 11px
  );
}

.decor-mesh {
  background: linear-gradient(135deg, var(--color-accent) 0%, transparent 50%, var(--color-primary) 100%);
}

.decor-gradient-blur::before {
  content: '';
  position: absolute;
  top: 20%;
  left: 10%;
  width: 200px;
  height: 200px;
  background: var(--color-accent);
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.3;
  z-index: -1;
}

.decor-gradient-blur::after {
  content: '';
  position: absolute;
  bottom: 20%;
  right: 10%;
  width: 150px;
  height: 150px;
  background: var(--color-primary);
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.2;
  z-index: -1;
}

.decor-corner-tr::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: var(--color-accent);
  clip-path: polygon(100% 0%, 0% 100%, 100% 100%);
  opacity: 0.1;
}

.decor-corner-bl::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100px;
  height: 100px;
  background: var(--color-accent);
  clip-path: polygon(0% 0%, 0% 100%, 100% 100%);
  opacity: 0.1;
}

.decor-glow-element {
  box-shadow: 0 0 50px rgba(143, 188, 143, 0.3);
}

.decor-rings-svg {
  background-image: url("data:image/svg+xml,%3csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3e%3cg fill='none' fill-rule='evenodd'%3e%3cg fill='%23ffffff' fill-opacity='0.1'%3e%3ccircle cx='30' cy='30' r='5'/%3e%3ccircle cx='30' cy='30' r='15'/%3e%3ccircle cx='30' cy='30' r='25'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e");
}

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

/* FAQ Accordion */
.faq-item[data-state="open"] .faq-icon {
  transform: rotate(180deg);
}

.faq-content[data-state="closed"] {
  display: none;
}

/* Form validation */
.form-error {
  border-color: #ef4444;
  background-color: #fef2f2;
}

.form-error + .error-message {
  color: #ef4444;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

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

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

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

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

.star {
  color: #fbbf24;
  fill: currentColor;
}

.star.half {
  background: linear-gradient(90deg, #fbbf24 50%, #d1d5db 50%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

/* Mobile menu transition */
#mobile-menu {
  transition: all 0.3s ease;
}

/* Backdrop blur fallback */
@supports not (backdrop-filter: blur(8px)) {
  header {
    background-color: rgba(255, 255, 255, 0.95);
  }
}