/* ============================================
   Paul Archibald — Guaranteed Rate
   Custom Styles
   ============================================ */

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

/* Base font rendering */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #f8fafc;
}
::-webkit-scrollbar-thumb {
    background: #0A1628;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #132038;
}

/* Selection color */
::selection {
    background: #34D399;
    color: #0A1628;
}

/* ============================================
   Navigation
   ============================================ */
#navbar {
    transition: background-color 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(10, 22, 40, 0.06);
}

#navbar.scrolled .nav-link {
    color: rgba(10, 22, 40, 0.7) !important;
}

/* ============================================
   Hero Animations
   ============================================ */
.hero-content {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.9s ease forwards;
    animation-delay: 0.2s;
}

.hero-image {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.9s ease forwards;
    animation-delay: 0.4s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   Service Cards
   ============================================ */
.service-card {
    transition: border-color 0.4s ease, background-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px -20px rgba(10, 22, 40, 0.08);
}

/* ============================================
   Process Steps
   ============================================ */
.process-step {
    position: relative;
}

.process-step::after {
    content: '';
    position: absolute;
    top: 32px;
    right: -20px;
    width: 40px;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(10, 22, 40, 0.15));
}

.process-step:last-child::after {
    display: none;
}

/* ============================================
   Testimonial Cards
   ============================================ */
.testimonial-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
}

/* ============================================
   Contact Form
   ============================================ */
.contact-form-wrapper {
    opacity: 0;
    transform: translateY(20px);
}

.contact-form-wrapper.revealed {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

/* ============================================
   Scroll Reveal Animations
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* ============================================
   Mobile Menu
   ============================================ */
.mobile-nav-link {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

#mobile-menu.open .mobile-nav-link {
    opacity: 1;
    transform: translateY(0);
}

#mobile-menu.open .mobile-nav-link:nth-child(1) { transition-delay: 0.05s; }
#mobile-menu.open .mobile-nav-link:nth-child(2) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-nav-link:nth-child(3) { transition-delay: 0.15s; }
#mobile-menu.open .mobile-nav-link:nth-child(4) { transition-delay: 0.2s; }
#mobile-menu.open .mobile-nav-link:nth-child(5) { transition-delay: 0.25s; }

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1023px) {
    .process-step::after {
        display: none;
    }
}

@media (max-width: 767px) {
    .hero-content {
        text-align: left;
    }

    .hero-image {
        order: 1;
    }

    .hero-content {
        order: 2;
    }

    .about-image {
        order: 2;
    }

    .about-content {
        order: 1;
    }
}
