/* Custom styles for Coria Real Estate Group */

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

/* Navbar transition */
#navbar {
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

#navbar.scrolled {
    background-color: rgba(253, 244, 246, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(110, 18, 55, 0.08);
}

.nav-text-color {
    color: rgb(126, 34, 82);
}

#navbar.scrolled .nav-text-color {
    color: rgb(61, 5, 24);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: rgb(219, 68, 112);
    transition: width 0.3s ease;
    border-radius: 1px;
}

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

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

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

::-webkit-scrollbar-track {
    background: rgb(253, 244, 246);
}

::-webkit-scrollbar-thumb {
    background: rgb(219, 68, 112);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgb(161, 16, 59);
}

/* Selection color */
::selection {
    background: rgb(253, 208, 187);
    color: rgb(61, 5, 24);
}

/* Form focus styles */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(219, 68, 112, 0.15);
}

/* Animation for scroll reveal (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

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

/* Default state for reveal elements — always visible */
.reveal {
    opacity: 1;
    transform: none;
}

/* Print styles */
@media print {
    #navbar,
    #contactForm,
    #formSuccess {
        display: none;
    }
}
