:root {
  --color-primary: #1A1A2E;
  --color-secondary: #2D2D44;
  --color-accent: #FF6B35;
  --color-bg-light: #FFF7ED;
  --color-bg-alt: #FFEDD5;
  --font-main: 'DM Sans', system-ui, sans-serif;
}

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

body {
  font-family: var(--font-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ─── 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: scale(0.95);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

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

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

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

.decor-grid-lines {
  background-image:
    linear-gradient(rgba(255, 107, 53, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 107, 53, 0.06) 1px, transparent 1px);
  background-size: 40px 40px;
}

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

.decor-mesh {
  background:
    radial-gradient(ellipse at 20% 50%, rgba(255, 107, 53, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(26, 26, 46, 0.06) 0%, transparent 50%);
}

/* Accent decorative blobs */
.decor-gradient-blur::before,
.decor-gradient-blur::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

.decor-gradient-blur::before {
  width: 300px;
  height: 300px;
  background: rgba(255, 107, 53, 0.12);
  top: -80px;
  right: -60px;
}

.decor-gradient-blur::after {
  width: 200px;
  height: 200px;
  background: rgba(26, 26, 46, 0.08);
  bottom: -40px;
  left: -40px;
}

/* Corner accents */
.decor-corner-tr::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 120px;
  height: 120px;
  background: linear-gradient(225deg, rgba(255, 107, 53, 0.15), transparent);
  pointer-events: none;
}

.decor-corner-bl::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 120px;
  height: 120px;
  background: linear-gradient(45deg, rgba(255, 107, 53, 0.10), transparent);
  pointer-events: none;
}

/* Glow element */
.decor-glow-element {
  position: relative;
}

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

/* Intensity modifiers */
.decor-subtle {
  opacity: 0.5;
}

.decor-moderate {
  opacity: 0.75;
}

.decor-bold {
  opacity: 1;
}

/* ─── Star Rating ─── */
.star-rating {
  color: #F59E0B;
  display: inline-flex;
  gap: 1px;
}

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

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

/* ─── Form Styles ─── */
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid #E5E7EB;
  border-radius: 0.5rem;
  font-family: var(--font-main);
  font-size: 0.95rem;
  color: #111827;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-input:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.12);
}

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

.form-error {
  color: #EF4444;
  font-size: 0.8rem;
  margin-top: 0.25rem;
  display: none;
}

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

/* ─── Alert / Notification ─── */
.form-alert {
  padding: 0.875rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  display: none;
  align-items: center;
  gap: 0.5rem;
}

.form-alert.visible {
  display: flex;
}

.form-alert-success {
  background: #F0FDF4;
  color: #166534;
  border: 1px solid #BBF7D0;
}

.form-alert-error {
  background: #FEF2F2;
  color: #991B1B;
  border: 1px solid #FECACA;
}

/* ─── Hero gradient overlay ─── */
.hero-gradient {
  background: linear-gradient(135deg, #1A1A2E 0%, #2D2D44 60%, #3d2218 100%);
}

/* ─── Accent underline ─── */
.accent-underline {
  position: relative;
  display: inline-block;
}

.accent-underline::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 3px;
  background: var(--color-accent);
  border-radius: 2px;
}

/* ─── Section badge ─── */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 107, 53, 0.1);
  color: var(--color-accent);
  border: 1px solid rgba(255, 107, 53, 0.2);
  border-radius: 9999px;
  padding: 0.3rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ─── 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(0, 0, 0, 0.1);
}

/* ─── Number badge ─── */
.step-number {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ─── Ingredient image ─── */
.ingredient-img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 0.75rem;
}

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

.rating-bar-fill {
  height: 100%;
  border-radius: 9999px;
  background: #F59E0B;
  transition: width 0.6s ease;
}

/* ─── Sticky order button (mobile) ─── */
.sticky-cta {
  display: none;
}

@media (max-width: 767px) {
  .sticky-cta {
    display: flex;
    position: fixed;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    z-index: 40;
  }
}

/* ─── Scrollbar ─── */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--color-accent);
  border-radius: 3px;
}

/* ─── Selection ─── */
::selection {
  background: rgba(255, 107, 53, 0.2);
  color: #1A1A2E;
}

/* ─── Image rendering ─── */
img {
  max-width: 100%;
  height: auto;
}

/* ─── Transition helpers ─── */
.transition-fast { transition: all 0.15s ease; }
.transition-base { transition: all 0.25s ease; }
.transition-slow { transition: all 0.4s ease; }