/* McCarty Trailer Rentals — Custom Styles */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #fdf9f0;
}
::-webkit-scrollbar-thumb {
    background: #d3714f;
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: #c75738;
}

/* Selection color */
::selection {
    background: #d3714f;
    color: #ffffff;
}

/* Hero parallax-like effect on scroll */
#hero {
    scroll-snap-align: start;
}

/* Navbar scroll state */
#navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Service card hover lift */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* Fade-in animation for scroll reveals */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered fade-in delays */
.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }

/* Mobile menu transition */
#mobileMenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}
#mobileMenu.open {
    max-height: 400px;
}

/* Link hover underline animation */
a.hover-underline {
    position: relative;
}
a.hover-underline::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #d3714f;
    transition: width 0.3s ease;
}
a.hover-underline:hover::after {
    width: 100%;
}

/* Form focus ring animation */
input:focus, select:focus, textarea:focus {
    animation: ring-pulse 1.5s ease infinite;
}
@keyframes ring-pulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(211, 113, 79, 0.15); }
    50% { box-shadow: 0 0 0 6px rgba(211, 113, 79, 0.08); }
}

/* Floating animation for stat card */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
.floating {
    animation: float 3s ease-in-out infinite;
}

/* Gradient text utility */
.gradient-text {
    background: linear-gradient(135deg, #d3714f, #c75738);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #hero {
        min-height: 100vh;
        min-height: 100dvh;
    }
    
    .font-serif {
        font-size: clamp(2rem, 8vw, 3.5rem);
    }
}

/* Print styles */
@media print {
    #navbar, #contactForm, .animate-bounce {
        display: none !important;
    }
    body {
        background: white !important;
    }
}
