/* Custom styles for Heather Baldwin Real Estate */

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

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

/* Navbar transitions */
.nav-text {
    transition: color 0.3s ease;
}

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

/* Scroll reveal animations */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-reveal[data-reveal="delay-1"] {
    transition-delay: 0.1s;
}

.scroll-reveal[data-reveal="delay-2"] {
    transition-delay: 0.2s;
}

.scroll-reveal[data-reveal="delay-3"] {
    transition-delay: 0.3s;
}

/* Mobile menu animations */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
}

/* Menu line animations */
.menu-line {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Custom select styling */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238c8377' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

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

/* Button hover lift effect */
button, a {
    -webkit-tap-highlight-color: transparent;
}

/* Selection color */
::selection {
    background-color: rgba(212, 98, 62, 0.2);
    color: inherit;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .scroll-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    .mobile-link {
        opacity: 1;
        transform: none;
    }
    
    .menu-line {
        transition: none;
    }
    
    img {
        transition: none;
    }
}

/* Mobile menu open state */
body.menu-open {
    overflow: hidden;
}

/* Active nav link */
.nav-text.active {
    color: #d4623e;
}

/* Image hover zoom wrapper */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}
