/* Custom styles for Above The Rest Handyman Services */

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

/* Base typography */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Navbar scroll state */
nav.scrolled {
    background: rgba(6, 15, 29, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

nav.scrolled .nav-link {
    color: rgba(255, 255, 255, 0.9);
}

/* Mobile menu transitions */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll reveal animations - progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .reveal-element {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    }

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

    /* Staggered delays */
    .reveal-element:nth-child(2) { transition-delay: 0.1s; }
    .reveal-element:nth-child(3) { transition-delay: 0.2s; }
    .reveal-element:nth-child(4) { transition-delay: 0.3s; }
    .reveal-element:nth-child(5) { transition-delay: 0.4s; }
    .reveal-element:nth-child(6) { transition-delay: 0.5s; }
}

/* Reduced motion - ensure content is visible */
@media (prefers-reduced-motion: reduce) {
    .reveal-element {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

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

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

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

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

/* Selection color */
::selection {
    background: rgba(212, 168, 75, 0.3);
    color: #0A1628;
}

/* Hero image parallax-like subtle effect */
#hero img {
    transition: transform 0.3s ease;
}

/* Service card hover */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

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

/* Gold gradient text utility */
.text-gold-gradient {
    background: linear-gradient(135deg, #E8C36A, #D4A84B, #B8912E);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Button ripple effect */
button, a {
    position: relative;
    overflow: visible;
}

/* Form select arrow */
select {
    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='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* Map hover */
iframe:hover {
    filter: brightness(1.02);
}
