:root {
  --color-primary: #0F2027;
  --color-secondary: #1A3A40;
  --color-accent: #00F5A0;
  --color-bg-light: #ECFDF5;
  --color-bg-alt: #D1FAE5;
}

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

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

/* ─── Button & CTA 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: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

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

/* ─── Decorative Backgrounds ─── */
.decor-grid-dots {
  background-image: radial-gradient(circle, rgba(0,245,160,0.15) 1px, transparent 1px);
  background-size: 24px 24px;
}

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

.decor-diagonal {
  background-image: repeating-linear-gradient(
    45deg,
    rgba(0,245,160,0.05) 0px,
    rgba(0,245,160,0.05) 1px,
    transparent 1px,
    transparent 20px
  );
}

.decor-mesh {
  background:
    radial-gradient(ellipse at 20% 50%, rgba(0,245,160,0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 50%, rgba(15,32,39,0.08) 0%, transparent 60%);
}

/* ─── Decorative Accent Elements ─── */
.decor-gradient-blur::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,245,160,0.2) 0%, transparent 70%);
  top: -100px;
  right: -100px;
  pointer-events: none;
  z-index: 0;
}

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

.decor-corner-tr::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: linear-gradient(135deg, transparent 50%, rgba(0,245,160,0.12) 50%);
  pointer-events: none;
  z-index: 0;
}

.decor-corner-bl::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200px;
  height: 200px;
  background: linear-gradient(315deg, transparent 50%, rgba(0,245,160,0.10) 50%);
  pointer-events: none;
  z-index: 0;
}

.decor-glow-element {
  position: relative;
}

.decor-glow-element::before {
  content: '';
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,245,160,0.25) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

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

/* ─── Accent Color Utilities ─── */
.text-accent { color: var(--color-accent); }
.bg-accent { background-color: var(--color-accent); }
.border-accent { border-color: var(--color-accent); }
.ring-accent { --tw-ring-color: var(--color-accent); }

/* ─── Custom Focus Ring ─── */
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* ─── Form Styling ─── */
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  font-family: 'Urbanist', system-ui, sans-serif;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background: white;
}

.form-input:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(0,245,160,0.15);
}

.form-input.error {
  border-color: #ef4444;
}

/* ─── Error Message ─── */
.field-error {
  color: #ef4444;
  font-size: 0.8rem;
  margin-top: 0.25rem;
  display: none;
}

.field-error.visible {
  display: block;
}

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

/* ─── Badge ─── */
.badge-new {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: linear-gradient(135deg, rgba(0,245,160,0.2), rgba(0,245,160,0.1));
  border: 1px solid rgba(0,245,160,0.4);
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #0F2027;
  letter-spacing: 0.03em;
}

/* ─── Gradient Text ─── */
.gradient-text {
  background: linear-gradient(135deg, var(--color-accent), var(--color-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.card-hover:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* ─── Hero Gradient Overlay ─── */
.hero-gradient {
  background: linear-gradient(135deg, #0F2027 0%, #1A3A40 50%, #0a1f25 100%);
}

/* ─── Section Divider ─── */
.section-divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--color-accent), transparent);
  border-radius: 2px;
}

/* ─── Mobile Menu Transition ─── */
#mobile-menu {
  transition: all 0.2s ease;
}

/* ─── Ingredient Card ─── */
.ingredient-card {
  border: 1px solid rgba(0,245,160,0.2);
  background: white;
  border-radius: 1rem;
  padding: 1.25rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.ingredient-card:hover {
  border-color: var(--color-accent);
  box-shadow: 0 8px 24px rgba(0,245,160,0.12);
}

/* ─── Order Form Card ─── */
.order-card {
  background: white;
  border-radius: 1.5rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.12);
  overflow: hidden;
}

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

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

/* ─── Success Message ─── */
.form-success {
  display: none;
  text-align: center;
  padding: 2rem;
}

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

/* ─── Responsive Table ─── */
@media (max-width: 640px) {
  table {
    font-size: 0.85rem;
  }
}

/* ─── Print ─── */
@media print {
  header, footer, #cookie-consent {
    display: none !important;
  }
}