/* Custom styles for SimplyHomes Shabby Decor */

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

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

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

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar scroll behavior */
#navbar.scrolled {
    background: rgba(254, 253, 248, 0.97);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 20px rgba(27, 94, 32, 0.08);
}

#navbar.scrolled .font-serif,
#navbar.scrolled .tracking-wider {
    color: #1B5E20;
}

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

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

/* Mobile link hover */
.mobile-link {
    position: relative;
}

.mobile-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: #1B5E20;
    transition: width 0.3s ease;
}

.mobile-link:hover::after {
    width: 100%;
}

/* Image lazy loading fade */
img[loading="lazy"] {
    transition: opacity 0.4s ease;
}

/* Subtle hover lift for cards */
.group:hover {
    transform: translateY(-2px);
    transition: transform 0.3s ease;
}

/* Custom selection color */
::selection {
    background: #1B5E20;
    color: #fefdf8;
}

/* Form focus animations */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(27, 94, 32, 0.1);
}

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

/* Map container */
iframe {
    filter: saturate(0.8) contrast(1.05);
    transition: filter 0.3s ease;
}

iframe:hover {
    filter: saturate(1) contrast(1);
}

/* Decorative serif italic styling */
.font-serif em {
    font-style: italic;
}
