/* Custom styles for Ol'Red Roofing & Restoration */

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

/* Navbar transition states */
.navbar-scrolled #navbar {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.navbar-text {
    color: white;
}

.navbar-scrolled .navbar-text {
    color: white;
}

/* Mobile menu animation */
.mobile-menu-open #mobileMenu {
    opacity: 1 !important;
    pointer-events: all !important;
}

.mobile-menu-open #menuLine1 {
    transform: translateY(6px) rotate(45deg);
}

.mobile-menu-open #menuLine2 {
    opacity: 0;
}

.mobile-menu-open #menuLine3 {
    transform: translateY(-6px) rotate(-45deg);
}

/* Scroll reveal animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal[data-reveal="hidden"] {
    opacity: 0;
    transform: translateY(30px);
}

/* Hero parallax subtle effect */
#hero {
    perspective: 10px;
}

#hero .absolute.inset-0 img {
    will-change: transform;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #0f766e;
}

/* Selection color */
::selection {
    background: rgba(13, 148, 136, 0.2);
    color: #0f766e;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .group:hover img,
    img {
        transition: none;
    }
    
    .animate-pulse {
        animation: none;
    }
}

/* Focus visible styles */
:focus-visible {
    outline: 2px solid #0d9488;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Print styles */
@media print {
    nav, #contactForm, #successMessage, .reveal {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
