/* ===== Custom Styles for Jan J Kelly Real Estate ===== */

/* Base */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Selection color */
::selection {
    background: #c9a84c;
    color: #0a1628;
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(10, 22, 40, 0.97) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.3);
}

/* Scroll reveal animations — progressive enhancement */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .scroll-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .service-card {
        transition: none;
    }
}

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

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

/* Gold accent line */
.w-12.h-px.bg-gold-500 {
    transition: width 0.3s ease;
}

/* Form focus states */
input:focus,
textarea:focus,
select:focus {
    background: #ffffff;
}

/* Mobile menu animation */
#mobileMenu {
    animation: slideDown 0.3s ease forwards;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Back to top button */
#backToTop.visible {
    opacity: 1;
    pointer-events: auto;
}

/* Image hover zoom */
.rounded-sm.overflow-hidden img {
    transition: transform 0.6s ease;
}

.rounded-sm.overflow-hidden:hover img {
    transform: scale(1.03);
}

/* Testimonial card hover */
.bg-cream-50.border.border-cream-200 {
    transition: all 0.3s ease;
}

/* Print styles */
@media print {
    nav, #backToTop, #contactForm, button {
        display: none !important;
    }
    body {
        color: #000;
        background: #fff;
    }
}
