/* Custom styles for Brian Kisling Realtor website */

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

/* Scroll reveal base - content always visible by default */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

/* Only apply hidden state when JS is active and motion is allowed */
@media (prefers-reduced-motion: no-preference) {
    .js-active .scroll-reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    .js-active .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar glass effect on scroll */
header.scrolled {
    background: rgba(254, 253, 251, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

/* Nav link hover underline animation */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #a11537;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 60%;
}

/* Mobile nav link */
.mobile-nav-link {
    display: block;
    width: 100%;
}

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

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

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

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

/* Selection color */
::selection {
    background: #fce7eb;
    color: #6f1530;
}

/* Input focus styles */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, #fce7eb 0%, #f9d0d9 100%);
}

/* Button press effect */
button:active,
a:active {
    transform: scale(0.98);
}

/* Prevent flash of unstyled content */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Subtle gradient animation for decorative elements */
@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(10px, -10px) scale(1.02); }
    66% { transform: translate(-5px, 5px) scale(0.98); }
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .font-serif {
        line-height: 1.15;
    }
}
