/* Custom styles for Cody Strickland Trucking */

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

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

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

::-webkit-scrollbar-thumb {
    background: #2d8593;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1a5f6b;
}

/* Selection color */
::selection {
    background: #2d8593;
    color: white;
}

/* Hero asymmetric layout adjustments */
@media (min-width: 1024px) {
    #hero {
        padding-top: 0;
    }
}

/* Navbar transition */
#navbar {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

#navbar.scrolled .text-slate-900 {
    color: #0f172a;
}

#navbar.scrolled .text-slate-600 {
    color: #475569;
}

/* Fade-in animations for below-fold content */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Reduced motion preference */
@media (prefers-reduced-motion: no-preference) {
    .fade-in {
        opacity: 0;
        transform: translateY(24px);
    }
    
    .fade-in.visible {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .fade-in {
        opacity: 1;
        transform: none;
    }
}

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

/* Button focus states */
button:focus-visible,
a:focus-visible {
    outline: 2px solid #2d8593;
    outline-offset: 2px;
}

/* Input focus states */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(45, 133, 147, 0.1);
}

/* Map section */
section:nth-last-child(2) {
    position: relative;
}

/* Ensure proper font rendering */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Print styles */
@media print {
    #navbar,
    #contact,
    button {
        display: none;
    }
}
