/* Custom styles for Hooper Roofing */

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

/* Custom animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Fade in animation classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Float animation for stat cards */
.float-animation {
    animation: float 3s ease-in-out infinite;
}

.float-animation-delay-1 {
    animation: float 3s ease-in-out 0.5s infinite;
}

.float-animation-delay-2 {
    animation: float 3s ease-in-out 1s infinite;
}

/* Navbar scroll effect */
.navbar-scrolled {
    background-color: rgba(250, 249, 247, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

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

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

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

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

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

/* Form focus styles */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #d18063 !important;
    box-shadow: 0 0 0 3px rgba(209, 128, 99, 0.1);
}

/* Button hover effects */
button:hover,
a:hover {
    transition: all 0.3s ease;
}

/* Card hover effects */
.group:hover .group-hover\\:translate-x-1 {
    transform: translateX(4px);
}

/* Image hover zoom */
img {
    transition: transform 0.5s ease;
}

/* Print styles */
@media print {
    nav,
    .floating-stat-cards,
    .scroll-indicator {
        display: none !important;
    }
    
    body {
        color: #000;
        background: white;
    }
}

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

/* High contrast mode */
@media (prefers-contrast: high) {
    .text-stone-600 {
        color: #1c1917;
    }
    
    .border-stone-200 {
        border-color: #78716c;
    }
}
