/* Custom Styles for Edwards Insulation */

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

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

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

::-webkit-scrollbar-thumb {
    background: #102a43;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #243b53;
}

/* Selection Color */
::selection {
    background: #eab308;
    color: #102a43;
}

/* Navigation Scroll Effect */
nav.scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 2px 20px rgba(16, 42, 67, 0.1);
}

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

/* Card Hover Effects */
.bg-white.rounded-2xl {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Form Focus Effects */
input:focus,
textarea:focus,
select:focus {
    transform: translateY(-1px);
}

/* Image Hover Zoom */
.rounded-2xl.overflow-hidden img {
    transition: transform 0.5s ease;
}

.rounded-2xl.overflow-hidden:hover img {
    transform: scale(1.02);
}

/* Loading Animation for Page */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Menu Animation */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Pulse Animation for CTA */
@keyframes pulse-gold {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(234, 179, 8, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(234, 179, 8, 0);
    }
}

.bg-gold-500:hover {
    animation: pulse-gold 1.5s infinite;
}

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

/* Print Styles */
@media print {
    nav,
    #mobile-menu-btn,
    button {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .bg-navy-900,
    .bg-navy-50 {
        background: #fff !important;
        color: #000 !important;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .bg-navy-900 {
        background: #000 !important;
    }
    
    .text-navy-900 {
        color: #000 !important;
    }
    
    .text-navy-600 {
        color: #333 !important;
    }
}

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

/* Touch Device Optimizations */
@media (hover: none) {
    .group:hover {
        transform: none;
    }
    
    .group:hover .bg-gold-500 {
        background: #ca8a04 !important;
    }
}
