/* DW Nelson Enterprises - Custom Styles */
/* Additional styles beyond inline critical CSS */

/* Scroll animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

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

/* Service card stagger animation */
.service-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.4s ease;
}

.service-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Subtle hover glow on coral elements */
.btn-primary:hover {
    animation: pulse-glow 1.5s infinite;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 4px 15px rgba(255,127,107,0.3); }
    50% { box-shadow: 0 4px 25px rgba(255,127,107,0.5); }
}

/* Navbar transition on scroll */
.nav {
    transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

/* Mobile menu animation */
.mobile-menu {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu.active {
    opacity: 1;
}

.mobile-menu a {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.mobile-menu.active a {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu.active a:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.active a:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.active a:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.active a:nth-child(4) { transition-delay: 0.25s; }

/* Mobile hamburger animation */
.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}
.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--coral);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Print styles */
@media print {
    .nav, .mobile-menu, .cta-section { display: none; }
    body { color: #000; background: #fff; }
    .hero { min-height: auto; padding: 2rem; }
}
