/* Supreme Service Co - Custom Styles */
/* Red/Black Brand Color Scheme */

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

/* Prevent horizontal overflow/scrollbar */
body {
    overflow-x: hidden;
}

/* Custom animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(211, 47, 47, 0.4);
    }
    50% {
        box-shadow: 0 0 30px rgba(211, 47, 47, 0.6);
    }
}

/* Improved focus states for accessibility */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #D32F2F;
    outline-offset: 2px;
}

/* Custom scrollbar for webkit browsers - Brand colors */
::-webkit-scrollbar {
    width: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: #D32F2F;
    border-radius: 5px;
}

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

/* Ensure images are responsive */
img {
    max-width: 100%;
    height: auto;
}

/* Logo error handling - show text fallback if image fails */
#main-logo {
    display: block;
}

#main-logo:not([src]),
#main-logo[src=""],
#main-logo[src*="images/Supreme_Service_Logo_for_vids.jpg"]:not([complete]) {
    display: none;
}

/* Fallback text logo styling when image not available */
.logo-fallback {
    font-family: 'Arial Black', 'Arial Bold', sans-serif;
    color: #D32F2F;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

/* Enhanced button hover effects */
.btn-supreme-red {
    transition: all 0.3s ease;
}

.btn-supreme-red:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(211, 47, 47, 0.3);
}

/* Card shadow effects */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
}

/* Star rating animations */
.star-rating i {
    transition: transform 0.2s ease;
}

.star-rating:hover i {
    transform: scale(1.1);
}

/* Print styles */
@media print {
    nav,
    footer,
    .sticky,
    #mobile-menu-button,
    .md\:hidden.fixed {
        display: none !important;
    }

    body {
        color: black;
        background: white;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }
}

/* Accessibility improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .bg-supreme-red {
        background-color: #C62828 !important;
    }

    .text-supreme-red {
        color: #D32F2F !important;
    }
}

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

    html {
        scroll-behavior: auto;
    }
}
