/* ============================================
   Wesley Woodward Contracting — Custom Styles
   ============================================ */

/* Base font loading optimization */
html { font-family: 'Inter', system-ui, sans-serif; }

/* Smooth scroll offset for fixed nav */
section[id] {
    scroll-margin-top: 80px;
}

/* Selection color */
::selection {
    background: #b51f42;
    color: #fff;
}

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

/* Subtle pattern for hero section */
.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(59, 7, 17, 0.88) 0%,
        rgba(107, 19, 43, 0.72) 50%,
        rgba(148, 22, 52, 0.55) 100%
    );
    z-index: 1;
}

.hero-bg > *:not(.hero-bg) {
    position: relative;
    z-index: 2;
}

/* Service card hover lift */
.group:hover {
    transform: translateY(-4px);
}

.group {
    transition: transform 0.3s ease;
}

/* Mobile menu animation */
#mobile-menu.open .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
#mobile-menu.open .menu-line:nth-child(2) {
    opacity: 0;
}
#mobile-menu.open .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.5rem;
}

/* Ensure mobile links close menu */
.mobile-link {
    cursor: pointer;
}
.mobile-link:active {
    opacity: 0.6;
}

/* Counter animation for stats */
@keyframes countUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Print styles */
@media print {
    nav, .hero-bg, #contact-form, #form-success { display: none; }
    body { color: #000; background: #fff; }
    .hero-bg { min-height: auto; background: none !important; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .reveal, .reveal-left, .reveal-right {
        opacity: 1;
        transform: none;
    }
}
