/* Custom styles for A Wired Electric Company */

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

/* Prevent content flash on load */
body {
    opacity: 1;
}

/* Navbar transitions */
#navbar.scrolled {
    background-color: rgba(250, 248, 245, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

#navbar.scrolled .menu-line {
    background-color: #1a1a1a;
}

/* Mobile menu animations */
.mobile-link {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

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

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

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

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

/* Selection color */
::selection {
    background-color: #d9523c;
    color: white;
}

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

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

/* Image lazy load placeholder */
img {
    background-color: #eadece;
}

/* Subtle pattern for dark section */
.bg-charcoal {
    background-image: linear-gradient(135deg, rgba(217, 82, 60, 0.03) 0%, transparent 50%),
                      linear-gradient(225deg, rgba(217, 82, 60, 0.03) 0%, transparent 50%);
}

/* Service card hover border effect */
.group:hover {
    border-color: transparent;
}

/* Form input transitions */
input, select, textarea {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Typography refinements */
.font-serif {
    text-wrap: balance;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .group:hover img {
        transform: none;
    }
}

/* Print styles */
@media print {
    #navbar, .mobile-menu-btn, #mobile-menu {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .bg-charcoal, .bg-terracotta-600 {
        background: #1a1a1a !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .text-charcoal/60, .text-white/50, .text-white/60 {
        opacity: 1;
    }
}

/* Tablet adjustments */
@media (min-width: 768px) and (max-width: 1023px) {
    .font-serif {
        text-wrap: pretty;
    }
}

/* Large screen optimization */
@media (min-width: 1280px) {
    .lg\:text-8xl {
        line-height: 0.9;
    }
}
