:root {
  --color-primary: #1A1A2E;
  --color-secondary: #2D2D44;
  --color-accent: #FF6B35;
}

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

body { 
  font-family: 'Space Grotesk', system-ui, sans-serif; 
}

/* Button fixes */
button, .btn, [class*="btn-"], a[href="#consultation_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: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

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

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

.decor-grid-lines {
  background-image: 
    linear-gradient(currentColor 1px, transparent 1px),
    linear-gradient(90deg, currentColor 1px, transparent 1px);
  background-size: 20px 20px;
}

.decor-diagonal {
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    currentColor 10px,
    currentColor 11px
  );
}

.decor-mesh::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 30%, var(--color-accent), transparent 50%),
              radial-gradient(circle at 80% 70%, var(--color-primary), transparent 50%);
  opacity: 0.1;
  pointer-events: none;
}

.decor-gradient-blur::before {
  content: '';
  position: absolute;
  top: 10%;
  left: 10%;
  width: 30%;
  height: 30%;
  background: var(--color-accent);
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.1;
  pointer-events: none;
}

.decor-gradient-blur::after {
  content: '';
  position: absolute;
  bottom: 10%;
  right: 10%;
  width: 40%;
  height: 40%;
  background: var(--color-primary);
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.1;
  pointer-events: none;
}

.decor-corner-tr::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, var(--color-accent), transparent);
  opacity: 0.1;
  pointer-events: none;
}

.decor-corner-bl::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100px;
  height: 100px;
  background: linear-gradient(45deg, var(--color-primary), transparent);
  opacity: 0.1;
  pointer-events: none;
}

.decor-glow-element::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, var(--color-accent), transparent 70%);
  opacity: 0.05;
  pointer-events: none;
}

.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='%23FF6B35' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='5'/%3E%3Ccircle cx='30' cy='30' r='15'/%3E%3Ccircle cx='30' cy='30' r='25'/%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; }

/* Form styles */
.form-input {
  @apply w-full px-4 py-3 rounded-xl border border-gray-200 focus:border-accent focus:ring-2 focus:ring-accent/20 focus:outline-none transition-colors;
}

.form-textarea {
  @apply w-full px-4 py-3 rounded-xl border border-gray-200 focus:border-accent focus:ring-2 focus:ring-accent/20 focus:outline-none transition-colors resize-vertical min-h-[120px];
}

.form-checkbox {
  @apply w-5 h-5 text-accent border-gray-300 rounded focus:ring-accent/20 focus:ring-2;
}

/* Loading states */
.loading {
  position: relative;
  color: transparent;
}

.loading::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* FAQ styles */
.faq-item {
  border-bottom: 1px solid #f3f4f6;
  padding-bottom: 1.5rem;
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 0;
  background: none;
  border: none;
  font-weight: 600;
  font-size: 1.125rem;
  color: #111827;
  display: flex;
  align-items: center;
  justify-content: between;
  gap: 1rem;
}

.faq-answer {
  margin-top: 1rem;
  color: #6b7280;
  line-height: 1.6;
}

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

/* Article cards */
.article-card {
  @apply bg-white rounded-xl overflow-hidden border border-gray-100 hover:shadow-md transition-shadow;
}

.article-card img {
  @apply w-full h-48 object-cover;
}

.article-card-content {
  @apply p-6;
}

.article-card h3 {
  @apply font-bold text-lg text-gray-900 mb-3 line-clamp-2;
}

.article-card p {
  @apply text-gray-600 text-sm line-clamp-3 mb-4;
}

.article-card a {
  @apply text-accent font-semibold text-sm hover:underline;
}

/* Line clamp utilities */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Responsive improvements */
@media (max-width: 640px) {
  .hero-title {
    font-size: 2.5rem;
    line-height: 1.1;
  }
  
  .section-title {
    font-size: 2rem;
    line-height: 1.2;
  }
}