/* ===== Custom Styles for Hopson Real Estate Executive ===== */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f4fbf8;
}
::-webkit-scrollbar-thumb {
    background: #95d6c0;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #5fbfa3;
}

/* Selection color */
::selection {
    background: #c5eada;
    color: #0e1f2b;
}

/* ===== Navbar Transition ===== */
.nav-scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    box-shadow: 0 1px 20px rgba(14, 31, 43, 0.08) !important;
}

.nav-scrolled .font-serif {
    color: #0e1f2b !important;
}

/* ===== Service Cards ===== */
.service-card {
    transform: translateY(0);
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.service-card:hover {
    transform: translateY(-4px);
}

/* ===== Listing Cards ===== */
.listing-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.listing-card:hover {
    transform: translateY(-6px);
}

/* ===== Testimonial Cards ===== */
.testimonial-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
}

/* ===== Fade-in Animations (below the fold only) ===== */
.animate-on-scroll {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .animate-on-scroll {
        opacity: 0;
        transform: translateY(24px);
    }

    .animate-on-scroll.is-visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Staggered delays */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }
.delay-500 { transition-delay: 0.5s; }

/* ===== Mobile Menu ===== */
#mobileMenu {
    animation: slideDown 0.3s ease forwards;
}

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

/* ===== Hero Decorative Dots ===== */
@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.6; }
    50% { transform: translateY(-8px) scale(1.1); opacity: 1; }
}

/* ===== Form Focus States ===== */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(95, 191, 163, 0.15);
}

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

/* ===== Image Loading ===== */
img {
    image-rendering: -webkit-optimize-contrast;
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 768px) {
    .font-serif {
        line-height: 1.15;
    }
}

/* ===== Print Styles ===== */
@media print {
    nav, #contactForm, #formSuccess, .listing-card button {
        display: none !important;
    }
    body {
        color: #000;
        background: #fff;
    }
}
