:root {
  --color-primary: #2C1810;
  --color-secondary: #4A2C20;
  --color-accent: #DC2626;
}

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

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

/* Header transparency */
.header-scrolled {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.header-scrolled .text-white {
  color: #1f2937 !important;
}

.header-scrolled .text-white\/90 {
  color: #6b7280 !important;
}

.header-scrolled .bg-accent {
  background-color: var(--color-accent);
}

/* Animations */
[data-animate] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

.fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.fade-up.active {
  opacity: 1;
  transform: translateY(0);
}

/* Decorative elements */
.decor-grid-dots {
  background-image: radial-gradient(circle at center, var(--color-accent) 1px, transparent 1px);
  background-size: 24px 24px;
}

.decor-grid-lines {
  background-image: linear-gradient(var(--color-accent) 1px, transparent 1px),
                    linear-gradient(90deg, var(--color-accent) 1px, transparent 1px);
  background-size: 24px 24px;
}

.decor-diagonal {
  background-image: repeating-linear-gradient(
    45deg,
    var(--color-accent) 0,
    var(--color-accent) 1px,
    transparent 1px,
    transparent 20px
  );
}

.decor-mesh {
  background: linear-gradient(135deg, var(--color-accent) 0%, transparent 50%);
}

.decor-gradient-blur::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -20%;
  width: 40%;
  height: 140%;
  background: radial-gradient(circle, var(--color-accent) 0%, transparent 70%);
  filter: blur(80px);
  opacity: 0.1;
  z-index: -1;
}

.decor-corner-tr::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: var(--color-accent);
  clip-path: polygon(100% 0%, 0% 0%, 100% 100%);
  z-index: -1;
}

.decor-corner-bl::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200px;
  height: 200px;
  background: var(--color-accent);
  clip-path: polygon(0% 100%, 0% 0%, 100% 100%);
  z-index: -1;
}

.decor-glow-element {
  box-shadow: 0 0 100px rgba(220, 38, 38, 0.3);
}

.decor-rings-svg {
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23DC2626' fill-opacity='0.1'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3Ccircle cx='30' cy='30' r='10' fill='none' stroke='%23DC2626' stroke-width='1'/%3E%3Ccircle cx='30' cy='30' r='20' fill='none' stroke='%23DC2626' stroke-width='1'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.decor-subtle { opacity: 0.05; }
.decor-moderate { opacity: 0.1; }
.decor-bold { opacity: 0.2; }

/* FAQ accordion */
.faq-item.active .faq-answer {
  max-height: 200px;
  opacity: 1;
}

.faq-answer {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
}

.rotate-180 {
  transform: rotate(180deg);
}

/* Form styles */
.form-group {
  position: relative;
}

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

.error-message {
  color: #ef4444;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

/* Order form enhancements */
.order-form {
  background: linear-gradient(135deg, #fef2f2 0%, #ffffff 100%);
  border: 2px solid #fee2e2;
}

.price-highlight {
  background: linear-gradient(135deg, var(--color-accent), #991b1b);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Trust badges */
.trust-badge {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(8px);
}

/* Product image hover */
.product-image {
  transition: transform 0.3s ease-out;
}

.product-image:hover {
  transform: scale(1.05);
}

/* Responsive improvements */
@media (max-width: 640px) {
  .hero-content {
    padding: 2rem 0;
  }
  
  .order-form {
    margin: 1rem;
  }
}

/* Loading states */
.loading {
  opacity: 0.7;
  pointer-events: none;
}

.spinner {
  animation: spin 1s linear infinite;
}

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