/* =====================================================
   People First Group - Responsive & Animations
   Media queries and scroll animations
   ===================================================== */

/* NoScript Mobile Navigation Fallback */
noscript .nav-links {
    display: flex !important;
    position: static !important;
    flex-direction: row !important;
    background: transparent !important;
    padding: 0 !important;
    box-shadow: none !important;
}

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

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

/* Staggered animation delays */
.service-card:nth-child(2) { transition-delay: 0.1s; }
.service-card:nth-child(3) { transition-delay: 0.2s; }
.service-card:nth-child(4) { transition-delay: 0.3s; }
.service-card:nth-child(5) { transition-delay: 0.4s; }

.benefit-box:nth-child(2) { transition-delay: 0.1s; }
.benefit-box:nth-child(3) { transition-delay: 0.2s; }
.benefit-box:nth-child(4) { transition-delay: 0.3s; }

.team-member:nth-child(2) { transition-delay: 0.15s; }

/* =====================================================
   Tablet - 1024px
   ===================================================== */

@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-image-card {
        grid-row: span 1;
        min-height: 300px;
    }

    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
    }

    .footer-cta {
        grid-column: span 2;
    }
}

/* =====================================================
   Mobile - 768px
   ===================================================== */

@media (max-width: 768px) {
    /* Navigation */
    .nav-links,
    .nav-contact-btn {
        display: none;
    }

    .nav-toggle {
        display: flex;
        order: -1;
    }

    .navbar {
        padding: 0.35rem 0;
    }

    .logo img {
        height: 38px;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-white);
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-search-box {
        position: fixed;
        top: 70px;
        left: 1rem;
        right: 1rem;
        width: auto;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    /* Intro Section */
    .intro-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .intro-image {
        order: -1;
    }

    .intro-image img {
        height: 350px;
    }

    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        min-height: auto;
    }

    .service-image-card {
        min-height: 250px;
    }

    /* Benefits */
    .benefits-grid {
        grid-template-columns: 1fr;
    }

    /* Team */
    .team-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Footer */
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-cta {
        grid-column: span 1;
    }

    .footer-bottom-container {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .footer-bottom span {
        margin-left: 0;
    }
}

/* About Section - Mobile */
@media (max-width: 680px) {
    .about-columns {
        columns: 1;
    }
}

/* =====================================================
   Small Mobile - 480px
   ===================================================== */

@media (max-width: 480px) {
    .hero {
        padding: 6rem 1.5rem 3rem;
        min-height: auto;
        overflow: visible;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .section-padding {
        padding: 3rem 1rem;
    }
}
