/* Custom styles for Alex Ferrari AZ Realtor */

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

/* Reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Navbar scroll effect */
#navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(123, 45, 59, 0.08);
}

#navbar.scrolled .nav-link {
    color: #7B2D3B;
}

#navbar.scrolled .font-serif {
    color: #7B2D3B;
}

#navbar.scrolled .text-burgundy-400 {
    color: #c4606e;
}

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

/* Input focus styles */
input:focus,
textarea:focus,
select:focus {
    border-bottom-color: #7B2D3B !important;
}

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

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

::-webkit-scrollbar-thumb {
    background: #c4606e;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #7B2D3B;
}

/* Selection color */
::selection {
    background: #fce7eb;
    color: #7B2D3B;
}

/* Mobile menu transitions */
#mobile-menu {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Subtle line decoration */
.section-line {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, #7B2D3B, #f4a0b5);
}

/* Button ripple effect */
button, a {
    position: relative;
    overflow: hidden;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .group img {
        transition: none;
    }

    .group:hover img {
        transform: none;
    }
}

/* Tablet adjustments */
@media (max-width: 768px) {
    .font-serif {
        line-height: 1.1;
    }
}

/* Large screen adjustments */
@media (min-width: 1920px) {
    .max-w-7xl {
        max-width: 80rem;
    }
}
