:root {
  --color-primary: #2C3E50;
  --color-secondary: #3D5266;
  --color-accent: #48C9B0;
}

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

body { 
  font-family: 'Source Sans 3', 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, rgba(72, 201, 176, 0.1) 1px, transparent 1px);
  background-size: 20px 20px;
}

.decor-grid-lines {
  background-image: 
    linear-gradient(rgba(72, 201, 176, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(72, 201, 176, 0.05) 1px, transparent 1px);
  background-size: 30px 30px;
}

.decor-diagonal {
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(72, 201, 176, 0.05) 10px,
    rgba(72, 201, 176, 0.05) 11px
  );
}

.decor-mesh {
  background: 
    radial-gradient(ellipse at top, rgba(72, 201, 176, 0.1), transparent 60%),
    radial-gradient(ellipse at bottom, rgba(44, 62, 80, 0.1), transparent 60%);
}

.decor-gradient-blur::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: 
    radial-gradient(ellipse at 30% 40%, rgba(72, 201, 176, 0.3), transparent 50%),
    radial-gradient(ellipse at 70% 60%, rgba(44, 62, 80, 0.2), transparent 50%);
  filter: blur(40px);
  z-index: -1;
}

.decor-corner-tr::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: linear-gradient(-45deg, rgba(72, 201, 176, 0.1), transparent 70%);
  border-radius: 0 0 0 100px;
}

.decor-corner-bl::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100px;
  height: 100px;
  background: linear-gradient(45deg, rgba(72, 201, 176, 0.1), transparent 70%);
  border-radius: 0 100px 0 0;
}

.decor-glow-element::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(72, 201, 176, 0.15), transparent 70%);
  border-radius: 50%;
  filter: blur(20px);
  z-index: -1;
}

.decor-rings-svg {
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cpattern id='rings' x='0' y='0' width='50' height='50' patternUnits='userSpaceOnUse'%3E%3Ccircle cx='25' cy='25' r='20' fill='none' stroke='%2348C9B0' stroke-width='0.5' opacity='0.1'/%3E%3Ccircle cx='25' cy='25' r='10' fill='none' stroke='%2348C9B0' stroke-width='0.3' opacity='0.1'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100' height='100' fill='url(%23rings)'/%3E%3C/svg%3E");
}

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

/* Form enhancements */
.form-input {
  @apply w-full px-4 py-3 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-accent focus:border-transparent;
}

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

/* Loading states */
.loading {
  position: relative;
  pointer-events: none;
}

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

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

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

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

/* Testimonial slider */
.testimonial-slider {
  display: flex;
  transition: transform 0.5s ease;
}

.testimonial-slide {
  min-width: 100%;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .testimonial-slide {
    min-width: 50%;
  }
}

@media (min-width: 1024px) {
  .testimonial-slide {
    min-width: 33.333333%;
  }
}

/* FAQ Accordion */
.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-content.open {
  max-height: 500px;
}

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

.star {
  color: #fbbf24;
}

.star.empty {
  color: #e5e7eb;
}

/* Price styling */
.price-old {
  text-decoration: line-through;
  color: #9ca3af;
}

.price-current {
  color: #059669;
  font-weight: 700;
}

.price-save {
  background: #dcfce7;
  color: #166534;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
}

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

.container-narrow {
  max-width: 960px;
  margin: 0 auto;
}

.gradient-text {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}