/* Additional custom styles for Mead Baltz Paints */

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

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

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

::-webkit-scrollbar-thumb {
    background: #047857;
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: #059669;
}

/* Selection color */
::selection {
    background: #047857;
    color: #fefdf8;
}

/* Focus visible styles */
:focus-visible {
    outline: 3px solid #047857;
    outline-offset: 2px;
}

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

/* Print styles */
@media print {
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
    
    .geo-circle,
    .geo-square,
    .geo-triangle {
        display: none;
    }
}

/* High contrast mode */
@media (forced-colors: active) {
    .btn-primary {
        border: 2px solid currentColor;
    }
}

/* Accessibility: Skip to main content */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #047857;
    color: #fefdf8;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* Loading state for buttons */
.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Image loading placeholder */
img {
    background: linear-gradient(90deg, #d1fae5 25%, #a7f3d0 50%, #d1fae5 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

img[src] {
    animation: none;
    background: none;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Ensure proper contrast for all text elements */
.text-emerald-900 {
    color: #064e3b;
}

.text-emerald-800 {
    color: #065f46;
}

.text-emerald-700 {
    color: #047857;
}

.text-emerald-200 {
    color: #a7f3d0;
}

.text-emerald-100 {
    color: #d1fae5;
}

/* Ensure buttons have proper contrast */
.btn-primary {
    color: #fefdf8;
}

.btn-primary:hover {
    color: #fefdf8;
}

/* Form inputs */
input,
textarea,
select {
    background: #fefdf8;
    color: #064e3b;
}

input::placeholder,
textarea::placeholder {
    color: #6ee7b7;
}

/* Active states for mobile menu */
.mobile-menu a:hover {
    color: #059669;
}
