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

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

body { 
  font-family: 'Space Grotesk', 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;
  background-position: 0 0, 10px 10px;
}

.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,
    currentColor 0px,
    currentColor 1px,
    transparent 1px,
    transparent 15px
  );
}

.decor-mesh::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 80%, var(--color-accent) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, var(--color-primary) 0%, transparent 50%);
  opacity: 0.1;
  z-index: -1;
}

.decor-gradient-blur::before,
.decor-gradient-blur::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  z-index: -1;
}

.decor-gradient-blur::before {
  top: 10%;
  right: 10%;
  width: 200px;
  height: 200px;
  background: var(--color-accent);
  opacity: 0.3;
}

.decor-gradient-blur::after {
  bottom: 10%;
  left: 10%;
  width: 300px;
  height: 300px;
  background: var(--color-primary);
  opacity: 0.2;
}

.decor-corner-tr::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: linear-gradient(-45deg, var(--color-accent), transparent);
  opacity: 0.1;
}

.decor-corner-bl::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100px;
  height: 100px;
  background: linear-gradient(45deg, var(--color-primary), transparent);
  opacity: 0.1;
}

.decor-glow-element {
  position: relative;
}

.decor-glow-element::before {
  content: '';
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle, var(--color-accent), transparent 70%);
  opacity: 0.1;
  z-index: -1;
  animation: glow-pulse 3s ease-in-out infinite alternate;
}

@keyframes glow-pulse {
  from { opacity: 0.05; }
  to { opacity: 0.15; }
}

.decor-rings-svg {
  position: relative;
}

.decor-rings-svg::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  background-image: url("data:image/svg+xml,%3Csvg width='300' height='300' viewBox='0 0 300 300' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='150' cy='150' r='50' stroke='%23FFB300' stroke-width='1' fill='none' opacity='0.1'/%3E%3Ccircle cx='150' cy='150' r='100' stroke='%232F4F2F' stroke-width='1' fill='none' opacity='0.05'/%3E%3Ccircle cx='150' cy='150' r='150' stroke='%23FFB300' stroke-width='1' fill='none' opacity='0.03'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  z-index: -1;
}

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

/* Custom gradient backgrounds */
.bg-gradient-subtle {
  background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%);
}

.bg-gradient-accent {
  background: linear-gradient(135deg, var(--color-accent), var(--color-primary));
}

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

.form-input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 179, 0, 0.1);
}

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

.star-rating .star {
  color: #FFB300;
  fill: currentColor;
}

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

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

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

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* FAQ accordion */
.faq-item {
  border-bottom: 1px solid #e5e7eb;
}

.faq-question {
  transition: all 0.2s ease-in-out;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-in-out, padding 0.3s ease-in-out;
}

.faq-answer.open {
  max-height: 200px;
  padding-top: 1rem;
}

/* Testimonial cards */
.testimonial-card {
  transition: transform 0.2s ease-in-out;
}

.testimonial-card:hover {
  transform: translateY(-2px);
}

/* Order form highlight */
#order_form {
  scroll-margin-top: 100px;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Phone input styling */
.phone-input-group {
  position: relative;
}

.phone-prefix {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #6b7280;
  font-size: 14px;
  pointer-events: none;
  z-index: 10;
}

.phone-input {
  padding-left: 60px;
}