/* Custom Styles for Imperial Drywall Finishing */

/* Base Styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Manrope', sans-serif;
}

.font-serif {
    font-family: 'Playfair Display', serif;
}

.font-sans {
    font-family: 'Manrope', sans-serif;
}

/* Reveal Animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal-hidden {
    opacity: 0;
    transform: translateY(30px);
}

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

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

::-webkit-scrollbar-thumb {
    background: #065f46;
    border-radius: 5px;
}

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

/* Selection Color */
::selection {
    background: #065f46;
    color: #ffffff;
}

/* Smooth transitions for all interactive elements */
a, button {
    transition: all 0.3s ease;
}

/* Image hover effects */
img {
    transition: transform 0.3s ease;
}

/* Navbar scroll effect */
#navbar.scrolled {
    box-shadow: 0 4px 20px rgba(6, 95, 70, 0.1);
}

/* Button hover glow effect */
button:hover, a:hover {
    box-shadow: 0 10px 40px rgba(6, 95, 70, 0.2);
}

/* Focus styles for accessibility */
input:focus, select:focus, textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(6, 95, 70, 0.1);
}

/* Prevent layout shift for images */
img {
    content-visibility: auto;
}

/* Mobile menu animation */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Service card hover effect */
.group:hover .group-hover\:text-white {
    color: #ffffff;
}

.group:hover .group-hover\:bg-amber-500 {
    background-color: #d97706;
}

/* Ensure text readability on all backgrounds */
.bg-emerald-900 * {
    color: inherit;
}

.text-emerald-950 {
    color: #0a1f1a;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
