/* Custom styles for Duo Realty */

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

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

/* Hide scrollbar for mobile menu */
.mobile-menu::-webkit-scrollbar {
    display: none;
}

/* Ensure proper text rendering */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* Print styles */
@media print {
    nav, .mobile-menu, #contact-form, button {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    a {
        text-decoration: underline;
    }
}

/* High contrast mode support */
@media (forced-colors: active) {
    .btn-primary, .btn-secondary {
        border: 2px solid currentColor;
    }
}

/* Loading state for images */
img {
    background: #E8E2DC;
}

img[src] {
    background: transparent;
}

/* Ensure proper spacing in all browsers */
section {
    position: relative;
}

/* Custom selection color */
::selection {
    background: #F9D0D9;
    color: #1A1614;
}

::-moz-selection {
    background: #F9D0D9;
    color: #1A1614;
}

/* Improve form focus states */
input:focus, textarea:focus {
    border-bottom-width: 2px;
}

/* Ensure buttons are clickable on mobile */
button, .btn-primary, .btn-secondary {
    -webkit-tap-highlight-color: transparent;
}

/* Smooth image loading */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}
