:root {
  --color-primary: #1B4332;
  --color-secondary: #2D6A4F;
  --color-accent: #40C057;
}

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

body { 
  font-family: 'Source Sans 3', 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%;
}

/* Animations */
[data-animate] {
  opacity: 0;
  transform: scale(0.95);
  transition: all 0.5s ease-out;
}

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

/* Header scroll effect */
#main-header.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

#main-header.scrolled #brand-text {
  color: var(--color-primary);
}

#main-header.scrolled .hidden.md\\:flex a:not([href="#order_form"]) {
  color: rgb(75 85 99);
}

#main-header.scrolled .hidden.md\\:flex a:hover:not([href="#order_form"]) {
  color: var(--color-primary);
}

#main-header.scrolled #mobile-menu-btn {
  color: var(--color-primary);
}

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

.faq-content.expanded {
  max-height: 500px;
  opacity: 1;
}

.faq-icon {
  transition: transform 0.3s ease;
}

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

/* Decorative elements */
.decor-grid-dots {
  background-image: radial-gradient(circle, rgba(64, 192, 87, 0.1) 1px, transparent 1px);
  background-size: 20px 20px;
}

.decor-grid-lines {
  background-image: 
    linear-gradient(rgba(64, 192, 87, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(64, 192, 87, 0.1) 1px, transparent 1px);
  background-size: 30px 30px;
}

.decor-diagonal {
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 20px,
    rgba(64, 192, 87, 0.05) 20px,
    rgba(64, 192, 87, 0.05) 40px
  );
}

.decor-mesh::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(64, 192, 87, 0.1), rgba(27, 67, 50, 0.1));
  z-index: -1;
}

.decor-gradient-blur::before,
.decor-gradient-blur::after {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(64, 192, 87, 0.2), transparent);
  filter: blur(40px);
  pointer-events: none;
  z-index: -1;
}

.decor-gradient-blur::before {
  top: -100px;
  left: -100px;
}

.decor-gradient-blur::after {
  bottom: -100px;
  right: -100px;
}

.decor-corner-tr::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: linear-gradient(-45deg, rgba(64, 192, 87, 0.1), transparent);
}

.decor-corner-bl::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100px;
  height: 100px;
  background: linear-gradient(45deg, rgba(64, 192, 87, 0.1), transparent);
}

.decor-glow-element {
  box-shadow: 0 0 100px rgba(64, 192, 87, 0.2);
}

.decor-subtle { opacity: 0.5; }
.decor-moderate { opacity: 1; }
.decor-bold { opacity: 1.5; }

/* Form styling */
.form-input {
  @apply w-full px-4 py-3 border border-gray-300 rounded-2xl focus:ring-2 focus:ring-accent focus:border-accent transition-all duration-200;
}

.form-input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(64, 192, 87, 0.1);
}

.form-error {
  @apply text-red-500 text-sm mt-1;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}

/* Loading spinner */
.spinner {
  border: 2px solid #f3f3f3;
  border-top: 2px solid var(--color-accent);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Responsive utilities */
@media (max-width: 640px) {
  [data-animate] {
    transform: translateY(10px) scale(0.98);
  }
}