/* ============================================
   NINA & HP Real Estate Team — Custom Styles
   ============================================ */

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

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f6f6f7;
}
::-webkit-scrollbar-thumb {
    background: #c7c8cc;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #a3a5ab;
}

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

#navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

#navbar.scrolled #nav-logo-text {
    color: #1a1c20;
}

#navbar.scrolled .nav-link {
    color: #53565e;
}

#navbar.scrolled .nav-link:hover {
    color: #ff5a3e;
    background-color: #fff5f2;
}

/* --- Service Card Stagger Animation --- */
.service-card {
    opacity: 1;
    transform: translateY(0);
}

.service-card.reveal {
    animation: fadeInUp 0.6s ease forwards;
}

.service-card:nth-child(1).reveal { animation-delay: 0.05s; }
.service-card:nth-child(2).reveal { animation-delay: 0.1s; }
.service-card:nth-child(3).reveal { animation-delay: 0.15s; }
.service-card:nth-child(4).reveal { animation-delay: 0.2s; }
.service-card:nth-child(5).reveal { animation-delay: 0.25s; }
.service-card:nth-child(6).reveal { animation-delay: 0.3s; }

/* --- Fade In Up Animation --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Section Reveal Animations --- */
.reveal-section {
    opacity: 1;
    transform: translateY(0);
}

.reveal-section.animated {
    animation: fadeInUp 0.7s ease forwards;
}

/* --- Mobile Menu Animation --- */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    opacity: 0;
}

#mobile-menu.open {
    max-height: 400px;
    opacity: 1;
}

/* --- Neighborhood Card Hover --- */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

/* --- Selection Color --- */
::selection {
    background-color: #ffad9a;
    color: #1a1c20;
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .service-card.reveal,
    .reveal-section.animated {
        opacity: 1;
        transform: none;
        animation: none;
    }
}

/* --- Focus Visible --- */
:focus-visible {
    outline: 2px solid #ff5a3e;
    outline-offset: 2px;
    border-radius: 4px;
}

/* --- Select Arrow --- */
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='%2382858d' stroke-width='2.5' 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;
}

/* --- Button Ripple Effect (subtle) --- */
button, a {
    -webkit-tap-highlight-color: transparent;
}
