/* Custom styles for Pisino General Contracting */

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

/* Scroll reveal animations */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(20px);
    }
    
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

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

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

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

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

/* Button ripple effect */
button, a {
    -webkit-tap-highlight-color: transparent;
}

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

img[data-loaded="true"] {
    animation: none;
}

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

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

#mobileMenu.open {
    max-height: 400px;
}

/* Form focus transitions */
input:focus, select:focus, textarea:focus {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Card hover effects */
.group:hover .group-hover\\:scale-105 {
    transform: scale(1.05);
}

/* Gradient text effect for hero */
.gradient-text {
    background: linear-gradient(135deg, #84213b 0%, #c13251 50%, #ec748a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Subtle pattern overlay */
.pattern-overlay {
    background-image: radial-gradient(circle at 1px 1px, rgba(160, 36, 67, 0.05) 1px, transparent 0);
    background-size: 20px 20px;
}
