/* Custom styles for Resolute Realty */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdf9ee;
}
::-webkit-scrollbar-thumb {
    background: #166534;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #14532d;
}

/* Selection color */
::selection {
    background: #166534;
    color: #fefdf8;
}

/* Reveal animations - progressive enhancement, only active with JS */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    .reveal:nth-child(2) { transition-delay: 0.1s; }
    .reveal:nth-child(3) { transition-delay: 0.2s; }
    .reveal:nth-child(4) { transition-delay: 0.3s; }
}

/* Navbar scroll state */
.nav-scrolled {
    box-shadow: 0 1px 20px rgba(20, 83, 45, 0.08);
}

/* Mobile menu transition */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}
#mobile-menu.open {
    max-height: 400px;
    padding-top: 0;
}

/* Hero text gradient for italic words */
.text-emerald-400 {
    text-shadow: 0 0 60px rgba(74, 222, 128, 0.3);
}

/* Service card hover lift */
.group:hover {
    transform: translateY(-4px);
}
.group {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Form focus states */
input:focus, select:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(22, 101, 52, 0.15);
}

/* Print styles */
@media print {
    header, footer, #contact-form, iframe {
        display: none;
    }
    body {
        color: #1a1a1a;
        background: #fff;
    }
}
