/* Custom styles for Danny's Lawn & Landscape Maintenance */

:root {
    --color-burgundy-700: #a51436;
    --color-burgundy-800: #871331;
    --color-burgundy-950: #3d0713;
    --color-trust-950: #171d36;
    --color-trust-800: #2b3b76;
}

html {
    scroll-behavior: smooth;
}

/* Ensure all links are underlined for clarity on dark backgrounds */
a {
    text-decoration: none;
}

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

/* Navbar transition */
.nav {
    transition: box-shadow 0.3s ease;
}

.nav.scrolled {
    box-shadow: 0 4px 20px rgba(23, 29, 54, 0.1);
}

/* Mobile menu transition */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
}

#mobile-menu.open {
    max-height: 500px;
}

/* Image hover effects */
section img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

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

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

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

/* Selection color */
::selection {
    background: #fce7eb;
    color: #3d0713;
}

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

    section img {
        transition: none;
    }
}

/* Form select styling */
select {
    appearance: none;
    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='%237a96e4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* Smooth reveal animations for below-fold content */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
    }

    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}
