/* ===== Custom Styles for Juley Henry Mortgage Website ===== */

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

/* ===== Navbar ===== */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(245, 240, 250, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(91, 44, 111, 0.08);
}

.nav-text {
    transition: color 0.3s ease;
}

/* ===== Mobile Menu ===== */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

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

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

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

/* ===== Service Cards ===== */
.service-card {
    transform: translateY(0);
}

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

/* ===== Process Steps ===== */
.process-step {
    opacity: 1;
}

/* ===== Testimonial Cards ===== */
.testimonial-card {
    transform: translateY(0);
}

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

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

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

/* ===== Geometric Accents ===== */
.geo-shape {
    position: absolute;
    pointer-events: none;
}

/* ===== Button Hover Effects ===== */
a, button {
    -webkit-tap-highlight-color: transparent;
}

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #986fc0;
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .service-card,
    .testimonial-card,
    .process-step,
    .reveal {
        transition: none;
        animation: none;
    }
}

/* ===== Tablet ===== */
@media (max-width: 768px) {
    .font-display {
        font-family: 'Playfair Display', Georgia, serif;
    }
}

/* ===== Small Mobile ===== */
@media (max-width: 360px) {
    .max-w-7xl {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}
