:root {
  --color-primary: #1F2937;
  --color-secondary: #374151;
  --color-accent: #64748B;
}

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

body {
  font-family: 'Plus Jakarta 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);
  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, var(--color-accent) 1px, transparent 1px);
  background-size: 20px 20px;
}

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

.decor-diagonal {
  background-image: repeating-linear-gradient(
    45deg,
    var(--color-accent),
    var(--color-accent) 1px,
    transparent 1px,
    transparent 20px
  );
}

.decor-mesh {
  background: linear-gradient(45deg, var(--color-accent), transparent 30%, transparent 70%, var(--color-accent));
}

.decor-gradient-blur::before,
.decor-gradient-blur::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--color-accent), transparent 70%);
  border-radius: 50%;
  filter: blur(40px);
  z-index: -1;
}

.decor-gradient-blur::before {
  top: -150px;
  left: -150px;
}

.decor-gradient-blur::after {
  bottom: -150px;
  right: -150px;
}

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

.decor-corner-bl::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100px;
  height: 100px;
  background: linear-gradient(45deg, var(--color-accent), transparent);
  border-radius: 0 100% 0 0;
}

.decor-glow-element {
  box-shadow: 0 0 60px var(--color-accent);
}

.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' stroke='%23647491' stroke-width='1'%3e%3ccircle cx='30' cy='30' r='15'/%3e%3ccircle cx='30' cy='30' r='25'/%3e%3c/g%3e%3c/svg%3e");
}

.decor-subtle {
  opacity: 0.05;
}

.decor-moderate {
  opacity: 0.1;
}

.decor-bold {
  opacity: 0.2;
}

/* Form enhancements */
.form-group {
  position: relative;
}

.form-input {
  @apply w-full px-4 py-3 border border-gray-300 rounded-full focus:ring-2 focus:ring-accent focus:border-accent transition-all;
}

.form-label {
  @apply block text-sm font-medium text-gray-700 mb-2;
}

/* Product card enhancements */
.product-card {
  @apply bg-white rounded-3xl p-6 shadow-lg border border-gray-100 transition-all hover:shadow-2xl;
}

.product-image {
  @apply w-full h-auto object-contain;
}

/* CTA button variations */
.cta-primary {
  @apply bg-accent text-white hover:bg-accent/90 rounded-full px-6 py-3 font-semibold shadow-lg transition-all hover:shadow-2xl;
}

.cta-secondary {
  @apply bg-white text-accent border-2 border-accent hover:bg-accent hover:text-white rounded-full px-6 py-3 font-semibold transition-all;
}

/* Rating stars */
.rating-stars {
  @apply flex items-center gap-1;
}

.rating-star {
  @apply w-4 h-4 text-yellow-400 fill-current;
}

/* Testimonial cards */
.testimonial-card {
  @apply bg-white p-6 rounded-2xl shadow-sm border border-gray-100 hover:shadow-lg transition-all;
}

.testimonial-avatar {
  @apply w-12 h-12 rounded-full bg-gray-200 flex items-center justify-center text-gray-600 font-semibold;
}

/* FAQ styles */
.faq-item {
  @apply border-b border-gray-200 py-4;
}

.faq-question {
  @apply flex items-center justify-between w-full text-left font-medium text-gray-900 hover:text-accent cursor-pointer;
}

.faq-answer {
  @apply mt-3 text-gray-600 text-sm leading-relaxed;
}

/* Badge styles */
.badge {
  @apply inline-flex items-center gap-1 px-3 py-1 rounded-full text-sm font-medium;
}

.badge-success {
  @apply bg-green-100 text-green-800;
}

.badge-warning {
  @apply bg-yellow-100 text-yellow-800;
}

.badge-info {
  @apply bg-blue-100 text-blue-800;
}

/* Mobile optimizations */
@media (max-width: 768px) {
  .mobile-hidden {
    display: none;
  }
  
  .mobile-full-width {
    width: 100%;
  }
  
  .mobile-text-center {
    text-align: center;
  }
}

/* Loading states */
.loading {
  @apply opacity-50 pointer-events-none;
}

.spinner {
  @apply animate-spin w-4 h-4 border-2 border-white border-t-transparent rounded-full;
}