/* Custom styles for Frank's Hardwood Floors */

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

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

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

::-webkit-scrollbar-thumb {
    background: #627d98;
    border-radius: 5px;
}

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

/* Selection color */
::selection {
    background: #4ade80;
    color: #102a43;
}

/* Hero image animation on scroll */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.floating {
    animation: float 4s ease-in-out infinite;
}

/* Subtle pattern overlay for sections */
.bg-pattern {
    background-image: radial-gradient(circle at 1px 1px, rgba(17, 145, 108, 0.05) 1px, transparent 0);
    background-size: 24px 24px;
}

/* Card hover lift effect */
.card-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(16, 42, 67, 0.12);
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, #102a43 0%, #243b53 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Decorative line animation */
.line-grow {
    width: 0;
    transition: width 0.6s ease;
}

.line-grow.visible {
    width: 6rem;
}

/* Navbar scroll effect */
.nav-scrolled {
    box-shadow: 0 4px 20px rgba(16, 42, 67, 0.15);
}

/* Mobile menu transition */
#mobile-menu {
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

#mobile-menu.hidden {
    max-height: 0;
    opacity: 0;
}

#mobile-menu:not(.hidden) {
    max-height: 300px;
    opacity: 1;
}

/* Image hover zoom */
.img-zoom {
    overflow: hidden;
}

.img-zoom img {
    transition: transform 0.5s ease;
}

.img-zoom:hover img {
    transform: scale(1.05);
}

/* Button ripple effect */
.btn-ripple {
    position: relative;
    overflow: hidden;
}

.btn-ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-ripple:active::after {
    width: 200px;
    height: 200px;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .img-zoom img {
        transition: none;
    }
    
    .card-lift {
        transition: none;
    }
    
    .floating {
        animation: none;
    }
}

/* Focus visible for accessibility */
:focus-visible {
    outline: 2px solid #4ade80;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    nav, #contact, .bg-pattern {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
