/* Custom styles for Tammy O'Malley Mortgage Website */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #faf5e8;
}
::-webkit-scrollbar-thumb {
    background: #d4522a;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #b8401e;
}

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

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

@keyframes scroll-line {
    0% { top: -20px; opacity: 0; }
    50% { opacity: 1; }
    100% { top: 20px; opacity: 0; }
}

.scroll-line {
    animation: scroll-line 1.5s ease-in-out infinite;
}

/* Hero animations */
.hero-badge {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.2s;
}

/* Service cards */
.service-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease, background 0.4s ease, border-color 0.4s ease;
}

.service-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Process steps */
.process-step {
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.process-step.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Testimonial cards */
.testimonial-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.4s ease;
}

.testimonial-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Fade in animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(254, 253, 248, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(26, 39, 68, 0.08);
}

/* Mobile menu */
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: all !important;
}

/* Section reveal animation */
.section-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.section-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #d4522a;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-badge {
        animation-delay: 0.1s;
    }
}
