/* Additional custom styles for IFP Home & Repair */

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

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

::-webkit-scrollbar-thumb {
    background: rgba(132, 20, 56, 0.2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(132, 20, 56, 0.4);
}

/* Selection color */
::selection {
    background: rgba(132, 20, 56, 0.15);
    color: #841438;
}

/* Smooth transitions for all interactive elements */
a, button, input, textarea, select {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Print styles */
@media print {
    nav, .cta-section, #contact {
        display: none;
    }

    body {
        color: #000;
        background: #fff;
    }

    .hero-headline, h2, h3 {
        color: #000 !important;
    }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .service-card {
        border-width: 2px;
    }

    .btn-primary, .btn-outline {
        border-width: 2px;
    }
}

/* Touch device optimizations */
@media (hover: none) {
    .service-card:hover {
        transform: none;
        box-shadow: none;
    }

    .image-frame:hover img {
        transform: none;
    }
}
