/* Homepage Specific Styles */

/* Hero Section - Updated with grid pattern and wave */
.hero {
    background-color: var(--bg-peach);
    background-image: 
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 100px,
            rgba(255, 255, 255, 0.08) 100px,
            rgba(255, 255, 255, 0.08) 200px
        ),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 100px,
            rgba(255, 255, 255, 0.08) 100px,
            rgba(255, 255, 255, 0.08) 200px
        );
    padding: 5rem 0 8rem; /* Extra bottom padding for wave */
    min-height: 600px;
    position: relative;
    overflow: hidden;
}

/* Wave pattern at bottom */
.hero::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 120px;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1200 120' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V120H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z' fill='%23FAFAF8'/%3E%3C/svg%3E");
    background-size: cover;
    background-repeat: no-repeat;
    z-index: 2;
}

/* Ensure content stays above patterns */
.hero .container {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-content {
    padding-right: 2rem;
}

/* Keep existing hero-image styles */
.hero-image {
    position: relative;
    z-index: 3;
}

/* Optional: Add subtle floating accent shape */
.hero-image::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--bg-sage) 0%, transparent 70%);
    opacity: 0.2;
    top: -150px;
    left: -100px;
    pointer-events: none;
    z-index: -1;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

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

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    object-fit: cover;
}

.hero-image-placeholder {
    width: 400px;
    height: 400px;
    background: var(--secondary-color);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 40px rgba(160, 231, 229, 0.3);
}

.hero-icon {
    font-size: 8rem;
    opacity: 0.5;
    color: var(--white);
}

/* Services Section */
.services {
    padding: 5rem 0;
    background: var(--bg-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

/* Updated Service Card Styles with Images */
.service-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 0; /* Remove all padding */
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden; /* Keep image within bounds */
}

/* New Service Image Styles */
.service-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
    border-radius: 15px 15px 0 0; /* Round top corners only */
}

/* Service Content Container */
.service-content {
    padding: 2rem;
}

/* Update the hover effect */
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

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

/* Update h3 styling to remove extra top spacing */
.service-content h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.service-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.service-features li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-light);
    line-height: 1.6;
}

.service-features li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.service-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: gap 0.3s ease;
}

.service-link:hover {
    gap: 0.5rem;
    color: var(--text-dark);
}

/* Why Choose Us Section */
.why-us {
    padding: 5rem 0;
    background: var(--bg-sage);
}

.why-us-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.why-us-text h2 {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 2rem;
}

.benefits-list {
    display: grid;
    gap: 1.5rem;
}

.benefit {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1rem;
    background: var(--white);
    border-radius: 8px;
}

.benefit-icon {
    background: var(--secondary-color);
    color: var(--white);
    width: 30px;
    height: 30px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-weight: bold;
}

.benefit h4 {
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.benefit p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.why-us-image {
    display: flex;
    justify-content: center;
}

.stat-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.stat {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    border: 2px solid var(--primary-color);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-light);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* CTA Section */
.cta-section {
    padding: 4rem 0;
    background: var(--bg-gold);
    text-align: center;
}

.cta-content h2 {
    color: var(--text-dark);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-content p {
    color: var(--text-dark);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.preferred-contact {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* Responsive Design */
@media (max-width: 968px) {
    .hero {
        padding-bottom: 6rem; /* Adjust for smaller wave */
    }
    
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content {
        padding-right: 0;
        margin-bottom: 2rem;
    }
    
    .hero::after {
        height: 80px; /* Smaller wave on mobile */
    }
    
    .hero-title {
        font-size: 2rem;
    }
}

@media (max-width: 640px) {
    .hero::after {
        height: 60px; /* Even smaller wave on small mobile */
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-img {
        max-width: 300px;
    }
    
    .why-us-content {
        grid-template-columns: 1fr;
    }
    
    .stat-cards {
        flex-direction: row;
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-cards {
        flex-direction: column;
    }
    
    /* Responsive adjustments for service images */
    .service-image {
        height: 180px; /* Smaller on mobile */
    }
    
    .service-content {
        padding: 1.5rem; /* Reduce padding on mobile */
    }
}

/* Image fallback styles */
.image-fallback {
    width: 100%;
    height: 220px;
    background: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: rgba(74, 85, 104, 0.3);
    border-radius: 15px 15px 0 0;
}
