:root {
  --color-primary: #2C3E50;
  --color-secondary: #3D5266;
  --color-accent: #48C9B0;
}

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

::selection { background: rgba(72, 201, 176, 0.25); }

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

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

/* Focus */
:focus-visible {
  outline: 2px solid rgba(72, 201, 176, 0.9);
  outline-offset: 3px;
  border-radius: 12px;
}

/* Subtle glass helpers */
.glass {
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

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

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

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

/* Form helpers */
.input-ring {
  transition: box-shadow .2s ease, border-color .2s ease, background-color .2s ease;
}

.input-ring:focus {
  border-color: rgba(72, 201, 176, 0.9) !important;
  box-shadow: 0 0 0 4px rgba(72, 201, 176, 0.18) !important;
}

/* Premium decorative patterns */
.decor-grid-dots {
  background-image:
    radial-gradient(circle at 1px 1px, rgba(44, 62, 80, 0.12) 1px, transparent 0);
  background-size: 18px 18px;
}

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

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

.decor-mesh {
  background:
    radial-gradient(1200px 600px at 10% 10%, rgba(72, 201, 176, 0.18), transparent 60%),
    radial-gradient(1000px 550px at 90% 20%, rgba(44, 62, 80, 0.14), transparent 60%),
    radial-gradient(900px 500px at 50% 90%, rgba(61, 82, 102, 0.10), transparent 60%);
}

.decor-gradient-blur { position: relative; }
.decor-gradient-blur::before,
.decor-gradient-blur::after {
  content: "";
  position: absolute;
  inset: auto;
  width: 420px;
  height: 420px;
  filter: blur(48px);
  opacity: 0.35;
  z-index: 0;
  pointer-events: none;
  border-radius: 9999px;
}

.decor-gradient-blur::before {
  top: -140px;
  left: -160px;
  background: radial-gradient(circle, rgba(72, 201, 176, 0.9), transparent 60%);
}

.decor-gradient-blur::after {
  bottom: -160px;
  right: -160px;
  background: radial-gradient(circle, rgba(44, 62, 80, 0.75), transparent 60%);
}

.decor-corner-tr { position: relative; }
.decor-corner-tr::after {
  content: "";
  position: absolute;
  top: -1px;
  right: -1px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle at top right, rgba(72, 201, 176, 0.22), transparent 60%);
  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(circle at bottom left, rgba(44, 62, 80, 0.14), transparent 62%);
  pointer-events: none;
}

.decor-glow-element { position: relative; }
.decor-glow-element::before {
  content: "";
  position: absolute;
  inset: 18%;
  background: radial-gradient(circle, rgba(72, 201, 176, 0.25), transparent 65%);
  filter: blur(28px);
  z-index: 0;
  pointer-events: none;
}

.decor-rings-svg {
  background-image: radial-gradient(circle at center,
    transparent 0 28%,
    rgba(44, 62, 80, 0.06) 28% 29%,
    transparent 29% 44%,
    rgba(72, 201, 176, 0.08) 44% 45%,
    transparent 45% 60%,
    rgba(44, 62, 80, 0.05) 60% 61%,
    transparent 61% 100%
  );
}

/* Intensity modifiers */
.decor-subtle { opacity: .06; }
.decor-moderate { opacity: .10; }
.decor-bold { opacity: .18; }

/* Toast (optional) */
.toast {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 1rem;
  z-index: 110;
  max-width: 92vw;
}

.toast > div {
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,0.06);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: .85rem 1rem;
  box-shadow: 0 18px 55px rgba(0,0,0,0.15);
  font-size: .9rem;
  color: #111827;
}

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