/* Custom styles for Ashley Walker Real Estate */

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

/* Base typography refinements */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Hero animations */
.hero-title {
    opacity: 0;
    transform: translateY(30px);
    animation: heroTitleIn 1s ease-out 0.3s forwards;
}

.hero-subtitle {
    opacity: 0;
    transform: translateY(20px);
    animation: heroSubtitleIn 1s ease-out 0.5s forwards;
}

.hero-desc {
    opacity: 0;
    transform: translateY(20px);
    animation: heroDescIn 1s ease-out 0.7s forwards;
}

.hero-cta {
    opacity: 0;
    transform: translateY(20px);
    animation: heroCtaIn 1s ease-out 0.9s forwards;
}

.hero-image-wrapper {
    opacity: 0;
    transform: translateX(40px);
    animation: heroImageIn 1.2s ease-out 0.5s forwards;
}

@keyframes heroTitleIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroSubtitleIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroDescIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroCtaIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroImageIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Scroll reveal animations (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal-up,
    .reveal-left,
    .reveal-right {
        opacity: 1;
        transform: none;
    }
}

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

::-webkit-scrollbar-track {
    background: #fef7f2;
}

::-webkit-scrollbar-thumb {
    background: #991b1b;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #7f1d1d;
}

/* Selection color */
::selection {
    background: #991b1b;
    color: #fff;
}

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #991b1b;
    outline-offset: 2px;
}

/* Mobile menu transitions */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

#mobile-menu.closed {
    opacity: 0;
    pointer-events: none;
}

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(255, 255, 255, 0.97) !important;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.nav-scrolled .font-serif {
    color: #450a0a !important;
}

.nav-scrolled .text-gray-500 {
    color: #6b7280 !important;
}

/* Menu line animation */
.menu-line {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#menu-btn.active .menu-line:first-child {
    transform: rotate(45deg) translate(3px, 3px);
}

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

/* Form select styling */
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='%239ca3af' stroke-width='2' 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 0 center;
}

/* Image hover effects */
img {
    transition: filter 0.3s ease;
}

img:hover {
    filter: brightness(1.02);
}
