/* Custom styles for J D Young & Son Landscaping */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0a192f;
}
::-webkit-scrollbar-thumb {
    background: #d4af37;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #c5a028;
}

/* Navbar transition */
#navbar.scrolled {
    background: rgba(10, 25, 47, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Mobile menu animation */
#mobile-menu.open {
    transform: translateX(0);
}

/* Input focus styles */
input:focus,
textarea:focus,
select:focus {
    outline: none;
}

/* Image loading placeholder */
img {
    background-color: #f3f4f6;
}

/* Animation utilities */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* Gold accent line animation */
.gold-line {
    position: relative;
    display: inline-block;
}

.gold-line::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #d4af37;
    transition: width 0.3s ease;
}

.gold-line:hover::after {
    width: 100%;
}

/* Service card hover effect */
.group:hover .group-hover\:translate-y-2 {
    transform: translateY(0.5rem);
}

/* Hero parallax effect */
#hero {
    background-attachment: fixed;
}

@media (max-width: 768px) {
    #hero {
        background-attachment: scroll;
    }
}

/* Ensure proper spacing for fixed navbar */
body {
    padding-top: 0;
}

#hero {
    padding-top: 0;
}

/* Form validation styles */
input:invalid:focus,
textarea:invalid:focus {
    border-color: #ef4444;
}

input:valid:focus,
textarea:valid:focus {
    border-color: #d4af37;
}

/* Print styles */
@media print {
    #navbar,
    #mobile-menu,
    .animate-bounce {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .bg-navy-900,
    .bg-gray-50 {
        background: #fff !important;
        color: #000 !important;
    }
}
