/**
 * TradeWorks NQ Custom CSS
 *
 * @package TradeWorksNQ
 */

/* Mobile Menu Styles */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.menu-icon {
    width: 25px;
    height: 3px;
    background: #1e3a5f;
    border-radius: 2px;
    transition: all 0.3s ease;
}

@media (max-width: 968px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .main-navigation {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        padding: 1rem;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        display: none;
        flex-direction: column;
        gap: 1rem;
    }

    .main-navigation.active {
        display: flex;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Custom Logo Styles */
.site-logo img {
    height: 50px;
    width: auto;
}

/* Value Icon Animations */
.value-card:hover .value-icon {
    animation: pulse 0.5s ease-in-out;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Service Card Hover Effect */
.service-card:hover {
    border-left-color: #27ae60;
}

/* Button Hover Animation */
.btn:hover {
    animation: pulse 0.3s ease-in-out;
}

/* Testimonial Slider */
.testimonial-card {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.testimonial-card.active {
    display: block;
    opacity: 1;
}

/* Form Validation Styles */
.form-group.error input,
.form-group.error textarea {
    border-color: #e74c3c;
}

.form-group.success input,
.form-group.success textarea {
    border-color: #27ae60;
}

.error-message {
    color: #e74c3c;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: none;
}

.form-group.error .error-message {
    display: block;
}

/* Submit Button Loading State */
.submit-btn.loading {
    position: relative;
    pointer-events: none;
}

.submit-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Social Links in Footer */
.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #3498db;
    transform: translateY(-3px);
}

.social-links svg {
    width: 20px;
    height: 20px;
}

/* Footer Menu Styles */
.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-bottom: 0.5rem;
}

.footer-menu a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-menu a:hover {
    color: white;
}

/* Animate on Scroll */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger Animation for Grid Items */
.values-grid .animate-on-scroll:nth-child(1) { transition-delay: 0.1s; }
.values-grid .animate-on-scroll:nth-child(2) { transition-delay: 0.2s; }
.values-grid .animate-on-scroll:nth-child(3) { transition-delay: 0.3s; }

.services-grid .animate-on-scroll:nth-child(1) { transition-delay: 0.1s; }
.services-grid .animate-on-scroll:nth-child(2) { transition-delay: 0.2s; }
.services-grid .animate-on-scroll:nth-child(3) { transition-delay: 0.3s; }
.services-grid .animate-on-scroll:nth-child(4) { transition-delay: 0.4s; }
.services-grid .animate-on-scroll:nth-child(5) { transition-delay: 0.5s; }
.services-grid .animate-on-scroll:nth-child(6) { transition-delay: 0.6s; }

/* Focus States for Accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .site-header,
    .mobile-menu-toggle,
    .hero-section,
    .cta-section,
    .contact-form,
    .site-footer {
        display: none;
    }

    .section {
        padding: 2rem;
        page-break-inside: avoid;
    }
}
