/* Custom styles for Barrett Henry Real Estate website */

/* Base styles */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Selection color */
::selection {
    background-color: #c2441e;
    color: white;
}

/* Smooth transitions for all interactive elements */
a, button, input, select, textarea {
    transition: all 0.3s ease;
}

/* Mobile menu animations */
#mobile-menu {
    backdrop-filter: blur(10px);
}

.menu-line {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Active menu state */
body.menu-open .menu-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

body.menu-open .menu-line:nth-child(2) {
    opacity: 0;
}

body.menu-open .menu-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
    width: 24px;
}

/* Navbar scroll state */
#navbar.scrolled {
    background-color: rgba(250, 248, 245, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

#navbar.scrolled .font-serif,
#navbar.scrolled .text-dark-900 {
    color: #1a1614;
}

#navbar.scrolled .menu-line {
    background-color: #1a1614;
}

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

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

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

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

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

/* Form select styling fix */
select {
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2220%22%20height%3D%2220%22%3E%3Cpath%20d%3D%22M7%2010l5%205%205-5%22%20stroke%3D%22%23c2441e%22%20stroke-width%3D%221.5%22%20fill%3D%22none%22%2F%3E%3C%2Fsvg%3E");
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print styles */
@media print {
    #navbar,
    #mobile-menu,
    .group-hover\:bg-dark-900,
    button {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .font-serif {
        color: black !important;
    }
}
