/* Custom styles for Almonte Tax */

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

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

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

::-webkit-scrollbar-thumb {
    background: #c9982e;
    border-radius: 3px;
}

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

/* Selection color */
::selection {
    background: #d4a853;
    color: #0a1628;
}

/* Float animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-12px);
    }
}

@keyframes float-delayed {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float-delayed 5s ease-in-out infinite;
    animation-delay: 1s;
}

/* Service card hover effect */
.service-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
    background: #0a1628;
}

.service-card:hover h3 {
    color: #d4a853 !important;
}

.service-card:hover p {
    color: #94a3b8;
}

.service-card:hover .text-navy-400 {
    color: #d4a853 !important;
}

/* Navbar scroll effect */
.nav-scrolled {
    background: rgba(255, 255, 255, 0.97) !important;
    box-shadow: 0 1px 0 rgba(10, 22, 40, 0.08);
}

.nav-scrolled .font-serif {
    color: #0a1628 !important;
}

.nav-scrolled .text-navy-700 {
    color: #0a1628 !important;
}

.nav-scrolled #bar1,
.nav-scrolled #bar2,
.nav-scrolled #bar3 {
    background: #0a1628 !important;
}

/* Mobile menu active state */
.menu-open #bar1 {
    transform: rotate(45deg) translate(3px, 3px);
}

.menu-open #bar2 {
    opacity: 0;
}

.menu-open #bar3 {
    transform: rotate(-45deg) translate(3px, -3px);
    width: 1.5rem;
}

/* Fade-in animation on scroll */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Select dropdown styling */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* Remove input autofill styling */
input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px white inset !important;
}
