:root {
  --color-primary: #0D4F6F;
  --color-secondary: #1E6B8A;
  --color-accent: #00BCD4;
}

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

body { 
    font-family: 'Manrope', 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) scale(0.95);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

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

/* Decorative patterns */
.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,
        currentColor,
        currentColor 1px,
        transparent 1px,
        transparent 15px
    );
}

.decor-mesh {
    background-image: 
        radial-gradient(circle at 25% 25%, currentColor 2px, transparent 2px),
        radial-gradient(circle at 75% 75%, currentColor 1px, transparent 1px);
    background-size: 40px 40px, 20px 20px;
}

.decor-gradient-blur::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, var(--color-accent), var(--color-primary), var(--color-secondary), var(--color-accent));
    filter: blur(60px);
    opacity: 0.1;
    pointer-events: none;
}

.decor-corner-tr::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: linear-gradient(225deg, currentColor, transparent);
    pointer-events: none;
}

.decor-corner-bl::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200px;
    height: 200px;
    background: linear-gradient(45deg, currentColor, transparent);
    pointer-events: none;
}

.decor-glow-element::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, currentColor, transparent 70%);
    filter: blur(40px);
    pointer-events: none;
}

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

/* Utility classes */
.rotate-180 { 
    transform: rotate(180deg); 
}

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

.form-textarea {
    @apply w-full px-4 py-3 border border-gray-300 rounded-2xl focus:outline-none focus:ring-2 focus:ring-accent focus:border-transparent transition-all resize-none;
}

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

/* 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 states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Mobile menu animation */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

#mobile-menu.show {
    max-height: 300px;
}

/* Hero section enhancements */
.hero-bg {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
}

/* Card hover effects */
.card-hover {
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
}

.card-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

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

.faq-question {
    width: 100%;
    text-align: left;
    display: flex;
    justify-content: between;
    align-items: center;
    font-weight: 600;
    color: #111827;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    color: #6b7280;
    line-height: 1.6;
}

.faq-answer.open {
    max-height: 200px;
    padding-top: 1rem;
}

/* Consultation form styles */
#consultation-form {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

/* Trust badges */
.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: white;
    border-radius: 9999px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    font-size: 0.875rem;
    font-weight: 500;
}

/* Article preview cards */
.article-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease-out;
}

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

/* Responsive utilities */
@media (max-width: 640px) {
    .mobile-stack > * {
        width: 100% !important;
        margin-bottom: 0.5rem;
    }
    
    .mobile-center {
        text-align: center;
    }
    
    .mobile-hidden {
        display: none;
    }
}