/* Custom Styles for McHenry Tree Service */

/* Base Styles */
html {
    scroll-behavior: smooth;
}

body {
    background-color: #0a0a0a;
}

/* Selection Color */
::selection {
    background-color: #B45309;
    color: #fff;
}

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

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #7c2d12, #B45309);
    border-radius: 4px;
}

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

/* Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes float-delayed {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float-delayed 4s ease-in-out infinite;
    animation-delay: 2s;
}

/* Service Card Hover Effects */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(180, 83, 9, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.5s ease;
    border-radius: inherit;
    pointer-events: none;
}

.service-card:hover::before {
    opacity: 1;
}

/* Process Step Hover */
.process-step:hover .w-20 {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(180, 83, 9, 0.4);
}

/* Form Focus States */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(180, 83, 9, 0.2);
}

/* Input Autofill Styling */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
    -webkit-text-fill-color: #fff;
    -webkit-box-shadow: 0 0 0px 1000px #0a0a0a inset;
    transition: background-color 5000s ease-in-out 0s;
}

/* Gradient Text Utility */
.text-gradient-gold {
    background: linear-gradient(135deg, #B45309, #d97706);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glass Effect */
.glass {
    background: rgba(20, 20, 20, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Responsive Typography */
@media (max-width: 768px) {
    .font-['Cinzel'] {
        font-size: clamp(1.5rem, 5vw, 2.5rem);
    }
}

/* Print Styles */
@media print {
    nav,
    #back-to-top,
    .animate-float,
    .animate-float-delayed {
        display: none !important;
    }
    
    body {
        background: #fff;
        color: #000;
    }
}

/* Reduced Motion */
@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;
    }
}

/* Focus Visible for Accessibility */
*:focus-visible {
    outline: 2px solid #B45309;
    outline-offset: 2px;
}

/* Loading State for Buttons */
button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Image Placeholder Fallback */
img {
    background: linear-gradient(135deg, #141414, #1a1a1a);
}
