.services-hero {
    background-color: var(--primary-dark);
    padding: 2rem 0;
    position: relative;
    margin-top: 100px;
}

.services-summary {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.summary-content {
    flex: 1;
    text-align: left;
}

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

.summary-illustration {
    max-width: 100%;
    height: auto;
    max-height: 300px;
}

.services-summary h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-primary);
    color: var(--text-white);
}

.services-summary h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 400;
    color: var(--primary-light);
    font-family: var(--font-secondary);
}

.services-summary p {
    font-size: 1rem;
    line-height: 1.4;
    color: var(--text-white);
    font-family: var(--font-secondary);
    max-width: 800px;
    margin-bottom: 1rem;
}

.services-summary ul {
    list-style-type: none;
    padding: 0;
    margin: 0 0 1rem 0;
    color: var(--text-white);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem 2rem;
}

.services-summary li {
    color: var(--text-white);
    margin-bottom: 0;
    padding-left: 1.2rem;
    position: relative;
    font-family: var(--font-secondary);
    line-height: 1.3;
    font-size: 1rem;
    display: block;
}

.services-summary li:first-child {
    margin-top: 0;
}

.services-summary li::before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-size: 1.1em;
    font-weight: bold;
}

.services-summary strong {
    color: var(--text-white);
    font-size: 1rem;
    margin-bottom: 0.5rem;
    display: block;
}

.cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--text-white);
    padding: 0.8rem 1.5rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    font-family: var(--font-secondary);
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: var(--primary-light);
}

.services-content {
    background-color: var(--bg-secondary);
    padding: 2rem 0;
}

.section-header {
    text-align: center;
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    font-family: var(--font-primary);
    position: relative;
    padding-bottom: 1rem;
}

.section-header::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 0.5rem auto 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
    justify-items: center;
}

/* Center the last two cards in the second row */
.service-card:nth-child(4) {
    grid-column: 1;
}

.service-card:nth-child(5) {
    grid-column: 2;
}

.service-card {
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 350px;
    width: 100%;
    max-width: 350px;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

.service-card h3 {
    color: var(--secondary-color);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-family: var(--font-primary);
    text-align: center;
}

.service-card p {
    color: var(--text-primary);
    font-size: 1rem;
    line-height: 1.5;
    font-family: var(--font-secondary);
    margin-bottom: 1rem;
}

.service-card ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    flex-grow: 1;
}

.service-card li {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
    font-family: var(--font-secondary);
    line-height: 1.4;
}

.service-card li::before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-size: 1.2em;
}

@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 1200px;
    }
    
    .service-card:nth-child(4),
    .service-card:nth-child(5) {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .services-summary {
        flex-direction: column;
        padding: 2rem 1.5rem;
    }

    .summary-content {
        order: 1;
    }

    .summary-image {
        order: 2;
        margin-top: 2rem;
    }

    .summary-illustration {
        max-height: 200px;
    }

    .services-summary h1 {
        font-size: 2rem;
    }

    .services-summary h2 {
        font-size: 1.3rem;
    }

    .services-summary p {
        font-size: 0.95rem;
    }

    .services-summary ul {
        grid-template-columns: 1fr;
        gap: 0.3rem;
    }

    .services-summary li {
        font-size: 0.95rem;
    }

    .services-content {
        padding: 3rem 0;
    }

    .section-header {
        font-size: 1.8rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .service-card {
        padding: 1.5rem 1rem;
        min-height: auto;
        max-width: none;
    }
    
    .service-card:nth-child(4),
    .service-card:nth-child(5) {
        grid-column: span 1;
    }
}

@media (max-width: 480px) {
    .services-summary ul {
        grid-template-columns: 1fr;
        gap: 0.3rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .service-card {
        min-height: auto;
        padding: 1rem 0.8rem;
        max-width: none;
    }
    
    .service-card:nth-child(4),
    .service-card:nth-child(5) {
        grid-column: span 1;
    }
} 