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

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

body {
  font-family: 'Outfit', system-ui, sans-serif;
}

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%;
  display: flex;
}

html.js-anim html.js-anim [data-animate] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

html.js-anim html.js-anim [data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

html.js-anim [data-animate][data-delay="100"] { transition-delay: 0.1s; }
html.js-anim [data-animate][data-delay="200"] { transition-delay: 0.2s; }
html.js-anim [data-animate][data-delay="300"] { transition-delay: 0.3s; }
html.js-anim [data-animate][data-delay="400"] { transition-delay: 0.4s; }
html.js-anim [data-animate][data-delay="500"] { transition-delay: 0.5s; }
html.js-anim [data-animate][data-delay="600"] { transition-delay: 0.6s; }

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

/* Decorative backgrounds */
.decor-grid-dots {
  background-image: radial-gradient(circle, var(--color-accent) 1px, transparent 1px);
  background-size: 28px 28px;
}

.decor-grid-lines {
  background-image:
    linear-gradient(var(--color-accent) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-accent) 1px, transparent 1px);
  background-size: 40px 40px;
}

.decor-diagonal {
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    var(--color-accent) 10px,
    var(--color-accent) 11px
  );
}

.decor-mesh {
  background-image:
    radial-gradient(ellipse at 20% 50%, var(--color-accent) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, var(--color-primary) 0%, transparent 50%);
}

.decor-subtle { opacity: 0.05; }
.decor-moderate { opacity: 0.08; }
.decor-bold { opacity: 0.15; }

.decor-gradient-blur::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 9999px;
  background: var(--color-accent);
  opacity: 0.12;
  filter: blur(80px);
  top: -100px;
  right: -100px;
  pointer-events: none;
  z-index: 0;
}

.decor-gradient-blur::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 9999px;
  background: var(--color-primary);
  opacity: 0.10;
  filter: blur(60px);
  bottom: -80px;
  left: -80px;
  pointer-events: none;
  z-index: 0;
}

.decor-corner-tr::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: linear-gradient(225deg, var(--color-accent), transparent);
  opacity: 0.15;
  border-radius: 0 0 0 9999px;
  pointer-events: none;
}

.decor-corner-bl::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200px;
  height: 200px;
  background: linear-gradient(45deg, var(--color-accent), transparent);
  opacity: 0.12;
  border-radius: 0 9999px 0 0;
  pointer-events: none;
}

.decor-glow-element {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 9999px;
  background: radial-gradient(circle, var(--color-accent) 0%, transparent 70%);
  opacity: 0.12;
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}

/* Star rating helper */
.star-filled { color: #f59e0b; }
.star-empty { color: #d1d5db; }

/* Form field focus ring */
.form-field:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(143, 188, 143, 0.2);
}

/* Accordion transition */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease-out;
}

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

/* Pulse animation for CTA */
@keyframes pulse-accent {
  0%, 100% { box-shadow: 0 0 0 0 rgba(143, 188, 143, 0.4); }
  50% { box-shadow: 0 0 0 10px rgba(143, 188, 143, 0); }
}

.cta-pulse {
  animation: pulse-accent 2.5s ease-in-out infinite;
}

/* Badge */
.product-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.75rem;
  background: var(--color-accent);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Trust strip */
.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
  text-align: center;
}

/* Card hover */
.card-hover {
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(61, 74, 61, 0.12);
}

/* Scroll to top */
#scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 40;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(61, 74, 61, 0.3);
}

#scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
}

/* Image container */
.img-contain {
  object-fit: contain;
}

/* Error message */
.field-error {
  color: #ef4444;
  font-size: 0.75rem;
  margin-top: 0.25rem;
  display: none;
}

.field-error.show {
  display: block;
}

input.error,
select.error {
  border-color: #ef4444 !important;
}