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

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

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

/* =====================
   DECORATIVE ELEMENTS
   ===================== */

/* Pattern Backgrounds */
.decor-grid-dots {
  background-image: radial-gradient(circle, rgba(44,62,80,0.15) 1px, transparent 1px);
  background-size: 24px 24px;
}

.decor-grid-lines {
  background-image:
    linear-gradient(rgba(44,62,80,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(44,62,80,0.06) 1px, transparent 1px);
  background-size: 32px 32px;
}

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

.decor-mesh {
  background:
    radial-gradient(ellipse at 20% 50%, rgba(72,201,176,0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(44,62,80,0.08) 0%, transparent 50%);
}

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

.decor-gradient-blur::before {
  width: 300px;
  height: 300px;
  background: rgba(72,201,176,0.15);
  top: -50px;
  left: -50px;
}

.decor-gradient-blur::after {
  width: 200px;
  height: 200px;
  background: rgba(44,62,80,0.1);
  bottom: -30px;
  right: -30px;
}

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

.decor-corner-bl::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 120px;
  height: 120px;
  background: linear-gradient(315deg, transparent 50%, rgba(72,201,176,0.12) 50%);
  pointer-events: none;
}

.decor-glow-element {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 9999px;
  background: radial-gradient(circle, rgba(72,201,176,0.18) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

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

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

/* Star rating */
.stars-display {
  display: inline-flex;
  gap: 2px;
}

.stars-display span {
  color: #F59E0B;
  font-size: 1rem;
}

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

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

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

/* Phone prefix */
.phone-wrapper {
  display: flex;
  border: 1px solid #E5E7EB;
  border-radius: 0.5rem;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

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

.phone-prefix {
  background: #F9FAFB;
  border-right: 1px solid #E5E7EB;
  padding: 0 0.875rem;
  display: flex;
  align-items: center;
  font-size: 0.875rem;
  color: #6B7280;
  white-space: nowrap;
  flex-shrink: 0;
}

.phone-input-field {
  border: none;
  outline: none;
  flex: 1;
  padding: 0.75rem 0.875rem;
  font-size: 0.875rem;
  background: white;
  min-width: 0;
}

/* Order form */
.order-form-card {
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 1rem;
  box-shadow: 0 4px 24px rgba(44,62,80,0.08);
}

/* Success/Error states */
.field-error {
  border-color: #EF4444 !important;
  box-shadow: 0 0 0 3px rgba(239,68,68,0.1) !important;
}

.field-error-msg {
  color: #EF4444;
  font-size: 0.75rem;
  margin-top: 0.25rem;
}

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

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

/* Smooth image loading */
img {
  transition: opacity 0.3s ease;
}