/* Custom styles for Matthew Beaudoin Real Estate website */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #071a12;
}
::-webkit-scrollbar-thumb {
    background: #166340;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #1a7a4f;
}

/* Selection color */
::selection {
    background: rgba(201, 152, 46, 0.3);
    color: #faf8f4;
}

/* Reveal animations - progressive enhancement */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .reveal.revealed {
        opacity: 1;
        transform: none;
    }
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Gold accent line animation on hover */
a.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* Form focus states */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

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

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

/* Navbar scroll state */
#navbar.scrolled {
    background: rgba(7, 26, 18, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(201, 152, 46, 0.1);
}

/* Subtle gold glow on interactive elements */
button:hover,
a:hover {
    cursor: pointer;
}

/* Card hover effects */
.group {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Image lazy load placeholder */
img {
    background-color: #0a2e1e;
}

/* Gold gradient text utility */
.text-gold-gradient {
    background: linear-gradient(135deg, #d4a853 0%, #c9982e 50%, #b07d1f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Decorative gold divider */
.gold-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(201, 152, 46, 0.4) 50%, transparent 100%);
}
