/* Sugar Land Car Detailing - Custom Styles */
/* Most styling is handled by Tailwind CSS via CDN */

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

/* Custom focus styles for accessibility */
a:focus,
button:focus {
    outline: 2px solid #006AE4;
    outline-offset: 2px;
}

/* Phone number link styling */
a[href^="tel:"] {
    white-space: nowrap;
}

/* Smooth transitions for interactive elements */
a,
button {
    transition: all 0.2s ease-in-out;
}

/* Hero section background image support */
.hero-bg {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Card hover effects */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

/* Loading state for images */
img {
    opacity: 1;
    transition: opacity 0.3s ease;
}

img[loading="lazy"] {
    opacity: 0;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #0055b8;
}

/* Fade-in animation on scroll */
.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Scroll to top button visibility */
#scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

#scroll-to-top.invisible {
    opacity: 0;
    visibility: hidden;
}

/* Smooth anchor scroll offset for fixed header */
:target {
    scroll-margin-top: 80px;
}
