/* ============================================
   CESHM - Home Page Styles
   ============================================ */

/* Hero Section */
.hero {
    position: relative;
    min-height: 65vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0;
    padding-top: var(--header-height);
    padding-bottom: 2rem;
    overflow: hidden;
}

/* Hero Background Slider */
.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

/* Slider Dots/Indicators */
.hero-slider-dots {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    z-index: 10;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot:hover {
    background-color: rgba(255, 255, 255, 0.7);
}

.slider-dot.active {
    background-color: var(--secondary-color);
    transform: scale(1.2);
}

.hero .overlay {
    background: linear-gradient(135deg, rgba(26, 54, 93, 0.55), rgba(15, 39, 68, 0.60));
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--bg-white);
    max-width: 900px;
    padding: 2rem;
}

.hero-tagline {
    display: inline-block;
    background: linear-gradient(90deg, var(--secondary-color), var(--secondary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.hero h1 {
    color: var(--bg-white);
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
    line-height: 1.1;
}

.hero-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 0 auto 1.5rem;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.hero-scroll a {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--bg-white);
    font-size: 0.875rem;
    letter-spacing: 1px;
}

.hero-scroll .mouse {
    width: 26px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    margin-bottom: 0.5rem;
    position: relative;
}

.hero-scroll .mouse::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background-color: var(--secondary-color);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { opacity: 1; top: 8px; }
    100% { opacity: 0; top: 20px; }
}

/* Welcome Section */
.welcome-section {
    background-color: var(--bg-white);
    padding-top: 3rem;
}

.welcome-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.welcome-image {
    position: relative;
}

.welcome-image img {
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
}

.welcome-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--secondary-color);
    border-radius: 12px;
    z-index: -1;
}

.welcome-content .subtitle {
    color: var(--secondary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.welcome-content h2 {
    margin-bottom: 1.5rem;
}

.welcome-content p {
    margin-bottom: 1.5rem;
    font-size: 1.0625rem;
}

.welcome-signature {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.signature-name {
    font-family: var(--font-primary);
    font-size: 1.25rem;
    color: var(--primary-color);
    font-weight: 700;
}

.signature-title {
    color: var(--secondary-color);
    font-size: 0.9375rem;
}

/* Stats Section */
.stats-section {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    padding: 4rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.stat-item {
    text-align: center;
    color: var(--bg-white);
}

.stat-number {
    font-family: var(--font-primary);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Who We Are Section */
.who-we-are {
    background-color: var(--bg-cream);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    background-color: var(--bg-white);
    padding: 2.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.feature-card .icon-box {
    margin: 0 auto 1.5rem;
}

.feature-card h4 {
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-muted);
    margin-bottom: 0;
}

/* Vision & Mission Section */
.vision-mission {
    background-color: var(--bg-white);
}

.vm-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.vm-card {
    padding: 3rem;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.vm-card.vision {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--bg-white);
}

.vm-card.mission {
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-light));
    color: var(--bg-white);
}

.vm-card h3 {
    color: var(--bg-white);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.vm-card h3 span {
    font-size: 2.5rem;
}

.vm-card p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.0625rem;
    line-height: 1.8;
    margin-bottom: 0;
}

.vm-card ul {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
}

.vm-card ul li {
    color: rgba(255, 255, 255, 0.95);
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.vm-card ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--bg-white);
    font-weight: 700;
}

/* Projects Preview Section */
.projects-preview {
    background-color: var(--bg-light);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.project-card {
    background-color: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.project-card-icon {
    height: 180px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.project-card-body {
    padding: 1.5rem;
}

.project-card h4 {
    margin-bottom: 0.75rem;
}

.project-card p {
    color: var(--text-muted);
    font-size: 0.9375rem;
    margin-bottom: 0;
}

/* Testimonials Section */
.testimonials {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    position: relative;
}

.testimonials::before {
    content: '"';
    position: absolute;
    top: 2rem;
    left: 5%;
    font-size: 20rem;
    font-family: var(--font-primary);
    color: rgba(255, 255, 255, 0.03);
    line-height: 1;
}

.testimonials-slider {
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-item {
    text-align: center;
    color: var(--bg-white);
    padding: 2rem;
}

.testimonial-text {
    font-size: 1.375rem;
    font-style: italic;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.95);
}

.testimonial-author {
    font-weight: 600;
    color: var(--secondary-color);
}

/* CTA Section */
.cta-section {
    background: url('../images/22-Front-view-Central-Church.jpg') center/cover no-repeat fixed;
    position: relative;
    padding: 6rem 0;
}

.cta-section .overlay {
    background: linear-gradient(135deg, rgba(26, 54, 93, 0.92), rgba(15, 39, 68, 0.95));
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--bg-white);
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    color: var(--bg-white);
    margin-bottom: 1.5rem;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

/* Gallery Preview */
.gallery-preview {
    background-color: var(--bg-white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(26, 54, 93, 0.7), transparent);
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover::after {
    opacity: 1;
}

/* Responsive */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
    
    .features-grid,
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 90vh;
    }
    
    .hero-description {
        font-size: 1.0625rem;
    }
    
    .welcome-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .welcome-image {
        order: -1;
    }
    
    .welcome-image::before {
        display: none;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .features-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .vm-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonial-text {
        font-size: 1.125rem;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-card {
        padding: 2rem;
    }
    
    .vm-card {
        padding: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}
