/* Custom Styles for Goldland Surveyors Website */

/* Smooth scrolling for the entire page */
html {
    scroll-behavior: smooth;
}

/* Ensure mobile menu transitions smoothly */
#mobile-menu {
    transition: all 0.3s ease-in-out;
}

/* Improve button hover effects */
button, a.button {
    transition: all 0.2s ease-in-out;
}

/* Custom focus styles for better accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #D4AF37;
    outline-offset: 2px;
}

/* Smooth image loading */
img {
    transition: opacity 0.3s ease-in-out;
}

img:not([src]) {
    opacity: 0;
}

/* Card hover effects */
.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Loading state for forms */
form.submitting {
    opacity: 0.6;
    pointer-events: none;
}

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

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

::-webkit-scrollbar-thumb {
    background: #000000;
    border-radius: 5px;
}

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

/* Dark mode scrollbar */
.dark ::-webkit-scrollbar-track {
    background: #1f2937;
}

.dark ::-webkit-scrollbar-thumb {
    background: #000000;
}

.dark ::-webkit-scrollbar-thumb:hover {
    background: #333333;
}

/* Print styles */
@media print {
    header, footer, #mobile-menu, button {
        display: none !important;
    }

    body {
        background: white !important;
        color: black !important;
    }
}

/* Animation for fade-in elements */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Responsive typography adjustments */
@media (max-width: 640px) {
    body {
        font-size: 16px;
    }
}

/* Material Icons alignment fix */
.material-symbols-outlined {
    vertical-align: middle;
    line-height: 1;
}

/* Skip to content link for accessibility */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: #0A2342;
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-to-content:focus {
    top: 0;
}

/* Utility class for visually hidden elements (screen readers only) */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}
