:root {
  --color-primary: #4A4035;
  --color-secondary: #6A5A4A;
  --color-accent: #F5E6D3;
}

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 at 1px 1px, rgba(255,255,255,0.15) 1px, transparent 0);
  background-size: 20px 20px;
}

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

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

.decor-mesh {
  background: linear-gradient(45deg, rgba(245,230,211,0.1) 25%, transparent 25%),
              linear-gradient(-45deg, rgba(245,230,211,0.1) 25%, transparent 25%),
              linear-gradient(45deg, transparent 75%, rgba(245,230,211,0.1) 75%),
              linear-gradient(-45deg, transparent 75%, rgba(245,230,211,0.1) 75%);
  background-size: 30px 30px;
}

.decor-gradient-blur::before {
  content: '';
  position: absolute;
  top: 20%;
  right: 10%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(245,230,211,0.3) 0%, transparent 70%);
  filter: blur(40px);
  border-radius: 50%;
  z-index: -1;
}

.decor-gradient-blur::after {
  content: '';
  position: absolute;
  bottom: 20%;
  left: 10%;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(74,64,53,0.2) 0%, transparent 70%);
  filter: blur(30px);
  border-radius: 50%;
  z-index: -1;
}

.decor-corner-tr {
  position: relative;
}

.decor-corner-tr::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: linear-gradient(-45deg, rgba(245,230,211,0.2) 0%, transparent 70%);
  clip-path: polygon(100% 0%, 0% 0%, 100% 100%);
  z-index: -1;
}

.decor-corner-bl {
  position: relative;
}

.decor-corner-bl::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100px;
  height: 100px;
  background: linear-gradient(45deg, rgba(245,230,211,0.2) 0%, transparent 70%);
  clip-path: polygon(0% 100%, 0% 0%, 100% 100%);
  z-index: -1;
}

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

.decor-glow-element::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, rgba(245,230,211,0.3) 0%, transparent 70%);
  filter: blur(20px);
  border-radius: 50%;
  z-index: -1;
}

.decor-rings-svg {
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23F5E6D3' fill-opacity='0.1'%3E%3Ccircle cx='30' cy='30' r='10'/%3E%3Ccircle cx='30' cy='30' r='20'/%3E%3Ccircle cx='30' cy='30' r='30'/%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; 
}

/* Mobile optimizations */
@media (max-width: 640px) {
  .hero-text {
    font-size: 2rem !important;
    line-height: 1.1;
  }
  
  .section-padding {
    padding: 3rem 0;
  }
}

/* Form styles */
.form-input {
  transition: all 0.2s ease;
  border: 2px solid #e5e7eb;
}

.form-input:focus {
  border-color: var(--color-accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(245,230,211,0.1);
}

.form-input.error {
  border-color: #ef4444;
}

/* Loading spinner */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255,255,255,.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}

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

/* Success message */
.success-message {
  background: linear-gradient(135deg, #10b981, #059669);
  animation: slideInUp 0.5s ease-out;
}

@keyframes slideInUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Header scroll effect */
.header-scrolled {
  background: rgba(255,255,255,0.95) !important;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

.header-scrolled a {
  color: #374151 !important;
}

.header-scrolled .logo {
  color: var(--color-primary) !important;
}

/* Testimonial stars */
.stars {
  display: inline-flex;
  gap: 2px;
}

.star {
  width: 16px;
  height: 16px;
  color: #fbbf24;
}

.star.filled {
  color: #f59e0b;
}