:root {
  --color-primary: #2E2440;
  --color-secondary: #453660;
  --color-accent: #A78BFA;
  --color-bg-light: #FAF5FF;
  --color-bg-alt: #F3E8FF;
}

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

::selection { background: rgba(167, 139, 250, 0.22); color: #2E2440; }

/* Header (transparent -> solid on scroll) */
.header--transparent {
  background: transparent;
  transition: background-color 250ms ease, border-color 250ms ease, box-shadow 250ms ease;
  border-bottom: 1px solid rgba(255,255,255,0.10);
}

.header--transparent .nav-link {
  color: rgba(255,255,255,0.82);
  transition: color 200ms ease, opacity 200ms ease;
}
.header--transparent .nav-link:hover { color: #ffffff; }

.header--transparent.is-scrolled {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom-color: rgba(17, 24, 39, 0.08);
}

.header--transparent.is-scrolled .header-brand,
.header--transparent.is-scrolled .header-tagline { color: #111827; }
.header--transparent.is-scrolled .header-tagline { opacity: 0.75; }
.header--transparent.is-scrolled .header-icon { color: #2E2440; }

.header--transparent.is-scrolled .nav-link {
  color: rgba(17, 24, 39, 0.72);
}
.header--transparent.is-scrolled .nav-link:hover { color: rgba(17, 24, 39, 1); }

/* Mobile menu links */
.mobile-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0.9rem;
  border-radius: 0.75rem;
  color: rgba(255,255,255,0.86);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
}
.mobile-link:hover {
  background: rgba(255,255,255,0.10);
  color: #fff;
}

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

/* Smooth focus */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

/* Animations (context: zoom_in) */
[data-animate] {
  opacity: 0;
  transform: scale(0.95);
  transition: all 500ms ease-out;
  will-change: transform, opacity;
}
[data-animate].is-visible {
  opacity: 1;
  transform: scale(1);
}

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

/* Decorative backgrounds (utility classes expected by templates) */
.decor-grid-dots {
  background-image: radial-gradient(rgba(167,139,250,0.25) 1px, transparent 1px);
  background-size: 22px 22px;
}
.decor-grid-lines {
  background-image:
    linear-gradient(to right, rgba(167,139,250,0.12) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(167,139,250,0.12) 1px, transparent 1px);
  background-size: 36px 36px;
}
.decor-diagonal {
  background-image: repeating-linear-gradient(
    135deg,
    rgba(167,139,250,0.18) 0,
    rgba(167,139,250,0.18) 1px,
    transparent 1px,
    transparent 10px
  );
}
.decor-mesh {
  background:
    radial-gradient(1200px 500px at 20% 0%, rgba(167,139,250,0.22), transparent 55%),
    radial-gradient(900px 500px at 95% 40%, rgba(69,54,96,0.22), transparent 55%),
    radial-gradient(800px 600px at 40% 100%, rgba(46,36,64,0.18), transparent 55%);
}
.decor-subtle { opacity: 0.06; }
.decor-moderate { opacity: 0.10; }
.decor-bold { opacity: 0.18; }

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