:root {
  --color-primary: #1A1A1A;
  --color-secondary: #404040;
  --color-accent: #111111;
}

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { font-family: 'Space Grotesk', system-ui, sans-serif; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }

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

::selection { background: #111111; color: #ffffff; }

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

/* Input + focus polish */
input, select, textarea {
  outline: none;
}

:focus-visible {
  outline: 2px solid rgba(17, 17, 17, 0.35);
  outline-offset: 2px;
  border-radius: 0.5rem;
}

/* Premium thin scrollbar */
@media (min-width: 768px) {
  ::-webkit-scrollbar { width: 10px; height: 10px; }
  ::-webkit-scrollbar-thumb { background: rgba(17,17,17,0.18); border-radius: 999px; border: 3px solid rgba(255,255,255,0.75); }
  ::-webkit-scrollbar-track { background: rgba(0,0,0,0.03); }
}

/* Animations */
[data-animate] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  will-change: opacity, transform;
}

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

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

/* Decorative backgrounds (subtle, premium) */
.decor-grid-dots {
  background-image: radial-gradient(circle at 1px 1px, rgba(17,17,17,0.12) 1px, transparent 0);
  background-size: 22px 22px;
}
.decor-grid-lines {
  background-image:
    linear-gradient(rgba(17,17,17,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17,17,17,0.08) 1px, transparent 1px);
  background-size: 44px 44px;
}
.decor-diagonal {
  background-image: repeating-linear-gradient(135deg, rgba(17,17,17,0.08) 0, rgba(17,17,17,0.08) 1px, transparent 1px, transparent 10px);
}
.decor-mesh {
  background:
    radial-gradient(600px circle at 20% 20%, rgba(17,17,17,0.08), transparent 55%),
    radial-gradient(700px circle at 80% 30%, rgba(17,17,17,0.06), transparent 55%),
    radial-gradient(800px circle at 40% 90%, rgba(17,17,17,0.05), transparent 55%);
}

.decor-gradient-blur { position: relative; }
.decor-gradient-blur::before,
.decor-gradient-blur::after {
  content: "";
  position: absolute;
  inset: -10%;
  pointer-events: none;
  filter: blur(40px);
  opacity: 0.55;
  z-index: 0;
}
.decor-gradient-blur::before {
  background: radial-gradient(closest-side, rgba(17,17,17,0.20), transparent 60%);
  transform: translate(-10%, -8%);
}
.decor-gradient-blur::after {
  background: radial-gradient(closest-side, rgba(17,17,17,0.14), transparent 60%);
  transform: translate(12%, 10%);
}

.decor-corner-tr { position: relative; }
.decor-corner-tr::after {
  content: "";
  position: absolute;
  top: -1px;
  right: -1px;
  width: 120px;
  height: 120px;
  background: radial-gradient(closest-side, rgba(17,17,17,0.14), transparent 70%);
  pointer-events: none;
}
.decor-corner-bl { position: relative; }
.decor-corner-bl::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: -1px;
  width: 140px;
  height: 140px;
  background: radial-gradient(closest-side, rgba(17,17,17,0.12), transparent 70%);
  pointer-events: none;
}

.decor-glow-element { position: relative; }
.decor-glow-element::before {
  content: "";
  position: absolute;
  inset: -25%;
  background: radial-gradient(closest-side, rgba(17,17,17,0.18), transparent 65%);
  filter: blur(46px);
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}

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

/* Form feedback */
.form-error {
  border-color: rgba(220, 38, 38, 0.55) !important;
}
.form-hint {
  font-size: 0.875rem;
  color: rgb(75, 85, 99);
}
.form-msg {
  font-size: 0.875rem;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(17,17,17,0.12);
  background: rgba(249,250,251,1);
  color: rgb(17,24,39);
}
.form-msg--error {
  border-color: rgba(220,38,38,0.25);
  background: rgba(254,242,242,1);
  color: rgb(127,29,29);
}
.form-msg--success {
  border-color: rgba(16,185,129,0.25);
  background: rgba(236,253,245,1);
  color: rgb(6,95,70);
}

/* Small utility for header shadow on scroll (added by JS) */
.header--scrolled {
  box-shadow: 0 10px 30px rgba(17,17,17,0.06);
}

/* Improve tap targets */
a, button { -webkit-tap-highlight-color: transparent; }
#mobile-menu a { touch-action: manipulation; }