: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 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 PATTERNS ===== */
.decor-grid-dots {
  background-image: radial-gradient(circle, rgba(59,130,246,0.15) 1px, transparent 1px);
  background-size: 24px 24px;
}

.decor-grid-lines {
  background-image:
    linear-gradient(to right, rgba(59,130,246,0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(59,130,246,0.08) 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% 30%, rgba(59,130,246,0.15) 0px, transparent 50%),
    radial-gradient(at 80% 70%, rgba(15,23,41,0.1) 0px, transparent 50%);
}

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

/* Gradient blur blobs */
.decor-gradient-blur::before,
.decor-gradient-blur::after {
  content: '';
  position: absolute;
  border-radius: 9999px;
  filter: blur(80px);
  pointer-events: none;
}

.decor-gradient-blur::before {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(59,130,246,0.2) 0%, transparent 70%);
  top: -100px;
  right: -100px;
}

.decor-gradient-blur::after {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(15,23,41,0.15) 0%, transparent 70%);
  bottom: -80px;
  left: -80px;
}

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

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

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

/* ===== STAR RATINGS ===== */
.star-rating {
  display: inline-flex;
  gap: 2px;
  color: #f59e0b;
}

/* ===== ORDER FORM ===== */
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  font-family: 'Nunito Sans', system-ui, sans-serif;
  font-size: 0.875rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  background-color: #fff;
}

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

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

.form-error-msg {
  color: #ef4444;
  font-size: 0.75rem;
  margin-top: 0.25rem;
  display: none;
}

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

/* ===== PRICE DISPLAY ===== */
.price-was {
  text-decoration: line-through;
  color: #9ca3af;
  font-size: 0.95em;
}

.price-now {
  font-weight: 700;
  color: var(--color-primary);
}

/* ===== MOBILE MENU TRANSITION ===== */
#mobile-menu {
  transition: all 0.25s ease;
}

/* ===== HERO GRADIENT ===== */
.hero-gradient {
  background: linear-gradient(135deg, #0F1729 0%, #1E293B 50%, #0c1f4a 100%);
}

/* ===== CARD HOVER ===== */
.card-hover {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-hover:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* ===== FAQ CARDS ===== */
.faq-card {
  transition: box-shadow 0.2s ease;
}

.faq-card:hover {
  box-shadow: 0 4px 16px rgba(59,130,246,0.1);
}

/* ===== SECTION DIVIDER ===== */
.section-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(59,130,246,0.2), transparent);
}

/* ===== BADGE ===== */
.badge-accent {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background-color: rgba(59,130,246,0.1);
  color: #3B82F6;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid rgba(59,130,246,0.2);
}

/* ===== GRADIENT TEXT ===== */
.gradient-text {
  background: linear-gradient(135deg, #3B82F6, #60a5fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== PROGRESS BAR (for order form) ===== */
.progress-bar {
  height: 4px;
  background: linear-gradient(to right, #3B82F6, #60a5fa);
  border-radius: 9999px;
  transition: width 0.4s ease;
}

/* ===== INGREDIENT CARD ===== */
.ingredient-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid rgba(219,234,254,0.8);
}

.ingredient-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(59,130,246,0.12);
}

/* ===== TESTIMONIAL STARS ===== */
.testimonial-stars {
  color: #f59e0b;
  font-size: 1rem;
  letter-spacing: 1px;
}

/* ===== CUSTOM CHECKBOX ===== */
input[type="checkbox"].custom-check {
  width: 1.125rem;
  height: 1.125rem;
  accent-color: #3B82F6;
  cursor: pointer;
  border-radius: 0.25rem;
}

/* ===== PHONE INPUT GROUP ===== */
.phone-group {
  display: flex;
  align-items: stretch;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.phone-group:focus-within {
  border-color: #3B82F6;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}

.phone-group.error {
  border-color: #ef4444;
}

.phone-prefix {
  display: flex;
  align-items: center;
  padding: 0 0.75rem;
  background: #f9fafb;
  border-right: 1px solid #e5e7eb;
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  white-space: nowrap;
}

.phone-group input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: none;
  outline: none;
  font-family: 'Nunito Sans', system-ui, sans-serif;
  font-size: 0.875rem;
  background: transparent;
}

/* ===== SUCCESS MESSAGE ===== */
.form-success {
  display: none;
  text-align: center;
  padding: 2rem;
}

.form-success.visible {
  display: block;
}

/* ===== LOADING SPINNER ===== */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===== NIGHT STARS DECORATION ===== */
.decor-stars {
  background-image:
    radial-gradient(1px 1px at 10% 20%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 30% 50%, rgba(255,255,255,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 60% 15%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 80% 35%, rgba(255,255,255,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 50% 70%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 90% 60%, rgba(255,255,255,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 20% 80%, rgba(255,255,255,0.35) 0%, transparent 100%),
    radial-gradient(1px 1px at 70% 85%, rgba(255,255,255,0.25) 0%, transparent 100%);
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 640px) {
  .hero-gradient h1 {
    font-size: 2.25rem;
    line-height: 1.2;
  }
}