/* Custom Styles for Pettaway Financial */

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

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

::-webkit-scrollbar-track {
    background: #0B1120;
}

::-webkit-scrollbar-thumb {
    background: #1E293B;
    border-radius: 5px;
}

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

/* Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(3deg);
    }
    50% {
        transform: translateY(-20px) rotate(3deg);
    }
}

@keyframes float-reverse {
    0%, 100% {
        transform: translateY(0px) rotate(-2deg);
    }
    50% {
        transform: translateY(15px) rotate(-2deg);
    }
}

@keyframes float-card-3 {
    0%, 100% {
        transform: translateY(0px) rotate(6deg);
    }
    50% {
        transform: translateY(-15px) rotate(6deg);
    }
}

/* Apply floating animations */
.absolute.top-0.right-0 {
    animation: float 6s ease-in-out infinite;
}

.absolute.top-32.left-0 {
    animation: float-reverse 5s ease-in-out infinite;
}

.absolute.bottom-8.right-8 {
    animation: float-card-3 7s ease-in-out infinite;
}

/* Hover effects for service cards */
.group:hover .w-14 {
    transform: scale(1.1);
}

.w-14 {
    transition: transform 0.3s ease;
}

/* Gold gradient text (if needed) */
.text-gradient-gold {
    background: linear-gradient(135deg, #D4AF37 0%, #F3E5AB 50%, #D4AF37 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Focus styles for accessibility */
input:focus,
select:focus,
textarea:focus,
button:focus {
    outline: none;
}

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

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

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

/* Navbar scroll effect */
.navbar-scrolled {
    background: rgba(11, 17, 32, 0.95) !important;
    backdrop-filter: blur(10px);
}

/* Button hover glow effect */
button:hover {
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
}

/* Image hover zoom */
img {
    transition: transform 0.5s ease;
}

/* Responsive typography adjustments */
@media (max-width: 768px) {
    .font-serif {
        font-size: 2.5rem;
    }
}

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

/* Print styles */
@media print {
    .bg-brand-dark,
    .bg-brand-slate {
        background: white !important;
        color: black !important;
    }
    
    .text-white,
    .text-slate-300,
    .text-slate-400 {
        color: black !important;
    }
    
    .text-brand-gold {
        color: #D4AF37 !important;
    }
}
