/* Custom styles for Door Pro Garage Doors */

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

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

::-webkit-scrollbar-track {
    background: #1a1a24;
}

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

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

/* Selection color */
::selection {
    background: rgba(249, 115, 22, 0.3);
    color: #f7f7f8;
}

/* Reveal animations - progressive enhancement */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

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

    .reveal.delay-100 {
        transition-delay: 0.1s;
    }

    .reveal.delay-200 {
        transition-delay: 0.2s;
    }

    .reveal.delay-300 {
        transition-delay: 0.3s;
    }
}

/* Navbar glass effect */
.navbar-scrolled {
    background: rgba(13, 13, 20, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(45, 45, 58, 0.5);
}

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

/* Subtle pattern overlay */
.pattern-overlay {
    background-image: radial-gradient(rgba(249, 115, 22, 0.03) 1px, transparent 1px);
    background-size: 24px 24px;
}

/* Input autofill styling */
input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #1e1e2e inset !important;
    -webkit-text-fill-color: #f7f7f8 !important;
}

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

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

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

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

/* Card hover glow */
.group:hover .group-hover\:shadow-coral-500\/10 {
    box-shadow: 0 20px 40px -12px rgba(249, 115, 22, 0.1);
}

/* Ensure map is readable */
iframe {
    border-radius: 0.75rem;
}

/* Prevent layout shift on images */
img {
    max-width: 100%;
    height: auto;
}
