:root {
  --color-primary: #3D2C2C;
  --color-secondary: #5A4040;
  --color-accent: #FFAB91;
  --color-bg-light: #FFF5F2;
  --color-bg-alt: #FFE8E0;
}

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

body {
  font-family: 'Source Sans 3', system-ui, sans-serif;
}

/* ========================
   Button resets
======================== */
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;
}

/* ========================
   Scroll animations
   Only hides when JS class is active — bots/no-JS see full content
======================== */
html.js-anim html.js-anim [data-animate] {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

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

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

.decor-grid-lines {
  background-image:
    linear-gradient(to right, var(--color-accent) 1px, transparent 1px),
    linear-gradient(to bottom, 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-bg-alt) 0%, transparent 50%),
                    radial-gradient(ellipse at 80% 20%, var(--color-accent) 0%, transparent 40%);
}

.decor-subtle { opacity: 0.05; }
.decor-moderate { opacity: 0.10; }
.decor-bold { opacity: 0.20; }

.decor-gradient-blur::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, var(--color-accent), transparent 70%);
  opacity: 0.18;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.decor-gradient-blur::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -60px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, var(--color-bg-alt), transparent 70%);
  opacity: 0.25;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

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

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

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

/* ========================
   Utility
======================== */
.rotate-180 {
  transform: rotate(180deg);
}

.line-through-accent {
  text-decoration: line-through;
  color: #9ca3af;
}

/* ========================
   Star rating
======================== */
.stars {
  display: inline-flex;
  gap: 2px;
  color: #f59e0b;
}

/* ========================
   FAQ accordion
======================== */
.faq-answer {
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.35s ease;
  max-height: 0;
  opacity: 0;
}

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

/* ========================
   Order form
======================== */
.order-form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid #e5e7eb;
  border-radius: 0.75rem;
  font-size: 0.95rem;
  transition: border-color 0.2s;
  background: white;
  color: #111827;
}

.order-form-input:focus {
  outline: none;
  border-color: var(--color-accent);
}

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

.form-error-msg {
  font-size: 0.75rem;
  color: #ef4444;
  margin-top: 0.25rem;
  display: none;
}

.form-error-msg.visible {
  display: block;
}

/* ========================
   Mobile menu transition
======================== */
#mobile-menu {
  transition: max-height 0.3s ease, opacity 0.3s ease;
}

/* ========================
   Testimonial quote marks
======================== */
.quote-mark {
  font-size: 4rem;
  line-height: 1;
  color: var(--color-accent);
  opacity: 0.4;
  font-family: Georgia, serif;
  leading-trim: both;
}

/* ========================
   Badge pulse
======================== */
@keyframes badge-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.badge-popular {
  animation: badge-pulse 2.5s ease-in-out infinite;
}

/* ========================
   Scrollbar
======================== */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #f9f9f9;
}
::-webkit-scrollbar-thumb {
  background: var(--color-accent);
  border-radius: 3px;
}