:root {
  --color-primary: #1F2937;
  --color-secondary: #374151;
  --color-accent: #64748B;
  --font-main: 'Source Sans 3', system-ui, sans-serif;
}

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

body {
  font-family: var(--font-main);
}

/* ===== BUTTON RESETS ===== */
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);
}

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

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

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

.decor-mesh {
  background-image: radial-gradient(ellipse at 20% 50%, rgba(100, 116, 139, 0.12) 0%, transparent 60%),
                    radial-gradient(ellipse at 80% 20%, rgba(31, 41, 55, 0.08) 0%, transparent 50%);
}

/* ===== DECORATIVE ELEMENTS ===== */
.decor-gradient-blur::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(100, 116, 139, 0.15) 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(31, 41, 55, 0.1) 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(225deg, rgba(100, 116, 139, 0.12) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.decor-corner-bl::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200px;
  height: 200px;
  background: linear-gradient(45deg, rgba(100, 116, 139, 0.12) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.decor-glow-element {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(100, 116, 139, 0.2) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

/* ===== INTENSITY MODIFIERS ===== */
.decor-subtle { opacity: 0.5; }
.decor-moderate { opacity: 0.75; }
.decor-bold { opacity: 1; }

/* ===== STAR RATING ===== */
.stars {
  display: inline-flex;
  gap: 2px;
  color: #F59E0B;
}

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

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

.faq-toggle-icon {
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-item.is-open .faq-toggle-icon {
  transform: rotate(180deg);
}

/* ===== TESTIMONIAL SLIDER ===== */
.testimonial-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.testimonial-slide {
  flex: 0 0 100%;
}

@media (min-width: 768px) {
  .testimonial-slide {
    flex: 0 0 50%;
  }
}

@media (min-width: 1024px) {
  .testimonial-slide {
    flex: 0 0 33.333%;
  }
}

/* ===== ORDER FORM ===== */
.order-form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid #E5E7EB;
  border-radius: 9999px;
  font-size: 0.875rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  font-family: var(--font-main);
}

.order-form-input:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(100, 116, 139, 0.15);
}

.order-form-input.is-error {
  border-color: #EF4444;
}

.field-error {
  color: #EF4444;
  font-size: 0.75rem;
  margin-top: 0.25rem;
  margin-left: 1rem;
  display: none;
}

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

/* ===== FORM CHECKBOX CUSTOM ===== */
.custom-checkbox {
  appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid #D1D5DB;
  border-radius: 4px;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.2s, background-color 0.2s;
}

.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-repeat: no-repeat;
  background-position: center;
}

/* ===== MOBILE MENU TRANSITION ===== */
#mobile-menu {
  transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
}

#mobile-menu.is-open {
  display: block;
}

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

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

/* ===== PRICE DISPLAY ===== */
.price-main {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
}

.price-old {
  text-decoration: line-through;
  color: #9CA3AF;
  font-size: 1rem;
}

.price-badge {
  background-color: #FEE2E2;
  color: #DC2626;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 700;
}

/* ===== NEWSLETTER ===== */
.newsletter-success {
  display: none;
  color: #10B981;
  font-size: 0.875rem;
}

.newsletter-success.is-visible {
  display: block;
}

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

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

/* ===== TOAST NOTIFICATION ===== */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 1rem;
  z-index: 200;
  background: #1F2937;
  color: white;
  padding: 0.75rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}