/* Custom styles for Pam Porter Real Estate */

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

/* Navbar scroll effect */
.nav-scrolled {
    background: rgba(10, 22, 40, 0.97) !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.nav-scrolled .nav-link-text,
.nav-scrolled .font-serif,
.nav-scrolled .text-\[\:10px\] {
    color: #faf8f4 !important;
}

.nav-scrolled .text-navy-700 {
    color: rgba(250, 248, 244, 0.7) !important;
}

/* Mobile menu */
.mobile-menu-link {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    color: #0a1628;
    transition: color 0.3s ease;
}

.mobile-menu-link:hover {
    color: #c9a84c;
}

/* Scroll reveal animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Back to top button */
#back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

/* Form focus styles */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(201, 168, 76, 0.3);
}

/* Image hover transitions */
img {
    transition: transform 0.5s ease;
}

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

::-webkit-scrollbar-track {
    background: #0a1628;
}

::-webkit-scrollbar-thumb {
    background: #c9a84c;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #d4b962;
}

/* Mobile menu transitions */
#mobile-menu {
    transition: transform 0.4s ease-in-out;
}

#mobile-menu.open {
    transform: translateX(0);
}

/* Hamburger animation */
#menu-btn.active #menu-line-1 {
    transform: rotate(45deg) translate(5px, 5px);
}

#menu-btn.active #menu-line-2 {
    opacity: 0;
}

#menu-btn.active #menu-line-3 {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.5rem;
}

/* Gold accent line animation */
@keyframes expandWidth {
    from { width: 0; }
    to { width: 3rem; }
}

/* Card hover effects */
.group:hover .group-hover\:bg-gold-500\/20 {
    background-color: rgba(201, 168, 76, 0.2);
}

/* Testimonial card hover */
.bg-navy-800:hover {
    transform: translateY(-4px);
    transition: transform 0.3s ease;
}
