/* OnDemandTechHelp Home Page CSS - Updated with Header Gradient */

/* Main Container - Matches Header Gradient */

/* Main Container - Enterprise Off-White Background */
.home-page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    background: #fafafa;
    color: #374151;
}

/* Add subtle shimmer effect like header */
.home-page-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: all 0.5s ease;
    pointer-events: none;
    z-index: 1;
}

.home-page-container:hover::before {
    animation: shimmer 2s ease-in-out;
}

.home-hero {
    text-align: center;
    margin-bottom: 80px;
    padding: 60px 40px;
    background: linear-gradient(135deg, #2d4a7c 0%, #1e3a6f 50%, #2d4a7c 100%);
    color: white;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.home-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #1e293b 0%, #475569 100%);
}

.home-hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: white;  /* CHANGED from #1e293b to white */
    margin: 0 0 40px 0;
    letter-spacing: -0.02em;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);  /* ADD this for readability */
}

.hero-subtitle {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    color: #b8c5d6;  /* CHANGED from #475569 to light blue-gray */
    margin: 0 0 40px 0;
    font-weight: 600;
    line-height: 1.4;
}

/* Emergency CTA - Enterprise Off-White */
.emergency-cta {
    background: #fafafa;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 30px;
    margin: 40px 0;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 2;
    position: relative;
}

.emergency-text,
.service-request-text {
    margin: 0 0 15px 0;
    font-size: 1.1rem;
    line-height: 1;
    color: #374151;
}

.emergency-text strong,
.service-request-text strong {
    display: block;
    margin-bottom: 8px;
}

.emergency-text a,
.service-request-text a {
    display: block;
    margin-bottom: 8px;
}

.service-request-text {
    text-align: center;
    line-height: 1;
    margin: 16px 0;
}

.emergency-link {
    color: #dc2626;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.emergency-link:hover {
    color: #dc2626;
    border-bottom-color: #dc2626;
    text-decoration: none;
    background: none;
}

.service-request-link {
    color: #059669;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.service-request-link:hover {
    color: #059669;
    border-bottom-color: #1e293b;
    text-decoration: none;
}

/* Non-Profit Mission - Enterprise Off-White */
.nonprofit-mission {
    background: #fafafa;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 30px;
    margin-top: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 2;
    position: relative;
}

.nonprofit-mission p {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #374151;
    font-weight: 500;
    text-align: center;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-bottom: 80px;
    z-index: 2;
    position: relative;
}

.service-card {
    background: #fafafa;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    border-color: rgba(255, 255, 255, 0.3);
}

.service-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-content {
    padding: 30px;
    text-align: center;
}

.service-content h2 {
    font-size: 1.25rem;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 15px 0;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    position: relative;
}

.service-content h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 275px;
    height: 3px;
    background: linear-gradient(135deg, #1e293b 0%, #475569 100%);
    border-radius: 2px;
}

.service-content p {
    color: #475569;
    line-height: 1.6;
    margin: 0 0 20px 0;
    font-size: 1rem;
}

.read-more-btn {
    display: inline-block;
    color: #1e293b;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: lowercase;
    transition: all 0.3s ease;
    border-bottom: 2px solid #1e293b;
    padding-bottom: 2px;
}

.read-more-btn:hover {
    color: #475569;
    border-bottom-color: #475569;
    text-decoration: none;
    transform: translateX(5px);
}


/* Call to Action Footer - Blue Gradient Like Header */
.home-cta-footer {
    background: linear-gradient(135deg, #2d4a7c 0%, #1e3a6f 50%, #2d4a7c 100%);
    border-radius: 20px;
    padding: 50px 40px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.home-cta-footer::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.home-cta-footer h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    margin: 0 0 30px 0;
    position: relative;
    z-index: 1;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.phone-cta,
.form-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 35px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    letter-spacing: 0.025em;
}

.phone-cta {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.3);
}

.phone-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(5, 150, 105, 0.4);
    text-decoration: none;
    color: white;
}

.phone-icon {
    font-size: 1.2rem;
    margin-right: 10px;
}

.form-cta {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.form-cta:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .home-page-container {
        padding: 40px 15px;
    }

    .home-hero {
        margin-bottom: 60px;
        padding: 40px 20px;
    }

    .emergency-cta,
    .nonprofit-mission {
        padding: 20px;
        text-align: center;
    }

    .emergency-text,
    .service-request-text {
        font-size: 1rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 60px;
    }

    .service-image {
        height: 200px;
    }

    .service-content {
        padding: 25px;
    }

    .home-cta-footer {
        padding: 30px 20px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .phone-cta,
    .form-cta {
        width: 100%;
        max-width: 300px;
        padding: 16px 30px;
    }
}

@media (max-width: 480px) {
    .emergency-cta,
    .nonprofit-mission {
        padding: 15px;
    }

    .service-content h2 {
        font-size: 1.1rem;
    }

    .service-content p {
        font-size: 0.95rem;
    }
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmer {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

.home-hero,
.service-card,
.home-cta-footer {
    animation: fadeInUp 0.8s ease-out;
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }

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