/* DA Roofing Company - Custom Styles */

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

body {
    font-feature-settings: 'cv01', 'cv02', 'cv03';
}

/* Smooth scroll offset for fixed nav */
section[id] {
    scroll-margin-top: 80px;
}

/* Selection color */
::selection {
    background-color: #d4a520;
    color: #0a1a2e;
}

/* Navbar transition */
#navbar.scrolled {
    box-shadow: 0 1px 0 rgba(16, 42, 67, 0.08);
}

/* Mobile menu animations */
#mobileMenu.open {
    transform: translateX(0);
}

#mobileMenu.closed {
    transform: translateX(100%);
}

/* Menu toggle animation */
#menuToggle.active #menuLine1 {
    transform: rotate(45deg) translate(4px, 4px);
}

#menuToggle.active #menuLine2 {
    opacity: 0;
}

#menuToggle.active #menuLine3 {
    transform: rotate(-45deg) translate(4px, -4px);
    width: 1.5rem;
}

/* Decorative hover effects */
.group:hover .group-hover\:text-gold-600 {
    color: #b3800e;
}

/* Form focus states */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(212, 165, 32, 0.1);
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #627d98;
}

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

/* Gallery hover */
.overflow-hidden {
    position: relative;
}

.overflow-hidden::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 26, 46, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.overflow-hidden:hover::after {
    opacity: 1;
}

/* Testimonial card hover */
.bg-navy-50:hover {
    transform: translateY(-2px);
}

/* CTA section gradient overlay */
.bg-gold-500 {
    background-image: linear-gradient(135deg, #d4a520 0%, #b3800e 100%);
}

/* Floating card animation */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Back to top button */
#backToTop.visible {
    opacity: 1;
    pointer-events: auto;
}

#backToTop:not(.visible) {
    opacity: 0;
    pointer-events: none;
}
