:root {
  --color-primary: #3D4A3D;
  --color-secondary: #566556;
  --color-accent: #8FBC8F;
  --bg-light: #F5FAF5;
  --bg-alt: #E8F5E8;
}

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { font-family: 'Inter', system-ui, sans-serif; }

::selection { background: rgba(143, 188, 143, 0.35); }

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

/* Smooth focus ring */
:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(143, 188, 143, 0.35);
  border-radius: 0.75rem;
}

/* Header states */
.header-solid {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(17, 24, 39, 0.06);
}

.header-solid a,
.header-solid button {
  color: inherit;
}

.header-solid .header-brand,
.header-solid .header-link {
  color: rgb(17 24 39);
}

.header-solid .header-link-muted {
  color: rgb(75 85 99);
}

/* Animations (fade_up) */
[data-animate] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 700ms ease-out, transform 700ms ease-out;
  will-change: opacity, transform;
}
[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

/* Decorative patterns */
.decor-grid-dots {
  background-image: radial-gradient(circle, rgba(17,24,39,0.08) 1px, transparent 1px);
  background-size: 18px 18px;
}
.decor-grid-lines {
  background-image:
    linear-gradient(to right, rgba(17,24,39,0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(17,24,39,0.05) 1px, transparent 1px);
  background-size: 36px 36px;
}
.decor-diagonal {
  background-image: repeating-linear-gradient(135deg, rgba(17,24,39,0.06) 0, rgba(17,24,39,0.06) 1px, transparent 1px, transparent 12px);
}
.decor-mesh {
  background:
    radial-gradient(700px 300px at 15% 10%, rgba(143,188,143,0.22), transparent 60%),
    radial-gradient(700px 300px at 85% 20%, rgba(61,74,61,0.22), transparent 60%),
    radial-gradient(700px 300px at 40% 85%, rgba(86,101,86,0.18), transparent 60%);
}

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

/* Accent elements */
.decor-gradient-blur { position: relative; }
.decor-gradient-blur::before,
.decor-gradient-blur::after {
  content: "";
  position: absolute;
  inset: -80px;
  filter: blur(40px);
  opacity: 0.35;
  z-index: 0;
  pointer-events: none;
}
.decor-gradient-blur::before {
  background: radial-gradient(closest-side, rgba(143,188,143,0.65), transparent 70%);
  transform: translate(-10%, -20%);
}
.decor-gradient-blur::after {
  background: radial-gradient(closest-side, rgba(61,74,61,0.6), transparent 70%);
  transform: translate(15%, 10%);
}
.decor-glow-element { position: relative; }
.decor-glow-element::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(143,188,143,0.35), transparent 60%);
  filter: blur(22px);
  z-index: 0;
  pointer-events: none;
}
.decor-corner-tr { position: relative; }
.decor-corner-tr::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle at top right, rgba(143,188,143,0.35), transparent 65%);
  pointer-events: none;
  z-index: 0;
}
.decor-corner-bl { position: relative; }
.decor-corner-bl::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle at bottom left, rgba(61,74,61,0.25), transparent 65%);
  pointer-events: none;
  z-index: 0;
}

/* Form helper */
.input-invalid {
  border-color: rgba(239, 68, 68, 0.45) !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
}

.helper-text {
  font-size: 0.875rem;
  color: rgb(75 85 99);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-animate] { transition: none; transform: none; opacity: 1; }
}