/*
 * RealSource Residential — shared site styles.
 * Loaded by every page, after css/tailwind.css.
 * Page-specific animation rules (e.g. the home page intro gating) stay in each page's <style> block.
 */

/* Scrolling: pages use the `scroll-smooth` class on <html> for eased anchor jumps.
   Anchor targets land below the fixed navbar instead of under it. */
html {
    scroll-padding-top: 6rem;
}

/* Portfolio map: states with a property card are filled gold (see js/site.js). */
[data-portfolio-map] svg {
    width: 100%;
    height: 100%;
    display: block;
}
[data-portfolio-map] .portfolio-states path {
    fill: #6b7280;
}
[data-portfolio-map] .portfolio-states path.is-active {
    fill: #B57E00;
}
/* Property pins: a white ring with a gold center (drawn by js/site.js). */
[data-portfolio-map] .portfolio-pin circle {
    fill: #ffffff;
    stroke: #B57E00;
    stroke-width: 2;
}
[data-portfolio-map] .portfolio-pin circle + circle {
    fill: #B57E00;
    stroke: none;
}

/* Respect "reduce motion" settings: jump instantly instead of animating scroll. */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

/* Fade-up entrance on page load */
.fade-up {
    animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(30px);
}

.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }

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

/* Subtle image zoom on hover */
.img-hover-zoom {
    overflow: hidden;
}
.img-hover-zoom img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.img-hover-zoom:hover img {
    transform: scale(1.05);
}
