:root {
  --color-primary: #0F1729;
  --color-secondary: #1E293B;
  --color-accent: #3B82F6;
  --color-bg-light: #EFF6FF;
  --color-bg-alt: #DBEAFE;
}

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

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

/* ── Button base 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%;
  display: flex;
}

/* ── Scroll Animations ─────────────────────────────────── */
html.js-anim html.js-anim [data-animate] {
  opacity: 0;
  transform: translateX(-2rem);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

html.js-anim [data-animate][data-delay="100"] { transition-delay: 0.1s; }
html.js-anim [data-animate][data-delay="200"] { transition-delay: 0.2s; }
html.js-anim [data-animate][data-delay="300"] { transition-delay: 0.3s; }
html.js-anim [data-animate][data-delay="400"] { transition-delay: 0.4s; }
html.js-anim [data-animate][data-delay="500"] { transition-delay: 0.5s; }

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

/* ── Decorative backgrounds ────────────────────────────── */
.decor-grid-dots {
  background-image: radial-gradient(circle, rgba(59,130,246,0.15) 1px, transparent 1px);
  background-size: 28px 28px;
}

.decor-grid-lines {
  background-image:
    linear-gradient(rgba(59,130,246,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,130,246,0.07) 1px, transparent 1px);
  background-size: 40px 40px;
}

.decor-diagonal {
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(59,130,246,0.05) 10px,
    rgba(59,130,246,0.05) 11px
  );
}

.decor-mesh {
  background-image:
    radial-gradient(at 20% 50%, rgba(59,130,246,0.12) 0px, transparent 50%),
    radial-gradient(at 80% 20%, rgba(15,23,41,0.10) 0px, transparent 50%),
    radial-gradient(at 50% 80%, rgba(59,130,246,0.08) 0px, transparent 50%);
}

/* Intensity modifiers */
.decor-subtle   { opacity: 0.5; }
.decor-moderate { opacity: 1; }
.decor-bold     { opacity: 1.4; }

/* Blob glow */
.decor-gradient-blur::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(59,130,246,0.25) 0%, transparent 70%);
  border-radius: 50%;
  top: -100px;
  right: -100px;
  pointer-events: none;
  z-index: 0;
}

.decor-gradient-blur::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(15,23,41,0.18) 0%, transparent 70%);
  border-radius: 50%;
  bottom: -80px;
  left: -60px;
  pointer-events: none;
  z-index: 0;
}

/* Corner accents */
.decor-corner-tr::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 180px; height: 180px;
  background: linear-gradient(225deg, rgba(59,130,246,0.18) 0%, transparent 70%);
  border-radius: 0 0 0 100%;
  pointer-events: none;
}

.decor-corner-bl::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 180px; height: 180px;
  background: linear-gradient(45deg, rgba(59,130,246,0.14) 0%, transparent 70%);
  border-radius: 0 100% 0 0;
  pointer-events: none;
}

/* Glow element */
.decor-glow-element {
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(59,130,246,0.20) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

/* ── Star Rating ───────────────────────────────────────── */
.stars {
  display: inline-flex;
  gap: 2px;
  color: #FBBF24;
}

/* ── Form styles ───────────────────────────────────────── */
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid #E5E7EB;
  border-radius: 0.75rem;
  font-size: 0.95rem;
  font-family: 'Nunito Sans', sans-serif;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  background: #fff;
}

.form-input:focus {
  border-color: #3B82F6;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}

.form-input.error {
  border-color: #EF4444;
  box-shadow: 0 0 0 3px rgba(239,68,68,0.12);
}

.form-error-msg {
  display: none;
  font-size: 0.78rem;
  color: #EF4444;
  margin-top: 0.3rem;
}

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

/* ── FAQ Accordion ─────────────────────────────────────── */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.25s ease;
}

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

.faq-icon {
  transition: transform 0.3s ease;
}

.faq-item.open .faq-icon {
  transform: rotate(180deg);
}

/* ── Mobile menu transition ────────────────────────────── */
#mobile-menu {
  transition: opacity 0.2s ease, transform 0.2s ease;
}

/* ── Hero gradient ─────────────────────────────────────── */
.hero-gradient {
  background: linear-gradient(135deg, #0F1729 0%, #1E293B 60%, #162440 100%);
}

/* ── Card hover ────────────────────────────────────────── */
.card-hover {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(59,130,246,0.15);
}

/* ── Gradient text ─────────────────────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, #3B82F6, #60A5FA);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Progress bar ──────────────────────────────────────── */
.progress-bar {
  height: 6px;
  border-radius: 3px;
  background: #E5E7EB;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, #3B82F6, #1D4ED8);
  transition: width 0.8s ease;
}

/* ── Responsive image ──────────────────────────────────── */
img {
  max-width: 100%;
  height: auto;
}

/* ── Scrollbar ─────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #3B82F6; border-radius: 3px; }