/* Custom styles for Benchmark Realty */

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

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #c9a050, #bf8c3a);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #dfc9a0, #c9a050);
}

/* Selection color */
::selection {
    background: rgba(201, 160, 80, 0.3);
    color: #faf8f5;
}

/* Focus styles */
*:focus-visible {
    outline: 2px solid #c9a050;
    outline-offset: 2px;
}

/* Input autofill styling */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus {
    -webkit-text-fill-color: #faf8f5;
    -webkit-box-shadow: 0 0 0px 1000px #142814 inset;
    transition: background-color 5000s ease-in-out 0s;
}

/* Print styles */
@media print {
    body {
        background: white;
        color: black;
    }
    
    .service-card,
    .btn-primary,
    .btn-secondary {
        border: 1px solid #ccc;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .service-card {
        border-width: 2px;
    }
    
    .btn-primary {
        border: 2px solid #c9a050;
    }
}

/* Reduced motion support */
@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;
    }
}

/* Accessibility: skip to content */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #c9a050;
    color: #0a140a;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* Image placeholder styling */
img {
    max-width: 100%;
    height: auto;
}

/* Form validation styles */
input:invalid:not(:placeholder-shown),
textarea:invalid:not(:placeholder-shown) {
    border-color: #ef4444;
}

input:valid:not(:placeholder-shown),
textarea:valid:not(:placeholder-shown) {
    border-color: #22c55e;
}
