/* Custom styles for A1 Property Solvers */

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

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

::-webkit-scrollbar-track {
    background: #102a43;
}

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

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

/* Navbar transition */
#navbar {
    transition: background-color 0.5s ease, box-shadow 0.5s ease, padding 0.5s ease;
}

#navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(16, 42, 67, 0.1);
}

#navbar.scrolled .logo-text {
    color: #102a43;
}

/* Hero section animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content {
    animation: fadeInUp 0.8s ease-out forwards;
}

.hero-image {
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
    opacity: 0;
}

/* Gold accent line animation */
@keyframes expandWidth {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

.gold-line {
    animation: expandWidth 1s ease-out 0.5s forwards;
    width: 0;
}

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

/* Form focus styles */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #d9a41c;
    box-shadow: 0 0 0 3px rgba(217, 164, 28, 0.1);
}

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

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

/* Testimonial card hover */
.shadow-sm:hover {
    transform: translateY(-4px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Button hover effects */
button,
a {
    transition: all 0.3s ease;
}

/* Print styles */
@media print {
    nav,
    #contact-form,
    iframe {
        display: none;
    }
}

/* Reduced motion preference */
@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;
    }
}

/* High contrast mode support */
@media (forced-colors: active) {
    .bg-navy-900 {
        background-color: ButtonText;
    }
    
    .text-navy-900 {
        color: ButtonText;
    }
}
