/* Custom styles for Fortenberry Fabrication & Supply */

/* Smooth scroll offset for fixed nav */
html {
    scroll-padding-top: 80px;
}

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

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

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

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

/* Selection color */
::selection {
    background: #f9e8dc;
    color: #6b2f1d;
}

/* Focus styles */
*:focus-visible {
    outline: 2px solid #d4723e;
    outline-offset: 2px;
}

/* Button hover effects */
button, a {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Image lazy loading fade */
img {
    transition: opacity 0.3s ease;
}

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

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

/* Print styles */
@media print {
    nav, .mobile-menu, #menu-overlay {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .service-card {
        break-inside: avoid;
    }
}

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

/* High contrast mode */
@media (forced-colors: active) {
    .service-card {
        border: 1px solid ButtonText;
    }
    
    button, a {
        border: 1px solid ButtonText;
    }
}

/* Tablet and up */
@media (min-width: 768px) {
    .service-card:hover {
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    }
}

/* Large screens */
@media (min-width: 1024px) {
    .hero-text {
        opacity: 1;
        transform: none;
        animation: fadeInUp 0.8s ease forwards;
    }
}
