:root {
  --color-primary: #1C1917;
  --color-secondary: #2C2825;
  --color-accent: #D4B896;
}

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: translateX(-2rem);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
[data-animate].is-visible {
  opacity: 1;
  transform: translateX(0);
}

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

/* Decorative elements */
.decor-grid-dots {
  background-image: radial-gradient(circle, rgba(212, 184, 150, 0.1) 2px, transparent 2px);
  background-size: 20px 20px;
}

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

.decor-diagonal {
  background-image: repeating-linear-gradient(
    45deg,
    rgba(212, 184, 150, 0.03),
    rgba(212, 184, 150, 0.03) 1px,
    transparent 1px,
    transparent 10px
  );
}

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

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

.fade-in {
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Form styling */
.form-input {
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(212, 184, 150, 0.1);
}

/* Loading state */
.loading {
  opacity: 0.7;
  pointer-events: none;
}

/* Success/Error messages */
.message-success {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.message-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}