/* Custom styles for Eickholt Insurance Agency */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

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

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

::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* Selection color */
::selection {
    background-color: #0d9488;
    color: white;
}

/* Focus styles for accessibility */
*:focus-visible {
    outline: 2px solid #0d9488;
    outline-offset: 2px;
}

/* Subtle animation for interactive elements */
button, a {
    transition: all 0.2s ease;
}

/* Ensure images don't cause layout shift */
img {
    max-width: 100%;
    height: auto;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Mobile menu transitions */
#mobileMenu {
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

#mobileMenu.hidden {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}

#mobileMenu:not(.hidden) {
    max-height: 400px;
    opacity: 1;
}

/* Card hover effects */
.group:hover .group-hover\:stroke-white {
    stroke: white;
}

/* Gradient text effect (if needed) */
.text-gradient {
    background: linear-gradient(135deg, #0d9488 0%, #2dd4bf 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Subtle pattern for hero background */
.hero-pattern {
    background-image: radial-gradient(circle at 25% 25%, rgba(13, 148, 136, 0.1) 0%, transparent 50%),
                      radial-gradient(circle at 75% 75%, rgba(45, 212, 191, 0.05) 0%, transparent 50%);
}

/* Form input focus states */
input:focus, select:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

/* Ensure proper contrast for all text */
.text-slate-900 {
    color: #0f172a;
}

.text-slate-800 {
    color: #1e293b;
}

.text-slate-700 {
    color: #334155;
}

.text-slate-600 {
    color: #475569;
}

.text-slate-500 {
    color: #64748b;
}

.text-slate-400 {
    color: #94a3b8;
}

/* Ensure all interactive elements have proper cursor */
button, a, input, select, textarea {
    cursor: pointer;
}

input:not([type="submit"]):not([type="button"]), select, textarea {
    cursor: text;
}

/* Responsive typography adjustments */
@media (max-width: 640px) {
    .font-serif {
        font-size: 2rem;
        line-height: 1.2;
    }
}

@media (min-width: 641px) and (max-width: 768px) {
    .font-serif {
        font-size: 2.5rem;
        line-height: 1.2;
    }
}
