:root {
  --color-primary: #1C1917;
  --color-secondary: #2C2825;
  --color-accent: #D4B896;
  --color-bg-light: #FDFCFB;
  --color-bg-alt: #F9F5F0;
}

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%;
}

/* Motion reduction */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

/* Animations (context: slide_left) */
[data-animate] {
  opacity: 0;
  transform: translateX(2rem);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  will-change: opacity, transform;
}
[data-animate].is-visible {
  opacity: 1;
  transform: translateX(0);
}

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

/* Focus ring helper (for non-tailwind elements if any) */
.focus-ring:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(212, 184, 150, 0.35);
}

/* Decorative backgrounds */
.decor-grid-dots {
  background-image: radial-gradient(rgba(28, 25, 23, 0.14) 1px, transparent 1px);
  background-size: 14px 14px;
  background-position: 0 0;
}
.decor-grid-lines {
  background-image:
    linear-gradient(to right, rgba(28, 25, 23, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(28, 25, 23, 0.08) 1px, transparent 1px);
  background-size: 40px 40px;
}
.decor-diagonal {
  background-image: repeating-linear-gradient(
    135deg,
    rgba(212, 184, 150, 0.22) 0px,
    rgba(212, 184, 150, 0.22) 1px,
    transparent 1px,
    transparent 10px
  );
}
.decor-mesh {
  background:
    radial-gradient(60% 80% at 10% 15%, rgba(212, 184, 150, 0.22), transparent 60%),
    radial-gradient(60% 80% at 90% 10%, rgba(212, 184, 150, 0.10), transparent 60%),
    radial-gradient(60% 80% at 70% 90%, rgba(253, 252, 251, 0.10), transparent 60%),
    radial-gradient(60% 80% at 15% 85%, rgba(44, 40, 37, 0.18), transparent 55%);
}

/* Intensity modifiers */
.decor-subtle { opacity: 0.06; }
.decor-moderate { opacity: 0.12; }
.decor-bold { opacity: 0.2; }

/* Accent elements */
.decor-gradient-blur::before,
.decor-gradient-blur::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  filter: blur(50px);
  opacity: 0.24;
  pointer-events: none;
  border-radius: 9999px;
}
.decor-gradient-blur::before {
  left: -180px;
  top: -220px;
  background: radial-gradient(circle at 30% 30%, rgba(212, 184, 150, 0.9), transparent 60%);
}
.decor-gradient-blur::after {
  right: -220px;
  bottom: -260px;
  background: radial-gradient(circle at 70% 60%, rgba(212, 184, 150, 0.55), transparent 62%);
}

.decor-corner-tr::before,
.decor-corner-bl::before {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 48px;
  opacity: 0.12;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(212, 184, 150, 0.9), transparent 60%);
  transform: rotate(12deg);
}
.decor-corner-tr::before { top: -90px; right: -90px; }
.decor-corner-bl::before { bottom: -90px; left: -90px; transform: rotate(-12deg); }

.decor-glow-element {
  position: absolute;
  inset: auto;
  width: 520px;
  height: 520px;
  border-radius: 9999px;
  background: radial-gradient(circle at 50% 50%, rgba(212, 184, 150, 0.35), transparent 65%);
  filter: blur(30px);
  opacity: 0.9;
  pointer-events: none;
}

.decor-rings-svg {
  background-image: radial-gradient(circle at center,
    transparent 0 20%,
    rgba(212, 184, 150, 0.10) 20% 21%,
    transparent 21% 36%,
    rgba(212, 184, 150, 0.08) 36% 37%,
    transparent 37% 52%,
    rgba(212, 184, 150, 0.06) 52% 53%,
    transparent 53% 70%
  );
}

/* Slider helpers (if used) */
.slider-track {
  display: flex;
  gap: 1rem;
  will-change: transform;
}
.slider-snap {
  scroll-snap-type: x mandatory;
}
.slider-snap > * {
  scroll-snap-align: start;
}

/* Inputs */
.input-error {
  border-color: rgba(239, 68, 68, 0.7) !important;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12) !important;
}

/* Utility for subtle glass */
.glass {
  background: rgba(253, 252, 251, 0.72);
  backdrop-filter: blur(10px);
}