/* Miami Roofing Solutions — Custom Styles */

/* Smooth scroll offset for fixed navbar */
section[id] {
    scroll-margin-top: 80px;
}

/* Selection color */
::selection {
    background: #d97706;
    color: #1a202c;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f0f4f8;
}
::-webkit-scrollbar-thumb {
    background: #687691;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #4a5568;
}

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

/* Subtle gradient background for body */
body {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

/* Image hover zoom effect */
img {
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Button ripple-like hover glow */
button:hover, a:hover {
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Mobile menu animation */
#mobile-menu {
    animation: slideDown 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Print styles */
@media print {
    nav, #contact, .animate-bounce {
        display: none;
    }
    body {
        color: #000;
        background: #fff;
    }
}
