:root {
  --color-primary: #2C3E50;
  --color-secondary: #3D5266;
  --color-accent: #48C9B0;
  --bg-light: #F0FDFA;
  --bg-alt: #CCFBF1;
}

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

body {
  font-family: 'Outfit', 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: 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);
}

/* Staggered delay helpers */
[data-delay="100"] { transition-delay: 0.1s; }
[data-delay="200"] { transition-delay: 0.2s; }
[data-delay="300"] { transition-delay: 0.3s; }
[data-delay="400"] { transition-delay: 0.4s; }
[data-delay="500"] { transition-delay: 0.5s; }
[data-delay="600"] { transition-delay: 0.6s; }

/* ===== ROTATE ===== */
.rotate-180 {
  transform: rotate(180deg);
}

/* ===== DECORATIVE PATTERNS ===== */
.decor-grid-dots {
  background-image: radial-gradient(circle, rgba(72,201,176,0.15) 1px, transparent 1px);
  background-size: 24px 24px;
}

.decor-grid-lines {
  background-image:
    linear-gradient(rgba(72,201,176,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(72,201,176,0.08) 1px, transparent 1px);
  background-size: 40px 40px;
}

.decor-diagonal {
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(72,201,176,0.05) 10px,
    rgba(72,201,176,0.05) 20px
  );
}

.decor-mesh {
  background-image:
    radial-gradient(at 40% 20%, rgba(72,201,176,0.15) 0px, transparent 50%),
    radial-gradient(at 80% 0%, rgba(44,62,80,0.1) 0px, transparent 50%),
    radial-gradient(at 0% 50%, rgba(72,201,176,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 {
  content: '';
  position: absolute;
  top: -4rem;
  right: -4rem;
  width: 20rem;
  height: 20rem;
  background: radial-gradient(circle, rgba(72,201,176,0.2) 0%, transparent 70%);
  border-radius: 9999px;
  filter: blur(40px);
  pointer-events: none;
}

.decor-gradient-blur::after {
  content: '';
  position: absolute;
  bottom: -4rem;
  left: -4rem;
  width: 16rem;
  height: 16rem;
  background: radial-gradient(circle, rgba(44,62,80,0.15) 0%, transparent 70%);
  border-radius: 9999px;
  filter: blur(40px);
  pointer-events: none;
}

/* Corner accents */
.decor-corner-tr::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 8rem;
  height: 8rem;
  background: linear-gradient(135deg, rgba(72,201,176,0.15), transparent);
  border-radius: 0 1.5rem 0 100%;
  pointer-events: none;
}

.decor-corner-bl::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 8rem;
  height: 8rem;
  background: linear-gradient(315deg, rgba(44,62,80,0.1), transparent);
  border-radius: 100% 0 1.5rem 0;
  pointer-events: none;
}

/* Glow element */
.decor-glow-element {
  position: absolute;
  width: 24rem;
  height: 24rem;
  background: radial-gradient(circle, rgba(72,201,176,0.25) 0%, transparent 70%);
  border-radius: 9999px;
  filter: blur(60px);
  pointer-events: none;
}

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

/* ===== CARD STYLES ===== */
.card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(44,62,80,0.12);
}

/* ===== ACCENT LINE ===== */
.accent-line {
  display: inline-block;
  width: 3rem;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-primary));
  border-radius: 9999px;
}

/* ===== STAR RATING ===== */
.stars {
  color: #F59E0B;
  letter-spacing: 0.05em;
}

/* ===== ORDER FORM ===== */
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid #e5e7eb;
  border-radius: 9999px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  color: #111827;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}

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

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

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

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

/* ===== FAQ ACCORDION ===== */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

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

/* ===== PROGRESS BAR ===== */
.progress-bar {
  height: 6px;
  border-radius: 9999px;
  background: #e5e7eb;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  border-radius: 9999px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-primary));
  transition: width 1s ease;
}

/* ===== BADGE ===== */
.badge-accent {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: rgba(72,201,176,0.15);
  color: var(--color-primary);
  border: 1px solid rgba(72,201,176,0.3);
  padding: 0.25rem 0.875rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.025em;
}

/* ===== TESTIMONIAL QUOTE ===== */
.quote-mark {
  font-size: 5rem;
  line-height: 0.8;
  color: var(--color-accent);
  opacity: 0.25;
  font-family: Georgia, serif;
}

/* ===== INGREDIENT CARD ===== */
.ingredient-card {
  border: 1.5px solid rgba(72,201,176,0.2);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ingredient-card:hover {
  border-color: rgba(72,201,176,0.5);
  box-shadow: 0 8px 24px rgba(72,201,176,0.12);
}

/* ===== SECTION DIVIDERS ===== */
.wave-divider {
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

/* ===== CUSTOM CHECKBOX ===== */
.custom-checkbox {
  appearance: none;
  width: 1.1rem;
  height: 1.1rem;
  border: 2px solid #d1d5db;
  border-radius: 0.25rem;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.custom-checkbox:checked {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3E%3C/svg%3E");
  background-size: 100%;
}

/* ===== NOTIFICATION / TOAST ===== */
.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  box-shadow: 0 10px 40px rgba(0,0,0,0.12);
  max-width: 320px;
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* ===== LOADING SPINNER ===== */
.spinner {
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 9999px;
  animation: spin 0.7s linear infinite;
}

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

/* ===== PHONE INPUT GROUP ===== */
.phone-group {
  display: flex;
  border: 1.5px solid #e5e7eb;
  border-radius: 9999px;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.phone-group:focus-within {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(72,201,176,0.15);
}

.phone-group .phone-code {
  padding: 0.75rem 1rem;
  background: #f9fafb;
  border-right: 1.5px solid #e5e7eb;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-primary);
  white-space: nowrap;
  flex-shrink: 0;
}

.phone-group input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: none;
  outline: none;
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  color: #111827;
  background: transparent;
  min-width: 0;
}

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

/* ===== UTILITY ===== */
.text-accent { color: var(--color-accent); }
.bg-accent { background-color: var(--color-accent); }
.border-accent { border-color: var(--color-accent); }
.text-primary { color: var(--color-primary); }
.bg-primary { background-color: var(--color-primary); }