/* Custom Styles for Rich Price Mortgage Website */

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

/* Navbar Transition */
.nav-scrolled {
    background: rgba(250, 248, 245, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

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

.mobile-menu-open .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-open .menu-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-open .menu-line:nth-child(3) {
    width: 24px;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Hero Animations */
.hero-tagline {
    animation: slideUp 0.8s ease forwards;
    animation-delay: 0.2s;
}

.hero-headline {
    animation: slideUp 0.8s ease forwards;
    animation-delay: 0.4s;
}

.hero-subheadline {
    animation: slideUp 0.8s ease forwards;
    animation-delay: 0.6s;
}

.hero-ctas {
    animation: slideUp 0.8s ease forwards;
    animation-delay: 0.8s;
}

.hero-trust {
    animation: slideUp 0.8s ease forwards;
    animation-delay: 1s;
}

.hero-image-wrapper {
    animation: fadeIn 1s ease forwards;
    animation-delay: 0.5s;
    opacity: 0;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Section Animations */
.section-tag,
.section-title,
.section-subtitle {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.section-tag.visible,
.section-title.visible,
.section-subtitle.visible {
    opacity: 1;
    transform: translateY(0);
}

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

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

/* Process Steps */
.process-step {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Testimonial Cards */
.testimonial-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Back to Top Button */
.back-to-top.visible {
    opacity: 1;
    pointer-events: all;
}

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

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

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

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

/* Focus Styles */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

/* Image Hover Effects */
.hero-image-main img,
.about-image-main img {
    transition: transform 0.6s ease;
}

.hero-image-main:hover img,
.about-image-main:hover img {
    transform: scale(1.02);
}

/* Floating Card Animation */
.hero-floating-card {
    animation: float 3s ease-in-out infinite;
}

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

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-floating-card {
        display: none;
    }
    
    .about-stats {
        position: relative !important;
        bottom: auto !important;
        left: auto !important;
        right: auto !important;
        margin-top: 1.5rem;
    }
}

/* Print Styles */
@media print {
    nav,
    .back-to-top,
    #contactForm {
        display: none;
    }
}
