:root {
  --color-primary: #2C1810;
  --color-secondary: #4A2C20;
  --color-accent: #DC2626;
}

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

a, button { -webkit-tap-highlight-color: transparent; }

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

:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.18);
  border-radius: 0.75rem;
}

img { max-width: 100%; height: auto; }

/* Scroll animations */
[data-animate] { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
[data-animate].is-visible { opacity: 1; transform: translateY(0); }

/* Support the context animation utility (fade_up) */
.animation-fade-up { opacity: 0; transform: translateY(32px); transition: all 700ms ease-out; }
.animation-fade-up.is-visible { opacity: 1; transform: translateY(0); }

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

/* Premium surfaces */
.glass-surface {
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(17,24,39,0.08);
}

.card-premium {
  border: 1px solid rgba(17,24,39,0.08);
  background: #fff;
  box-shadow: 0 10px 30px rgba(17,24,39,0.08);
}

/* Decorative patterns (used via utility classes in sections) */
.decor-grid-dots {
  background-image: radial-gradient(rgba(220, 38, 38, 0.18) 1px, transparent 1px);
  background-size: 18px 18px;
}

.decor-grid-lines {
  background-image:
    linear-gradient(to right, rgba(17,24,39,0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(17,24,39,0.06) 1px, transparent 1px);
  background-size: 44px 44px;
}

.decor-diagonal {
  background-image: repeating-linear-gradient(
    135deg,
    rgba(220, 38, 38, 0.10),
    rgba(220, 38, 38, 0.10) 10px,
    transparent 10px,
    transparent 22px
  );
}

.decor-mesh {
  background:
    radial-gradient(900px circle at 10% 10%, rgba(220, 38, 38, 0.20), transparent 55%),
    radial-gradient(800px circle at 90% 20%, rgba(44, 24, 16, 0.18), transparent 52%),
    radial-gradient(900px circle at 50% 110%, rgba(74, 44, 32, 0.20), transparent 55%);
}

.decor-subtle { opacity: 0.06; }
.decor-moderate { opacity: 0.12; }
.decor-bold { opacity: 0.20; }

.decor-gradient-blur { position: relative; }
.decor-gradient-blur::before,
.decor-gradient-blur::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  filter: blur(44px);
  border-radius: 9999px;
  z-index: 0;
  opacity: 0.35;
}
.decor-gradient-blur::before {
  top: -140px;
  left: -160px;
  background: radial-gradient(circle at 30% 30%, rgba(220, 38, 38, 0.55), transparent 60%);
}
.decor-gradient-blur::after {
  bottom: -170px;
  right: -180px;
  background: radial-gradient(circle at 30% 30%, rgba(44, 24, 16, 0.55), transparent 60%);
}

.decor-corner-tr { position: relative; }
.decor-corner-tr::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle at 100% 0%, rgba(220, 38, 38, 0.22), transparent 60%);
  pointer-events: none;
}

.decor-corner-bl { position: relative; }
.decor-corner-bl::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle at 0% 100%, rgba(220, 38, 38, 0.18), transparent 62%);
  pointer-events: none;
}

.decor-glow-element { position: relative; }
.decor-glow-element::before {
  content: "";
  position: absolute;
  inset: -40px;
  background: radial-gradient(closest-side, rgba(220, 38, 38, 0.22), transparent 70%);
  filter: blur(22px);
  z-index: -1;
  pointer-events: none;
}

/* Mobile menu animation helper */
#mobile-menu {
  transform-origin: top;
}
.menu-open #mobile-menu {
  display: block !important;
  animation: menuDrop 220ms ease-out;
}
@keyframes menuDrop {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Cookie banner */
#cookie-consent {
  animation: cookieUp 260ms ease-out;
}
@keyframes cookieUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Small helpers */
.text-balance { text-wrap: balance; }